| | |
| | | <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 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> |
| | |
| | | <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> |
| | |
| | | <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> |
| | |
| | | <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> |