myStudents.wxml 4.9 KB

1
  1. <view class="page data-v-600066de"><cu-custom vue-id="2317b100-1" isBack="{{false}}" isHome="{{true}}" class="data-v-600066de" bind:__l="__l" vue-slots="{{['content']}}"><view slot="content" class="data-v-600066de">我的学生</view></cu-custom><scroll-view class="data-v-600066de"><view class="cu-card case no-card data-v-600066de"><view class="cu-item shadow data-v-600066de"><view class="image data-v-600066de"><image src="/static/imgs/mine/img.png" mode="widthFix" class="data-v-600066de"></image><view class="image-tag data-v-600066de">应趣教育 课后百科</view></view></view></view><view class="cu-card data-v-600066de"><view class="cu-item shadow data-v-600066de"><view class="students-title flex justify-between align-center data-v-600066de"><view class="text-lg data-v-600066de">学生列表</view><view class="text-xs text-grey data-v-600066de"><text class="text-red data-v-600066de">点击选择,左滑删除,右侧添加</text><text class="cuIcon-roundaddfill text-cyan margin-left-xl add-icon data-v-600066de" data-target="ChooseModal" data-event-opts="{{[['tap',[['showModal',['$event']]]]]}}" bindtap="__e"></text></view></view><view class="cu-list menu-avatar data-v-600066de"><block wx:for="{{result.student_data}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="{{['cu-item data-v-600066de',moveModel=='move-box-'+index?'move-cur':'']}}" data-target="{{'move-box-'+index}}" data-event-opts="{{[['touchstart',[['ListTouchStart',['$event']]]],['touchmove',[['ListTouchMove',['$event']]]],['touchend',[['ListTouchEnd',['$event']]]],['tap',[['chooseKid',['$0'],[[['result.student_data','',index,'id']]]]]]]}}" bindtouchstart="__e" bindtouchmove="__e" bindtouchend="__e" bindtap="__e"><image class="avatar md left data-v-600066de" mode="scaleToFill" src="{{defaultAvatar}}"></image><view class="content data-v-600066de"><view class="data-v-600066de">{{item.name}}</view><view class="text-gray data-v-600066de">{{item.school_name+"-"+item.grade_name+"-"+item.class_name}}</view></view><view class="action data-v-600066de"><block wx:if="{{item.id===kid}}"><text class="cuIcon-check text-student font-check data-v-600066de"></text></block></view><view class="move student-move data-v-600066de"><view data-event-opts="{{[['tap',[['unbind',['$0'],[[['result.student_data','',index,'id']]]]]]]}}" class="bg-red data-v-600066de" catchtap="__e">删除</view></view></view></block></view></view></view></scroll-view><view data-event-opts="{{[['tap',[['hideModal',['$event']]]]]}}" class="{{['cu-modal data-v-600066de',modalName=='showStudents'?'show':'']}}" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="cu-dialog bg-student data-v-600066de" catchtap="__e"><view class="padding text-left modal-body radius-student data-v-600066de"><view class="cu-list menu-avatar data-v-600066de"><block wx:for="{{chooseList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['save',['$0'],[[['chooseList','',index,'id']]]]]]]}}" class="cu-item data-v-600066de" bindtap="__e"><view class="{{['cu-inner data-v-600066de',(item.id===selectKid)?'checked':'']}}"><image class="avatar md left data-v-600066de" mode="scaleToFill" src="{{defaultAvatar}}"></image><view class="content data-v-600066de"><view class="data-v-600066de">{{item.name}}</view><view class="text-gray data-v-600066de">{{item.school_name+"-"+item.grade_name+"-"+item.class_name}}</view></view></view></view></block></view></view></view></view><view data-event-opts="{{[['tap',[['hideModal',['$event']]]]]}}" class="{{['cu-modal data-v-600066de',modalName=='ChooseModal'?'show':'']}}" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="cu-dialog bg-student data-v-600066de" catchtap="__e"><view class="cu-bar justify-around data-v-600066de"><view class="content modal-title data-v-600066de">添加学生</view></view><view class="padding-xl text-left modal-body data-v-600066de"><view class="data-v-600066de"><input class="student-input text-black text-lg data-v-600066de" type="text" placeholder="请输入学生名字" data-event-opts="{{[['input',[['__set_model',['$0','student_name','$event',['trim']],['student']]]],['blur',[['$forceUpdate']]]]}}" value="{{student.student_name}}" bindinput="__e" bindblur="__e"/></view><block wx:if="{{student.student_name}}"><view class="margin-top data-v-600066de"><input class="student-input text-black text-lg data-v-600066de" type="text" placeholder="请输入学校名称" data-event-opts="{{[['input',[['__set_model',['$0','school_name','$event',['trim']],['student']]]],['blur',[['$forceUpdate']]]]}}" value="{{student.school_name}}" bindinput="__e" bindblur="__e"/></view></block><view class="margin-top data-v-600066de"><button data-event-opts="{{[['tap',[['get_students',['$event']]]]]}}" class="student-input text-student text-left data-v-600066de" bindtap="__e">获取学生</button></view></view><view class="cu-bar modal-footer data-v-600066de"><view class="action data-v-600066de"></view></view></view></view></view>