packageBookService/pages/bookServices/detail/components/note/note.wxml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
packageBookService/pages/bookServices/detail/components/note/note.wxss | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
packageBookService/pages/bookServices/detail/index.wxml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
packageBookService/pages/bookServices/detail/index.wxss | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
packageBookService/pages/bookServices/examination/examination.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
packageBookService/pages/bookServices/examination/questionList/index.wxml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
packageBookService/pages/bookServices/examination/questionList/index.wxss | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
packageBookService/pages/bookServices/list/index.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
packageBookService/pages/bookServices/list/index.wxml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
packageBookService/pages/bookServices/list/index.wxss | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
packageBookService/pages/bookServices/detail/components/note/note.wxml
@@ -53,7 +53,7 @@ <t-empty icon="folder-open" description="暂无数据" /> </view> </view> <view class="bottom-box"> <view class="bottom-box" wx:if="{{noteList.length}}"> <t-loading wx:if="{{isMore == true}}"></t-loading> <text wx:if="{{isMore == false}}">没有更多了</text> </view> packageBookService/pages/bookServices/detail/components/note/note.wxss
@@ -1,9 +1,14 @@ /* pages/bookServices/detail/components/note/note.wxss */ .note { height: 100%; } .popup { padding: 40rpx; width: 600rpx; } .note-btn { height: 140rpx; @@ -141,6 +146,7 @@ } .bottom-box { margin-top: 100rpx; display: flex; justify-content: center; } packageBookService/pages/bookServices/detail/index.wxml
@@ -173,7 +173,7 @@ <view class="shopCar shopCarColor" bind:tap="addBookShopcCar" wx:if="{{!bookBuy}}">加入购物车</view> <view class="buy buyColor" bind:tap="buyBtn" wx:if="{{!bookBuy}}">立即购买</view> <view class="buy read" bind:tap="goRead" wx:if="{{bookBuy}}">立即查看</view> <view class="buy read " bind:tap="goRead" wx:if="{{bookBuy}}">立即查看</view> </view> </view> packageBookService/pages/bookServices/detail/index.wxss
@@ -283,6 +283,7 @@ align-items: center; justify-content: center; color: #fff; background-color: #F14B3B; } .shopCarColor { packageBookService/pages/bookServices/examination/examination.js
@@ -277,8 +277,7 @@ item.userAnswer = radioChecked item.isUserAnswer = this.isHaveAnswer(radioChecked) if ((item.questionType == 'singleChoice' || item.questionType == 'judge') && (this.data.answerType == 'collectQuestion' || this.data.answerType == 'errorQuestion') && !item.isComplete) { let index = this.data.currentIndex - 1 >= 0 ? this.data.currentIndex - 1 : 0 this.handleQuestion(index) this.handleQuestion(this.data.currentIndex) } } } @@ -824,9 +823,8 @@ }) }, // 批改题目 (练习,我的错题,我的收藏,,组卷) handleQuestion(num) { handleQuestion(index) { const questionList = this.data.questionDataList const index = num if (questionList[index].isComplete) { // 题目已完成,跳过 return true packageBookService/pages/bookServices/examination/questionList/index.wxml
@@ -120,6 +120,7 @@ <view wx:if="{{item.optionStyle == 'TxtAndImage'}}" class="fl-center" style="height: min-content" > <text>{{contentItem.value}}、</text> <text class="radio-textimg">{{contentItem.txt}}</text> @@ -170,14 +171,18 @@ <t-checkbox block="{{false}}" value="{{contentItem.value}}" style="background-color:{{isNight ? '#222' :'#fff'}}; display: flex; align-items: center;" style="background-color:{{isNight ? '#222' :'#F9F9F9'}}; display: flex; align-items: center; margin-bottom: 20rpx;" > <!-- 仅文字 --> <text <view class="fl-center" wx:if="{{item.optionStyle == 'Txt'}}" style="color:{{ isNight ? '#fff' : '#000'}};font-size:{{sliderValue || 32}}rpx;" >{{contentItem.value}}、{{contentItem.txt}}</text > <text>{{contentItem.value}}、</text> <text class="check-text-box">{{contentItem.txt}}</text> </view> <!-- 仅图片 --> <view wx:if="{{item.optionStyle == 'Image'}}" class="fl-center"> <text @@ -237,6 +242,12 @@ style="background-color:{{isNight ? '#000' : '#fff'}}; " /> </view> <!-- 我的错题模式下,查看解析按钮 --> <view wx:if="{{(answerType == 'collectQuestion' || answerType == 'errorQuestion') && (item.questionType == 'multipleChoice' || item.questionType == 'completion' || item.questionType == 'shortAnswer')}}" > 查看解析 </view> <!-- 单选、多选解析 --> <view class="analysis" packageBookService/pages/bookServices/examination/questionList/index.wxss
@@ -48,6 +48,7 @@ } .radio-item { max-height: 300rpx; padding: 0 32rpx; min-height: 98rpx; display: flex; @@ -246,5 +247,11 @@ .radio-textimg { display: inline-block; height: min-content; width: calc(100% - 90rpx); } .check-text-box { display: inline-block; width: calc(100% - 25px); } packageBookService/pages/bookServices/list/index.js
@@ -34,7 +34,6 @@ options: [], disabled: false, }, disabledSecondList: false, majorProjectList: { value: [], options: [], @@ -54,6 +53,11 @@ noData: false, showDropdown: false, isRequesting: false, disabledStair: false, disabledSecondList: false, disabledProject: false, disabledNewForms: false, triggered: false, }, /** * 生命周期函数--监听页面加载 @@ -135,7 +139,13 @@ * 页面相关事件处理函数--监听用户下拉动作 */ onPullDownRefresh() { console.log('下拉'); this.setData({ triggered: true }) this.setData({ 'pageCount.page': 1 }) this.getBookList(this.data.path); }, /** @@ -173,6 +183,9 @@ }, // 获取一级列表 getStairList(path) { this.setData({ disabledStair: false }) const query = { path, filterList: [], @@ -202,6 +215,11 @@ 'stairList.options': options, 'stairList.value': this.data.stairCode, }); if (!options.length) { this.setData({ disabledStair: true }) } }); }, // 获取一级分类下二级分类 @@ -239,6 +257,10 @@ }, // 获取重点项目 getProjectList(type) { this.setData({ disabledProject: false, disabledNewForms: false }) const options = []; const arr = []; let array = []; @@ -264,6 +286,11 @@ label: element.name, }); } if (!options.length) { this.setData({ disabledProject: true }) } this.setData({ 'majorProjectList.options': options, }); @@ -274,6 +301,11 @@ value: element.value, label: element.name, }); } if (!options.length) { this.setData({ disabledNewForms: true }) } this.setData({ 'newTextBook.options': options, @@ -367,6 +399,14 @@ }) } } if (this.data.triggered) { this.setData({ triggered: false }) wx.showToast({ title: '刷新成功', }) } }); }, // 一级分类切换 packageBookService/pages/bookServices/list/index.wxml
@@ -25,6 +25,7 @@ <view class="header-scroll"> <t-dropdown-menu style="width: 1000rpx"> <t-dropdown-item disabled="{{disabledStair}}" optionsColumns="2" options="{{stairList.options}}" value="{{stairList.value}}" @@ -44,6 +45,7 @@ /> <t-dropdown-item label="重点项目" disabled="{{disabledProject}}" options="{{majorProjectList.options}}" optionsColumns="2" multiple @@ -53,6 +55,7 @@ /> <t-dropdown-item label="新形态教材" disabled="{{disabledNewForms}}" options="{{newTextBook.options}}" optionsColumns="2" multiple @@ -80,67 +83,84 @@ <!-- </view> --> </view> </view> <t-pull-down-refresh <!-- <t-pull-down-refresh value="{{enable}}" loadingProps="{{loadingProps}}" loadingTexts="{{['下拉刷新', '松手刷新', '正在刷新', '刷新完成']}}" bind:refresh="onRefresh" class="down-refresh" > <scroll-view scroll-y="{{true}}" class="list-container" bindrefresherrefresh="onPullDownRefresh" bindscrolltolower="onReachBottom" > <view class="assort-title"> <view class="title-box"></view> <view class="title-name">{{assortCheck.name}}</view> </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-img"> <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> </view> <view wx:if="{{noData}}" class="noData"> <t-empty icon="folder-open" description="暂无数据" /> </view> </view> <!-- loading --> <view class="loading-box" wx:if="{{loaidng}}"> <t-loading theme="circular" size="60rpx" class="wrapper" loading="{{loaidng}}" wx:if="{{loaidng}}" /> </view> </view> <view class="bottom-box"> </t-pull-down-refresh> --> <scroll-view scroll-y="{{true}}" refresher-enabled="{{true}}" lower-threshold="{{200}}" refresher-threshold="{{80}}" refresher-default-style="none" refresher-triggered="{{triggered}}" bindrefresherrefresh="onPullDownRefresh" bindrefresherpulling="{{refresh.onPulling}}" class="list-container" bindrefresherrefresh="onPullDownRefresh" bindscrolltolower="onReachBottom" > <view slot="refresher" class="refresh-container"> <view class="loading"> <t-loading theme="circular" size="40rpx" text="正在刷新..." class="wrapper" wx:if="{{isMore == true}}" /> <text wx:if="{{isMore == false}}">没有更多了</text> </view> </scroll-view> </t-pull-down-refresh> </view> <view class="assort-title"> <view class="title-box"></view> <view class="title-name">{{assortCheck.name}}</view> </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-img"> <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> </view> <view wx:if="{{noData}}" class="noData"> <t-empty icon="folder-open" description="暂无数据" /> </view> </view> <!-- loading --> <view class="loading-box" wx:if="{{loaidng}}"> <t-loading theme="circular" size="60rpx" class="wrapper" loading="{{loaidng}}" wx:if="{{loaidng}}" /> </view> </view> <view class="bottom-box"> <t-loading theme="circular" size="40rpx" class="wrapper" wx:if="{{isMore == true}}" /> <text wx:if="{{isMore == false}}">没有更多了</text> </view> </scroll-view> </view> </page-meta> packageBookService/pages/bookServices/list/index.wxss
@@ -248,4 +248,8 @@ .t-dropdown-item__body { padding-bottom: 10rpx !important; } .refresh-container { margin: 0 auto; }