| | |
| | | <view class="pubCss"> |
| | | <view class="title">班级通知</view> |
| | | <view class="notice" wx:if="{{noticeList.length > 0}}"> |
| | | <view class="notice-title" wx:for="{{noticeList}}" wx:key="index">{{item.name}}</view> |
| | | <view class="notice-title" wx:for="{{noticeList}}" wx:key="index"> |
| | | <view class="notice-content">{{item.name}}:{{item.content}}</view> |
| | | </view> |
| | | </view> |
| | | <view class="noData" wx:else> |
| | | <empty /> |
| | |
| | | font-size: 26rpx; |
| | | } |
| | | |
| | | .notice-content { |
| | | line-height: 48rpx; |
| | | } |
| | | |
| | | .noData { |
| | | display: flex; |
| | | justify-content: center; |
| | |
| | | cmsPath: data.productLinkPath |
| | | }) |
| | | .then((res) => { |
| | | try { |
| | | const dataTeach = res.datas.cmsDatas[0]?.datas.find( |
| | | (item) => item.refCode == 'jsek_interaction' |
| | | ) |
| | |
| | | }) |
| | | } |
| | | }) |
| | | } catch (error) { |
| | | this.setData({ |
| | | cmsDataList: [], |
| | | loading: false |
| | | }) |
| | | } |
| | | }) |
| | | } catch (error) { |
| | | this.setData({ |
| | |
| | | }) |
| | | }, |
| | | |
| | | calendarClose() { |
| | | this.setData({ |
| | | visibleStart: false, |
| | | visibleEnd: false, |
| | | isShow: '' |
| | | }) |
| | | }, |
| | | |
| | | // 申请提交班级 |
| | | submitClass() { |
| | | const bTime = moment(this.data.startTime).valueOf() |
| | |
| | | <view class="dateBox"> |
| | | <view> |
| | | <t-input style="display:{{isShow}}" value="{{startTime}}" readonly borderless bindtap="openDateStart" placeholder="请选择开始时间" /> |
| | | <t-calendar visible="{{visibleStart}}" bind:confirm="handleConfirmStart" /> |
| | | <t-calendar visible="{{visibleStart}}" bind:confirm="handleConfirmStart" bind:close="calendarClose"/> |
| | | </view> |
| | | <view>~</view> |
| | | <view> |
| | | <t-input value="{{endTime}}" style="display:{{isShow}}" readonly borderless bindtap="openDateEnd" placeholder="请选择结束时间" /> |
| | | <t-calendar visible="{{visibleEnd}}" bind:confirm="handleConfirmEnd" /> |
| | | <t-calendar visible="{{visibleEnd}}" bind:confirm="handleConfirmEnd" bind:close="calendarClose"/> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | } |
| | | } |
| | | item.questionTypeList = item.questionTypeList.filter((item) => item.data.length > 0) |
| | | if (!item.userName) { |
| | | item.userName = '-' |
| | | } |
| | | newData.push(item) |
| | | } |
| | | return newData.filter((item) => item.questionTypeList.length > 0) |
| | |
| | | </view> |
| | | <view class="block-question"> |
| | | <view class="block-question-list" wx:for="{{dialogList}}" wx:key="index"> |
| | | <view class="block-question-user">答题人:{{ item.userNme }}</view> |
| | | <view class="block-question-user">答题人:{{ item.userName }}</view> |
| | | <questionDom wx:if="{{item.questionTypeList.length > 0}}" questionList="{{item.questionTypeList}}" noCheckbox="{{false}}" is-preview="{{true}}" /> |
| | | </view> |
| | | </view> |