123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243 |
- <!--pages/main/main.wxml-->
- <import src="../../templates/nodata/nodata.wxml" />
- <view class='container'>
- <view class='wrapper'>
- <view wx:if='{{!isLogin}}'>
- <view class='li-search'>
- <view class='li-search-left'>
- <image src='../../assets/search.png' class='li-search-left-img'></image>
- <input placeholder='搜索学生姓名' class='li-search-left-input' placeholder-style='li-search-left-input-pla' disabled='true'></input>
- </view>
- <view class='li-search-right'>搜索</view>
- </view>
- <view class='li-child' data-url="pages/past_record/past_record" data-paras='{{({vipId:"8b59db64-fee0-47f2-be95-19560e639af4",childName:"游客",imgUrl:"",grade:"一年级",serviceType:1,phone:"16818819921",libId:"6b308989-0988-45a0-853d-537a923ba2e7"})}}' bindtap="navigateTo">
- <image src="../../assets/default_headicon.png" class='li-child-img'></image>
- <view class='li-child-info'>
- <view class='li-child-info-tips'>
- <text>游客</text>
- <image src='../../assets/huang_guan.png' class='li-tips'></image>
- <text style='color:#E59B36;font-size:22rpx;'>平台服务(家长购买)</text>
- </view>
- <view class='li-child-info-grades'>深圳实验小学 - 一年级</view>
- </view>
- </view>
- <view class='login'>
- <image src='../../assets/deng_lv_logo.png' class='login-img'></image>
- <view class='login-text'>登录后即可管理学生会员服务、掌握学情数据</view>
- <button open-type="getUserInfo" class='login-btn' bindgetuserinfo="getUserInfoCtl">注册丨登录</button>
- </view>
- </view>
- <view wx:if='{{isLogin}}' style='box-shadow:0px 0px 43rpx 0px rgba(246,246,246,1);' class="fixed">
- <view class='nav' style="height:{{customBar}}px;padding-top:{{statusBar}}px;">
- <image src='{{photo?baseImgUrl+photo:"../../assets/default_headicon1.png"}}' class='nav-img' data-url="pages/teacher_information/teacher_information" bindtap="navigateTo"></image>
- <text class='nav-text' style="padding-top:4%;">{{orgName}}</text>
- </view>
- <view class='li-nav'>
- <view class='li-nav-items' wx:for='{{navList}}' wx:key='index' data-idx='{{index}}' bindtap='selectClass'>
- <text class='{{navIdx==index?"li-nav-active":""}}'>{{item}}</text>
- <text class="li-nav-items-num" wx:if='{{index==3&&reviewNum>0}}'>{{reviewNum}}</text>
- </view>
- </view>
- </view>
- <view class='li' wx:if='{{isLogin}}' style="padding-top:{{statusBar+105}}px">
- <!-- 班级 -->
- <view class='li-content li-order' wx:if='{{navIdx==0}}'>
- <view class='li-content-items' wx:for='{{list}}' wx:key='index' wx:if='{{list.length>0}}'>
- <view data-url="pages/child_list/child_list" data-paras='{{({className:item.className,classId:item.classId})}}' bindtap="navigateTo">
- <image src='../../assets/class_one.png' class='li-content-items-img'></image>
- <view class='li-content-items-class'>
- <view class='li-content-items-class-num'>{{item.className}}</view>
- <view>
- <text wx:if='{{item.studentSum>0}}'>签到人数: {{item.signedStudentCount}}/{{item.studentSum}}人</text>
- <text wx:if='{{item.studentSum==0}}' class="li-active-red">学生:0人</text>
- <text class='li-content-items-class {{item.teacherSum==0?"li-active-red":""}}'>教师:{{item.teacherSum}}人</text>
- </view>
- </view>
-
- </view>
- <view class='li-content-items-right' bindtap='redactClass' data-cname='{{item.className}}' data-id='{{item.classId}}' data-snum='{{item.studentSum}}' data-tnum='{{item.teacherSum}}' data-del='{{index}}'>
- <image src='../../assets/dian_dian.png' class='li-content-items-right-img' style='width:44rpx;height:44rpx;'></image>
- </view>
- </view>
- <view class='li-footer' bindtap='renameShow' data-type='0'>
- <image src='../../assets/jia_hao.png' class='li-footer-img'></image>
- <text>新建班级</text>
- </view>
- </view>
- <!-- 学生列表 -->
- <view class='li-content' wx:if='{{navIdx==1}}'>
- <view style="height:{{scrollHeight_}};padding-bottom:120rpx;">
- <scroll-view scroll-y style="overflow:scroll;height:{{scrollHeight_}};padding-bottom:120rpx;" scroll-into-view="{{toView}}" enable-back-to-top bindscroll="viewScroll" scroll-with-animation scroll-top="{{scrollTop}}" wx:if='{{getList.length>0}}' bindscrolltolower='getData' lower-threshold='50'>
- <view wx:for='{{getList}}' wx:key='index' wx:if='{{getList.length>0}}'>
- <view class="list-letter" id="{{item.title}}" wx:if="{{item.title}}">{{item.title}}</view>
- <view class='li-child' data-url="pages/past_record/past_record" data-paras='{{({vipId:val.vipId})}}' bindtap="navigateTo" wx:for='{{item.items}}' wx:for-item="val" wx:for-index="key" wx:key='key'>
-
- <view class='li-child-info' >
- <image src="{{val.imgUrl?baseImgUrl+val.imgUrl:'../../assets/default_headicon2.png'}}" class='li-child-img {{val.serviceType==-1?"close_active":""}}'></image>
- <view class='li-child-info-name li-child-items' >
- <text style='font-weight:bold; margin-right: 15rpx;' class='{{val.serviceType==-1?"close_color":""}}'>{{val.childName}}</text>
- <image src='../../assets/huang_guan.png' class='li-tips' wx:if='{{val.serviceType==1||val.serviceType==4||val.serviceType==999}}'></image>
- <image src='../../assets/hui_guan.png' class='li-tips' wx:if='{{val.serviceType==0}}'></image>
- <image src='../../assets/zuan_shi.png' class='li-tips' wx:if='{{val.serviceType==2}}'></image>
- <text style='color:{{val.serviceType==0?"#8489A3":val.serviceType==999?"#FF6465":"#E59B36"}};font-size:22rpx;' wx:if='{{val.serviceType!=-1}}'>{{val.serviceType==0?'当前无服务':val.serviceType==1?'平台服务(家长购买)':val.serviceType==2?'校区服务':val.serviceType==4?'平台服务(校区购买)':val.serviceType==5?'批改服务':'内部用户'}}</text>
- <view wx:if='{{val.serviceType==-1}}' class="close-serve">服务已关闭</view>
- <view class='li-child-info-grades {{val.serviceType==-1?"close_color":""}}' wx:if='{{val.className}}'>{{val.className?val.className:'未分班'}} 丨 {{val.grade}}</view>
- <view class='li-child-info-grades {{val.serviceType==-1?"close_color":"li-active-red"}}' wx:if='{{!val.className}}'>未分班丨 {{val.grade}}</view>
- </view>
- </view>
- </view>
- </view>
- </scroll-view>
- <view class="list-shortcut">
- <block wx:for="{{getList}}" wx:key="index">
- <text class="list-shortcut-num {{currentIndex===index?'list-current':''}}" data-id="{{item.title}}" data-idx="{{index}}" bindtap='scrollToview' wx:if='{{item.title!="服务关闭"}}'>{{item.title}}</text>
- </block>
- </view>
- </view>
- <view class='li-class-grade'>
- <view data-url="pages/kids_information/kids_information" data-paras='{{({classId:""})}}' bindtap="navigateTo">
- <image src='../../assets/person_add.png' class='li-class-grade-img'></image>
- <text>新建学生</text>
- </view>
- <view class="batch-btn" data-url="pages/batch_renew/batch_renew" data-paras='{{({libId})}}' bindtap="navigateTo">批量续费</view>
- </view>
- </view>
- <!-- 老师 -->
- <view class='li-content li-order' wx:if='{{navIdx==2}}'>
- <scroll-view scroll-y style="overflow:scroll;" scroll-into-view="{{toView}}" enable-back-to-top bindscroll="viewScroll" scroll-with-animation scroll-top="{{scrollTop}}" wx:if='{{list.length>0}}'>
- <view wx:for='{{list}}' wx:key='index' wx:if='{{list.length>0}}'>
- <view class="list-letter" id="{{item.title}}" wx:if="{{item.title}}">{{item.title}}</view>
- <view class='li-teach' wx:for='{{item.items}}' wx:key='index' data-url="pages/teacher_detail/teacher_detail" data-paras='{{({teacherId:item.teacherId})}}' bindtap="navigateTo">
- <image src='{{item.imgUrl?baseImgUrl+item.imgUrl:"../../assets/default_headicon1.png"}}' class='li-teach-img'></image>
- <view class='li-teach-items'>
- <view class='li-teach-items-top'>
- <text style='font-weight:bold'>{{item.name}}</text>
- <view class="li-teach-items-top-sub {{val1=='数学'?'li-blue':val1=='语文'?'li-red':'li-yellow'}}" wx:for='{{item.subject}}' wx:key='key1' wx:for-item='val1' wx:for-index='key1' wx:if='{{val1}}'>
- {{val1}}
- </view>
- </view>
- <view class='li-teach-items-down'>
- <view wx:for='{{item.teacherTypeList}}' wx:key='key' wx:for-item='val' wx:for-index='key' style='display:inline-block;margin-right:10rpx;'>
- {{val==2?'现场管理':val==3?'学科答疑':'作业标注'}}
- </view>
- </view>
- </view>
- </view>
- </view>
- </scroll-view>
- <view class='li-footer' data-url="pages/new_teacher/new_teacher" data-paras='{{({teacherId:item.teacherId})}}' bindtap="navigateTo">
- <image src='../../assets/jia_hao.png' class='li-footer-img'></image>
- <text>新建教师</text>
- </view>
- </view>
- <!-- 审核-->
- <view class='li-content' wx:if='{{navIdx==3}}' style="padding-top:1rpx">
- <view class='child-nav'>
- <view class='child-nav-items {{roleIdx==index?"child-nav-items-active":""}}' wx:for='{{roleList}}' wx:key='index' data-idx='{{index}}' bindtap='selectTeacher'>{{item}}</view>
- </view>
- <!-- 学生 -->
- <view class='li-review-items' wx:for='{{list}}' wx:key='index' wx:if='{{list.length>0&&roleIdx==0}}'>
- <view class="li-review" >
- <view class='li-content-items-class li-flex' style='margin:0' data-url="pages/change_information/change_information" data-paras='{{({isReview:1,...item})}}' bindtap="navigateTo">
- <image src="{{item.imgUrl?baseImgUrl+item.imgUrl:'../../assets/default_headicon2.png'}}" class='li-child-img'></image>
- <view style="margin-left:10rpx">
- <view>
- <text class='li-content-items-class-num'> {{item.childName}}</text>
- </view>
- <view>{{item.grade}}</view>
- </view>
- </view>
- <view class="li-review-btn">
- <view class="li-review-pass" data-xid="{{item.vipId}}" data-type="{{1}}" bindtap="refuseShow">通过</view>
- <view class="li-review-refuse" data-xid="{{item.vipId}}" data-type="{{2}}" bindtap="refuseShow">拒绝</view>
- </view>
- </view>
-
- </view>
- <!-- 老师 -->
- <view class='li-review-items' wx:for='{{teacherAuditList}}' wx:key='index' wx:if='{{teacherAuditList.length>0&&roleIdx==1}}'>
- <view class="li-review" >
- <view class='li-content-items-class li-flex' style='margin:0' data-url="pages/teacher_detail/teacher_detail" data-paras='{{({isReview:1,...item})}}' bindtap="navigateTo">
- <image src="{{item.imgUrl?baseImgUrl+item.imgUrl:'../../assets/default_headicon2.png'}}" class='li-child-img'></image>
- <view style="margin-left:10rpx">
- <view>
- <text class='li-content-items-class-num'> {{item.name}}</text>
- </view>
- <view>{{item.phone}}</view>
- </view>
- </view>
- <view class="li-review-btn">
- <view class="li-review-pass" data-xid="{{item.teacherId}}" data-type="{{1}}" bindtap="refuseShow">通过</view>
- <view class="li-review-refuse" data-xid="{{item.teacherId}}" data-type="{{2}}" bindtap="refuseShow">拒绝</view>
- </view>
- </view>
-
- </view>
- </view>
- <!-- 弹幕 -->
- <view class='showModel' bindtap='allShowModel' catchtouchmove="allShowModel" wx:if='{{hiddenModel}}'></view>
- <view class='model-class' wx:if='{{hiddenModel}}'>
- <view class='model-list'>
- <view class='model-list-class'>{{className}}</view>
- <view class='model-list-items' bindtap='renameShow' data-type='1'>
- <image src='../../assets/chong_min_ming.png' class='model-list-items-img'></image>
- <text>重命名</text>
- </view>
- <view class='model-list-items' bindtap='{{!isSky?"":"classShow"}}'>
- <image src='../../assets/delete.png' class='model-list-items-img'></image>
- <text>删除</text>
- <text class='model-list-items-tips' wx:if='{{!isSky}}'>(孩子和教师数为0时才能删除班级)</text>
- </view>
- </view>
- <view class='model-footer'>
- <view bindtap='allShowModel' bindtap='allShowModel'>取消</view>
- </view>
- </view>
- <!-- 重命名新建班级弹幕 -->
- <view class='showModel' bindtap='allShowModel' catchtouchmove="allShowModel" wx:if='{{renameModel}}'></view>
- <view class='model' wx:if='{{renameModel}}'>
- <view class='rename'>
- <view class='rename-name' wx:if='{{isRename}}'>重命名</view>
- <view class='rename-name' wx:if='{{!isRename}}'>新建班级</view>
- <view class='rename-input'>
- <input placeholder='' class='rename-input-items' wx:if='{{isRename}}' value='{{className}}' bindinput='inputCtl' data-type='className'></input>
- <input placeholder='请输入班级名称' class='rename-input-items' wx:if='{{!isRename}}' value='{{className}}' bindinput='inputCtl' data-type='className' ></input>
- <image src='../../assets/delete_input.png' class='rename-input-img' bindtap='deleteInput'></image>
- </view>
- <view class='rename-footer'>
- <view bindtap='allShowModel' bindtap='allShowModel'>取消</view>
- <view class='rename-footer-sure' bindtap='{{isRename?"sureRename":"sureCreateClass"}}'>确定</view>
- </view>
- </view>
- </view>
- <!-- 拒绝审核弹幕 -->
- <view class='showModel' bindtap='allShowModel' catchtouchmove="allShowModel" wx:if='{{refuseModel}}'></view>
- <view class='model' wx:if='{{refuseModel}}'>
- <view class='rename'>
- <view class='rename-name'>确定拒绝此{{roleIdx?'教师':'学生'}}进入校区吗?</view>
- <view class='rename-footer'>
- <view bindtap='allShowModel' bindtap='allShowModel'>取消</view>
- <view class='rename-footer-sure' bindtap='selectRefuse'>确定</view>
- </view>
- </view>
- </view>
- <!-- 删除班级弹幕 -->
- <view class='showModel' bindtap='allShowModel' catchtouchmove="allShowModel" wx:if='{{classModel}}'></view>
- <view class='model' wx:if='{{classModel}}'>
- <view class='rename'>
- <view class='rename-name' style='margin:92rpx 0;'>确定删除班级吗?</view>
- <view class='rename-footer'>
- <view bindtap='allShowModel' bindtap='allShowModel'>取消</view>
- <view class='rename-footer-sure' bindtap='sureDeleteClass'>确定</view>
- </view>
- </view>
- </view>
- <template is='nodata' wx:if='{{list.length==0&&navIdx==0}}' data='{{...nodata[navIdx]}}' ></template>
- <template is='nodata' wx:if='{{getList.length==0&&navIdx==1}}' data='{{...nodata[navIdx]}}' ></template>
- <template is='nodata' wx:if='{{list.length==0&&navIdx==2}}' data='{{...nodata[navIdx]}}' ></template>
- <template is='nodata' wx:if='{{list.length==0&&navIdx==3&&roleIdx==0}}' data='{{...nodata[navIdx]}}' ></template>
- <template is='nodata' wx:if='{{teacherAuditList.length==0&&roleIdx==1}}' data='{{...nodata[navIdx]}}'></template>
- </view>
- </view>
- </view>
|