From 37a205e037614e497b00a076f5bc83520337dbea Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期四, 07 十一月 2024 14:43:01 +0800
Subject: [PATCH] 云学习资源类型

---
 pages/digitalCourses/digitalCoursesDetails/components/tree/index.wxml |   70 +++++++++++++++++++++++++++++++++++
 1 files changed, 70 insertions(+), 0 deletions(-)

diff --git a/pages/digitalCourses/digitalCoursesDetails/components/tree/index.wxml b/pages/digitalCourses/digitalCoursesDetails/components/tree/index.wxml
index fa1bd39..2ba7bc1 100644
--- a/pages/digitalCourses/digitalCoursesDetails/components/tree/index.wxml
+++ b/pages/digitalCourses/digitalCoursesDetails/components/tree/index.wxml
@@ -9,6 +9,41 @@
               <view class="teach-icon fl-cn">
                 <image wx:if="{{item.selectType == 'audio' || item.learnSelectType == 'audio'}}" src="/static/images/bookService/detail/audioIcon.png" mode="aspectFill" />
                 <image wx:elif="{{item.selectType == 'video' || item.learnSelectType == 'video'}}" src="/static/images/bookService/detail/video.png" mode="aspectFill" />
+                <image
+                  wx:elif="{{item.selectType == 'pdf' || item.learnSelectType == 'pdf'}}"
+                  src="/static/images/bookService/detail/pdf.png"
+                  mode="aspectFill"
+                />
+                <image
+                  wx:elif="{{item.selectType == 'webpage' || item.learnSelectType == 'webpage'}}"
+                  src="/static/images/bookService/detail/net.png"
+                  mode="aspectFill"
+                />
+                <image
+                  wx:elif="{{item.selectType == 'picture' || item.learnSelectType == 'picture'}}"
+                  src="/static/images/bookService/detail/picture.png"
+                  mode="aspectFill"
+                />
+                <image
+                  wx:elif="{{item.selectType == 'zip' || item.learnSelectType == 'zip'}}"
+                  src="/static/images/bookService/detail/zip.png"
+                  mode="aspectFill"
+                />
+                <image
+                  wx:elif="{{ item.fileMap[item.file].extension == 'doc' ||  item.fileMap[item.file].extension == 'docx' || item.fileMap[item.freeFile].extension == 'doc' ||  item.fileMap[item.freeFile].extension == 'docx' || item.fileMap[item.protectedFile].extension == 'doc' ||  item.fileMap[item.protectedFile].extension == 'docx'}}"
+                  src="/static/images/bookService/detail/word.png"
+                  mode="aspectFill"
+                />
+                <image
+                  wx:elif="{{ item.fileMap[item.file].extension == 'xls' ||  item.fileMap[item.file].extension == 'xlsx' || item.fileMap[item.freeFile].extension == 'xls' ||  item.fileMap[item.freeFile].extension == 'xlsx' || item.fileMap[item.protectedFile].extension == 'xls' ||  item.fileMap[item.protectedFile].extension == 'xlsx'}}"
+                  src="/static/images/bookService/detail/excel.png"
+                  mode="aspectFill"
+                />
+                <image
+                  wx:elif="{{ item.fileMap[item.file].extension == 'ppt' ||  item.fileMap[item.file].extension == 'pptx' || item.fileMap[item.freeFile].extension == 'ppt' ||  item.fileMap[item.freeFile].extension == 'pptx' || item.fileMap[item.protectedFile].extension == 'ppt' ||  item.fileMap[item.protectedFile].extension == 'pptx'}}"
+                  src="/static/images/bookService/detail/PPT.png"
+                  mode="aspectFill"
+                />
                 <!-- 璧勬簮鏃犳枃浠跺唴瀹瑰浘鏍� -->
                 <image wx:else src="/static/images/bookService/detail/word.png" mode="" />
               </view>
@@ -43,6 +78,41 @@
                 <view class="teach-icon fl-cn">
                   <image wx:if="{{citem.selectType == 'audio' || citem.learnSelectType == 'audio'}}" src="/static/images/bookService/detail/audioIcon.png" mode="aspectFill" />
                   <image wx:elif="{{citem.selectType == 'video' || citem.learnSelectType == 'video'}}" src="/static/images/bookService/detail/video.png" mode="aspectFill" />
+                  <image
+                    wx:elif="{{citem.selectType == 'pdf' || citem.learnSelectType == 'pdf'}}"
+                    src="/static/images/bookService/detail/pdf.png"
+                    mode="aspectFill"
+                  />
+                  <image
+                    wx:elif="{{citem.selectType == 'webpage' || citem.learnSelectType == 'webpage'}}"
+                    src="/static/images/bookService/detail/net.png"
+                    mode="aspectFill"
+                  />
+                  <image
+                    wx:elif="{{citem.selectType == 'picture' || citem.learnSelectType == 'picture'}}"
+                    src="/static/images/bookService/detail/picture.png"
+                    mode="aspectFill"
+                  />
+                  <image
+                    wx:elif="{{citem.selectType == 'zip' || citem.learnSelectType == 'zip'}}"
+                    src="/static/images/bookService/detail/zip.png"
+                    mode="aspectFill"
+                  />
+                  <image
+                    wx:elif="{{ citem.fileMap[citem.file].extension == 'doc' ||  citem.fileMap[citem.file].extension == 'docx' || citem.fileMap[citem.freeFile].extension == 'doc' ||  citem.fileMap[citem.freeFile].extension == 'docx' || citem.fileMap[citem.protectedFile].extension == 'doc' ||  citem.fileMap[citem.protectedFile].extension == 'docx'}}"
+                    src="/static/images/bookService/detail/word.png"
+                    mode="aspectFill"
+                  />
+                  <image
+                    wx:elif="{{ citem.fileMap[citem.file].extension == 'xls' ||  citem.fileMap[citem.file].extension == 'xlsx' || citem.fileMap[citem.freeFile].extension == 'xls' ||  citem.fileMap[citem.freeFile].extension == 'xlsx' || citem.fileMap[citem.protectedFile].extension == 'xls' ||  citem.fileMap[citem.protectedFile].extension == 'xlsx' }}"
+                    src="/static/images/bookService/detail/excel.png"
+                    mode="aspectFill"
+                  />
+                  <image
+                    wx:elif="{{ citem.fileMap[citem.file].extension == 'ppt' ||  citem.fileMap[citem.file].extension == 'pptx' || citem.fileMap[citem.freeFile].extension == 'ppt' ||  citem.fileMap[citem.freeFile].extension == 'pptx' || citem.fileMap[citem.protectedFile].extension == 'ppt' ||  citem.fileMap[citem.protectedFile].extension == 'pptx'}}"
+                    src="/static/images/bookService/detail/PPT.png"
+                    mode="aspectFill"
+                  />
                   <!-- 璧勬簮鏃犳枃浠跺唴瀹瑰浘鏍� -->
                   <image wx:else src="/static/images/bookService/detail/word.png" mode="" />
                   <text class="name" style="width:400rpx">{{citem.name || '-'}}</text>

--
Gitblit v1.9.1