From c99f9976a5ef9d8974105feb8fc0580a10adf98c Mon Sep 17 00:00:00 2001 From: QYF-GitLab1 <1940665526@qq.com> Date: 星期一, 23 十二月 2024 14:58:49 +0800 Subject: [PATCH] 111 --- packageBookService/pages/bookServices/detail/components/learnTask/index.wxml | 38 ++++++++++++++++++++++++++------------ 1 files changed, 26 insertions(+), 12 deletions(-) diff --git a/packageBookService/pages/bookServices/detail/components/learnTask/index.wxml b/packageBookService/pages/bookServices/detail/components/learnTask/index.wxml index 86e10c6..0f71b75 100644 --- a/packageBookService/pages/bookServices/detail/components/learnTask/index.wxml +++ b/packageBookService/pages/bookServices/detail/components/learnTask/index.wxml @@ -15,7 +15,7 @@ <view class="from-item"> <view class="label"> <text class="icon">*</text>瀛︽牎锛� </view> <view class="item-content"> - <t-input placeholder="杈撳鏍″悕绉�" borderless value="{{school}}" type="number" bindchange="onSchoolInput" disabled="{{disabled}}" /> + <t-input placeholder="杈撳鏍″悕绉�" borderless value="{{school}}" bindchange="onSchoolInput" disabled="{{disabled}}" /> </view> </view> <view class="from-item"> @@ -46,16 +46,26 @@ <view class="item-box" wx:if="{{menuList.length > 0 && !loading}}"> <view wx:for="{{menuList}}" wx:for-item="item" wx:for-index="index" wx:key="id" class="item"> <view class="itemCon"> - <view> + <div wx:if="{{!item.children}}" class="noChild"></div> + <view wx:if="{{item.children}}"> + <t-icon name="chevron-down" size="48rpx" data-name="chevron-down" /> </view> - <view bind:tap="getTask" data-item="{{item}}">{{ item.name }}</view> + <view bind:tap="getTask" data-item="{{item}}" class="itemName">{{ item.name }}</view> </view> <view class="childBox" wx:if="{{item.children}}"> <view wx:for="{{item.children}}" wx:for-item="item1" wx:for-index="index" wx:key="id" class="item"> - <view bind:tap="getTask" data-item="{{item}}">{{ item1.name }}</view> + <view bind:tap="getTask" data-item="{{item1}}" class="itemName">{{ item1.name }}</view> </view> </view> </view> + </view> + <view wx:else style="width: 100%; height: min-content;margin-top:40rpx"> + <t-skeleton + row-col="{{rowCol}}" + theme="paragraph" + animation="gradient" + loading="{{loading}}" + ></t-skeleton> </view> </view> <view class="popupBox"> @@ -98,7 +108,7 @@ <view class="box-list" wx:if="{{consumer == 'classmate' || !consumer}}"> <view class="lable">鍚屼即璇�:</view> <view class="inputBox"> - <t-textarea placeholder="璇疯緭鍏ヨ瘎浠�" value="{{item.mateEvaluation}}" disableDefaultPadding="{{true}}" autosize="{{autosize}}" bindchange="onMateInput" data-index="{{index}}" wx:if="{{consumer == 'classmate'}}" /> + <t-textarea placeholder="璇疯緭鍏ヨ瘎浠�" value="{{item.mateEvaluation}}" disableDefaultPadding="{{true}}" autosize="{{autosize}}" bindchange="onMateInput" data-index="{{index}}" wx:if="{{consumer == 'classmate' && !evaluated}}" /> <view wx:if="{{isUpdate && item.mateEvaluation.length > 0}}" class="rateList"> <view wx:for="{{item.mateEvaluation}}" wx:for-item="mateItem" wx:key="index" class="li"> <view class="userName">{{ mateItem.userName }}</view> @@ -111,7 +121,7 @@ <view class="box-list" wx:if="{{consumer == 'teacher' || !consumer}}"> <view class="lable">鑰佸笀璇�:</view> <view class="inputBox"> - <t-textarea placeholder="璇疯緭鍏ヨ瘎浠�" value="{{item.teacherEvaluation}}" disableDefaultPadding="{{true}}" autosize="{{autosize}}" bindchange="onTeacherInput" data-index="{{index}}" wx:if="{{consumer == 'teacher'}}" /> + <t-textarea placeholder="璇疯緭鍏ヨ瘎浠�" value="{{item.teacherEvaluation}}" disableDefaultPadding="{{true}}" autosize="{{autosize}}" bindchange="onTeacherInput" data-index="{{index}}" wx:if="{{consumer == 'teacher' && !evaluated}}" /> <view wx:if="{{isUpdate && item.teacherEvaluation.length > 0}}" class="rateList"> <view wx:for="{{item.teacherEvaluation}}" wx:for-item="mateItem" wx:key="index" class="li"> <view class="userName"><text></text>{{ mateItem.userName }}</view> @@ -127,14 +137,14 @@ <view wx:if="{{dataList.length == 0}}" class="empyt"> <empty /> </view> - <view class="buttonBox"> - <t-button class="btn" theme="primary" bind:tap="submitComment" wx:if="{{consumer}}"> + <view class="buttonBox" wx:if="{{dataList.length > 0}}"> + <t-button class="btn" theme="primary" bind:tap="submitComment" wx:if="{{consumer && !evaluated}}"> <view slot="content" class="btn-content">鎻愪氦</view> </t-button> - <t-button class="btn" theme="primary" bind:tap="updateSubmit" wx:if="{{isUpdate && !consumer}}"> + <t-button class="btn" theme="primary" bind:tap="updateSubmit" wx:if="{{isUpdate && !consumer && dataList.length > 0}}"> <view slot="content" class="btn-content">閭�璇疯瘎浠�</view> </t-button> - <t-button class="btn" theme="primary" bind:tap="inviteBtn" wx:if="{{!isUpdate && !consumer}}"> + <t-button class="btn" theme="primary" bind:tap="inviteBtn" wx:if="{{!isUpdate && !consumer && dataList.length > 0}}"> <view slot="content" class="btn-content">閭�璇疯瘎浠�</view> </t-button> </view> @@ -148,7 +158,7 @@ <view class="info-center" style="top:{{height*0.3}}px;" wx:if="{{dialogVisible}}"> <view class="block1"> <t-radio-group value="{{invitee}}" borderless t-class="box" class="radioBox" bind:change="onInviteeChange"> - <t-radio block="{{false}}" label="鍚屼即" value="mate" class="radio" /> + <t-radio block="{{false}}" label="鍚屼即" value="classmate" class="radio" /> <t-radio block="{{false}}" label="鑰佸笀" value="teacher" class="radio" /> </t-radio-group> </view> @@ -156,7 +166,11 @@ <t-button class="btn" theme="primary" bind:tap="handleClose"> <view slot="content" class="btn-content">鍙栨秷</view> </t-button> - <t-button class="btn" theme="primary" bind:tap="confirmBtn" open-type="share"> + + <t-button class="btn" theme="primary" bind:tap="confirmBtn1" wx:if="{{invitee == 'teacher' &&teacherEvaluated}}"> + <view slot="content" class="btn-content">纭畾</view> + </t-button> + <t-button class="btn" theme="primary" bind:tap="confirmBtn" open-type="share" wx:else> <view slot="content" class="btn-content">纭畾</view> </t-button> </view> -- Gitblit v1.9.1