| | |
| | | }, |
| | | courseLoading: true, |
| | | classLoading: false, |
| | | showContentOnly: false, |
| | | reason: '', |
| | | // 加载参数 |
| | | bottomLoading: false, |
| | | isMoreData: false, |
| | |
| | | title: '基本信息', |
| | | }) |
| | | this.getData() |
| | | }, |
| | | |
| | | |
| | | showDialog(e) { |
| | | const { |
| | | item |
| | | } = e.currentTarget.dataset; |
| | | const str = item.reason ? item.reason : '-' |
| | | this.setData({ |
| | | showContentOnly: true, |
| | | reason: str |
| | | }); |
| | | }, |
| | | |
| | | closeDialog() { |
| | | this.setData({ |
| | | showContentOnly: false |
| | | }); |
| | | }, |
| | | |
| | | // 获取课程信息 |
| | |
| | | classId, |
| | | item |
| | | } = e.currentTarget.dataset |
| | | if (item.applyState == 'WaitAudit' || item.applyState == 'Reject') { |
| | | if (item.applyState == 'WaitAudit') { |
| | | wx.showToast({ |
| | | title: item.applyState == 'WaitAudit' ? '审核中' : '未通过', |
| | | title: '审核中', |
| | | duration: 1000, |
| | | icon: 'none', |
| | | }) |
| | | return false |
| | | } |
| | | if (item.applyState == 'Reject') { |
| | | return false |
| | | } |
| | | wx.navigateTo({ |
| | | url: '/packageCourse/pages/teachClass/index?classId=' + classId + '&courseId=' + this.data.courseId + '&author=' + this.data.bookData.author + '&isbn=' + this.data.bookData.isbn + '&bookId=' + this.data.bookData.id + '&rootCmsItemId=' + this.data.bookData.rootCmsItemId + "&bookRefCode=" + this.data.defaultCmsPath, |
| | | }) |
| | |
| | | "t-back-top": "tdesign-miniprogram/back-top/back-top", |
| | | "empty": "/components/empty/index", |
| | | "t-skeleton": "tdesign-miniprogram/skeleton/skeleton", |
| | | "t-loading": "tdesign-miniprogram/loading/loading" |
| | | "t-loading": "tdesign-miniprogram/loading/loading", |
| | | "t-dialog": "tdesign-miniprogram/dialog/dialog" |
| | | } |
| | | } |
| | |
| | | <text class="classTag" wx:if="{{item.applyState == 'Normal'}}" style="color: #1dbd11">状态: 进行中</text> |
| | | <text class="classTag" wx:if="{{item.applyState == 'Reject'}}" style="color: red">状态: 未通过</text> |
| | | <t-icon bindtap="delClass" data-del-id="{{item.id}}" class="delete" wx:if="{{item.applyState == 'Reject'}}" name="delete" color="red" size='18px' /> |
| | | <text class="classTag" wx:if="{{item.applyState == 'Reject'}}" style="color: red">拒绝原因:{{ item.reason != '' ? item.reason : '-' }}</text> |
| | | <view wx:if="{{item.applyState == 'Reject'}}" class="reason"> |
| | | <text> 拒绝原因:</text> |
| | | <t-tag style="margin-left: 0;" bind:tap="showDialog" data-item="{{item}}" class="margin-16 replay" theme="danger">点击查看</t-tag> |
| | | </view> |
| | | <!-- <text class="classTag" wx:if="{{item.applyState == 'Reject'}}" style="color: red">拒绝原因:{{ item.reason != '' ? item.reason : '-' }}</text> --> |
| | | <text class="classTag">班级人数: {{ item.memberCount }} / {{ item.maxUserCount }}</text> |
| | | <text class="classTag">有效期:{{ item.beginDate }} - {{ item.endDate }}</text> |
| | | </view> |
| | |
| | | </view> |
| | | </view> |
| | | </t-popup> |
| | | <t-dialog visible="{{showContentOnly}}" bind:confirm="closeDialog" close-on-overlay-click> |
| | | <view slot="content" class="reasonContent"> |
| | | {{reason}} |
| | | </view> |
| | | <view slot="confirm-btn" style="width: 100%;"> |
| | | <t-button style="color: #ff6d00;border-top: 1px solid #eee ;" variant="text" bindtap="closeDialog" size="large" block t-class="external-class">知道了</t-button> |
| | | </view> |
| | | </t-dialog> |
| | | </view> |
| | | </view> |
| | | <view class="tabbar-bottom"> |
| | |
| | | font-weight: 700; |
| | | } |
| | | |
| | | .replay { |
| | | margin-left: 20rpx; |
| | | background-color: red !important; |
| | | border: 0 !important; |
| | | } |
| | | |
| | | .reason { |
| | | margin-bottom: 10rpx; |
| | | } |
| | | |
| | | .reasonContent { |
| | | color: #666; |
| | | font-size: 26rpx; |
| | | line-height: 44rpx; |
| | | } |
| | | |
| | | .external-class { |
| | | border-radius: 0 !important; |
| | | } |
| | | |
| | | .statics { |
| | | width: 100%; |
| | | margin-bottom: 40rpx; |
| | |
| | | top: 55px !important |
| | | } |
| | | |
| | | .classBox .t-dialog { |
| | | border: 1rpx solid #eee; |
| | | } |
| | | |
| | | .block-title { |
| | | padding: 30rpx 20rpx; |
| | | font-size: 30rpx; |
| | |
| | | {{item.reason}} |
| | | </view> |
| | | <view slot="confirm-btn" style="width: 100%;"> |
| | | <t-button theme="primary" variant="text" bindtap="closeDialog" size="large" block t-class="external-class">知道了</t-button> |
| | | <t-button style="color: #ff6d00;border-top: 1px solid #eee;" variant="text" bindtap="closeDialog" size="large" block t-class="external-class">知道了</t-button> |
| | | </view> |
| | | </t-dialog> |
| | | </view> |
| | |
| | | <text class="classTag" wx:if="{{item.userState == 'WaitValid'}}" style="color: #ef9f29">状态 : 审核中</text> |
| | | <text class="classTag" wx:if="{{item.userState == 'Normal'}}" style="color: #1dbd11">状态 : 进行中</text> |
| | | <text class="classTag" wx:if="{{item.userState == 'Reject'}}" style="color: red">状态 : 未通过</text> |
| | | <t-icon bindtap="delClass" data-del-id="{{item.id}}" class="delete" wx:if="{{item.userState == 'Reject'}}" name="delete" color="red" size='18px' /> |
| | | <!-- <t-icon bindtap="delClass" data-del-id="{{item.id}}" class="delete" wx:if="{{item.userState == 'Reject'}}" name="delete" color="red" size='18px' /> --> |
| | | <text class="classTag" wx:if="{{item.userState == 'Reject'}}" style="color: red">拒绝原因:{{ item.reason != '' ? item.reason : '-' }}</text> |
| | | <text class="classTag">班级人数 : {{ item.memberCount }} / {{ item.maxUserCount }}</text> |
| | | <text class="classTag">有效期 :{{ item.classTime }}</text> |
| | | </view> |
| | | </view> |
| | | |
| | | </view> |
| | | <view class="bottom-loading" wx:if="{{bottomLoading}}"> |
| | | <t-loading theme="circular" size="40rpx" text="加载中..." class="wrapper" /> |
| | | </view> |
| | | <view class="bottom-loading" style="color: #ccc;font-size: 28rpx;" wx:if="{{isMoreData}}"> |
| | | <text>没有更多了</text> |
| | | <view class="bottom-loading" wx:if="{{bottomLoading}}"> |
| | | <t-loading theme="circular" size="40rpx" text="加载中..." class="wrapper" /> |
| | | </view> |
| | | <view class="bottom-loading" style="color: #ccc;font-size: 28rpx;" wx:if="{{isMoreData}}"> |
| | | <text>没有更多了</text> |
| | | </view> |
| | | </view> |
| | | </scroll-view> |
| | | </view> |