13 小时以前 | zhongshujie | ![]() |
16 小时以前 | zhongshujie | ![]() |
16 小时以前 | zhongshujie | ![]() |
16 小时以前 | QYF-GitLab1 | ![]() |
16 小时以前 | QYF-GitLab1 | ![]() |
17 小时以前 | zhongshujie | ![]() |
.vscode/settings.json
@@ -32,7 +32,7 @@ }, "editor.tabSize": 2, "[wxml]": { "editor.defaultFormatter": "esbenp.prettier-vscode" "editor.defaultFormatter": "wechat.miniprogram.wxml-language-features" }, "[css]": { "editor.defaultFormatter": "HookyQR.beautify" assets/js/middleGround/api/file.js
@@ -92,6 +92,14 @@ method: 'post', data }) }, // 检查CmsItem 权限 checkCmsItem(data) { return request({ url: '/file/api/ApiCheckCmsItemAccessRights', method: 'post', data }) } } components/popup/index.js
File was deleted components/popup/index.json
File was deleted components/popup/index.wxml
File was deleted components/popup/index.wxss
File was deleted custom-tab-bar/index.json
@@ -1,8 +1,6 @@ { "component": true, "usingComponents": { "t-tab-bar": "tdesign-miniprogram/tab-bar/tab-bar", "t-tab-bar-item": "tdesign-miniprogram/tab-bar-item/tab-bar-item", "t-icon": "tdesign-miniprogram/icon/icon", "t-image": "tdesign-miniprogram/image/image" } packageBookService/pages/bookServices/detail/components/suggest/suggest.json
@@ -8,7 +8,6 @@ "t-popup": "tdesign-miniprogram/popup/popup", "t-icon": "tdesign-miniprogram/icon/icon", "t-button": "tdesign-miniprogram/button/button", "t-image": "tdesign-miniprogram/image/image", "popup": "/components/popup/index" "t-image": "tdesign-miniprogram/image/image" } } packageBookService/pages/bookServices/detail/components/testResource/testResource.js
@@ -130,10 +130,13 @@ wx.hideLoading(); if (value.refCode == "psychology") { const listName = value.name const listId = value.id const bookId = this.data.bookInfo.id const bookName = this.data.bookInfo.name const formPath = this.data.tab wx.navigateTo({ url: `/packageBookService/pages/psychologyAnswer/psychologyAnswer?listName=${ listName }` listName}&listId=${listId}&bookId=${bookId}&bookName=${bookName}&formPath=${formPath}` }) } else { wx.navigateTo({ packageBookService/pages/bookServices/detail/components/testTree/index.js
@@ -33,6 +33,7 @@ openIds: e.detail.value, }); }, goTest(e) { const value = e.currentTarget.dataset; var myEventDetail = { packageBookService/pages/bookServices/detail/index.js
@@ -1230,7 +1230,7 @@ }); } if (data.length > 0) { console.log('data', data); console.log('data01', data); let list = [] that.getTreeList(data, list, query.cmsPath) list = that.ensureTreeConsistency(list) @@ -3070,6 +3070,17 @@ cloundMenuIsBuy: flag }) }, // 显示ISBN showISBN() { wx.showModal({ title: '', content: this.data.bookDetail.isbn, showCancel: false, confirmText: '关闭', success: (res) => {} }) }, /** * 用户点击右上角分享 */ packageBookService/pages/bookServices/detail/index.json
@@ -5,7 +5,6 @@ "t-tabs": "tdesign-miniprogram/tabs/tabs", "t-tab-panel": "tdesign-miniprogram/tab-panel/tab-panel", "t-button": "tdesign-miniprogram/button/button", "t-message": "tdesign-miniprogram/message/message", "book-brief": "/packageBookService/pages/bookServices/detail/components/brief/index", "teach-resource": "/packageBookService/pages/bookServices/detail/components/teachResource/index", "learn-resource": "/packageBookService/pages/bookServices/detail/components/learnResource/learnResource", @@ -18,7 +17,6 @@ "t-dialog": "tdesign-miniprogram/dialog/dialog", "t-toast": "tdesign-miniprogram/toast/toast", "t-empty": "tdesign-miniprogram/empty/empty", "t-fab": "tdesign-miniprogram/fab/fab", "t-skeleton": "tdesign-miniprogram/skeleton/skeleton", "suggest-dialog": "/packageBookService/pages/bookServices/detail/components/suggestDialog/index", "empty": "/components/empty/index", packageBookService/pages/bookServices/detail/index.wxml
@@ -2,67 +2,35 @@ <import src="index.skeleton.wxml" /> <template is="skeleton" wx:if="{{pageLoading}}" /> <suggest-dialog class="suggest-dialog" showIndex="{{showIndex}}" bookIcon="{{bookDetail.icon}}" bookName="{{bookDetail.name}}" ></suggest-dialog> <suggest-dialog class="suggest-dialog" showIndex="{{showIndex}}" bookIcon="{{bookDetail.icon}}" bookName="{{bookDetail.name}}"></suggest-dialog> <!-- <popup showIndex="{{showIndex}}"></popup> --> <view class="page-bookService" wx:if="{{!pageLoading}}"> <t-toast id="t-toast" /> <movable-area class="movable-area"> <scroll-view scroll-y="{{true}}" class="book" bindscrolltolower="onReachBottom" scroll-with-animation="{{true}}" scroll-top="{{scrollTop}}" > <scroll-view scroll-y="{{true}}" class="book" bindscrolltolower="onReachBottom" scroll-with-animation="{{true}}" scroll-top="{{scrollTop}}"> <!-- 图书详情 --> <view class="book-box"> <view class="book-detail" id="book-detail"> <view class="detail-left"> <view class="book-img"> <image loading="" src="{{bookDetail.icon ? bookDetail.icon : '/static/images/default-book-img.png'}}" mode="aspectFit" aria-label="{{bookDetail.name}}" /> <image loading="" src="{{bookDetail.icon ? bookDetail.icon : '/static/images/default-book-img.png'}}" mode="aspectFit" aria-label="{{bookDetail.name}}" /> </view> <view class="book-use"> <view class="collect" bind:tap="setCollect"> <view> <image loading="" src="/static/images/bookService/detail/collect.png" wx:if="{{!bookDetail.isFavourite}}" /> <image loading="" src="/static/images/bookService/detail/collecting.png" wx:if="{{bookDetail.isFavourite}}" /> <image loading="" src="/static/images/bookService/detail/collect.png" wx:if="{{!bookDetail.isFavourite}}" /> <image loading="" src="/static/images/bookService/detail/collecting.png" wx:if="{{bookDetail.isFavourite}}" /> </view> <view class="use-title">收藏</view> </view> <view class="suggest" bind:tap="suggestBtn"> <view> <image loading="" src="/static/images/bookService/detail/suggest.png" /> <image loading="" src="/static/images/bookService/detail/suggest.png" /> </view> <view class="use-title">建议</view> </view> <view class="suggest" bindtap="editPhone"> <t-icon class="editIcon" style="color: rgb(194, 194, 194)" name="calendar-edit" size="40rpx" /> <t-icon class="editIcon" style="color: rgb(194, 194, 194)" name="calendar-edit" size="40rpx" /> <view class="use-title">联系</view> </view> </view> @@ -80,25 +48,18 @@ </view> <view class="message-li" wx:if="{{bookDetail.isbn}}"> <view class="li-title">ISBN:</view> <view class="li-content">{{bookDetail.isbn}}</view> <view bindtap="showISBN" class="li-content">{{bookDetail.isbn}}</view> </view> <view class="message-li" wx:if="{{bookDetail.publicationDate}}"> <view class="li-title">出版时间:</view> <view class="li-title">出版(重印)时间:</view> <view class="li-content">{{bookDetail.publicationDate}}</view> </view> <view class="message-li" wx:if="{{bookClass.length}}" style="height: 80rpx" > <view class="message-li" wx:if="{{bookClass.length}}" style="height: 80rpx"> <view class="li-title">图书分类:</view> <view class="class-name showTow">{{bookClass}}</view> </view> </view> <image src="/static/images/bookService/detail/square.png" class="right-background" /> <image src="/static/images/bookService/detail/square.png" class="right-background" /> </view> </view> <!-- 销售信息 --> @@ -107,19 +68,12 @@ <!-- 电子书售价 --> <view class="electron-price" wx:if="{{bookDetail.price}}"> <view> <image src="/static/images/bookService/detail/electon-price.png" /> <image src="/static/images/bookService/detail/electon-price.png" /> </view> <view class="price"> <view class="price-text" >{{bookDetail.price == '0.00' ? '免费' : '¥'+ bookDetail.price}}</view > <view class="price-old" wx:if="{{bookDetail.oldPrice != '0.00'}}" >¥{{bookDetail.oldPrice}} <view class="price-text">{{bookDetail.price == '0.00' ? '免费' : '¥'+ bookDetail.price}}</view> <view class="price-old" wx:if="{{bookDetail.oldPrice != '0.00'}}">¥{{bookDetail.oldPrice}} </view> </view> <view> </view> @@ -127,215 +81,64 @@ <!-- 纸质书售价 --> <view class="paper-price" wx:if="{{bookDetail.paperPrice}}"> <view> <image src="/static/images/bookService/detail/paper-price.png" /> <image src="/static/images/bookService/detail/paper-price.png" /> </view> <view class="price" >{{bookDetail.paperPrice == '0.00' ? '免费' : '¥'+bookDetail.paperPrice}}</view > <view class="price">{{bookDetail.paperPrice == '0.00' ? '免费' : '¥'+bookDetail.paperPrice}}</view> </view> </view> <!-- 网店 --> <view class="book-web"> <image src="/static/images/bookService/detail/jd.png" wx:if="{{bookDetail.JDLink}}" bind:tap="goShop" data-link="{{bookDetail.JDLink}}" data-type="jd" /> <image class="tmall-image" src="/static/images/bookService/detail/tmall.png" bind:tap="goShop" data-link="{{bookDetail.tmallLink}}" wx:if="{{bookDetail.tmallLink}}" /> <image src="/static/images/bookService/detail/dangdang.png" bind:tap="goShop" data-link="{{bookDetail.dangdangLink}}" wx:if="{{bookDetail.dangdangLink}}" /> <image src="/static/images/bookService/detail/weidian.png" bind:tap="goShop" data-link="{{bookDetail.weidianLink}}" wx:if="{{bookDetail.weidianLink}}" /> <image src="/static/images/bookService/detail/jd.png" wx:if="{{bookDetail.JDLink}}" bind:tap="goShop" data-link="{{bookDetail.JDLink}}" data-type="jd" /> <image class="tmall-image" src="/static/images/bookService/detail/tmall.png" bind:tap="goShop" data-link="{{bookDetail.tmallLink}}" wx:if="{{bookDetail.tmallLink}}" /> <image src="/static/images/bookService/detail/dangdang.png" bind:tap="goShop" data-link="{{bookDetail.dangdangLink}}" wx:if="{{bookDetail.dangdangLink}}" /> <image src="/static/images/bookService/detail/weidian.png" bind:tap="goShop" data-link="{{bookDetail.weidianLink}}" wx:if="{{bookDetail.weidianLink}}" /> </view> </view> </view> <view class="book-resource"> <t-tabs value="{{tabValue}}" bind:change="onTabsChange" t-class="custom-tabs" t-class-content="custom-panel" class="tab-class" > <t-tab-panel label="图书信息" icon="{{ tabValue == 'brief' ? briefIconClick : briefIcon}}" value="brief" style="{{tabPanelstyle}}" > <book-brief content="{{bookDetail.content}}" catalogue="{{bookDetail.catalogue}}" authorIntroduction="{{bookDetail.authorIntroduction}}" wx:if="{{bookDetail.content || bookDetail.authorIntroduction}}" ></book-brief> <view wx:if="{{!bookDetail.content && !bookDetail.authorIntroduction && !loading}}" class="noData" > <t-tabs value="{{tabValue}}" bind:change="onTabsChange" t-class="custom-tabs" t-class-content="custom-panel" class="tab-class"> <t-tab-panel label="图书信息" icon="{{ tabValue == 'brief' ? briefIconClick : briefIcon}}" value="brief" style="{{tabPanelstyle}}"> <book-brief content="{{bookDetail.content}}" catalogue="{{bookDetail.catalogue}}" authorIntroduction="{{bookDetail.authorIntroduction}}" wx:if="{{bookDetail.content || bookDetail.authorIntroduction}}"></book-brief> <view wx:if="{{!bookDetail.content && !bookDetail.authorIntroduction && !loading}}" class="noData"> <!-- <t-empty icon="folder-open" description="暂无数据" /> --> <empty /> </view> </t-tab-panel> <t-tab-panel label="教学资源" icon="{{tabValue == 'jsek_teachingResources' ? teachResourcesClickIcon : teachResourcesIcon}}" value="jsek_teachingResources" class="{{loading ? 'loading': ''}}" > <t-tab-panel label="教学资源" icon="{{tabValue == 'jsek_teachingResources' ? teachResourcesClickIcon : teachResourcesIcon}}" value="jsek_teachingResources" class="{{loading ? 'loading': ''}}"> <view wx:if="{{!loading && applyState}}"> <teach-resource applyState="{{applyState}}" rejectCause="{{rejectCause}}" deadline="{{deadline}}" bind:applyResource="applyResource" md5List="{{md5List}}" applyResourceLoading="{{applyResourceLoading}}" bind:uploadFile="uploadFile" ></teach-resource> <tree id="teach-tree" openIds="{{openTeachids}}" bookInfo="{{bookDetail}}" treeList="{{teach}}" tab="{{tabValue}}" applyState="{{applyState}}" deadline="{{deadline}}" bind:downloadTeach="downloadTeach" bind:handleTree="handleTree" openTeachids="{{openTeachids}}" source="{{source}}" activeId="{{activeId}}" wx:if="{{teach.length}}" isShoppingCart="isShoppingCart" bind:updateCloudLearning="updateCloudLearning" bind:handleScrollTop="handleScrollTop" ></tree> <teach-resource applyState="{{applyState}}" rejectCause="{{rejectCause}}" deadline="{{deadline}}" bind:applyResource="applyResource" md5List="{{md5List}}" applyResourceLoading="{{applyResourceLoading}}" bind:uploadFile="uploadFile"></teach-resource> <tree id="teach-tree" openIds="{{openTeachids}}" bookInfo="{{bookDetail}}" treeList="{{teach}}" tab="{{tabValue}}" applyState="{{applyState}}" deadline="{{deadline}}" bind:downloadTeach="downloadTeach" bind:handleTree="handleTree" openTeachids="{{openTeachids}}" source="{{source}}" activeId="{{activeId}}" wx:if="{{teach.length}}" isShoppingCart="isShoppingCart" bind:updateCloudLearning="updateCloudLearning" bind:handleScrollTop="handleScrollTop"></tree> </view> <view wx:if="{{loading}}" style="width: 100%; height: min-content"> <t-skeleton row-col="{{rowCol}}" theme="paragraph" animation="gradient" loading="{{loading}}" ></t-skeleton> <t-skeleton row-col="{{rowCol}}" theme="paragraph" animation="gradient" loading="{{loading}}"></t-skeleton> </view> <view wx:if="{{noResources && !loading}}" class="noData"> <empty /> </view> </t-tab-panel> <t-tab-panel label="云学习" icon="{{tabValue == 'jsek_cloudLearning' ? learnResourceClickIcon : learnResourceIcon}}" value="jsek_cloudLearning" style="{{tabPanelstyle}}" > <t-tab-panel label="云学习" icon="{{tabValue == 'jsek_cloudLearning' ? learnResourceClickIcon : learnResourceIcon}}" value="jsek_cloudLearning" style="{{tabPanelstyle}}"> <view wx:if="{{!loading && learn.length}}"> <learn-resource bind:getFreeResource="getFreeResource" bind:allAddShoppiingCar="allAddShoppiingCar" id="learn-resource" buyResourceData="{{buyResourceData}}" bookId="{{bookDetail.id}}" isshowDrawBtn="{{isshowDrawBtn}}" successOrderNumber="{{successOrderNumber}}" isGoBuyResource="{{isGoBuyResource}}" isShowBuyCloundMenu="{{isShowBuyCloundMenu}}" isShowBuyCloundBtn="{{isShowBuyCloundBtn}}" bind:buyCloudLearnClass="buyCloudLearnClass" learnTaskData="{{learnTaskData}}" ></learn-resource> <learn-resource bind:getFreeResource="getFreeResource" bind:allAddShoppiingCar="allAddShoppiingCar" id="learn-resource" buyResourceData="{{buyResourceData}}" bookId="{{bookDetail.id}}" isshowDrawBtn="{{isshowDrawBtn}}" successOrderNumber="{{successOrderNumber}}" isGoBuyResource="{{isGoBuyResource}}" isShowBuyCloundMenu="{{isShowBuyCloundMenu}}" isShowBuyCloundBtn="{{isShowBuyCloundBtn}}" bind:buyCloudLearnClass="buyCloudLearnClass" learnTaskData="{{learnTaskData}}"></learn-resource> <tree id="tree" openIds="{{openLearnids}}" bookInfo="{{bookDetail}}" tab="{{tabValue}}" treeList="{{learn}}" learnList="{{learn}}" buyIds="{{buyIdList}}" openLearnids="{{openLearnids}}" cloundMenuIsBuy="{{cloundMenuIsBuy}}" learnMenu="{{learnMenu}}" isCloundHaveSaleMethod="{{isCloundHaveSaleMethod}}" source="{{source}}" activeId="{{activeId}}" bind:updateShoppingCartHidden="updateShoppingCartHidden" bind:updateCloudLearning="updateCloudLearning" bind:getCloundIsBuy="getCloundIsBuy" bind:handleScrollTop="handleScrollTop" ></tree> <tree id="tree" openIds="{{openLearnids}}" bookInfo="{{bookDetail}}" tab="{{tabValue}}" treeList="{{learn}}" learnList="{{learn}}" buyIds="{{buyIdList}}" openLearnids="{{openLearnids}}" cloundMenuIsBuy="{{cloundMenuIsBuy}}" learnMenu="{{learnMenu}}" isCloundHaveSaleMethod="{{isCloundHaveSaleMethod}}" source="{{source}}" activeId="{{activeId}}" bind:updateShoppingCartHidden="updateShoppingCartHidden" bind:updateCloudLearning="updateCloudLearning" bind:getCloundIsBuy="getCloundIsBuy" bind:handleScrollTop="handleScrollTop"></tree> </view> <view wx:if="{{noResources && !loading}}" class="noData"> <empty /> </view> </t-tab-panel> <t-tab-panel label="云测试" icon="{{tabValue == 'questionBank' ? testResourceClickIocn : testResourceIocn}}" value="questionBank" style="{{tabPanelstyle}}" > <t-tab-panel label="云测试" icon="{{tabValue == 'questionBank' ? testResourceClickIocn : testResourceIocn}}" value="questionBank" style="{{tabPanelstyle}}"> <view wx:if="{{!loading}}"> <test-resource id="test-resource" list="{{test}}" bankSaleData="{{bankSaleData}}" isBuyBank="{{isBuyBank}}" isShoppingBank="{{isShoppingBank}}" bookInfo="{{bookDetail}}" openIds="{{openLearnids}}" mockData="{{mockData}}" tab="{{tabValue}}" storeInfo="{{options.storeInfo}}" jslx="{{jslx}}" bind:buyMock="buyMock" bind:buyBank="buyBank" bind:handleShoppingBank="handleShoppingBank" ></test-resource> <test-resource id="test-resource" list="{{test}}" bankSaleData="{{bankSaleData}}" isBuyBank="{{isBuyBank}}" isShoppingBank="{{isShoppingBank}}" bookInfo="{{bookDetail}}" openIds="{{openLearnids}}" mockData="{{mockData}}" tab="{{tabValue}}" storeInfo="{{options.storeInfo}}" jslx="{{jslx}}" bind:buyMock="buyMock" bind:buyBank="buyBank" bind:handleShoppingBank="handleShoppingBank"></test-resource> </view> </t-tab-panel> <t-tab-panel label="云笔记" icon="{{tabValue == 'jsek_note' ? noteClickIcon: noteIcon}}" value="jsek_note" style="{{tabPanelstyle}}" > <t-tab-panel label="云笔记" icon="{{tabValue == 'jsek_note' ? noteClickIcon: noteIcon}}" value="jsek_note" style="{{tabPanelstyle}}"> <note bookInfo="{{bookDetail}}" id="note" class="note-list"></note> </t-tab-panel> <t-tab-panel label="相关图书" icon="{{tabValue == 'related_books' ? linkClickIcon: linkIcon}}" value="related_books" style="{{tabPanelstyle}}" > <related-books relatedBookData="{{relatedBookData}}" relatedBookLoading="{{relatedBookLoading}}" noRelatedBookData="{{noRelatedBookData}}" bind:goBookDetails="goBookDetails" ></related-books> <t-tab-panel label="相关图书" icon="{{tabValue == 'related_books' ? linkClickIcon: linkIcon}}" value="related_books" style="{{tabPanelstyle}}"> <related-books relatedBookData="{{relatedBookData}}" relatedBookLoading="{{relatedBookLoading}}" noRelatedBookData="{{noRelatedBookData}}" bind:goBookDetails="goBookDetails"></related-books> </t-tab-panel> </t-tabs> </view> @@ -343,11 +146,7 @@ <movable-view class="movable-view" :x="{{x}}" :y="{{y}}" direction="all"> <view class="applyBox" bindtap="goApply"> <view class="box"> <t-image src="/static/images/home/yangshuForm1.png" mode="heightFix" class="img" /> <t-image src="/static/images/home/yangshuForm1.png" mode="heightFix" class="img" /> <view class="num" wx:if="{{num > 0}}">{{num}}</view> </view> </view> @@ -361,77 +160,34 @@ </view> </t-dialog> <!-- 我要建议弹窗 --> <suggest class="suggest-component" id="suggest-component" bookIcon="{{bookDetail.icon}}" bookName="{{bookDetail.name}}" ></suggest> <suggest class="suggest-component" id="suggest-component" bookIcon="{{bookDetail.icon}}" bookName="{{bookDetail.name}}"></suggest> <!-- 教学资源下载提示弹窗 --> <t-dialog class="teachDownloadDialog" visible="{{isShowTeachDownload}}" title="提示" content="请前往PC端下载" confirm-btn="{{ confirmBtn }}" bind:confirm="closeTeachDownload" /> <t-dialog class="teachDownloadDialog" visible="{{isShowTeachDownload}}" title="提示" content="请前往PC端下载" confirm-btn="{{ confirmBtn }}" bind:confirm="closeTeachDownload" /> <!-- 购买按钮 --> <view class="box-bottom"> <view class="bottom-btn" bind:tap="appplyElectronicBook"> <view> <t-image loading="" src="/static/images/bookService/detail/ebook.png" ></t-image> <t-image loading="" src="/static/images/bookService/detail/ebook.png"></t-image> </view> <view class="btn-text">电子样书申请</view> </view> <view class="bottom-btn" bind:tap="appplyPaperBook"> <view> <t-image src="/static/images/bookService/detail/paper-book.png" ></t-image> <t-image src="/static/images/bookService/detail/paper-book.png"></t-image> </view> <view class="btn-text">纸质样书申请</view> </view> <view class="{{!bookBuy ? 'bottom-btn tryRead' : 'bottom-btn try'}}" bind:tap="goRead" data-type="freeFile" wx:if="{{!bookBuy || applicationState == 'overdue'}}" > <view class="{{!bookBuy ? 'bottom-btn tryRead' : 'bottom-btn try'}}" bind:tap="goRead" data-type="freeFile" wx:if="{{!bookBuy || applicationState == 'overdue'}}"> <view> <t-image src="/static/images/bookService/detail/shidu.png"></t-image> </view> <view class="btn-text">试读</view> </view> <view class="shopCar shopCarColor" bind:tap="addBookShopcCar" wx:if="{{!bookBuy && bookDetail.price !== '0.00' && bookDetail.isSell == '1'}}" >加入购物车</view > <view class="buy buyColor" bind:tap="buyBtn" wx:if="{{!bookBuy && bookDetail.price !== '0.00' && bookDetail.isSell == '1'}}" >立即购买</view > <view class="buy receiveColor" bind:tap="buyBtn" wx:if="{{!bookBuy && bookDetail.price == '0.00' && bookDetail.isSell == '1'}}" >免费领取</view > <view class="buy read" bind:tap="goRead" data-type="file" wx:if="{{bookBuy || applicationState == 'Normal'}}" >立即查看</view > <view class="shopCar shopCarColor" bind:tap="addBookShopcCar" wx:if="{{!bookBuy && bookDetail.price !== '0.00' && bookDetail.isSell == '1'}}">加入购物车</view> <view class="buy buyColor" bind:tap="buyBtn" wx:if="{{!bookBuy && bookDetail.price !== '0.00' && bookDetail.isSell == '1'}}">立即购买</view> <view class="buy receiveColor" bind:tap="buyBtn" wx:if="{{!bookBuy && bookDetail.price == '0.00' && bookDetail.isSell == '1'}}">免费领取</view> <view class="buy read" bind:tap="goRead" data-type="file" wx:if="{{bookBuy || applicationState == 'Normal'}}">立即查看</view> </view> </view> <view wx:if="{{dialogBox}}"> @@ -441,19 +197,12 @@ <view class="row-info"> <view class="body"> <view class="dialog-title">文件上传</view> <view style="width: 100%; height: 2rpx; background-color: #f4f4f4" ></view> <view style="width: 100%; height: 2rpx; background-color: #f4f4f4"></view> <view class="from-item"> <view class="label"> <text class="icon">*</text>资源名称: </view> <view class="item-content"> <view class="inputBox1"> <t-input placeholder="输入资源名称" borderless value="{{resourceInfo.resourceName}}" bindchange="onNameInput" /> <t-input placeholder="输入资源名称" borderless value="{{resourceInfo.resourceName}}" bindchange="onNameInput" /> </view> </view> </view> @@ -463,25 +212,8 @@ <!-- <view class="inputBox1"> <t-input placeholder="输入资源类型" borderless value="{{resourceInfo.fileType}}" bindchange="onFileTypeInput" /> </view> --> <t-cell class="mb-16" title="" arrow hover note="{{resourceInfo.fileType}}" bind:click="onResourcePicker" /> <t-picker visible="{{resourceVisible}}" value="{{resourceValue}}" data-key="resource" title="选择资源类型" cancelBtn="取消" confirmBtn="确认" usingCustomNavbar bindchange="onPickerChange" bindcancel="onPickerCancel" > <t-cell class="mb-16" title="" arrow hover note="{{resourceInfo.fileType}}" bind:click="onResourcePicker" /> <t-picker visible="{{resourceVisible}}" value="{{resourceValue}}" data-key="resource" title="选择资源类型" cancelBtn="取消" confirmBtn="确认" usingCustomNavbar bindchange="onPickerChange" bindcancel="onPickerCancel"> <t-picker-item options="{{fileTypeList}}" /> </t-picker> </view> @@ -490,51 +222,24 @@ <view class="label">文件描述:</view> <view class="item-content"> <view class="inputBox1"> <t-textarea placeholder="请输入文件描述" value="{{resourceInfo.description}}" disableDefaultPadding="{{true}}" autosize="{{true}}" maxlength="300" indicator bind:change="textareaChange" /> <t-textarea placeholder="请输入文件描述" value="{{resourceInfo.description}}" disableDefaultPadding="{{true}}" autosize="{{true}}" maxlength="300" indicator bind:change="textareaChange" /> </view> </view> </view> <view class="from-item"> <view class="label"> <text class="icon">*</text>上传文件: </view> <view class="item-content"> <t-button size="small" class="right-btn" bind:tap="uploadPicture" wx:if="{{isShowUp}}" >点击上传</t-button > <view wx:if="{{!isShowUp && fileList.length > 0}}" class="fileList" > <t-button size="small" class="right-btn" bind:tap="uploadPicture" wx:if="{{isShowUp}}">点击上传</t-button> <view wx:if="{{!isShowUp && fileList.length > 0}}" class="fileList"> <text class="fileName">{{fileList[0].name}}</text> <image src="/static/images/bookService/detail/deleteHover.png" class="deleteBtn" data-md5="{{fileList[0].md5}}" bind:tap="handleRemove" /> <image src="/static/images/bookService/detail/deleteHover.png" class="deleteBtn" data-md5="{{fileList[0].md5}}" bind:tap="handleRemove" /> </view> </view> <view class="tip">注:文件大小不得超过50MB</view> </view> <view class="from-item"> <view class="protocolBox"> <t-checkbox label="同意" icon="rectangle" checked="{{resourceInfo.agree}}" bind:change="onChange" /> <t-checkbox label="同意" icon="rectangle" checked="{{resourceInfo.agree}}" bind:change="onChange" /> <text class="wait" bind:tap="getAgreement">《授权同意书》</text> </view> </view> @@ -549,25 +254,15 @@ </view> <view class="popupBox"> <t-popup visible="{{protocolShow}}" bind:visible-change="onVisibleChange" placement="center" > <t-popup visible="{{protocolShow}}" bind:visible-change="onVisibleChange" placement="center"> <view class="block"> <view class="protocol"> <rich-text space="emsp" nodes="{{protocolTxt}}" class="content" /> </view> <t-icon t-class="close-btn" name="close-circle" size="32" color="#fff" bind:tap="onCloseProtocol" /> <t-icon t-class="close-btn" name="close-circle" size="32" color="#fff" bind:tap="onCloseProtocol" /> </view> </t-popup> </view> <!-- <view class="loading" wx:if="{{pageLoading}}"> <t-loading loading="{{pageLoading}}" size="40"></t-loading> </view> --> </view> --> packageBookService/pages/bookServices/detail/index.wxss
@@ -105,8 +105,9 @@ } .li-title { width: 140rpx; font-size: 28rpx; display: inline; white-space: nowrap; font-size: 26rpx; } .li-content { packageBookService/pages/bookServices/examination/questionList/index.json
@@ -1,7 +1,6 @@ { "component": true, "usingComponents": { "t-swiper": "tdesign-miniprogram/swiper/swiper", "t-swiper-nav": "tdesign-miniprogram/swiper-nav/swiper-nav", "t-image": "tdesign-miniprogram/image/image", "t-input": "tdesign-miniprogram/input/input", packageBookService/pages/bookServices/examination/questionOptions/index.json
@@ -6,7 +6,6 @@ "t-button": "tdesign-miniprogram/button/button", "t-dialog": "tdesign-miniprogram/dialog/dialog", "t-popup": "tdesign-miniprogram/popup/popup", "t-slider": "tdesign-miniprogram/slider/slider", "t-radio": "tdesign-miniprogram/radio/radio", "t-radio-group": "tdesign-miniprogram/radio-group/radio-group" } packageBookService/pages/psychologyAnswer/psychologyAnswer.js
@@ -9,6 +9,7 @@ * 页面的初始数据 */ data: { isBuy: false, // 是否需要购买 questuionName: "", //试卷名称 dataList: "", barHeight: "", @@ -37,28 +38,72 @@ * 生命周期函数--监听页面加载 */ onLoad(options) { const questuionName = options.listName this.setData({ questuionName: questuionName }) const systInfo = wx.getSystemInfoSync(); const menu = wx.getMenuButtonBoundingClientRect(); // 胶囊信息 const navBarHeight = (menu.top - systInfo.statusBarHeight) * 2 + menu.height; // 导航栏高度 const token = wx.getStorageSync(app.config.tokenKey) if (!token) { loginInfo(app, (data) => { if (data) { this.init(); // 在此进行是否购买的查询 const questionId = options.listId; const bookId = options.bookId const bookName = options.bookName const formPath = options.formPath const query = { "cmsItemId": Number(questionId) }; app.MG.file.checkCmsItem(query) .then((res) => { const isBuys = res; this.setData({ isBuy: isBuys }); if (!isBuys) { wx.showModal({ icon: 'error', title: '温馨提示', content: '请购买题库,即将返回购买页', confirmText: '确定', showCancel: false, // 关闭取消按钮 success: function (res) { if (res.confirm) { wx.navigateTo({ url: '/packageBookService/pages/bookServices/detail/index?id=' + bookId + '&name=' + bookName + '&tabValue=' + formPath, }) } } }); return; // 直接返回,避免执行后续代码 } // 其他逻辑 const questuionName = options.listName; this.setData({ questionName: questuionName }); const systInfo = wx.getSystemInfoSync(); const menu = wx.getMenuButtonBoundingClientRect(); // 胶囊信息 const navBarHeight = (menu.top - systInfo.statusBarHeight) * 2 + menu.height; // 导航栏高度 const token = wx.getStorageSync(app.config.tokenKey); if (!token) { loginInfo(app, (data) => { if (data) { this.init(); } else { this.init(); } }); } else { this.init(); } }) } else { this.init() } .catch((err) => { console.error('检查题库失败:', err); wx.showToast({ icon: 'error', title: '加载失败,请重试' }); }); }, /** * 生命周期函数--监听页面初次渲染完成 */ packageBookService/pages/psychologyAnswer/questionList/index.json
@@ -1,7 +1,6 @@ { "component": true, "usingComponents": { "t-swiper": "tdesign-miniprogram/swiper/swiper", "t-swiper-nav": "tdesign-miniprogram/swiper-nav/swiper-nav", "t-image": "tdesign-miniprogram/image/image", "t-input": "tdesign-miniprogram/input/input", packageBookService/pages/psychologyAnswer/questionOptions/index.json
@@ -6,7 +6,6 @@ "t-button": "tdesign-miniprogram/button/button", "t-dialog": "tdesign-miniprogram/dialog/dialog", "t-popup": "tdesign-miniprogram/popup/popup", "t-slider": "tdesign-miniprogram/slider/slider", "t-radio": "tdesign-miniprogram/radio/radio", "t-radio-group": "tdesign-miniprogram/radio-group/radio-group" } packageDomain/pages/resourceDetails/document/index.js
@@ -58,6 +58,7 @@ selectTypeData: '', promptVisable: false, showMd5: '', source: "", confirmBtn: { content: '确定', variant: 'base', @@ -87,6 +88,7 @@ applyState: options.applyState, deadline: options.deadline, formPath: options.formPath, source: options.source, }) if (options.formPath == 'jsek_cloudLearning') { this.setData({ @@ -418,9 +420,20 @@ // icon: 'none', // title: '请先返回资源所在图书详情购买视频资源', // }) // wx.navigateTo({ // url: `/packageBookService/pages/bookServices/detail/index?id=${this.data.bookDetail.id}&name=${this.data.bookDetail.name}&tabValue=jsek_cloudLearning`, // }); wx.showModal({ title: '温馨提示', content: '请先返回资源所在图书详情购买视频资源', confirmText: '确定', showCancel: false, // 关闭取消按钮 success: (res) => { if (res.confirm) { wx.navigateTo({ url: `/packageBookService/pages/bookServices/detail/index?id=${this.data.bookDetail.id}&name=${this.data.bookDetail.name}&tabValue=jsek_cloudLearning`, }); } } }) } }) }, @@ -546,7 +559,6 @@ }) let worksheet = workbook.Sheets[workbook.SheetNames[0]] let innerHTML = XLSX.utils.sheet_to_json(worksheet) console.log(innerHTML) that.setData({ naturalResources: innerHTML }) packageDomain/pages/resourceDetails/myAudio/index.js
@@ -454,7 +454,6 @@ } titleName = datas.name; } this.setData({ threeLeveData: this.data.threeLeveData, selectedId: selectedId, @@ -466,13 +465,19 @@ }); this.pubulicPlayFun(); } else { wx.showToast({ icon: 'none', title: '请先返回资源所在图书详情购买视频资源', wx.showModal({ title: '温馨提示', content: '请先返回资源所在图书详情购买视频资源', confirmText: '确定', showCancel: false, // 关闭取消按钮 success: (res) => { if (res.confirm) { wx.navigateTo({ url: `/packageBookService/pages/bookServices/detail/index?id=${this.data.bookDetail.id}&name=${this.data.bookDetail.name}&tabValue=${this.data.formPath}`, }); } } }) wx.navigateTo({ url: `/packageBookService/pages/bookServices/detail/index?id=${this.data.bookDetail.id}&name=${this.data.bookDetail.name}&tabValue=${this.data.formPath}`, }); } }); }, packageDomain/pages/resourceDetails/myAudio/index.json
@@ -13,7 +13,6 @@ "t-textarea": "tdesign-miniprogram/textarea/textarea", "t-loading": "tdesign-miniprogram/loading/loading", "t-popup": "tdesign-miniprogram/popup/popup", "t-slider": "tdesign-miniprogram/slider/slider", "t-dropdown-menu": "tdesign-miniprogram/dropdown-menu/dropdown-menu", "t-dropdown-item": "tdesign-miniprogram/dropdown-item/dropdown-item", "t-empty": "tdesign-miniprogram/empty/empty", packageDomain/pages/resourceDetails/myVideo/index.js
@@ -228,6 +228,7 @@ }) } catch (error) {} if (this.data.learnClassData) { debugger this.getResourceDataList(this.data.learnClassData) } else { this.resourceDetailsData() @@ -458,12 +459,18 @@ } }); } else { wx.showToast({ icon: 'none', title: '请先返回资源所在图书详情购买视频资源', }) wx.navigateTo({ url: `/packageBookService/pages/bookServices/detail/index?id=${this.data.bookDetail.id}&name=${this.data.bookDetail.name}&tabValue=${this.data.formPath}`, wx.showModal({ title: '温馨提示', content: '请先返回资源所在图书详情购买视频资源', confirmText: '确定', showCancel: false, // 关闭取消按钮 success: function (res) { if (res.confirm) { wx.navigateTo({ url: `/packageBookService/pages/bookServices/detail/index?id=${this.data.bookDetail.id}&name=${this.data.bookDetail.name}&tabValue=${this.data.formPath}`, }); } } }); } this.setData({ packageDomain/pages/sampleBookList/applicationForm/index.json
@@ -4,7 +4,6 @@ "t-tabs": "tdesign-miniprogram/tabs/tabs", "t-tab-panel": "tdesign-miniprogram/tab-panel/tab-panel", "t-input": "tdesign-miniprogram/input/input", "t-cascader": "tdesign-miniprogram/cascader/cascader", "t-swipe-cell": "tdesign-miniprogram/swipe-cell/swipe-cell", "t-empty": "tdesign-miniprogram/empty/empty", "empty": "/components/empty/index" packageDomain/pages/teacherCertification/index.json
@@ -6,7 +6,6 @@ "t-picker-item": "tdesign-miniprogram/picker-item/picker-item", "t-input": "tdesign-miniprogram/input/input", "t-icon": "tdesign-miniprogram/icon/icon", "t-upload": "tdesign-miniprogram/upload/upload", "t-popup": "tdesign-miniprogram/popup/popup", "t-checkbox": "tdesign-miniprogram/checkbox/checkbox", "t-loading": "tdesign-miniprogram/loading/loading", packagePersonal/pages/aboutUs/index.json
@@ -1,6 +1,5 @@ { "usingComponents": { "t-swiper": "tdesign-miniprogram/swiper/swiper", "t-swiper-nav": "tdesign-miniprogram/swiper-nav/swiper-nav", "t-icon": "tdesign-miniprogram/icon/icon" } pages/home/digitalRead/index.js
@@ -22,11 +22,11 @@ } else if (options && options.productId) { this.setData({ src: 'https://jsek.bnuic.com/bookshelf/#/bookDetail?productId=' + options.productId options.productId + 'token=' + wx.getStorageSync('jsek-token') }) } else { this.setData({ src: 'https://jsek.bnuic.com/bookshelf/#/index' src: 'https://jsek.bnuic.com/bookshelf/#/index?token=' + wx.getStorageSync('jsek-token') }) } }, pages/home/home.json
@@ -7,7 +7,6 @@ "t-search": "tdesign-miniprogram/search/search", "t-loading": "tdesign-miniprogram/loading/loading", "t-pull-down-refresh": "tdesign-miniprogram/pull-down-refresh/pull-down-refresh", "t-swiper": "tdesign-miniprogram/swiper/swiper", "t-swiper-nav": "tdesign-miniprogram/swiper-nav/swiper-nav", "t-image": "tdesign-miniprogram/image/image", "t-icon": "tdesign-miniprogram/icon/icon", pages/home/home.wxml
@@ -1,66 +1,22 @@ <view class="container"> <t-pull-down-refresh value="{{baseRefresh.value}}" loadingTexts="{{['下拉刷新', '松手刷新', '正在刷新', '刷新完成']}}" bind:refresh="onPullDownRefresh" wx:if="{{!loading}}" bind:scroll="onScroll" > <view class="background {{ isWhite ? 'white':''}}" style="padding-top: {{barHeight}}px" > <t-pull-down-refresh value="{{baseRefresh.value}}" loadingTexts="{{['下拉刷新', '松手刷新', '正在刷新', '刷新完成']}}" bind:refresh="onPullDownRefresh" wx:if="{{!loading}}" bind:scroll="onScroll"> <view class="background {{ isWhite ? 'white':''}}" style="padding-top: {{barHeight}}px"> <text class="text">京师智教</text> </view> <view class="home-page-header"> <view class="bg"> <image src="https://jsek.bnuic.com/home/image/home-bg.png" mode="heightFix" class="image" /> <image src="https://jsek.bnuic.com/home/image/home-bg.png" mode="heightFix" class="image" /> </view> <view class="search"> <image class="icon" src="/static/images/home/nav_icon_scan.png" bindtap="onIconScanTap" /> <t-search t-class-input="t-search__input" t-class-input-container="t-search__input-container" placeholder="请输入关键词/书名/ISBN/作者/项目负责人" leftIcon="" bind:submit="onRetrievalPage" model:value="{{searchVal}}" > <t-icon slot="left-icon" prefix="wr" name="search" size="40rpx" color="#bbb" bind:tap="onRetrievalPage" /> <image class="icon" src="/static/images/home/nav_icon_scan.png" bindtap="onIconScanTap" /> <t-search t-class-input="t-search__input" t-class-input-container="t-search__input-container" placeholder="请输入关键词/书名/ISBN/作者/项目负责人" leftIcon="" bind:submit="onRetrievalPage" model:value="{{searchVal}}"> <t-icon slot="left-icon" prefix="wr" name="search" size="40rpx" color="#bbb" bind:tap="onRetrievalPage" /> </t-search> </view> <view class="swiper-wrap"> <!-- <t-swiper wx:if="{{bannerList.length > 0}}" list="{{bannerList}}" autoplay="{{autoplay}}" duration="{{duration}}" interval="{{interval}}" navigation="{{ { type: 'dots' } }}" height="380rpx" bind:click="navToActivityDetail" /> --> <swiper interval="5000" indicator-dots="true" autoplay="true" circular="true" class="swiper" > <swiper-item wx:for="{{bannerList}}" wx:for-index="index" wx:key="index" data-info="{{item}}" bindtap="navToActivityDetail" class="swiper-item" > <swiper interval="5000" indicator-dots="true" autoplay="true" circular="true" class="swiper"> <swiper-item wx:for="{{bannerList}}" wx:for-index="index" wx:key="index" data-info="{{item}}" bindtap="navToActivityDetail" class="swiper-item"> <view class="swiperItem"> <image src="{{item.value}}" mode="widthFix" class="img" /> </view> @@ -69,81 +25,37 @@ </view> </view> <view class="home-page-menu"> <t-grid class="t-grid-block" theme="card" border="{{border}}" column="{{5}}" > <t-grid-item wx:for="{{tabList}}" wx:for-index="index" wx:key="index" text="{{item.text}}" image="{{item.icon}}" data-info="{{item}}" bindtap="toPages" /> <t-grid class="t-grid-block" theme="card" border="{{border}}" column="{{5}}"> <t-grid-item wx:for="{{tabList}}" wx:for-index="index" wx:key="index" text="{{item.text}}" image="{{item.icon}}" data-info="{{item}}" bindtap="toPages" /> </t-grid> </view> <view class="home-page-container"> <view class="home-page-list"> <view class="tabCardPublic iconOne"> <view class="icon"> <image src="/static/images/home/zhuantitaolun2.png" mode="aspectFit" class="iconImage" /> <image src="/static/images/home/zhuantitaolun2.png" mode="aspectFit" class="iconImage" /> </view> <view data-info="{{'zhuantitaolun'}}" bindtap="onMoreGuide" class="flex" style="align-items: center" > <view data-info="{{'zhuantitaolun'}}" bindtap="onMoreGuide" class="flex" style="align-items: center"> <text class="more">更多</text> <t-icon name="chevron-right" size="32rpx" color="#ff6d00" /> </view> </view> <view class="listBox"> <view wx:if="{{specialSubjectList.length > 0}}"> <view wx:for="{{specialSubjectList}}" wx:for-item="item" wx:for-index="index" wx:key="index" class="listItemBox" > <view class="listItem" bindtap="goSubjectDetail" data-book="{{item}}" > <view class="listBox" wx:if="{{specialSubjectList.length > 0}}"> <view wx:for="{{specialSubjectList}}" wx:for-item="item" wx:for-index="index" wx:key="index" class="listItemBox"> <view class="listItem" bindtap="goSubjectDetail" data-book="{{item}}"> <view class="specialSubject-img"> <image src="{{item.icon}}" mode="aspectFill" class="img" /> </view> <view class="body-info"> <view class="name">{{item.name}}</view> <view class="time" wx:if="{{item.liveTime}}" >直播时间:{{item.liveTime}}</view > <view class="time" wx:if="{{item.startTime}}" >开播时间:{{ item.startTime }}</view > <view class="time" wx:if="{{!item.liveTime && !item.startTime}}" >开播时间:<text class="grey">待定</text></view > <view class="time" wx:if="{{item.liveTime}}">直播时间:{{item.liveTime}}</view> <view class="time" wx:if="{{item.startTime}}">开播时间:{{ item.startTime }}</view> <view class="time" wx:if="{{!item.liveTime && !item.startTime}}">开播时间:<text class="grey">待定</text></view> <view class="flex jc-sb"> <text class="author" >{{item.lecturer}} {{item.position}}</text > <text class="author">{{item.lecturer}} {{item.position}}</text> <text class="price" wx:if="{{item.price == 0}}">免费</text> <text class="price" wx:if="{{item.price !== 0}}" >¥{{item.price}}</text > <text class="price" wx:if="{{item.price !== 0}}">¥{{item.price}}</text> </view> </view> </view> @@ -155,11 +67,7 @@ </view> <view class="tabCardPublic iconTwo"> <view class="icon"> <image src="/static/images/home/tushufuwu2.png" mode="aspectFit" class="iconImage" /> <image src="/static/images/home/tushufuwu2.png" mode="aspectFit" class="iconImage" /> </view> <view data-info="{{'tushufuwu'}}" bindtap="onMoreGuide" class="flex"> <text class="more">更多</text> @@ -167,39 +75,16 @@ </view> </view> <view class="home-page-tabs"> <t-tabs t-class="t-tabs" split="{{false}}" position="{{'home'}}" defaultValue="{{activeItem1}}" bind:change="tabBookClick" > <t-tab-panel wx:for="{{bookTypeList}}" wx:for-index="index" wx:key="index" label="{{item.name}}" value="{{index}}" /> <t-tabs t-class="t-tabs" split="{{false}}" position="{{'home'}}" defaultValue="{{activeItem1}}" bind:change="tabBookClick"> <t-tab-panel wx:for="{{bookTypeList}}" wx:for-index="index" wx:key="index" label="{{item.name}}" value="{{index}}" /> </t-tabs> </view> <view class="listBox2"> <view wx:if="{{booksList.length > 0}}" class="flex"> <view wx:for="{{booksList}}" wx:for-item="item" wx:for-index="index" wx:key="index" class="booksListItemBox" > <view wx:for="{{booksList}}" wx:for-item="item" wx:for-index="index" wx:key="index" class="booksListItemBox"> <view class="listItem" bind:tap="goDetail" data-book="{{item}}"> <view class="specialSubject-img"> <image src="{{item.icon ? item.icon : '/static/images/default-book-img.png'}}" mode="aspectFit" class="img" aria-label="{{item.name}}" /> <image src="{{item.icon ? item.icon : '/static/images/default-book-img.png'}}" mode="aspectFit" class="img" aria-label="{{item.name}}" /> </view> <view class="body-info"> <view class="name">{{item.name}}</view> @@ -215,78 +100,35 @@ </view> <view class="tabCardPublic iconTwo"> <view class="icon"> <image src="/static/images/home/jingxuankecheng2.png" mode="aspectFit" class="iconImage" /> <image src="/static/images/home/jingxuankecheng2.png" mode="aspectFit" class="iconImage" /> </view> <view data-info="{{'jingxuankecheng'}}" bindtap="onMoreGuide" class="flex" > <view data-info="{{'jingxuankecheng'}}" bindtap="onMoreGuide" class="flex"> <text class="more">更多</text> <t-icon name="chevron-right" size="32rpx" color="#ff6d00" /> </view> </view> <view class="home-page-tabs"> <t-tabs t-class="t-tabs" split="{{false}}" defaultValue="{{activeItem}}" bind:change="tabChangeHandle" > <t-tab-panel wx:for="{{courseTypeList}}" wx:for-index="index" wx:key="index" label="{{item.name}}" value="{{index}}" /> <t-tabs t-class="t-tabs" split="{{false}}" defaultValue="{{activeItem}}" bind:change="tabChangeHandle"> <t-tab-panel wx:for="{{courseTypeList}}" wx:for-index="index" wx:key="index" label="{{item.name}}" value="{{index}}" /> </t-tabs> </view> <view class="listBox1"> <view wx:if="{{courseList.length>0}}"> <view wx:for="{{courseList}}" wx:for-item="item" wx:for-index="index" wx:key="index" class="listItemBox" > <view wx:for="{{courseList}}" wx:for-item="item" wx:for-index="index" wx:key="index" class="listItemBox"> <view class="listItem flex"> <view class="specialSubject-img" data-book="{{item}}" bindtap="goCourseDetail" > <view class="specialSubject-img" data-book="{{item}}" bindtap="goCourseDetail"> <image src="{{item.icon}}" mode="aspectFit" class="img" /> </view> <view class="body-info"> <view class="name" data-book="{{item}}" bindtap="goCourseDetail" >{{item.name}}</view > <view class="name" data-book="{{item}}" bindtap="goCourseDetail">{{item.name}}</view> <view class="flex jc-sb"> <text class="author">{{item.courseLeader}}</text> <text class="classHours">{{item.classHours}}课时</text> </view> <view class="priceBox flex jc-sb"> <text class="price" wx:if="{{item.price == 0}}">免费</text> <text class="price" wx:if="{{item.price !== 0}}" >¥{{item.price}}</text > <image wx:if="{{item.price}}" src="/static/images/home/home-cart.png" mode="aspectFit" class="addCartImg" bind:tap="addCart" data-info="{{item}}" /> <text class="price" wx:if="{{item.price !== 0}}">¥{{item.price}}</text> <image wx:if="{{item.price}}" src="/static/images/home/home-cart.png" mode="aspectFit" class="addCartImg" bind:tap="addCart" data-info="{{item}}" /> </view> </view> </view> @@ -300,11 +142,7 @@ <view class="tabCardPublic iconTwo"> <view class="icon"> <image src="/static/images/home/shuziyuedu2.png" mode="aspectFit" class="iconImage" /> <image src="/static/images/home/shuziyuedu2.png" mode="aspectFit" class="iconImage" /> </view> <view data-info="{{'shuziyuedu'}}" bindtap="onMoreGuide" class="flex"> <text class="more">更多</text> @@ -312,18 +150,8 @@ </view> </view> <view class="listBox2 flex"> <view wx:for="{{readBookList}}" wx:for-item="item" wx:for-index="index" wx:key="index" class="booksListItemBox" > <view class="listItem" bind:tap="goReadBookDetail" data-book="{{item}}" > <view wx:for="{{readBookList}}" wx:for-item="item" wx:for-index="index" wx:key="index" class="booksListItemBox"> <view class="listItem" bind:tap="goReadBookDetail" data-book="{{item}}"> <view class="specialSubject-img"> <image src="{{item.icon}}" mode="aspectFit" class="img" /> </view> @@ -336,64 +164,28 @@ </view> <view class="tabCardPublic iconTwo"> <view class="icon"> <image src="/static/images/home/shuzijiaocai2.png" mode="aspectFit" class="iconImage" /> <image src="/static/images/home/shuzijiaocai2.png" mode="aspectFit" class="iconImage" /> </view> <view data-info="{{'shuzijiaocai'}}" bindtap="onMoreGuide" class="flex" > <view data-info="{{'shuzijiaocai'}}" bindtap="onMoreGuide" class="flex"> <text class="more">更多</text> <t-icon name="chevron-right" size="32rpx" color="#ff6d00" /> </view> </view> <view class="listBox3"> <view wx:if="{{textbookList.length > 0}}"> <view wx:for="{{textbookList}}" wx:for-item="item" wx:for-index="index" wx:key="index" class="textbooksItemBox" > <view wx:for="{{textbookList}}" wx:for-item="item" wx:for-index="index" wx:key="index" class="textbooksItemBox"> <view class="listItem flex"> <view class="specialSubject-img" bind:tap="goTextBookDetail" data-book="{{item}}" > <view class="specialSubject-img" bind:tap="goTextBookDetail" data-book="{{item}}"> <image src="{{item.icon}}" mode="aspectFit" class="img" /> </view> <view class="body-info"> <view class="name" bind:tap="goTextBookDetail" data-book="{{item}}" >{{item.name}}</view > <view class="introduction" bind:tap="goTextBookDetail" data-book="{{item}}" >{{item.description}}</view > <view class="name" bind:tap="goTextBookDetail" data-book="{{item}}">{{item.name}}</view> <view class="introduction" bind:tap="goTextBookDetail" data-book="{{item}}">{{item.description}}</view> <view class="author">{{item.author}}</view> <view class="priceBox flex jc-sb"> <text class="price" wx:if="{{item.price == 0}}">免费</text> <text class="price" wx:if="{{item.price !== 0}}" >¥{{item.price}}</text > <image src="/static/images/home/home-cart.png" mode="aspectFit" class="addCartImg" bind:tap="addCart" data-info="{{item}}" /> <text class="price" wx:if="{{item.price !== 0}}">¥{{item.price}}</text> <image src="/static/images/home/home-cart.png" mode="aspectFit" class="addCartImg" bind:tap="addCart" data-info="{{item}}" /> </view> </view> </view> @@ -406,37 +198,17 @@ </view> <view class="tabCardPublic"> <view class="icon"> <image src="/static/images/home/paihangbang2.png" mode="" class="iconImage" /> <image src="/static/images/home/paihangbang2.png" mode="" class="iconImage" /> </view> </view> <view class="rankingList"> <scroll-view class="srcolbox" scroll-x scroll-with-animation="true"> <view class="booksListBox"> <view wx:for="{{rankingList}}" wx:for-item="item" wx:for-index="index" wx:key="index" class="booksListItemBox" > <view wx:for="{{rankingList}}" wx:for-item="item" wx:for-index="index" wx:key="index" class="booksListItemBox"> <view class="listItem" bind:tap="goDetail" data-book="{{item}}"> <view class="specialSubject-img"> <image src="{{item.icon}}" mode="aspectFit" class="img" wx:if="{{item.icon}}" /> <image src="/static/images/default-book-img.png" mode="aspectFit" class="img" wx:else /> <image src="{{item.icon}}" mode="aspectFit" class="img" wx:if="{{item.icon}}" /> <image src="/static/images/default-book-img.png" mode="aspectFit" class="img" wx:else /> </view> <view class="body-info"> <view class="name">{{item.name}}</view> @@ -480,4 +252,4 @@ </t-popup> --> </view> <import src="home.skeleton.wxml" /> <template is="skeleton" wx:if="{{loading}}" /> <template is="skeleton" wx:if="{{loading}}" /> pages/home/home.wxss
@@ -121,10 +121,9 @@ width: 60rpx !important; height: 56rpx !important; position: relative; } .t-grid-item__image:not(:empty).t-grid-item__image--small .t-image { .t-grid-item__image:not(:empty).t-grid-item__image--small .t-image .t-image__img { width: auto !important; height: auto !important; max-width: 100% !important; pages/scanResult/index.js
@@ -237,17 +237,30 @@ }, }) .then(res => { res.datas.map(item => { item.name = item.name + '-' + this.data.goodsData.saleMethodList[0].name item.price ? item.price = (item.price).toFixed(2) : ""; item.oldPrice ? item.oldPrice = (item.oldPrice).toFixed(2) : ""; item.icon ? item.icon = item.icon : item.icon = "/static/images/default-book-img.png", item.itemType = this.data.goodsData.saleMethodList[0].type == 'createProductFolderSaleMethod' ? '目录' : this.data.goodsData.saleMethodList[0].type == 'createProductItemSaleMethod' ? '资源' : '电子书' }) console.log(1, res.datas[0]); that.setData({ productInfo: res.datas }) if (res.datas?.length > 0) { const list = [] this.data.goodsData.saleMethodList?.forEach(citem => { const obj = { name: res.datas[0].name + '-' + citem.name, icon: res.datas[0].icon ? res.datas[0].icon : "/static/images/default-book-img.png", itemType: citem.type == 'createProductFolderSaleMethod' ? '目录' : citem.type == 'createProductItemSaleMethod' ? '资源' : '电子书', price: res.datas[0].price ? (res.datas[0].price.price).toFixed(2) : "", oldPrice: res.datas[0].oldPrice ? (res.datas[0].oldPrice).toFixed(2) : '' } list.push(obj) }) // res.datas.map(item => { // item.name = item.name + '-' + this.data.goodsData.saleMethodList.map(item => item.name) // item.price ? item.price = (item.price).toFixed(2) : ""; // item.oldPrice ? item.oldPrice = (item.oldPrice).toFixed(2) : ""; // item.icon ? item.icon = item.icon : item.icon = "/static/images/default-book-img.png", // item.itemType = this.data.goodsData.saleMethodList[0].type == 'createProductFolderSaleMethod' ? '目录' : this.data.goodsData.saleMethodList[0].type == 'createProductItemSaleMethod' ? '资源' : '电子书' // }) // debugger that.setData({ productInfo: list }) } }); }, project.config.json
@@ -136,6 +136,6 @@ "include": [] }, "appid": "wx7f362fe7cb6e0d1f", "libVersion": "3.6.3", "libVersion": "3.8.8", "projectname": "jsek-applet" }