From e7b28656801d4ff8284e0c43deddf0a6953b08ae Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期四, 24 十月 2024 15:36:17 +0800 Subject: [PATCH] 云学习判断 --- packageBookService/pages/bookServices/detail/components/tree/index.wxml | 16 +++++++++------- 1 files changed, 9 insertions(+), 7 deletions(-) diff --git a/packageBookService/pages/bookServices/detail/components/tree/index.wxml b/packageBookService/pages/bookServices/detail/components/tree/index.wxml index 01e0577..fc81d48 100644 --- a/packageBookService/pages/bookServices/detail/components/tree/index.wxml +++ b/packageBookService/pages/bookServices/detail/components/tree/index.wxml @@ -67,17 +67,17 @@ mode="aspectFill" /> <image - wx:elif="{{ item.fileMap[item.file].extension == 'doc' || item.fileMap[item.file].extension == 'docx'}}" + 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'}}" src="/static/images/bookService/detail/word.png" mode="aspectFill" /> <image - wx:elif="{{ item.fileMap[item.file].extension == 'xlsx' || item.fileMap[item.file].extension == 'xlsx'}}" + wx:elif="{{ item.fileMap[item.file].extension == 'xlsx' || item.fileMap[item.file].extension == 'xlsx' || item.fileMap[item.freeFile].extension == 'xlsx' || item.fileMap[item.freeFile].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'}}" + 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'}}" src="/static/images/bookService/detail/PPT.png" mode="aspectFill" /> @@ -152,7 +152,7 @@ <view class="title-t"> <view class="title-name">{{item.name}} </view> <view wx:if="{{item.sysType =='CmsFolder'}}" class="title-num"> - 锛坽{item.childrenItem}}锛� + 锛坽{item.childrenItem ? item.childrenItem: 0 }}锛� </view> </view> <view class="title-icon"> @@ -242,17 +242,17 @@ mode="aspectFill" /> <image - wx:elif="{{ citem.fileMap[citem.file].extension == 'doc' || citem.fileMap[citem.file].extension == 'docx'}}" + 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'}}" src="/static/images/bookService/detail/word.png" mode="aspectFill" /> <image - wx:elif="{{ citem.fileMap[citem.file].extension == 'xlsx' || citem.fileMap[citem.file].extension == 'xlsx'}}" + wx:elif="{{ citem.fileMap[citem.file].extension == 'xlsx' || citem.fileMap[citem.file].extension == 'xlsx' || citem.fileMap[citem.freeFile].extension == 'xlsx' || citem.fileMap[citem.freeFile].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'}}" + 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'}}" src="/static/images/bookService/detail/PPT.png" mode="aspectFill" /> @@ -313,6 +313,8 @@ tab="{{tab}}" buyIds="{{buyIds}}" openIds="{{openIds}}" + learnMenu="{{learnMenu}}" + isCloundHaveSaleMethod="{{isCloundHaveSaleMethod}}" ></tree> </view> <!-- 鏆傛棤鏁版嵁 --> -- Gitblit v1.9.1