| | |
| | | <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> |
| | |
| | | /* pages/bookServices/detail/components/note/note.wxss */ |
| | | |
| | | .note { |
| | | height: 100%; |
| | | } |
| | | |
| | | .popup { |
| | | padding: 40rpx; |
| | | width: 600rpx; |
| | | } |
| | | |
| | | |
| | | .note-btn { |
| | | height: 140rpx; |
| | |
| | | } |
| | | |
| | | .bottom-box { |
| | | margin-top: 100rpx; |
| | | display: flex; |
| | | justify-content: center; |
| | | } |
| | |
| | | align-items: center; |
| | | justify-content: center; |
| | | color: #fff; |
| | | background-color: #F14B3B; |
| | | } |
| | | |
| | | .shopCarColor { |
| | |
| | | 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) |
| | | } |
| | | } |
| | | } |
| | |
| | | }) |
| | | }, |
| | | // 批改题目 (练习,我的错题,我的收藏,,组卷) |
| | | handleQuestion(num) { |
| | | handleQuestion(index) { |
| | | const questionList = this.data.questionDataList |
| | | const index = num |
| | | if (questionList[index].isComplete) { |
| | | // 题目已完成,跳过 |
| | | return true |
| | |
| | | <view |
| | | wx:if="{{item.optionStyle == 'TxtAndImage'}}" |
| | | class="fl-center" |
| | | style="height: min-content" |
| | | > |
| | | <text>{{contentItem.value}}、</text> |
| | | <text class="radio-textimg">{{contentItem.txt}}</text> |
| | |
| | | <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 |
| | |
| | | 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" |
| | |
| | | } |
| | | |
| | | .radio-item { |
| | | max-height: 300rpx; |
| | | padding: 0 32rpx; |
| | | min-height: 98rpx; |
| | | display: flex; |
| | |
| | | |
| | | .radio-textimg { |
| | | display: inline-block; |
| | | height: min-content; |
| | | width: calc(100% - 90rpx); |
| | | } |
| | | |
| | | .check-text-box { |
| | | display: inline-block; |
| | | width: calc(100% - 25px); |
| | | } |
| | |
| | | options: [], |
| | | disabled: false, |
| | | }, |
| | | disabledSecondList: false, |
| | | majorProjectList: { |
| | | value: [], |
| | | options: [], |
| | |
| | | noData: false, |
| | | showDropdown: false, |
| | | isRequesting: false, |
| | | disabledStair: false, |
| | | disabledSecondList: false, |
| | | disabledProject: false, |
| | | disabledNewForms: false, |
| | | triggered: false, |
| | | }, |
| | | /** |
| | | * 生命周期函数--监听页面加载 |
| | |
| | | * 页面相关事件处理函数--监听用户下拉动作 |
| | | */ |
| | | onPullDownRefresh() { |
| | | console.log('下拉'); |
| | | this.setData({ |
| | | triggered: true |
| | | }) |
| | | this.setData({ |
| | | 'pageCount.page': 1 |
| | | }) |
| | | this.getBookList(this.data.path); |
| | | }, |
| | | |
| | | /** |
| | |
| | | }, |
| | | // 获取一级列表 |
| | | getStairList(path) { |
| | | this.setData({ |
| | | disabledStair: false |
| | | }) |
| | | const query = { |
| | | path, |
| | | filterList: [], |
| | |
| | | 'stairList.options': options, |
| | | 'stairList.value': this.data.stairCode, |
| | | }); |
| | | if (!options.length) { |
| | | this.setData({ |
| | | disabledStair: true |
| | | }) |
| | | } |
| | | }); |
| | | }, |
| | | // 获取一级分类下二级分类 |
| | |
| | | }, |
| | | // 获取重点项目 |
| | | getProjectList(type) { |
| | | this.setData({ |
| | | disabledProject: false, |
| | | disabledNewForms: false |
| | | }) |
| | | const options = []; |
| | | const arr = []; |
| | | let array = []; |
| | |
| | | label: element.name, |
| | | }); |
| | | } |
| | | if (!options.length) { |
| | | this.setData({ |
| | | disabledProject: true |
| | | }) |
| | | } |
| | | this.setData({ |
| | | 'majorProjectList.options': options, |
| | | }); |
| | |
| | | value: element.value, |
| | | label: element.name, |
| | | }); |
| | | } |
| | | if (!options.length) { |
| | | this.setData({ |
| | | disabledNewForms: true |
| | | }) |
| | | } |
| | | this.setData({ |
| | | 'newTextBook.options': options, |
| | |
| | | }) |
| | | } |
| | | } |
| | | if (this.data.triggered) { |
| | | this.setData({ |
| | | triggered: false |
| | | }) |
| | | wx.showToast({ |
| | | title: '刷新成功', |
| | | }) |
| | | } |
| | | }); |
| | | }, |
| | | // 一级分类切换 |
| | |
| | | <view class="header-scroll"> |
| | | <t-dropdown-menu style="width: 1000rpx"> |
| | | <t-dropdown-item |
| | | disabled="{{disabledStair}}" |
| | | optionsColumns="2" |
| | | options="{{stairList.options}}" |
| | | value="{{stairList.value}}" |
| | |
| | | /> |
| | | <t-dropdown-item |
| | | label="重点项目" |
| | | disabled="{{disabledProject}}" |
| | | options="{{majorProjectList.options}}" |
| | | optionsColumns="2" |
| | | multiple |
| | |
| | | /> |
| | | <t-dropdown-item |
| | | label="新形态教材" |
| | | disabled="{{disabledNewForms}}" |
| | | options="{{newTextBook.options}}" |
| | | optionsColumns="2" |
| | | multiple |
| | |
| | | <!-- </view> --> |
| | | </view> |
| | | </view> |
| | | <t-pull-down-refresh |
| | | <!-- <t-pull-down-refresh |
| | | value="{{enable}}" |
| | | loadingProps="{{loadingProps}}" |
| | | loadingTexts="{{['下拉刷新', '松手刷新', '正在刷新', '刷新完成']}}" |
| | | bind:refresh="onRefresh" |
| | | class="down-refresh" |
| | | > |
| | | </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" |
| | | /> |
| | | </view> |
| | | </view> |
| | | <view class="assort-title"> |
| | | <view class="title-box"></view> |
| | | <view class="title-name">{{assortCheck.name}}</view> |
| | |
| | | <text wx:if="{{isMore == false}}">没有更多了</text> |
| | | </view> |
| | | </scroll-view> |
| | | </t-pull-down-refresh> |
| | | </view> |
| | | </page-meta> |
| | |
| | | .t-dropdown-item__body { |
| | | padding-bottom: 10rpx !important; |
| | | } |
| | | |
| | | .refresh-container { |
| | | margin: 0 auto; |
| | | } |