packageBookService/pages/bookServices/detail/components/brief/index.wxml
@@ -4,11 +4,11 @@ <view> <image src="/static/images/bookService/detail/label.png" /> </view> <view class="title-name">基本信息</view> <view class="title-name">内容简介</view> </view> <rich-text nodes="{{content}}" style="{{richStyle}}"></rich-text> <rich-text nodes="{{content}}" style="{{richStyle}}"></rich-text> </view> <view class="basic" wx:if="{{content}}"> <view class="basic" wx:if="{{catalogue}}"> <view class="basic-title"> <view> <image src="/static/images/bookService/detail/label.png" /> @@ -26,4 +26,4 @@ </view> </view> <rich-text nodes="{{authorIntroduction}}" style="{{richStyle}}" /> </view> </view> packageBookService/pages/bookServices/detail/components/learnResource/learnResource.wxml
@@ -1,21 +1,44 @@ <!--pages/bookServices/detail/components/learnResource/learnResource.wxml--> <view class="learnResource" theme="primary" style="justify-content: {{!isshowDrawBtn ? 'flex-end' : ''}};"> <t-button wx:if="{{isshowDrawBtn}}" loading="{{receive}}" class="btn" theme="primary" style="height: 72rpx; font-size: 28rpx" t-class="external-class" bind:tap="getFreeResource"> <view class="learnResource" theme="primary" style="justify-content: {{!isshowDrawBtn ? 'flex-end' : ''}};" > <t-button wx:if="{{isshowDrawBtn}}" loading="{{receive}}" class="btn" theme="primary" style="height: 72rpx; font-size: 28rpx" t-class="external-class" bind:tap="getFreeResource" > <view slot="content" class="btn-content"> <image src=" /static/images/bookService/detail/yijianlingqu.png" /> <text>领取查看</text> </view> </t-button> <t-button loading="{{buy}}" class="btn" theme="primary" bind:tap="goBuyResource" style="height: 72rpx; font-size: 28rpx;margin: {{!isshowDrawBtn ? '0 20rpx' : ''}}"> <t-button loading="{{buy}}" class="btn" theme="primary" bind:tap="goBuyResource" style="height: 72rpx; font-size: 28rpx;margin: {{!isshowDrawBtn ? '0 20rpx' : ''}}" > <view slot="content" class="btn-content"> <image src="/static/images/bookService/detail/yijiangoumai.png" /> <text>资源购买</text> </view> </t-button> <t-button class="btn" theme="primary" style="height: 72rpx; font-size: 28rpx;margin:0 20rpx" bind:tap="goLearnTask"> <t-button class="btn" theme="primary" style="height: 72rpx; font-size: 28rpx; margin: 0 20rpx" bind:tap="goLearnTask" > <view slot="content" class="btn-content"> <image src="/static/images/bookService/detail/renwudan/icon.png" /> <text>学习任务单</text> </view> </t-button> </view> </view> packageBookService/pages/bookServices/detail/components/teachResource/index.wxml
@@ -1,35 +1,74 @@ <view class="teach-btn"> <t-button theme="primary" style="width: 120px; height: 36px" class="btn-upload" bind:tap="uploadBtn"> <t-image src="/static/images/bookService/detail/upload.png" style="margin-top: 20rpx"></t-image> <text>上传资源</text> <t-button theme="primary" style="width: 120px; height: 36px" class="btn" bind:tap="uploadBtn" > <view slot="content" class="btn-content"> <t-image src="/static/images/bookService/detail/upload.png"></t-image> <text>上传资源</text> </view> </t-button> <!-- <t-button theme="primary" style="width: 120px; height: 36px"> <t-image src="/static/images/bookService/detail/download.png"></t-image> 批量下载 </t-button> --> </view> <view class="applyResult {{applyState == 'none' ? 'applyNone' : applyState == 'Normal' ? 'applyPass' : applyState == 'WaitAudit' ? 'applying' :applyState == 'Reject' ? 'applyReject' :'' }}"> <view wx:if="{{applyState == 'WaitAudit'}}">资源下载申请正在审核中,请耐心等待!</view> <view class="applyResult {{applyState == 'none' ? 'applyNone' : applyState == 'Normal' ? 'applyPass' : applyState == 'WaitAudit' ? 'applying' :applyState == 'Reject' ? 'applyReject' :'' }}" > <view wx:if="{{applyState == 'WaitAudit'}}" >资源下载申请正在审核中,请耐心等待!</view > <view wx:if="{{applyState == 'Normal'}}"> <view> 资源下载申请已通过<text wx:if="{{deadline}}">,有效日期截至:{{ deadline }}</text></view> 资源下载申请已通过<text wx:if="{{deadline}}" >,有效日期截至:{{ deadline }}</text ></view > <view style="display: flex; align-items: center; margin-top: 10rpx"> <text>下载资源请到PC端京师智教</text> <text bind:tap="copy" class="copy-text">复制</text> <text>下载资源请到PC端京师智教</text> <text bind:tap="copy" class="copy-text">复制</text> </view> </view> <view wx:if="{{applyState == 'Reject'}}">资源下载需要申请,请先申请并等待审核通过后方可下载</view> <view wx:if="{{applyState == 'Reject'}}" >资源下载需要申请,请先申请并等待审核通过后方可下载</view > <view wx:if="{{applyState == 'none'}}"> 资源下载需要申请,请先申请并等待审核通过后方可下载 </view> <view class="btn-box"> <t-button wx:if="{{applyState == 'Reject'}}" bind:tap="checkCause" style="height: 50rpx" class="rejectBtn" bind:tap="showDialog">查看原因</t-button> <t-button wx:if="{{applyState == 'none' || applyState == 'Reject'}}" theme="primary" bind:tap="applyResource" class="applyBtn" style="height: 50rpx">申请</t-button> <t-button wx:if="{{applyState == 'Reject'}}" bind:tap="checkCause" style="height: 50rpx" class="rejectBtn" bind:tap="showDialog" >查看原因</t-button > <t-button wx:if="{{applyState == 'none' || applyState == 'Reject'}}" theme="primary" bind:tap="applyResource" class="applyBtn" style="height: 50rpx" >申请</t-button > </view> </view> <!-- 未通过原因 --> <t-dialog visible="{{showRejectDialog}}" title="提示" confirm-btn="{{ confirmBtn }}" bind:confirm="closeDialog" class="notPassed"> <t-dialog visible="{{showRejectDialog}}" title="提示" confirm-btn="{{ confirmBtn }}" bind:confirm="closeDialog" class="notPassed" > <view slot="content"> <text class="cause-title">资源下载申请未通过,解决问题后可点击“申请”按钮重新提交申请</text> <text class="cause-title" >资源下载申请未通过,解决问题后可点击“申请”按钮重新提交申请</text > <view class="cause-content">原因:{{ rejectCause || '-'}}</view> </view> </t-dialog> </t-dialog> packageBookService/pages/bookServices/detail/components/teachResource/index.wxss
@@ -4,23 +4,7 @@ align-items: center; padding: 0 40rpx; height: 134rpx; --td-button-primary-bg-color: #fff; --td-button-primary-border-color: #FF6C00; --td-button-primary-color: #ff6c00; --td-button-primary-active-bg-color: #fff0e6; --td-button-primary-active-border-color: #ff6c00; } .btn-content { display: flex; align-items: center; } .teach-btn image { width: 32rpx; height: 32rpx; margin-right: 6rpx; margin-top: 20rpx; } .copy-text { @@ -100,4 +84,32 @@ --td-button-primary-border-color: #ff6c00; --td-button-primary-active-bg-color: #ff984d; --td-button-primary-active-border-color: #ff984d; } .btn { width: 220rpx; font-size: 28rpx; --td-button-primary-bg-color: #fff; --td-button-primary-border-color: #FF6C00; --td-button-primary-color: #ff6c00; --td-button-primary-active-bg-color: #fff0e6; --td-button-primary-active-border-color: #ff6c00; padding: 0; display: flex; align-items: center; } .btn-content { display: flex; align-items: center; } .btn image { margin-right: 4rpx; width: 28rpx; height: 32rpx; } .btn text { font-size: 28rpx; } packageBookService/pages/bookServices/detail/components/tree/index.js
@@ -146,7 +146,18 @@ wx.getStorageSync("teachResourcesPath"); const parentName = parent ? parent.name : "教学资源"; let url; if (item.selectType == 'zip') { if (item.selectType == "webpage") { // 网页类型跳转到网址复制页,因为url传参不能传 带参数的网络地址,所以此处要把网络地址里的传参摘出来,放到url里 let urlData = '' const flags = item.jsek_link.indexOf("?") if (flags > -1) { urlData = item.jsek_link.slice(flags + 1, item.jsek_link.length) } url = '/packageBookService/pages/bookServices/linkPage/index' return wx.navigateTo({ url: urlData ? url + `?path=${item.jsek_link.slice(0,flags)}` + '&' + urlData : url + `?path=${item.jsek_link}` }) } else if (item.selectType == 'zip') { if (this.properties.applyState == 'Normal') { return wx.showToast({ icon: 'error', @@ -263,11 +274,11 @@ // }, // }); // } if (item.selectType == "webpage") { this.setData({ webpageSrc: item.jsek_link, }); } // if (item.selectType == "webpage") { // this.setData({ // webpageSrc: item.jsek_link, // }); // } } }, packageBookService/pages/bookServices/detail/index.wxml
@@ -4,7 +4,12 @@ <!-- 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}}"> <!-- <view style="width: 100%; height: {{barHeight}}px; "></view> @@ -23,25 +28,45 @@ </view> --> <t-toast id="t-toast" /> <movable-area class="movable-area"> <scroll-view scroll-y="{{true}}" class="book" bindscrolltolower="onReachBottom"> <scroll-view scroll-y="{{true}}" class="book" bindscrolltolower="onReachBottom" > <!-- 图书详情 --> <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> @@ -66,12 +91,19 @@ <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> <!-- 销售信息 --> @@ -80,12 +112,19 @@ <!-- 电子书售价 --> <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> @@ -93,27 +132,72 @@ <!-- 纸质书售价 --> <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> @@ -125,10 +209,38 @@ style="{{tabPanelstyle}}" > </t-tab-panel> --> <t-tab-panel label="教学资源" icon="{{tabValue == 'jsek_teachingResources' ? teachResourcesClickIcon : teachResourcesIcon}}" value="jsek_teachingResources" class="{{loading ? 'loading': ''}}"> <view wx:if="{{!loading && teach.length && !noResources && applyState}}"> <teach-resource applyState="{{applyState}}" rejectCause="{{rejectCause}}" deadline="{{deadline}}" bind:applyResource="applyResource" 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}}" wx:if="{{teach.length}}" isShoppingCart="isShoppingCart" bind:updateCloudLearning="updateCloudLearning"></tree> <t-tab-panel label="教学资源" icon="{{tabValue == 'jsek_teachingResources' ? teachResourcesClickIcon : teachResourcesIcon}}" value="jsek_teachingResources" class="{{loading ? 'loading': ''}}" > <view wx:if="{{!loading && teach.length && !noResources && applyState}}" > <teach-resource applyState="{{applyState}}" rejectCause="{{rejectCause}}" deadline="{{deadline}}" bind:applyResource="applyResource" 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}}" wx:if="{{teach.length}}" isShoppingCart="isShoppingCart" bind:updateCloudLearning="updateCloudLearning" ></tree> </view> <!-- <t-loading theme="circular" @@ -137,34 +249,93 @@ loading="{{loading }}" /> --> <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"> <!-- <t-empty icon="folder-open" description="暂无数据" /> --> <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}}"></learn-resource> <learn-resource bind:getFreeResource="getFreeResource" bind:allAddShoppiingCar="allAddShoppiingCar" id="learn-resource" buyResourceData="{{buyResourceData}}" bookId="{{bookDetail.id}}" isshowDrawBtn="{{isshowDrawBtn}}" successOrderNumber="{{successOrderNumber}}" isGoBuyResource="{{isGoBuyResource}}" ></learn-resource> <tree id="tree" openIds="{{openLearnids}}" bookInfo="{{bookDetail}}" tab="{{tabValue}}" treeList="{{learn}}" buyIds="{{buyIdList}}" openLearnids="{{openLearnids}}" bind:updateShoppingCartHidden="updateShoppingCartHidden" bind:updateCloudLearning="updateCloudLearning"></tree> <tree id="tree" openIds="{{openLearnids}}" bookInfo="{{bookDetail}}" tab="{{tabValue}}" treeList="{{learn}}" buyIds="{{buyIdList}}" openLearnids="{{openLearnids}}" bind:updateShoppingCartHidden="updateShoppingCartHidden" bind:updateCloudLearning="updateCloudLearning" ></tree> </view> <view wx:if="{{noResources && !loading}}" class="noData"> <!-- <t-empty icon="folder-open" description="暂无数据" /> --> <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}}" bookInfo="{{bookDetail}}" openIds="{{openLearnids}}" mockData="{{mockData}}" tab="{{tabValue}}" storeInfo="{{options.storeInfo}}" jslx="{{jslx}}" bind:buyMock="buyMock"></test-resource> <test-resource id="test-resource" list="{{test}}" bookInfo="{{bookDetail}}" openIds="{{openLearnids}}" mockData="{{mockData}}" tab="{{tabValue}}" storeInfo="{{options.storeInfo}}" jslx="{{jslx}}" bind:buyMock="buyMock" ></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> @@ -172,41 +343,86 @@ <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> </movable-view> </movable-area> <!-- 我要建议弹窗 --> <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 && bookDetail.isSell ? 'bottom-btn tryRead' : 'bottom-btn try'}}" bind:tap="goRead" wx:if="{{!bookBuy || applicationState == 'overdue'}}"> <view class="{{!bookBuy && bookDetail.isSell ? 'bottom-btn tryRead' : 'bottom-btn try'}}" bind:tap="goRead" 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" 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" wx:if="{{bookBuy || applicationState == 'Normal'}}" >立即查看</view > </view> </view> <view wx:if="{{dialogBox}}"> @@ -216,24 +432,32 @@ <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="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> <view class="from-item"> <view class="label"> <text class="icon">*</text>资源类型: </view> <view class="label"> <text class="icon">*</text>资源类型: </view> <view class="item-content"> <view class="inputBox1"> <t-input placeholder="输入资源类型" borderless value="{{resourceInfo.fileType}}" bindchange="onFileTypeInput" /> <t-input placeholder="输入资源类型" borderless value="{{resourceInfo.fileType}}" bindchange="onFileTypeInput" /> </view> </view> </view> @@ -241,26 +465,51 @@ <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="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>{{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> @@ -274,15 +523,25 @@ </view> </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/examination/examination.js
@@ -85,7 +85,9 @@ mockid: options.mockid, }); } const token = wx.getStorageSync(app.config.tokenKey) if (!token) { loginInfo(app, (data) => { if (data) { @@ -94,6 +96,8 @@ this.init(); } }) } else { this.init() } }, packageBookService/pages/bookServices/examination/questionList/index.js
@@ -36,8 +36,11 @@ }, observers: {}, detached() { innerAudioContext.stop(); innerAudioContext.destroy(); if (innerAudioContext) { innerAudioContext.stop(); innerAudioContext.destroy(); } }, /** * 组件的初始数据 packageBookService/pages/bookServices/examination/questionOptions/index.wxss
@@ -113,9 +113,12 @@ margin-left: 10rpx; } .card-box { margin-bottom: 50rpx; } .card-box:last-child { margin-bottom: 200rpx; margin-bottom: 100rpx; } .question-list { @@ -128,7 +131,7 @@ display: flex; justify-content: center; align-items: center; margin: 38rpx 20rpx 0 0; margin: 20rpx 20rpx 0 0; width: 120rpx; height: 62rpx; font-size: 34rpx; packageBookService/pages/bookServices/linkPage/index.js
@@ -12,9 +12,21 @@ * 生命周期函数--监听页面加载 */ onLoad(options) { this.setData({ path: options.path }) const flags = Object.keys(options).length if (flags == 1) { this.setData({ path: options.path }) } else { let path = options.path + '?' for (let key in options) { if (key != 'path') path = path + key + '=' + options[key] + '&' } this.setData({ path }) } }, /** packageBookService/pages/bookServices/list/index.wxml
@@ -3,24 +3,78 @@ <import src="index.skeleton.wxml" /> <template is="skeleton" wx:if="{{loading}}" /> <page-meta page-style="{{showDropdown ? 'overflow: hidden;' : ''}}" wx:if="{{!loading}}"> <page-meta page-style="{{showDropdown ? 'overflow: hidden;' : ''}}" wx:if="{{!loading}}" > <view style="width: 100%; height: {{barHeight}}px;"></view> <view class="nacigationBar" style="width: 72%; height: {{navBarHeight}}px;"> <view> <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" /> <view class="back-icon"> <!-- <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" /> --> <image src="/static/images/digitalTextbooks/chevron-left.png" bind:tap="goBack" mode="aspectFit" /> </view> <t-search model:value="{{searchValue}}" shape="round" placeholder="请输入关键词/书名/ISBN/作者/项目负责人" class="navBar-search" style="width: 464rpx" bind:submit="searchBook" /> <t-search model:value="{{searchValue}}" shape="round" placeholder="请输入关键词/书名/ISBN/作者/项目负责人" class="navBar-search" style="width: 464rpx" bind:submit="searchBook" /> </view> <view class="bookServices-list"> <view class="list-header"> <view class="header-scroll"> <t-dropdown-menu style="width: 1200rpx"> <t-dropdown-item disabled="{{disabledStair}}" optionsColumns="2" options="{{stairList.options}}" value="{{stairList.value}}" bindchange="onChangeStair" /> <t-dropdown-item disabled="{{disabledSecondList}}" label="二级" bind:open="openDropdown" bind:close="closeDropdown" options="{{secondList.options}}" optionsColumns="2" multiple defaultValue="{{secondList.value}}" bind:confirm="onConfirmSecond" bind:reset="resetSecond" /> <t-dropdown-item label="重点项目" disabled="{{disabledProject}}" options="{{majorProjectList.options}}" optionsColumns="2" multiple defaultValue="{{majorProjectList.value}}" bind:confirm="changeMajorProject" bind:reset="resetMajorProject" /> <t-dropdown-item label="新形态教材" disabled="{{disabledNewForms}}" options="{{newTextBook.options}}" optionsColumns="2" multiple defaultValue="{{newTextBook.value}}" bind:confirm="changeNewText" bind:reset="resetNewText" /> <t-dropdown-item options="{{sortList.options}}" value="{{sortList.value}}" bindchange="onSortChange" /> <t-dropdown-item disabled="{{disabledStair}}" optionsColumns="2" options="{{stairList.options}}" value="{{stairList.value}}" bindchange="onChangeStair" /> <t-dropdown-item disabled="{{disabledSecondList}}" label="二级" bind:open="openDropdown" bind:close="closeDropdown" options="{{secondList.options}}" optionsColumns="2" multiple defaultValue="{{secondList.value}}" bind:confirm="onConfirmSecond" bind:reset="resetSecond" /> <t-dropdown-item label="重点项目" disabled="{{disabledProject}}" options="{{majorProjectList.options}}" optionsColumns="2" multiple defaultValue="{{majorProjectList.value}}" bind:confirm="changeMajorProject" bind:reset="resetMajorProject" /> <t-dropdown-item label="新形态教材" disabled="{{disabledNewForms}}" options="{{newTextBook.options}}" optionsColumns="2" multiple defaultValue="{{newTextBook.value}}" bind:confirm="changeNewText" bind:reset="resetNewText" /> <t-dropdown-item options="{{sortList.options}}" value="{{sortList.value}}" bindchange="onSortChange" /> </t-dropdown-menu> </view> <!-- <view class="header-sort"> @@ -29,10 +83,27 @@ </t-dropdown-menu> </view> --> </view> <scroll-view scroll-y="{{true}}" scroll-into-view="{{backTop}}" refresher-enabled="{{true}}" lower-threshold="{{200}}" refresher-threshold="{{80}}" refresher-default-style="none" refresher-triggered="{{triggered}}" bindrefresherrefresh="onPullDownRefresh" bindrefresherpulling="{{refresh.onPulling}}" class="list-container" bindscrolltolower="onReachBottom"> <scroll-view scroll-y="{{true}}" scroll-into-view="{{backTop}}" refresher-enabled="{{true}}" lower-threshold="{{200}}" refresher-threshold="{{80}}" refresher-default-style="none" refresher-triggered="{{triggered}}" bindrefresherrefresh="onPullDownRefresh" bindrefresherpulling="{{refresh.onPulling}}" class="list-container" bindscrolltolower="onReachBottom" > <view slot="refresher" class="refresh-container"> <view class="loading"> <t-loading theme="circular" size="40rpx" text="正在刷新..." class="wrapper" /> <t-loading theme="circular" size="40rpx" text="正在刷新..." class="wrapper" /> </view> </view> <view class="assort-title" id="assort-title"> @@ -41,9 +112,19 @@ </view> <view class="page-content"> <view class="book-list" wx:if="{{!loaidng}}"> <view class="book-box" wx:for="{{bookList}}" wx:key="id" bind:tap="goDetail" data-book="{{item}}"> <view class="book-box" wx:for="{{bookList}}" wx:key="id" bind:tap="goDetail" data-book="{{item}}" > <view class="book-img"> <image src="{{item.icon ? item.icon : '/static/images/default-book-img.png'}}" aria-label="{item.name{}}" mode="aspectFit" /> <image src="{{item.icon ? item.icon : '/static/images/default-book-img.png'}}" aria-label="{item.name{}}" mode="aspectFit" /> </view> <view class="book-name book-color">{{ item.name}}</view> <view class="book-author book-color">{{item.author}}</view> @@ -55,9 +136,15 @@ </view> </view> <view class="bottom-box" wx:if="{{bookList.length}}"> <t-loading theme="circular" size="40rpx" class="wrapper" wx:if="{{isMore == true}}" loading="{{isMore}}" /> <t-loading theme="circular" size="40rpx" class="wrapper" wx:if="{{isMore == true}}" loading="{{isMore}}" /> <text wx:if="{{isMore == false}}">没有更多了</text> </view> </scroll-view> </view> </page-meta> </page-meta> packageBookService/pages/bookServices/list/index.wxss
@@ -5,6 +5,16 @@ background-color: #f7f7f7; } .back-icon { width: 48rpx; height: 100%; } .back-icon image { width: 100%; height: 100%; } .nacigationBar { display: flex; align-items: center; packageDomain/pages/sampleBookList/index.wxml
@@ -2,20 +2,59 @@ <view clas="container"> <view class="page-header" wx:if="{{!skeletonLoding}}"> <view style="width: 100%; height: {{barHeight}}px;"></view> <view class="nacigationBar" style="width: 100%; height: {{navBarHeight}}px;"> <view class="backBtn"> <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" /> <view class="nacigationBar" style="width: 100%; height: {{navBarHeight}}px;" > <view class="backBtn back-icon"> <!-- <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" /> --> <image src="/static/images/digitalTextbooks/chevron-left.png" bind:tap="goBack" mode="aspectFit" /> </view> <t-search model:value="{{searchValue}}" shape="round" placeholder="请输入关键词/书名/ISBN/作者" class="navBar-search" style="width: 464rpx" bind:submit="searchBook" /> <t-search model:value="{{searchValue}}" shape="round" placeholder="请输入关键词/书名/ISBN/作者" class="navBar-search" style="width: 464rpx" bind:submit="searchBook" /> </view> <view class="list-header"> <view class="header-scroll"> <view class="srcolbox"> <t-dropdown-menu> <t-dropdown-item options="{{iconList.options}}" value="{{iconList.value}}" optionsColumns="2" bindchange="onChangeIcon" /> <t-dropdown-item options="{{stairList.options}}" value="{{stairList.value}}" optionsColumns="2" bindchange="onChangeStair" disabled="{{assortCheck.code == '' || stairList.options.length == 0}}" /> <t-dropdown-item label=" 二级" options="{{secondList.options}}" optionsColumns="2" multiple defaultValue="{{secondList.value}}" bind:confirm="onConfirmSecond" bind:reset="onResetSecond" disabled="{{stairCode == '' || assortCheck.code == '' || secondList.options.length == 0}}" /> <t-dropdown-item options="{{sortList.options}}" value="{{sortList.value}}" bindchange="onSortChange" /> <t-dropdown-item options="{{iconList.options}}" value="{{iconList.value}}" optionsColumns="2" bindchange="onChangeIcon" /> <t-dropdown-item options="{{stairList.options}}" value="{{stairList.value}}" optionsColumns="2" bindchange="onChangeStair" disabled="{{assortCheck.code == '' || stairList.options.length == 0}}" /> <t-dropdown-item label=" 二级" options="{{secondList.options}}" optionsColumns="2" multiple defaultValue="{{secondList.value}}" bind:confirm="onConfirmSecond" bind:reset="onResetSecond" disabled="{{stairCode == '' || assortCheck.code == '' || secondList.options.length == 0}}" /> <t-dropdown-item options="{{sortList.options}}" value="{{sortList.value}}" bindchange="onSortChange" /> </t-dropdown-menu> </view> </view> @@ -32,29 +71,82 @@ <view class="list-body"> <movable-area class="movable-area"> <!-- model:scroll-top="{{setScrollValue}}" --> <scroll-view class="scroll content" bind:scroll="onPageScroll" scroll-y refresher-enabled="{{true}}" lower-threshold="{{200}}" refresher-threshold="{{180}}" refresher-default-style="none" refresher-triggered="{{triggered}}" bindrefresherpulling="{{refresh.onPulling}}" bindrefresherrefresh="onPullDownRefresh" bindscrolltolower="onReachBottom"> <scroll-view class="scroll content" bind:scroll="onPageScroll" scroll-y refresher-enabled="{{true}}" lower-threshold="{{200}}" refresher-threshold="{{180}}" refresher-default-style="none" refresher-triggered="{{triggered}}" bindrefresherpulling="{{refresh.onPulling}}" bindrefresherrefresh="onPullDownRefresh" bindscrolltolower="onReachBottom" > <view slot="refresher" class="refresh-container"> <view class="loading"> <t-loading theme="circular" size="40rpx" text="正在刷新..." class="wrapper" /> <t-loading theme="circular" size="40rpx" text="正在刷新..." class="wrapper" /> </view> </view> <view class="title"> <view class="line"></view> <view class="icon"> <image src="/static/images/home/yangshuliebiao.png" mode="aspectFit" class="iconImage" /> <image src="/static/images/home/yangshuliebiao.png" mode="aspectFit" class="iconImage" /> </view> </view> <view class="book-list" wx:if="{{bookList.length > 0}}"> <view class="book-box" wx:for="{{bookList}}" wx:key="id"> <view class="book-img" bind:tap="goDetail" data-book="{{item}}"> <image src="{{item.icon}}" aria-label="{{item.name}}" mode="aspectFit" wx:if="{{item.icon}}" /> <image src="/static/images/default-book-img.png" aria-label="{{item.name}}" mode="aspectFit" wx:else /> <image src="{{item.icon}}" aria-label="{{item.name}}" mode="aspectFit" wx:if="{{item.icon}}" /> <image src="/static/images/default-book-img.png" aria-label="{{item.name}}" mode="aspectFit" wx:else /> </view> <view class="book-name book-color" bind:tap="goDetail" data-book="{{item}}">{{ item.name}}</view> <view class="book-name book-color" bind:tap="goDetail" data-book="{{item}}" >{{ item.name}}</view > <view class="book-author book-color">{{item.author}}</view> <view class="checkbox"> <t-checkbox label="纸质样书" icon="rectangle" borderless="true" checked="{{item.paperChecked}}" disabled="{{item.paperDisabled || item.isApplyBook == '1' || item.isApplyBook == '2'}}" data-book="{{item}}" bind:change="onChangePaper" /> <t-checkbox label="电子样书" icon="rectangle" borderless="true" class="eBook" checked="{{item.electronChecked}}" disabled="{{item.electronDisabled || item.isApplyBook=='1' || item.isApplyBook=='3' }}" data-book="{{item}}" bind:change="onChangeElectron" /> <t-checkbox label="纸质样书" icon="rectangle" borderless="true" checked="{{item.paperChecked}}" disabled="{{item.paperDisabled || item.isApplyBook == '1' || item.isApplyBook == '2'}}" data-book="{{item}}" bind:change="onChangePaper" /> <t-checkbox label="电子样书" icon="rectangle" borderless="true" class="eBook" checked="{{item.electronChecked}}" disabled="{{item.electronDisabled || item.isApplyBook=='1' || item.isApplyBook=='3' }}" data-book="{{item}}" bind:change="onChangeElectron" /> </view> </view> </view> @@ -63,16 +155,34 @@ <empty /> </view> <view class="bottom-loading" wx:if="{{bottomLoading}}"> <t-loading theme="circular" size="40rpx" text="加载中..." class="wrapper" /> <t-loading theme="circular" size="40rpx" text="加载中..." class="wrapper" /> </view> <view class="bottom-loading" style="color: #ccc; font-size: 28rpx" wx:if="{{isMoreData}}"> <view class="bottom-loading" style="color: #ccc; font-size: 28rpx" wx:if="{{isMoreData}}" > <text>没有更多了</text> </view> </scroll-view> <movable-view class="movable-view" :x="{{x}}" :y="{{y}}" direction="all"> <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> @@ -80,7 +190,12 @@ </movable-area> </view> </view> <t-back-top theme="round" wx:if="{{isBackTop}}" text="顶部" bind:to-top="onToTop"></t-back-top> <t-back-top theme="round" wx:if="{{isBackTop}}" text="顶部" bind:to-top="onToTop" ></t-back-top> </view> <import src="index.skeleton.wxml" /> <template is="skeleton" wx:if="{{skeletonLoding}}" /> <template is="skeleton" wx:if="{{skeletonLoding}}" /> packageDomain/pages/sampleBookList/index.wxss
@@ -1,5 +1,15 @@ @import "./index.skeleton.wxss"; .back-icon { width: 48rpx; height: 100%; } .back-icon image { width: 100%; height: 100%; } .container { width: 100vw; height: 100vh; packagePersonal/pages/myOrder/index.js
@@ -172,7 +172,6 @@ this.getDataList(false); }, async goBookDetails(e) { console.log(e.currentTarget.dataset); const { book, pages/bibliographyList/index.wxml
@@ -6,41 +6,95 @@ <t-loading class="colors" theme="circular" size="70rpx" class="wrapper" /> </view> <view class="titleBox"> <view style="width: 100%; height: {{barHeight}}px; background-color: #fff;"></view> <view class="nacigationBar" style="width: 100%; height: {{navBarHeight}}px;"> <view> <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" /> <view style="width: 100%; height: {{barHeight}}px; background-color: #fff;" ></view> <view class="nacigationBar" style="width: 100%; height: {{navBarHeight}}px;" > <view class="back-icon"> <!-- <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" /> --> <image src="/static/images/digitalTextbooks/chevron-left.png" bind:tap="goBack" mode="aspectFit" /> </view> <view class="example-search"> <t-search model:value="{{value}}" placeholder="请输入书目名称" bind:submit="onSearchSubmit"> <t-search model:value="{{value}}" placeholder="请输入书目名称" bind:submit="onSearchSubmit" > </t-search> </view> </view> </view> <view class="page-content"> <t-tabs class="contentBox" defaultValue="{{0}}" bind:change="onTabsChange" t-class="custom-tabs" t-class-content="custom-panel"> <t-tabs class="contentBox" defaultValue="{{0}}" bind:change="onTabsChange" t-class="custom-tabs" t-class-content="custom-panel" > <t-tab-panel label="高等教育({{higherTotal}})" value="0"> <view wx:if="{{higherList.length <= 0}}" class="noDataBox"> <!-- <t-empty icon="folder-open" description="暂无数据" /> --> <empty /> </view> <scroll-view scroll-y="{{true}}" wx:else class="scroll-box" lower-threshold="{{300}}" refresher-default-style="none" refresher-triggered="{{triggered}}" bindscrolltolower="onReachBottom"> <scroll-view scroll-y="{{true}}" wx:else class="scroll-box" lower-threshold="{{300}}" refresher-default-style="none" refresher-triggered="{{triggered}}" bindscrolltolower="onReachBottom" > <view class="outsideHigherBox"> <view class="higherBox" wx:for="{{higherList}}" wx:key="index" wx:for-item="item" wx:for-index="index"> <view class="higherBox" wx:for="{{higherList}}" wx:key="index" wx:for-item="item" wx:for-index="index" > <view class="outsideHigherImageBox"> <view class="higherImageBox"> <image wx:if="{{item.icon}}" data-item="{{item}}" bind:tap="downloadData" src="{{item.icon}}" mode="aspectFill" /> <image wx:if="{{!item.icon}}" src="/static/images/default-book-img.png" mode="aspectFill" data-item="{{item}}" bind:tap="downloadData" /> <view class="downloadIcon" data-item="{{item}}" data-key="showWithInput" bind:tap="mailbox"> <image wx:if="{{determine}}" class="download" src="/static/images/bibliographyList/email-click.png" mode="aspectFit" /> <image wx:else="" class="downloadshiftin" src="/static/images/bibliographyList/email.png" mode="aspectFit" /> <image wx:if="{{item.icon}}" data-item="{{item}}" bind:tap="downloadData" src="{{item.icon}}" mode="aspectFill" /> <image wx:if="{{!item.icon}}" src="/static/images/default-book-img.png" mode="aspectFill" data-item="{{item}}" bind:tap="downloadData" /> <view class="downloadIcon" data-item="{{item}}" data-key="showWithInput" bind:tap="mailbox" > <image wx:if="{{determine}}" class="download" src="/static/images/bibliographyList/email-click.png" mode="aspectFit" /> <image wx:else="" class="downloadshiftin" src="/static/images/bibliographyList/email.png" mode="aspectFit" /> </view> </view> </view> @@ -48,7 +102,12 @@ </view> </view> <view wx:if="{{higherList.length}}" class="bottom-box"> <t-loading theme="circular" size="40rpx" class="wrapper" wx:if="{{isMore == true}}" /> <t-loading theme="circular" size="40rpx" class="wrapper" wx:if="{{isMore == true}}" /> <text wx:if="{{isMore == false}}">没有更多了</text> </view> </scroll-view> @@ -58,16 +117,58 @@ <!-- <t-empty icon="folder-open" description="暂无数据" /> --> <empty /> </view> <scroll-view scroll-y="{{true}}" wx:else class="scroll-box" lower-threshold="{{200}}" refresher-default-style="none" refresher-triggered="{{triggered}}" bindscrolltolower="onReachBottom"> <scroll-view scroll-y="{{true}}" wx:else class="scroll-box" lower-threshold="{{200}}" refresher-default-style="none" refresher-triggered="{{triggered}}" bindscrolltolower="onReachBottom" > <view class="outsideHigherBox"> <view class="higherBox" wx:for="{{vocationalList}}" wx:key="index" wx:for-item="item" wx:for-index="index" data-item="{{item}}"> <view class="higherBox" wx:for="{{vocationalList}}" wx:key="index" wx:for-item="item" wx:for-index="index" data-item="{{item}}" > <view class="outsideHigherImageBox"> <view class="higherImageBox"> <image wx:if="{{item.icon}}" data-item="{{item}}" bind:tap="downloadData" src="{{item.icon}}" mode="aspectFill" /> <image wx:if="{{!item.icon}}" src="/static/images/default-book-img.png" mode="aspectFill" data-item="{{item}}" bind:tap="downloadData" /> <view class="downloadIcon" data-item="{{item}}" data-key="showWithInput" bind:tap="mailbox"> <image wx:if="{{determine}}" class="download" src="/static/images/bibliographyList/email-click.png" mode="aspectFit" /> <image wx:else="" class="downloadshiftin" src="/static/images/bibliographyList/email.png" mode="aspectFit" /> <image wx:if="{{item.icon}}" data-item="{{item}}" bind:tap="downloadData" src="{{item.icon}}" mode="aspectFill" /> <image wx:if="{{!item.icon}}" src="/static/images/default-book-img.png" mode="aspectFill" data-item="{{item}}" bind:tap="downloadData" /> <view class="downloadIcon" data-item="{{item}}" data-key="showWithInput" bind:tap="mailbox" > <image wx:if="{{determine}}" class="download" src="/static/images/bibliographyList/email-click.png" mode="aspectFit" /> <image wx:else="" class="downloadshiftin" src="/static/images/bibliographyList/email.png" mode="aspectFit" /> </view> </view> </view> @@ -75,7 +176,12 @@ </view> </view> <view wx:if="{{vocationalList.length > 0}}" class="bottom-box"> <t-loading theme="circular" size="40rpx" class="wrapper" wx:if="{{isMore == true}}" /> <t-loading theme="circular" size="40rpx" class="wrapper" wx:if="{{isMore == true}}" /> <text wx:if="{{isMore == false}}">没有更多了</text> </view> </scroll-view> @@ -85,16 +191,58 @@ <!-- <t-empty icon="folder-open" description="暂无数据" /> --> <empty /> </view> <scroll-view scroll-y="{{true}}" wx:else class="scroll-box" lower-threshold="{{200}}" refresher-default-style="none" refresher-triggered="{{triggered}}" bindscrolltolower="onReachBottom"> <scroll-view scroll-y="{{true}}" wx:else class="scroll-box" lower-threshold="{{200}}" refresher-default-style="none" refresher-triggered="{{triggered}}" bindscrolltolower="onReachBottom" > <view class="outsideHigherBox"> <view class="higherBox" wx:for="{{teacherList}}" wx:key="index" wx:for-item="item" wx:for-index="index" data-item="{{item}}"> <view class="higherBox" wx:for="{{teacherList}}" wx:key="index" wx:for-item="item" wx:for-index="index" data-item="{{item}}" > <view class="outsideHigherImageBox"> <view class="higherImageBox"> <image wx:if="{{item.icon}}" data-item="{{item}}" bind:tap="downloadData" src="{{item.icon}}" mode="aspectFill" /> <image wx:if="{{!item.icon}}" src="/static/images/default-book-img.png" mode="aspectFill" data-item="{{item}}" bind:tap="downloadData" /> <view class="downloadIcon" data-item="{{item}}" data-key="showWithInput" bind:tap="mailbox"> <image wx:if="{{determine}}" class="download" src="/static/images/bibliographyList/email-click.png" mode="aspectFit" /> <image wx:else="" class="downloadshiftin" src="/static/images/bibliographyList/email.png" mode="aspectFit" /> <image wx:if="{{item.icon}}" data-item="{{item}}" bind:tap="downloadData" src="{{item.icon}}" mode="aspectFill" /> <image wx:if="{{!item.icon}}" src="/static/images/default-book-img.png" mode="aspectFill" data-item="{{item}}" bind:tap="downloadData" /> <view class="downloadIcon" data-item="{{item}}" data-key="showWithInput" bind:tap="mailbox" > <image wx:if="{{determine}}" class="download" src="/static/images/bibliographyList/email-click.png" mode="aspectFit" /> <image wx:else="" class="downloadshiftin" src="/static/images/bibliographyList/email.png" mode="aspectFit" /> </view> </view> </view> @@ -102,7 +250,12 @@ </view> </view> <view wx:if="{{teacherList.length > 0}}" class="bottom-box"> <t-loading theme="circular" size="40rpx" class="wrapper" wx:if="{{isMore == true}}" /> <t-loading theme="circular" size="40rpx" class="wrapper" wx:if="{{isMore == true}}" /> <text wx:if="{{isMore == false}}">没有更多了</text> </view> </scroll-view> @@ -121,7 +274,13 @@ <view class="body"> <view class="dialog-title">请输入邮箱</view> <view class="input-box"> <t-input style="{{inputStyle}}" class="input" placeholder="请输入邮箱号" value="{{input}}" bind:change="inputChange"></t-input> <t-input style="{{inputStyle}}" class="input" placeholder="请输入邮箱号" value="{{input}}" bind:change="inputChange" ></t-input> </view> </view> <view class="row-btn"> @@ -131,4 +290,4 @@ </view> </view> </view> </view> </view> pages/bibliographyList/index.wxss
@@ -1,5 +1,15 @@ @import "./index.skeleton.wxss"; .back-icon { width: 48rpx; height: 100%; } .back-icon image { width: 100%; height: 100%; } .nacigationBar { background-color: #fff; display: flex; pages/bookExhibitionList/index.wxml
@@ -10,12 +10,26 @@ <view class="outsideBigTitleBox"> <view class="bigTitleBox"> <view style="width: 100%; height: {{barHeight}}px; "></view> <view class="nacigationBar" style="width: 70%; height: {{navBarHeight}}px;"> <view class="titleIconBox"> <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" /> <view class="nacigationBar" style="width: 70%; height: {{navBarHeight}}px;" > <view class="titleIconBox" class="back-icon"> <!-- <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" /> --> <image src="/static/images/digitalTextbooks/chevron-left.png" bind:tap="goBack" mode="aspectFit" /> </view> <view class="example-search"> <t-search class="navBar-search" shape="round" model:value="{{value}}" placeholder="请输入书展名称" bind:submit="onSearchSubmit" /> <t-search class="navBar-search" shape="round" model:value="{{value}}" placeholder="请输入书展名称" bind:submit="onSearchSubmit" /> </view> </view> </view> @@ -23,11 +37,29 @@ <view class="outsideMenuBox"> <view class="menuBox"> <t-dropdown-menu> <t-dropdown-item options="{{product.options}}" default-value="{{product.value}}" bindchange="onChange" /> <t-dropdown-item options="{{product.options}}" default-value="{{product.value}}" bindchange="onChange" /> <!-- disabled="{{keynoteDisabled}}" --> <t-dropdown-item label=" 重点项目" disabled="{{disbaleProject}}" options="{{multipleSelect.options}}" bindchange="handleMultipleSelect" multiple bind:confirm="handleConfirm" bind:reset="handleReset" value="{{multipleSelect.value}}"> <t-dropdown-item label=" 重点项目" disabled="{{disbaleProject}}" options="{{multipleSelect.options}}" bindchange="handleMultipleSelect" multiple bind:confirm="handleConfirm" bind:reset="handleReset" value="{{multipleSelect.value}}" > </t-dropdown-item> <t-dropdown-item disabled="{{disabledSort}}" options="{{sorter.options}}" default-value="{{sorter.value}}" bindchange="onSort" /> <t-dropdown-item disabled="{{disabledSort}}" options="{{sorter.options}}" default-value="{{sorter.value}}" bindchange="onSort" /> </t-dropdown-menu> </view> </view> @@ -36,21 +68,40 @@ <view class="titleBox"> <view class="frameBox"></view> <view class="titleTextBox"> <image src="/static/images/bookExhibitionList/zhuantitaolun.png" mode="aspectFit" /> <image src="/static/images/bookExhibitionList/zhuantitaolun.png" mode="aspectFit" /> </view> </view> <scroll-view scroll-y="{{true}}" class="scrollViewBox" bindscrolltolower="onScrollToLower"> <scroll-view scroll-y="{{true}}" class="scrollViewBox" bindscrolltolower="onScrollToLower" > <view class="outside"> <view wx:if="{{!bookExhibitionList.length }}" class="noData"> <!-- <t-empty icon="folder-open" description="暂无数据" /> --> <empty /> </view> <view class="contentBox" wx:for="{{bookExhibitionList}}" wx:key="index" wx:for-item="item" wx:for-index="index" data-item="{{item}}" bind:tap="onBookExhibitionDetails"> <view class="contentBox" wx:for="{{bookExhibitionList}}" wx:key="index" wx:for-item="item" wx:for-index="index" data-item="{{item}}" bind:tap="onBookExhibitionDetails" > <view class="imageBox"> <view></view> <image wx:if="{{item.icon}}" src="{{item.icon}}" mode="aspectFit" /> <image wx:else src="/static/images/bookExhibitionList/banner.png" mode="aspectFit" /> <image wx:else src="/static/images/bookExhibitionList/banner.png" mode="aspectFit" /> </view> <view class="textBox" title="{{item.subtitleName}}"> <text>{{item.subtitleName}}</text> @@ -58,10 +109,15 @@ </view> </view> <view class="bottom-box" wx:if="{{bookExhibitionList.length }}"> <t-loading theme="circular" size="40rpx" class="wrapper" wx:if="{{isMore == true}}" /> <t-loading theme="circular" size="40rpx" class="wrapper" wx:if="{{isMore == true}}" /> <text wx:if="{{isMore == false}}">没有更多了</text> </view> <!-- <Select prop-array='{{selectArray}}'></Select> --> </scroll-view> </view> </view> </view> pages/bookExhibitionList/index.wxss
@@ -9,6 +9,16 @@ padding-left: 10rpx; } .back-icon { width: 48rpx; height: 100%; } .back-icon image { width: 100%; height: 100%; } .navbar-title { white-space: nowrap; text-overflow: ellipsis; pages/digitalCourses/digitalCoursesDetails/index.js
@@ -165,7 +165,6 @@ this.digitalCoursesDetailsGet(options.id) this.getPlayerList() this.getType() }, /** pages/digitalCourses/digitalCoursesDetails/index.wxml
@@ -11,51 +11,84 @@ <view class="nameBox">{{digitalsData.name}}</view> <view> <viwe class="styleCssBox"> <view style="width: 200rpx;"> ISBN: </view> <view style="width: 200rpx"> ISBN: </view> <view wx:if="{{digitalsData.isbn}}"> {{digitalsData.isbn}} </view> <view wx:else>-</view> </viwe> <viwe class="styleCssBox"> <view style="width: 200rpx;">课程负责人:</view> <view wx:if="{{digitalsData.courseLeader}}"> {{digitalsData.courseLeader }}</view> <view style="width: 200rpx">课程负责人:</view> <view wx:if="{{digitalsData.courseLeader}}"> {{digitalsData.courseLeader }}</view > <view wx:else>-</view> </viwe> <viwe class="styleCssBox"> <view style="width: 200rpx;">课程负责人单位:</view> <view wx:if="{{digitalsData.affiliatedUnit}}"> {{ digitalsData.affiliatedUnit}}</view> <view style="width: 200rpx">课程负责人单位:</view> <view wx:if="{{digitalsData.affiliatedUnit}}"> {{ digitalsData.affiliatedUnit}}</view > <view wx:else>-</view> </viwe> <viwe class="styleCssBox"> <view style="width: 200rpx;">出版单位:</view> <view wx:if="{{digitalsData.publishingUnit}}"> {{publishingUnit}} </view> <view style="width: 200rpx">出版单位:</view> <view wx:if="{{digitalsData.publishingUnit}}"> {{publishingUnit}} </view> <view wx:else>-</view> </viwe> <viwe class="styleCssBox"> <view style="width: 200rpx;">出版时间:</view> <view wx:if="{{digitalsData.publicationDate}}">{{digitalsData.publicationDate}} </view> <view style="width: 200rpx">出版时间:</view> <view wx:if="{{digitalsData.publicationDate}}" >{{digitalsData.publicationDate}} </view> <view wx:else>-</view> </viwe> <image src="/static/images/bookService/detail/square.png" class="right-background" /> <image src="/static/images/bookService/detail/square.png" class="right-background" /> </view> </view> <view class="certificate"> <view style="margin-left: 30rpx;">价格: <text>¥{{digitalsData.price}}</text></view> <view style="margin-right: 30rpx;">共<text>{{ digitalsData.classHours ? digitalsData.classHours : '0'}}</text>课时</view> <view style="margin-left: 30rpx" >价格: <text>¥{{digitalsData.price}}</text></view > <view style="margin-right: 30rpx" >共<text >{{ digitalsData.classHours ? digitalsData.classHours : '0'}}</text >课时</view > </view> </view> </view> <view class="tabBox"> <t-tabs defaultValue="{{tabValue}}" bind:change="onTabsChange" t-class="custom-tabs" t-class-content="custom-panel"> <t-tab-panel icon="{{ tabValue == '0' ? briefIconClick : briefIcon}}" label="基本信息" value="0"> <t-tabs defaultValue="{{tabValue}}" bind:change="onTabsChange" t-class="custom-tabs" t-class-content="custom-panel" > <t-tab-panel icon="{{ tabValue == '0' ? briefIconClick : briefIcon}}" label="基本信息" value="0" > <view class="rubricBox"> <view class="rubricimgBox"> <image src="/static/images/bookService/detail/label.png" mode="" /> <image src="/static/images/bookService/detail/label.png" mode="" /> </view> <view class="basic"> 课程介绍</view> </view> <view class="course-content"> <rich-text wx:if="{{digitalsData.content}}" nodes="{{digitalsData.content}}"></rich-text> <rich-text wx:if="{{digitalsData.content}}" nodes="{{digitalsData.content}}" ></rich-text> <view wx:else="" class="noDataBox"> <!-- <t-empty icon="folder-open" description="暂无数据" font-size="80" /> --> <empty /> @@ -63,20 +96,26 @@ </view> <view class="rubricBox"> <view class="rubricimgBox"> <image src="/static/images/bookService/detail/label.png" mode="" /> <image src="/static/images/bookService/detail/label.png" mode="" /> </view> <view class="basic"> 主讲老师</view> </view> <view class="course-content"> <view class="lecturer" wx:for="{{lecturerList}}" wx:key="index" wx:for-item="item"> <view class="lecturer" wx:for="{{lecturerList}}" wx:key="index" wx:for-item="item" > <view class="lecturerImangBox"> <image src="{{item.icon}}" mode="aspectFit" /> </view> <view class="lecturerInformation"> <view class="lecturerName"> <view class="name"> {{item.name}} </view> <view class="name"> {{item.name}} </view> <view class="title">{{item.title}}</view> </view> <view class="lecturerContent">{{item.description}}</view> @@ -84,10 +123,17 @@ </view> </view> </t-tab-panel> <t-tab-panel icon="{{ tabValue == '1' ? learnResourceClickIcon : learnResourceIcon}}" label="证书信息" value="1"> <t-tab-panel icon="{{ tabValue == '1' ? learnResourceClickIcon : learnResourceIcon}}" label="证书信息" value="1" > <view class="rubricBox"> <view class="rubricimgBox"> <image src="/static/images/digitalTextbooks/zhengshu@2x.png" mode="" /> <image src="/static/images/digitalTextbooks/zhengshu@2x.png" mode="" /> </view> <view class="basic"> 证书信息</view> </view> @@ -97,21 +143,74 @@ <image src="{{cbzsImg}}" mode="" /> </view> <view class="chart" bind:tap="onClick2"> <image src="https://jsek.bnuic.com/home/certificate/kczs.jpg" mode="" /> <image src="https://jsek.bnuic.com/home/certificate/kczs.jpg" mode="" /> </view> </view> </view> <canvas canvas-id="myCanvas" style="height:845px;width:595px" wx:if="{{pubCertificateHide}}"></canvas> <view id="pubCertificate" class="my_canvas" wx:if="{{pubCertificateHide}}"> <image data-type="image" data-url="https://jsek.bnuic.com/home/certificate/szkc.jpg" src="https://jsek.bnuic.com/home/certificate/szkc.jpg" mode="" class="bgImg" /> <canvas canvas-id="myCanvas" style="height: 845px; width: 595px" wx:if="{{pubCertificateHide}}" ></canvas> <view id="pubCertificate" class="my_canvas" wx:if="{{pubCertificateHide}}" > <image data-type="image" data-url="https://jsek.bnuic.com/home/certificate/szkc.jpg" src="https://jsek.bnuic.com/home/certificate/szkc.jpg" mode="" class="bgImg" /> <view class="certificateInfo my_draw_canvas"> <view class="bookName my_draw_canvas" data-type="text" data-text="{{digitalsData.name}}">{{digitalsData.name}}</view> <view class="author my_draw_canvas" data-type="text" data-text="{{digitalsData.courseLeader}}">{{digitalsData.courseLeader || '-' }}</view> <view class="affiliatedUnit my_draw_canvas" data-type="text" data-text="{{digitalsData.affiliatedUnit}}">{{digitalsData.affiliatedUnit || '-'}}</view> <view class="affiliatedUnit my_draw_canvas" data-type="text" data-text="{{digitalsData.isbn}}"> {{ digitalsData.isbn || '-'}}</view> <view class="affiliatedUnit my_draw_canvas" data-type="text" data-text="{{digitalsData.publicationDate}}">{{digitalsData.publicationDate}}</view> <view class="affiliatedUnit my_draw_canvas" data-type="text" data-text="{{publishingUnit}}">{{publishingUnit}}</view> <view class="website my_draw_canvas" data-type="text" data-text="{{website}}">{{website}}</view> <view class="bookName my_draw_canvas" data-type="text" data-text="{{digitalsData.name}}" >{{digitalsData.name}}</view > <view class="author my_draw_canvas" data-type="text" data-text="{{digitalsData.courseLeader}}" >{{digitalsData.courseLeader || '-' }}</view > <view class="affiliatedUnit my_draw_canvas" data-type="text" data-text="{{digitalsData.affiliatedUnit}}" >{{digitalsData.affiliatedUnit || '-'}}</view > <view class="affiliatedUnit my_draw_canvas" data-type="text" data-text="{{digitalsData.isbn}}" > {{ digitalsData.isbn || '-'}}</view > <view class="affiliatedUnit my_draw_canvas" data-type="text" data-text="{{digitalsData.publicationDate}}" >{{digitalsData.publicationDate}}</view > <view class="affiliatedUnit my_draw_canvas" data-type="text" data-text="{{publishingUnit}}" >{{publishingUnit}}</view > <view class="website my_draw_canvas" data-type="text" data-text="{{website}}" >{{website}}</view > <view class="codeBox"></view> </view> </view> @@ -139,26 +238,52 @@ </view> </view> </t-tab-panel> <t-tab-panel icon="{{ tabValue == '2' ? courseLearningClick : courseLearning}}" label="课程学习" value="2"> <t-tab-panel icon="{{ tabValue == '2' ? courseLearningClick : courseLearning}}" label="课程学习" value="2" > <view class="course-content"> <view class="tabsSelect"> <view class="{{selectActive == 'learn' ? 'tabs-item selectActive' : 'tabs-item'}}" bind:tap="selectChange" data-value="{{'learn'}}">学习内容</view> <view class="{{selectActive == 'test' ? 'tabs-item selectActive' : 'tabs-item'}}" bind:tap="selectChange" data-value="{{'test'}}">在线测试</view> <view class="{{selectActive == 'learn' ? 'tabs-item selectActive' : 'tabs-item'}}" bind:tap="selectChange" data-value="{{'learn'}}" >学习内容</view > <view class="{{selectActive == 'test' ? 'tabs-item selectActive' : 'tabs-item'}}" bind:tap="selectChange" data-value="{{'test'}}" >在线测试</view > </view> <view class="list-box"> <view wx:if="{{selectActive == 'learn'}}"> <view wx:if="{{relationTextBook}}" class="textBook"> <view class="textTile"> <image src="/static/images/bookService/detail/shuzijiaocai.png" mode="" class="leftImg" /> <image src="/static/images/bookService/detail/shuzijiaocai.png" mode="" class="leftImg" /> <view>数字教材</view> </view> <view class="reabtn" bind:tap="readTextBook"> <image src="/static/images/digitalCourses/shidu@2x.png" class="readImage"></image> <image src="/static/images/digitalCourses/shidu@2x.png" class="readImage" ></image> <view>{{isTextBookBuy ? '阅读' : '试看'}}</view> </view> </view> <view wx:if="{{learnList.length > 0}}"> <tree id="test-tree" openIds="{{openTeachids}}" bookInfo="{{digitalsData}}" treeList="{{learnList}}"> <tree id="test-tree" openIds="{{openTeachids}}" bookInfo="{{digitalsData}}" treeList="{{learnList}}" > </tree> </view> <view wx:if="{{learnList.length == 0}}" class="noData"> @@ -169,22 +294,43 @@ <view class="testBtnBox"> <view class="textTile">共{{testCount}}个</view> <view class="note-btn"> <t-button theme="primary" class="make-note" bind:tap="goMycollect" data-answerType="errorQuestion" style="width: 220rpx"> <t-button theme="primary" class="make-note" bind:tap="goMycollect" data-answerType="errorQuestion" style="width: 220rpx" > <view slot="content" class="btn-content"> <image src="/static/images/bookService/detail/cuoti.png" /> <image src="/static/images/bookService/detail/cuoti.png" /> <text class="note-btn-text">我的错题</text> </view> </t-button> <t-button theme="primary" class="make-note" bind:tap="goMycollect" data-answerType="collectQuestion" style="width: 220rpx;margin-left:10rpx;"> <t-button theme="primary" class="make-note" bind:tap="goMycollect" data-answerType="collectQuestion" style="width: 220rpx; margin-left: 10rpx" > <view slot="content" class="btn-content"> <image src="/static/images/bookService/detail/wodeshoucang.png" /> <image src="/static/images/bookService/detail/wodeshoucang.png" /> <text class="note-btn-text">我的收藏</text> </view> </t-button> </view> </view> <testTree id="tree" openIds="{{openTeachids}}" bookInfo="{{digitalsData}}" tab="{{tab}}" treeList="{{testList}}"></testTree> <testTree id="tree" openIds="{{openTeachids}}" bookInfo="{{digitalsData}}" tab="{{tab}}" treeList="{{testList}}" ></testTree> <view wx:if="{{testList.length == 0}}" class="noData"> <empty /> </view> @@ -192,9 +338,17 @@ </view> </view> </t-tab-panel> <t-tab-panel icon="{{ tabValue == '3' ? learningNotesClick : learningNotes}}" label="学习笔记" value="3"> <t-tab-panel icon="{{ tabValue == '3' ? learningNotesClick : learningNotes}}" label="学习笔记" value="3" > <view class="course-content"> <note bookInfo="{{digitalsData}}" id="note" class="note-list"></note> <note bookInfo="{{digitalsData}}" id="note" class="note-list" ></note> <!-- <view class="topBox"> <view></view> <view class="note-btn"> @@ -208,9 +362,17 @@ </view> --> </view> </t-tab-panel> <t-tab-panel icon="{{ tabValue == '4' ? onlineQuestioningClick : onlineQuestioning}}" label="在线提问" value="4"> <t-tab-panel icon="{{ tabValue == '4' ? onlineQuestioningClick : onlineQuestioning}}" label="在线提问" value="4" > <view class="course-content"> <question bookInfo="{{digitalsData}}" id="question" class="note-list"></question> <question bookInfo="{{digitalsData}}" id="question" class="note-list" ></question> <!-- <view class="topBox"> <view>共{{questionTotalCount}}个</view> <view class="note-btn"> @@ -240,10 +402,18 @@ </view> --> </view> </t-tab-panel> <t-tab-panel icon="{{tabValue == '5' ? testResourceClickIocn : testResourceIocn}}" value="5" label="相关课程" style="{{tabPanelstyle}}"> <t-tab-panel icon="{{tabValue == '5' ? testResourceClickIocn : testResourceIocn}}" value="5" label="相关课程" style="{{tabPanelstyle}}" > <view class="rubricBox"> <view class="rubricimgBox"> <image src="/static/images/digitalTextbooks/Link@3x.png" mode="" /> <image src="/static/images/digitalTextbooks/Link@3x.png" mode="" /> </view> <view class="basic"> 相关课程</view> </view> @@ -251,10 +421,22 @@ <empty /> </view> <view class="correlation" wx:else> <view style="margin-bottom: 30rpx;" wx:for="{{relatedBookData}}" wx:key="index" wx:for-item="item" wx:for-index="index" data-item="{{item}}" bind:tap="onCorrelationBook"> <view style="margin-bottom: 30rpx" wx:for="{{relatedBookData}}" wx:key="index" wx:for-item="item" wx:for-index="index" data-item="{{item}}" bind:tap="onCorrelationBook" > <view class="correlationImage"> <image src="{{item.icon}}" mode="" mode="aspectFit" /> <img wx:if="{{item.icon == ''}}" src="/static/images/default-book-img.png" alt="" /> <img wx:if="{{item.icon == ''}}" src="/static/images/default-book-img.png" alt="" /> </view> <view class="correlationName">{{item.name}}</view> <view class="correlationAuthor">{{digitalsData.author}}</view> @@ -266,21 +448,37 @@ <view class="box-bottom"> <view class="bottom-btn" bind:tap="setCoolect"> <view class="collectionImage"> <image wx:if="{{!digitalsData.isFavourite}}" src="/static/images/digitalTextbooks/wodeshoucang@2x.png" mode="" /> <image wx:else src="/static/images/bookService/detail/collecting.png" mode="" /> <image wx:if="{{!digitalsData.isFavourite}}" src="/static/images/digitalTextbooks/wodeshoucang@2x.png" mode="" /> <image wx:else src="/static/images/bookService/detail/collecting.png" mode="" /> </view> <view class="btn-text"> 收藏 </view> <view class="btn-text"> 收藏 </view> </view> <view class="bottom-btn" bind:tap="onCertificate"> <view class="applicationImageBox"> <image src="/static/images/digitalCourses/zhengshushenqing@2x.png" mode="" /> <image src="/static/images/digitalCourses/zhengshushenqing@2x.png" mode="" /> </view> <view>证书申请</view> </view> <view class="bottom-btn shopCarColor" bind:tap="addBookShopcCar" wx:if="{{!isBuy}}">加入购物车</view> <view class="bottom-btn buyColor" bind:tap="buyBtn" wx:if="{{!isBuy}}">立即购买</view> <view class="bottom-btn shopCarColor" bind:tap="addBookShopcCar" wx:if="{{!isBuy}}" >加入购物车</view > <view class="bottom-btn buyColor" bind:tap="buyBtn" wx:if="{{!isBuy}}" >立即购买</view > </view> <t-toast id="t-toast" /> </scroll-view> @@ -293,15 +491,25 @@ <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="input-box"> <t-input class="input" borderless placeholder="请输入真实姓名" value="{{userInfo.fullName}}" bind:change="onFullNameInput"></t-input> <t-input class="input" borderless placeholder="请输入真实姓名" value="{{userInfo.fullName}}" bind:change="onFullNameInput" ></t-input> </view> <view class="contentImg"> <image src="{{userInfo.userPicture}}" mode="aspectFill" /> </view> <view class="buttonBox"> <t-button size="small" class="right-btn" bind:tap="uploadPicture">上传照片</t-button> <t-button size="small" class="right-btn" bind:tap="uploadPicture" >上传照片</t-button > </view> </view> <view class="row-btn"> @@ -313,4 +521,13 @@ </view> </view> <t-image-viewer usingCustomNavbar deleteBtn="{{deleteBtn}}" closeBtn="{{closeBtn}}" showIndex="{{showIndex}}" visible="{{visible}}" images="{{images}}" bind:change="onChange" bind:close="onClose"></t-image-viewer> <t-image-viewer usingCustomNavbar deleteBtn="{{deleteBtn}}" closeBtn="{{closeBtn}}" showIndex="{{showIndex}}" visible="{{visible}}" images="{{images}}" bind:change="onChange" bind:close="onClose" ></t-image-viewer> pages/digitalCourses/index.js
@@ -45,7 +45,8 @@ }, ], }, sortActive: '' sortActive: '', otherType: null }, /** @@ -132,10 +133,10 @@ }) const data = { path: '*', filterList: [{ value: 'Normal', field: 'state' }], // filterList: [{ // value: 'Normal', // field: 'state' // }], queryType: '\\', searchList: [], size: '20', @@ -148,7 +149,15 @@ } app.MG.store.getStoreChannelList(data).then((res) => { // 去除数组最后一个元素 // 找出其他分类的path,用于排除其他分类里的数据 this.data.otherType = res.datas.find(item => item.refCode == "jsek_dCOther") res.datas = res.datas.filter(item => item.state == 'Normal') const newData = res.datas.slice(0, res.datas.length - 1) newData.unshift({ name: "全部", pathList: newData[0].pathList[0], id: "" }) this.setData({ tabList: newData, loading: false @@ -197,7 +206,9 @@ // // 组合的写法 要查询的字段:升序和降序 const obj = { storeInfo: app.config.goodsStore, path: item.pathList + '\\' + item.id, // path: item.pathList + '\\' + item.id, path: item.id ? item.pathList + '\\' + item.id : item.pathList, queryType: "*", coverSize: { width: 260 }, @@ -222,12 +233,12 @@ app.MG.store.getProductList(obj).then((res) => { res.datas.forEach(item => { item.price = item.price.toFixed(2) item.productLinkInfo = JSON.parse(item.productLinkInfo) }) // 排除其他分类里的数据 this.setData({ courseList: res.datas courseList: res.datas.filter(item => item.productLinkInfo[0].LinkPath != this.data.otherType.pathList[0] + '\\' + this.data.otherType.id) }) }) }, searchBook() { pages/digitalCourses/index.wxml
@@ -3,21 +3,47 @@ <view wx:else=""> <view style="width: 100%; height: {{barHeight}}px;"></view> <view class="nacigationBar" style="width: 70%; height: {{navBarHeight}}px;"> <view> <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" /> <view class="back-icon"> <!-- <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" /> --> <image src="/static/images/digitalTextbooks/chevron-left.png" bind:tap="goBack" mode="aspectFit" /> </view> <t-search model:value="{{searchValue}}" shape="round" placeholder="请输入课程名称/ISBN/课程负责人" class="navBar-search" style="width: 464rpx" bind:submit="searchBook" /> <t-search model:value="{{searchValue}}" shape="round" placeholder="请输入课程名称/ISBN/课程负责人" class="navBar-search" style="width: 464rpx" bind:submit="searchBook" /> </view> <view class="heardTab"> <view class="tabBox"> <t-tabs defaultValue="{{active}}" bind:change="onTabsChange" t-class="custom-tabs"> <t-tab-panel wx:for="{{tabList}}" wx:key="index" wx:for-item="item" label="{{item.name}}" value="{{index}}"> <t-tabs defaultValue="{{active}}" bind:change="onTabsChange" t-class="custom-tabs" > <t-tab-panel wx:for="{{tabList}}" wx:key="index" wx:for-item="item" label="{{item.name}}" value="{{index}}" > </t-tab-panel> </t-tabs> </view> <view class="dropdown"> <t-dropdown-menu> <t-dropdown-item options="{{sorter.options}}" default-value="{{sorter.value}}" bindchange="onSort" /> <t-dropdown-item options="{{sorter.options}}" default-value="{{sorter.value}}" bindchange="onSort" /> </t-dropdown-menu> </view> </view> @@ -25,29 +51,40 @@ <view class="titleBox"> <view class="frameBox"></view> <view class="titleTextBox"> <image src="/static/images/digitalCourses/zhuantitaolun@2x.png" mode="aspectFit" /> <image src="/static/images/digitalCourses/zhuantitaolun@2x.png" mode="aspectFit" /> </view> </view> <scroll-view scroll-y="{{true}}" class="outsideContentBox" bindscrolltolower="onScrollToLower"> <scroll-view scroll-y="{{true}}" class="outsideContentBox" bindscrolltolower="onScrollToLower" > <view class="ExternalInformationBox"> <view class="informationBox" wx:for="{{courseList}}" wx:key="index" wx:for-item="item" data-item="{{item}}"> <view class="informationBox" wx:for="{{courseList}}" wx:key="index" wx:for-item="item" data-item="{{item}}" > <view class="book-img" bind:tap="courseDetail" data-item="{{item}}"> <image src="{{item.icon}}" mode="aspectFit" /> </view> <view class="book-Info"> <view class="book-name" bind:tap="courseDetail" data-item="{{item}}"> <view class="book-name" bind:tap="courseDetail" data-item="{{item}}" > {{item.name}} </view> <view class="viewCount"> {{item.viewCount }}次点击 </view> <view class="viewCount"> {{item.viewCount }}次点击 </view> <view class="author"> <view> {{ item.courseLeader}} </view> <view> {{ item.classHours}}课时 </view> <view> {{ item.courseLeader}} </view> <view> {{ item.classHours}}课时 </view> </view> <view class="money"> <view wx:if="{{item.price != 0}}">¥{{item.price }}</view> @@ -64,4 +101,4 @@ </view> </scroll-view> </view> </view> </view> pages/digitalCourses/index.wxss
@@ -6,6 +6,15 @@ height: 100%; } .back-icon { width: 48rpx; height: 100%; } .back-icon image { width: 100%; height: 100%; } .nacigationBar { display: flex; @@ -35,13 +44,18 @@ .dropdown { z-index: 1; width: 29vw; box-shadow: 0px 3px 10px 1px rgba(0, 0, 0, 0.1); /* box-shadow: 0px 3px 10px 1px rgba(0, 0, 0, 0.1); */ box-shadow: -2px 2px 7px -4px rgba(0, 0, 0, 0.1); } .t-dropdown-menu__item--active, .t-radio__icon--checked, .t-checkbox__icon--checked { color: #FF6C00 !important } .t-dropdown-menu:after { height: 0 !important; } .t-tabs .t-tabs__track { @@ -121,6 +135,7 @@ } .book-name { height: 76rpx; color: #333; font-size: 28rpx; font-weight: 700; pages/digitalTextbooks/digitalTextbooksDetails/index.js
@@ -244,7 +244,7 @@ isBuy: false }) } res.datas.publicationDate = moment(res.datas.publicationDate).format('YYYY年MM月DD日') res.datas.publicationDate = moment(res.datas.publicationDate).format('YYYY年MM月') if (res.datas.icon == '') { res.datas.icon = '/static/images/default-book-img.png' } pages/digitalTextbooks/digitalTextbooksDetails/index.wxml
@@ -3,7 +3,11 @@ <template is="skeleton" wx:if="{{loading}}" /> <view wx:if="{{!loading}}"> <view class="page-bookService"> <scroll-view scroll-y="{{true}}" class="book" bindscrolltolower="onReachBottom"> <scroll-view scroll-y="{{true}}" class="book" bindscrolltolower="onReachBottom" > <view class="digital"> <view class="book-box"> <view class="textbookDetails"> @@ -17,38 +21,44 @@ </view> --> </view> <view class="bookContent"> <view class="headerText"> {{digitalsData.name}} </view> <view class="headerText"> {{digitalsData.name}} </view> <view class="content"> <view class="styleCssBox"> <view style="width: 150rpx;"> 主编: </view> <view style="width: 150rpx"> 主编: </view> <view class="authorBox">{{ digitalsData.author}}</view> </view> <view class="styleCssBox"> <view style="width: 150rpx;"> 编者单位: </view> <view class="authorBox">{{ digitalsData.editorUnit || '-'}}</view> <view style="width: 150rpx"> 编者单位: </view> <view class="authorBox" >{{ digitalsData.editorUnit || '-'}}</view > </view> <view class="styleCssBox"> <view style="width: 150rpx;">ISBN:</view> <view style="width: 150rpx">ISBN:</view> <view>{{ digitalsData.isbn}}</view> </view> <view class="styleCssBox"> <view style="width: 150rpx;"> 出版时间: </view> <view style="width: 150rpx"> 出版时间: </view> <view>{{ digitalsData.publicationDate}}</view> </view> <view class="styleCssBox"> <view style="width: 150rpx;"> 出版单位: </view> <view style="width: 150rpx"> 出版单位: </view> <view>{{ publishingUnit || '-'}}</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> <view class="certificate"> <view class="proposal" bind:tap="suggestBtn"> <view class="suggestion"> <image src="/static/images/digitalTextbooks/Suggestion@2x.png" mode="" /> <image src="/static/images/digitalTextbooks/Suggestion@2x.png" mode="" /> </view> <view class="proposalText">我要建议</view> </view> @@ -56,7 +66,10 @@ <view class="information"> <view class="proposal" bind:tap="onCertificate"> <view class="suggestion"> <image src="/static/images/digitalTextbooks/shengshu-t@2x.png" mode="" /> <image src="/static/images/digitalTextbooks/shengshu-t@2x.png" mode="" /> </view> <view class="proposalText">证书申请</view> </view> @@ -72,11 +85,26 @@ </view> </view> <view class="book-resource"> <t-tabs defaultValue="{{tabValue}}" bind:change="onTabsChange" bind:click="onTabsClick" t-class="custom-tabs" t-class-content="custom-panel" class="tab-class"> <t-tab-panel icon="{{ tabValue == 'brief' ? briefIconClick : briefIcon}}" value="brief" label="基本信息" style="{{tabPanelstyle}}"> <t-tabs defaultValue="{{tabValue}}" bind:change="onTabsChange" bind:click="onTabsClick" t-class="custom-tabs" t-class-content="custom-panel" class="tab-class" > <t-tab-panel icon="{{ tabValue == 'brief' ? briefIconClick : briefIcon}}" value="brief" label="基本信息" style="{{tabPanelstyle}}" > <view class="rubricBox"> <view class="rubricimgBox"> <image src="/static/images/bookService/detail/label.png" mode="" /> <image src="/static/images/bookService/detail/label.png" mode="" /> </view> <view class="basic"> 基本信息</view> </view> @@ -88,42 +116,76 @@ <empty /> </view> </t-tab-panel> <t-tab-panel icon="{{tabValue == 'jsek_cloudLearning' ? learnResourceClickIcon : learnResourceIcon}}" value="jsek_cloudLearning" label="证书信息" style="{{tabPanelstyle}}"> <t-tab-panel icon="{{tabValue == 'jsek_cloudLearning' ? learnResourceClickIcon : learnResourceIcon}}" value="jsek_cloudLearning" label="证书信息" style="{{tabPanelstyle}}" > <view class="rubricBox"> <view class="rubricimgBox"> <image src="/static/images/digitalTextbooks/zhengshu@2x.png" mode="" /> <image src="/static/images/digitalTextbooks/zhengshu@2x.png" mode="" /> </view> <view class="basic"> 证书信息</view> </view> <view class="certificateChart"> <view class="chart" bind:tap="onClick1"> <image src="https://jsek.bnuic.com/home/certificate/szjc.jpg" mode="" /> <image src="https://jsek.bnuic.com/home/certificate/szjc.jpg" mode="" /> </view> <view class="chart" bind:tap="onClick2"> <image src="https://jsek.bnuic.com/home/certificate/jczs.jpg" mode="" /> <image src="https://jsek.bnuic.com/home/certificate/jczs.jpg" mode="" /> </view> </view> </t-tab-panel> <t-tab-panel icon="{{tabValue == 'jsek_teachingResources' ? teachResourcesClickIcon : teachResourcesIcon}}" value="jsek_teachingResources" label="作者信息" style="{{tabPanelstyle}}"> <t-tab-panel icon="{{tabValue == 'jsek_teachingResources' ? teachResourcesClickIcon : teachResourcesIcon}}" value="jsek_teachingResources" label="作者信息" style="{{tabPanelstyle}}" > <view class="rubricBox"> <view class="rubricimgBox"> <image src="/static/images/bookService/detail/author.png" mode="" /> <image src="/static/images/bookService/detail/author.png" mode="" /> </view> <view class="basic"> 作者信息</view> </view> <view class="basic-content" wx:if="{{digitalsData.authorIntroduction}}"> <rich-text nodes="{{digitalsData.authorIntroduction}}"></rich-text> <view class="basic-content" wx:if="{{digitalsData.authorIntroduction}}" > <rich-text nodes="{{digitalsData.authorIntroduction}}" ></rich-text> </view> <view class="noDataBox" wx:else> <!-- <t-empty icon="folder-open" description="暂无数据" font-size="80" /> --> <empty /> </view> </t-tab-panel> <t-tab-panel icon="{{tabValue == 'catalogue' ? catalogueClickIcon : catalogue}}" value="catalogue" label="目录" style="{{tabPanelstyle}}"> <t-tab-panel icon="{{tabValue == 'catalogue' ? catalogueClickIcon : catalogue}}" value="catalogue" label="目录" style="{{tabPanelstyle}}" > <view class="rubricBox"> <view class="rubricimgBox"> <image src="/static/images/digitalTextbooks/mulu@3x.png" mode="" /> <image src="/static/images/digitalTextbooks/mulu@3x.png" mode="" /> </view> <view class="basic"> 目录</view> </view> @@ -135,10 +197,18 @@ <empty /> </view> </t-tab-panel> <t-tab-panel icon="{{tabValue == 'questionBank' ? testResourceClickIocn : testResourceIocn}}" value="questionBank" label="相关教材" style="{{tabPanelstyle}}"> <t-tab-panel icon="{{tabValue == 'questionBank' ? testResourceClickIocn : testResourceIocn}}" value="questionBank" label="相关教材" style="{{tabPanelstyle}}" > <view class="rubricBox"> <view class="rubricimgBox"> <image src="/static/images/digitalTextbooks/Link@3x.png" mode="" /> <image src="/static/images/digitalTextbooks/Link@3x.png" mode="" /> </view> <view class="basic"> 相关教材</view> </view> @@ -146,10 +216,22 @@ <empty /> </view> <view class="correlation" wx:else> <view style="margin-bottom: 30rpx;" wx:for="{{relatedBookData}}" wx:key="index" wx:for-item="item" wx:for-index="index" data-item="{{item}}" bind:tap="onCorrelationBook"> <view style="margin-bottom: 30rpx" wx:for="{{relatedBookData}}" wx:key="index" wx:for-item="item" wx:for-index="index" data-item="{{item}}" bind:tap="onCorrelationBook" > <view class="correlationImage"> <image src="{{item.icon}}" mode="" /> <img wx:if="{{item.icon == ''}}" src="/static/images/default-book-img.png" alt="" /> <img wx:if="{{item.icon == ''}}" src="/static/images/default-book-img.png" alt="" /> </view> <view class="correlationName">{{item.name}}</view> <view class="correlationAuthor">{{digitalsData.author}}</view> @@ -157,20 +239,24 @@ </view> </t-tab-panel> </t-tabs> </view> </scroll-view> <view class="box-bottom"> <view class="collection" bind:tap="setCoolect"> <view class="collectionImage"> <image wx:if="{{!digitalsData.isFavourite}}" src="/static/images/digitalTextbooks/wodeshoucang@2x.png" mode="" /> <image wx:else src="/static/images/bookService/detail/collecting.png" mode="" /> <image wx:if="{{!digitalsData.isFavourite}}" src="/static/images/digitalTextbooks/wodeshoucang@2x.png" mode="" /> <image wx:else src="/static/images/bookService/detail/collecting.png" mode="" /> </view> <view class="btn-text"> 收藏 </view> <view class="btn-text"> 收藏 </view> </view> <view class="trialReading" bind:tap="goRead" wx:if="{{!isBuy}}"> <view class="collectionImage"> @@ -178,16 +264,41 @@ </view> <view class="btn-text">试读</view> </view> <view class="shopCarColor" bind:tap="addBookShopcCar" wx:if="{{!isBuy}}">加入购物车</view> <view class="buyColor" bind:tap="buyBtn" wx:if="{{!isBuy && digitalsData.price != 0}}">立即购买</view> <view class="buyColor" bind:tap="buyBtn" wx:if="{{!isBuy && digitalsData.price == 0.00}}">免费领取</view> <view class="{{!isBuy ? 'buyColor' :'reading'}}" bind:tap="goRead" wx:if="{{isBuy}}"> <view class="shopCarColor" bind:tap="addBookShopcCar" wx:if="{{!isBuy &&digitalsData.price != 0 }}" >加入购物车</view > <view class="buyColor" bind:tap="buyBtn" wx:if="{{!isBuy && digitalsData.price != 0}}" >立即购买</view > <view class="buyColor receive" bind:tap="buyBtn" wx:if="{{!isBuy && digitalsData.price == 0.00}}" >免费领取</view > <view class="{{!isBuy ? 'buyColor' :'reading'}}" bind:tap="goRead" wx:if="{{isBuy}}" > 立即阅读 </view> </view> </view> </view> <suggest class="suggest-component" id="suggest-component1" showIndex="{{showIndex1}}" bookIcon="{{digitalsData.icon}}" bookName="{{digitalsData.name}}"></suggest> <suggest class="suggest-component" id="suggest-component1" showIndex="{{showIndex1}}" bookIcon="{{digitalsData.icon}}" bookName="{{digitalsData.name}}" ></suggest> <!-- 弹窗 --> <view wx:if="{{dialogBox}}"> <view class="popup-box" bindtap="closeDialog"></view> @@ -196,15 +307,25 @@ <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="input-box"> <t-input class="input" borderless placeholder="请输入真实姓名" value="{{userInfo.fullName}}" bind:change="onFullNameInput"></t-input> <t-input class="input" borderless placeholder="请输入真实姓名" value="{{userInfo.fullName}}" bind:change="onFullNameInput" ></t-input> </view> <view class="contentImg"> <image src="{{userInfo.userPicture}}" mode="aspectFill" /> </view> <view class="buttonBox"> <t-button size="small" class="right-btn" bind:tap="uploadPicture">上传照片</t-button> <t-button size="small" class="right-btn" bind:tap="uploadPicture" >上传照片</t-button > </view> </view> <view class="row-btn"> @@ -215,6 +336,13 @@ </view> </view> </view> <t-image-viewer deleteBtn="{{deleteBtn}}" closeBtn="{{closeBtn}}" showIndex="{{showIndex}}" visible="{{visible}}" images="{{images}}" bind:close="onClose"></t-image-viewer> <t-image-viewer deleteBtn="{{deleteBtn}}" closeBtn="{{closeBtn}}" showIndex="{{showIndex}}" visible="{{visible}}" images="{{images}}" bind:close="onClose" ></t-image-viewer> <t-toast id="t-toast" /> <t-toast id="t-toast" /> pages/digitalTextbooks/digitalTextbooksDetails/index.wxss
@@ -242,6 +242,10 @@ align-items: center; } .receive { width: 400rpx; } .suggestion { width: 35rpx; height: 35rpx; pages/digitalTextbooks/index.js
@@ -21,7 +21,8 @@ tabList: [], selectedIndex: 0, digitalTextbooksData: [], path: "jsek_dTHigherEducation", // path: "jsek_dTHigherEducation", path: "*", loading: true, sorter: { value: "*", @@ -142,11 +143,14 @@ newData.forEach((item) => { item.titleIcon = getPublicImage(item.icon, '', '160') }) newData.unshift({ name: '全部', refCode: '*' }) this.setData({ tabList: newData }) console.log(this.data.tabList); console.log(1, this.data.tabList); }) }, @@ -159,34 +163,13 @@ }, selectTab(e) { console.log(e); let index = e.detail.value console.log(index); this.setData({ selectedIndex: index }) if (index == 0) { this.setData({ path: this.data.tabList[0].refCode }) } else if (index == 1) { this.setData({ path: this.data.tabList[1].refCode }) } else if (index == 2) { this.setData({ path: this.data.tabList[2].refCode }) } else if (index == 3) { this.setData({ path: this.data.tabList[3].refCode }) } this.setData({ path: this.data.tabList[index].refCode }) this.bookExhibitionGet() }, pages/digitalTextbooks/index.wxml
@@ -4,21 +4,48 @@ <view wx:if="{{!loading}}"> <view style="width: 100%; height: {{barHeight}}px;"></view> <view class="nacigationBar" style="width: 70%; height: {{navBarHeight}}px;"> <view> <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" /> <view class="back-icon"> <!-- <t-icon name="chevron-left" size="30" data-name="{{item}}" bind:click="goBack" /> --> <image src="/static/images/digitalTextbooks/chevron-left.png" bind:tap="goBack" mode="aspectFit" /> </view> <t-search model:value="{{searchValue}}" shape="round" placeholder="请输入教材名称/ISBN/作者" class="navBar-search" style="width: 464rpx" bind:submit="searchBook" /> <t-search model:value="{{searchValue}}" shape="round" placeholder="请输入教材名称/ISBN/作者" class="navBar-search" style="width: 464rpx" bind:submit="searchBook" /> </view> <view class="heardTab"> <view class="tabBox"> <t-tabs defaultValue="{{0}}" bind:change="selectTab" t-class="custom-tabs"> <t-tab-panel wx:for="{{tabList}}" wx:key="index" wx:for-item="item" label="{{item.name}}" value="{{index}}" style="{{tabPanelstyle}}"> <t-tabs defaultValue="{{0}}" bind:change="selectTab" t-class="custom-tabs" > <t-tab-panel wx:for="{{tabList}}" wx:key="index" wx:for-item="item" label="{{item.name}}" value="{{index}}" style="{{tabPanelstyle}}" > </t-tab-panel> </t-tabs> </view> <view class="dropdown"> <t-dropdown-menu> <t-dropdown-item options="{{sorter.options}}" default-value="{{sorter.value}}" bindchange="onSort" /> <t-dropdown-item options="{{sorter.options}}" default-value="{{sorter.value}}" bindchange="onSort" /> </t-dropdown-menu> </view> </view> @@ -30,15 +57,35 @@ <view>数字教材列表</view> </view> </view> <scroll-view scroll-y="{{true}}" class="outsideContentBox" bindscrolltolower="onScrollToLower"> <scroll-view scroll-y="{{true}}" class="outsideContentBox" bindscrolltolower="onScrollToLower" > <view class="bookContentBox"> <view class="external" wx:for="{{digitalTextbooksData}}" wx:key="index" wx:for-item="item" wx:for-index="index" data-item="{{item}}" bind:tap="jumpDetails"> <view class="external" wx:for="{{digitalTextbooksData}}" wx:key="index" wx:for-item="item" wx:for-index="index" data-item="{{item}}" bind:tap="jumpDetails" > <view class="amountClick"> <t-icon name="browse" size="15" data-name="{{item}}" bind:click="goBack" /> <view style="margin-left: 5rpx;">{{item.viewCount}}</view> <t-icon name="browse" size="15" data-name="{{item}}" bind:click="goBack" /> <view style="margin-left: 5rpx">{{item.viewCount}}</view> </view> <view class="imageBox"> <image src="{{item.icon ? item.icon : '/static/images/default-book-img.png'}}" mode="" /> <image src="{{item.icon ? item.icon : '/static/images/default-book-img.png'}}" mode="" /> </view> <view class="bookName">{{item.name}}</view> <view class="information"> @@ -58,5 +105,4 @@ </view> </scroll-view> </view> </view> </view> pages/digitalTextbooks/index.wxss
@@ -9,6 +9,10 @@ height: 100%; } .back-icon { width: 48rpx; height: 100%; } .nacigationBar { display: flex; @@ -38,7 +42,8 @@ .dropdown { z-index: 1; width: 29vw; box-shadow: 0px 3px 10px 1px rgba(0, 0, 0, 0.1); /* box-shadow: 0px 3px 10px 1px rgba(0, 0, 0, 0.1); */ box-shadow: -2px 2px 7px -4px rgba(0, 0, 0, 0.1); } .t-dropdown-menu__item--active, @@ -46,6 +51,11 @@ .t-checkbox__icon--checked { color: #FF6C00 !important } .t-dropdown-menu:after { height: 0 !important; } .t-tabs__item--active { color: #FF6C00 !important; @@ -90,9 +100,16 @@ margin-left: 15px; width: 200rpx; height: 36rpx; font-family: "JDLANGZHENGTI"; /*宽 3.7 高1 */ } .titleTextBox view { font-size: 32rpx; } .titleTextBox image { width: 100%; height: 100%; pages/home/home.wxml
@@ -1,22 +1,65 @@ <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="/static/images/home/home-bg.png" mode="heightFix" class="image" /> <image src="/static/images/home/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="navToSearchPage" /> <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="navToSearchPage" /> </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"> <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" > <view class="swiperItem"> <image src="{{item.value}}" mode="widthFix" class="img" /> </view> @@ -25,36 +68,78 @@ </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:for="{{specialSubjectList}}" wx:for-item="item" wx:for-index="index" wx:key="index" class="listItemBox"> <view class="listItem" bindtap="goSubjectDetail" data-book="{{item}}"> <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> @@ -62,7 +147,11 @@ </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> @@ -70,16 +159,39 @@ </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> @@ -95,35 +207,77 @@ </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"> <image src="{{item.icon}}" mode="aspectFill" class="img" /> <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 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> @@ -137,7 +291,11 @@ <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> @@ -145,8 +303,18 @@ </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> @@ -159,28 +327,64 @@ </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> @@ -193,17 +397,37 @@ </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> @@ -219,4 +443,4 @@ </t-pull-down-refresh> </view> <import src="home.skeleton.wxml" /> <template is="skeleton" wx:if="{{loading}}" /> <template is="skeleton" wx:if="{{loading}}" /> pages/retrievalPage/index.js
@@ -559,6 +559,33 @@ } }); }, openBookFair(event) { const item = event.currentTarget.dataset.item if (item.fileType == "pdf") { wx.navigateTo({ url: "/packageBookService/pages/components/webView/index?md5=" + item.freeFile + "&fileName=" + item.name + "&fileType=" + item.fileType + "&bookBuy=true" // "&freePage=" + // this.data.fileInfo.freePage + + "&bookId=" + item.id, }); } else { Toast({ context: this, selector: '#t-toast', message: '此书不能查看', theme: 'warning', direction: 'column', }); } }, onSearchSubmit() { this.setData({ loading: true, pages/retrievalPage/index.wxml
@@ -4,7 +4,12 @@ <view class="outsideRetrievalPageBox" hidden="{{hidden}}"> <view class="retrievalPageBox"> <view class="example-search"> <t-search bind:submit="onSearchSubmit" class="searchBox" model:value="{{searchVal}}" placeholder="请输入关键词/书名/ISBN/作者" /> <t-search bind:submit="onSearchSubmit" class="searchBox" model:value="{{searchVal}}" placeholder="请输入关键词/书名/ISBN/作者" /> <view class="cancellation" bind:tap="onCancellation">取消</view> </view> </view> @@ -12,31 +17,68 @@ <!-- Tab布局 --> <scroll-view scroll-x="{{true}}" class="scroll-x"> <view class="navBox"> <view class="titleBox" wx:for="{{tabList}}" bindtap="tabsOn" data-idx="{{item.index}}"> <view class="titleBox" wx:for="{{tabList}}" bindtap="tabsOn" data-idx="{{item.index}}" > <view class="tabIndexBox"> <text class="{{item.index == tabsId ? 'fontColorBox' : ''}}">{{item.title}} ({{item.bookTotal}}) </text> <text class="{{item.index == tabsId ? 'fontColorBox' : ''}}" >{{item.title}} ({{item.bookTotal}}) </text> </view> <hr class="{{item.index == tabsId ? 'lineBox' : ''}}" /> </view> </view> </scroll-view> <!-- 内容布局 --> <swiper class="swiperTtemBox" bindchange="slideOn" current="{{tabsId}}" circular> <swiper class="swiperTtemBox" bindchange="slideOn" current="{{tabsId}}" circular > <!-- circular 启用循环滑动 --> <swiper-item> <scroll-view scroll-y="{{true}}" class="scrollViewBox" bindscrolltolower="onScrollToLower"> <scroll-view scroll-y="{{true}}" class="scrollViewBox" bindscrolltolower="onScrollToLower" > <view class="bookDataBox"> <view class="bookDataForBox" wx:for="{{bookData}}" wx:key="index" wx:for-item="item" wx:for-index="index" data-item="{{item}}" bind:tap="onBook"> <view class="bookDataForBox" wx:for="{{bookData}}" wx:key="index" wx:for-item="item" wx:for-index="index" data-item="{{item}}" bind:tap="onBook" > <view class="imageBox"> <image wx:if="{{item.icon}}" src="{{item.icon}}" mode="aspectFit" /> <image wx:if="{{!item.icon}}" src="/static/images/default-book-img.png" mode="" /> <image wx:if="{{item.icon}}" src="{{item.icon}}" mode="aspectFit" /> <image wx:if="{{!item.icon}}" src="/static/images/default-book-img.png" mode="" /> </view> <view class="bookDataNmae"> {{item.name}} </view> <view class="bookDataAuthor">{{item.author}}</view> </view> </view> <view wx:if="{{bookData.length}}" class="bottom-box"> <t-loading theme="circular" size="40rpx" class="wrapper" wx:if="{{isMore == true}}" /> <t-loading theme="circular" size="40rpx" class="wrapper" wx:if="{{isMore == true}}" /> <text wx:if="{{isMore == false}}">没有更多了</text> </view> <view wx:if="{{bookData.length <= 0}}" class="noDataBox"> @@ -46,11 +88,27 @@ </scroll-view> </swiper-item> <swiper-item> <scroll-view scroll-y="{{true}}" class="scrollViewBox" bindscrolltolower="onScrollToLower"> <scroll-view scroll-y="{{true}}" class="scrollViewBox" bindscrolltolower="onScrollToLower" > <view class="listBox1"> <view> <view wx:for="{{courseData}}" wx:for-item="item" wx:for-index="index" wx:key="index" bindtap="toList" data-info="{{item}}" class="listItemBox"> <view class="listItem flex" data-item="{{item}}" bind:tap="underConstruction"> <view wx:for="{{courseData}}" wx:for-item="item" wx:for-index="index" wx:key="index" bindtap="toList" data-info="{{item}}" class="listItemBox" > <view class="listItem flex" data-item="{{item}}" bind:tap="underConstruction" > <view class="specialSubject-img-box"> <image src="{{item.icon}}" mode="aspectFill" /> </view> @@ -61,9 +119,17 @@ <text>{{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 src="/static/images/home/home-cart.png" mode="aspectFill" class="addCartImg" /> <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="aspectFill" class="addCartImg" /> </view> </view> </view> @@ -71,7 +137,12 @@ </view> </view> <view wx:if="{{courseData.length != 0}}" class="bottom-box"> <t-loading theme="circular" size="40rpx" class="wrapper" wx:if="{{isMore == true}}" /> <t-loading theme="circular" size="40rpx" class="wrapper" wx:if="{{isMore == true}}" /> <text wx:if="{{isMore == false}}">没有更多了</text> </view> <view wx:if="{{courseData.length <= 0}}" class="noDataBox"> @@ -79,12 +150,23 @@ <empty /> </view> </scroll-view> </swiper-item> <swiper-item> <scroll-view scroll-y="{{true}}" class="scrollViewBox" bindscrolltolower="onScrollToLower"> <scroll-view scroll-y="{{true}}" class="scrollViewBox" bindscrolltolower="onScrollToLower" > <view class="bookDataBox"> <view class="bookDataForBox" wx:for="{{digitalTextbooksData}}" wx:key="index" wx:for-item="item" wx:for-index="index" data-item="{{item}}" bind:tap="underConstruction"> <view class="bookDataForBox" wx:for="{{digitalTextbooksData}}" wx:key="index" wx:for-item="item" wx:for-index="index" data-item="{{item}}" bind:tap="underConstruction" > <view class="imageBox"> <image src="{{item.icon}}" mode="" /> </view> @@ -94,7 +176,12 @@ </view> <view wx:if="{{digitalTextbooksData.length != 0}}" class="bottom-box"> <t-loading theme="circular" size="40rpx" class="wrapper" wx:if="{{isMore == true}}" /> <t-loading theme="circular" size="40rpx" class="wrapper" wx:if="{{isMore == true}}" /> <text wx:if="{{isMore == false}}">没有更多了</text> </view> <view wx:if="{{digitalTextbooksData.length <= 0}}" class="noDataBox"> @@ -102,32 +189,64 @@ <empty /> </view> </scroll-view> </swiper-item> <swiper-item> <scroll-view scroll-y="{{true}}" class="scrollViewBox" bindscrolltolower="onScrollToLower"> <scroll-view scroll-y="{{true}}" class="scrollViewBox" bindscrolltolower="onScrollToLower" > <view class="listBox"> <view wx:for="{{seminarData}}" wx:for-item="item" wx:for-index="index" wx:key="index" class="listItemBox" data-item="{{item}}" bind:tap="underConstruction"> <view class="listItem" bindtap="goSubjectDetail" data-book="{{item}}"> <view wx:for="{{seminarData}}" wx:for-item="item" wx:for-index="index" wx:key="index" class="listItemBox" data-item="{{item}}" bind:tap="underConstruction" > <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> </view> </view> <view wx:if="{{seminarData.length != 0}}" class="bottom-box"> <t-loading theme="circular" size="40rpx" class="wrapper" wx:if="{{isMore == true}}" /> <t-loading theme="circular" size="40rpx" class="wrapper" wx:if="{{isMore == true}}" /> <text wx:if="{{isMore == false}}">没有更多了</text> </view> <view wx:if="{{seminarData.length <= 0}}" class="noDataBox"> @@ -135,18 +254,46 @@ <empty /> </view> </scroll-view> </swiper-item> <swiper-item> <scroll-view scroll-y="{{true}}" class="scrollViewBox" bindscrolltolower="onScrollToLower"> <scroll-view scroll-y="{{true}}" class="scrollViewBox" bindscrolltolower="onScrollToLower" > <view class="outsideHigherBox"> <view class="higherBox" wx:for="{{bookFairData}}" wx:key="index" wx:for-item="item" wx:for-index="index"> <view class="higherBox" wx:for="{{bookFairData}}" wx:key="index" wx:for-item="item" wx:for-index="index" > <view class="outsideHigherImageBox"> <view class="higherImageBox" data-item="{{item}}"> <image bind:tap="downloadData" src="{{item.icon}}" mode="aspectFill" /> <view class="downloadIcon" data-item="{{item}}" data-key="showWithInput" bind:tap="mailbox"> <image wx:if="{{determine}}" class="download" src="/static/images/bibliographyList/email-click.png" mode="aspectFit" /> <image wx:else="" class="downloadshiftin" src="/static/images/bibliographyList/email.png" mode="aspectFit" /> <view class="higherImageBox" bind:tap="openBookFair" data-item="{{item}}" > <image src="{{item.icon}}" mode="aspectFill" /> <view class="downloadIcon" data-item="{{item}}" data-key="showWithInput" bind:tap="mailbox" > <image wx:if="{{determine}}" class="download" src="/static/images/bibliographyList/email-click.png" mode="aspectFit" /> <image wx:else="" class="downloadshiftin" src="/static/images/bibliographyList/email.png" mode="aspectFit" /> </view> </view> </view> @@ -155,7 +302,12 @@ </view> <view wx:if="{{bookFairData.length != 0}}" class="bottom-box"> <t-loading theme="circular" size="40rpx" class="wrapper" wx:if="{{isMore == true}}" /> <t-loading theme="circular" size="40rpx" class="wrapper" wx:if="{{isMore == true}}" /> <text wx:if="{{isMore == false}}">没有更多了</text> </view> <view wx:if="{{bookFairData.length <= 0 }}" class="noDataBox"> @@ -165,31 +317,80 @@ </scroll-view> </swiper-item> <swiper-item> <scroll-view scroll-y="{{true}}" class="scrollViewBox" bindscrolltolower="onScrollToLower"> <scroll-view scroll-y="{{true}}" class="scrollViewBox" bindscrolltolower="onScrollToLower" > <view class="outside"> <view class="contentBox" wx:for="{{biblioClassificationData}}" wx:key="index" wx:for-item="item" wx:for-index="index" bindtap="onBookExhibitionDetails" data-item="{{item}}"> <image class="bookFairImage" wx:if="{{item.icon}}" src="{{item.icon}}" mode="" /> <image class="bookFairImage" wx:else="" src="/static/images/bookExhibitionList/banner.png" mode="" /> <view class="contentBox" wx:for="{{biblioClassificationData}}" wx:key="index" wx:for-item="item" wx:for-index="index" bindtap="onBookExhibitionDetails" data-item="{{item}}" > <image class="bookFairImage" wx:if="{{item.icon}}" src="{{item.icon}}" mode="" /> <image class="bookFairImage" wx:else="" src="/static/images/bookExhibitionList/banner.png" mode="" /> <view class="textBox" title="{{item.name}}"> <text>{{item.subtitleName}}</text> </view> </view> </view> <view wx:if="{{biblioClassificationData.length != 0}}" class="bottom-box"> <t-loading theme="circular" size="40rpx" class="wrapper" wx:if="{{isMore == true}}" /> <view wx:if="{{biblioClassificationData.length != 0}}" class="bottom-box" > <t-loading theme="circular" size="40rpx" class="wrapper" wx:if="{{isMore == true}}" /> <text wx:if="{{isMore == false}}">没有更多了</text> </view> <view wx:if="{{biblioClassificationData.length <= 0}}" class="noDataBox"> <view wx:if="{{biblioClassificationData.length <= 0}}" class="noDataBox" > <!-- <t-empty icon="folder-open" description="暂无数据" /> --> <empty /> </view> </scroll-view> </swiper-item> </swiper> <view class="dialogBox"> <t-dialog visible="{{showWithInput}}" title="请输入邮箱" confirm-btn="确定" cancel-btn="取消" bind:confirm="onConfirm" bind:cancel="closeDialog"> <t-input model:value="{{input}}" borderless class="dialog-input" clearable slot="content" placeholder="请输入邮箱号" placeholder-class="placeholder" bindchange="onEmailInput" /> </t-dialog> </view> </view> </view> <view class="dialogBox" wx:if="{{showWithInput}}"> <t-dialog visible="{{showWithInput}}" title="请输入邮箱" confirm-btn="确定" cancel-btn="取消" bind:confirm="onConfirm" bind:cancel="closeDialog" > <t-input model:value="{{input}}" borderless class="dialog-input" clearable slot="content" placeholder="请输入邮箱号" placeholder-class="placeholder" bindchange="onEmailInput" /> </t-dialog> </view> </view> pages/retrievalPage/index.wxss
@@ -253,7 +253,7 @@ } .outsideRetrievalPageBox { /* position: relative; */ position: relative; } .retrievalPageBox { @@ -350,9 +350,14 @@ color: #ff6d00; } /* .dialogBox .t-input__control { min-height: 100rpx; } */ .dialogBox { position: absolute; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 999999; } .t-button--text { color: #000 !important; static/images/digitalTextbooks/chevron-left.png