joinClass.wxml
2.0 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!--pages/joinClass/joinClass.wxml-->
<view class='mask' wx:if="{{showModel}}">
<view class='mask_Con'>
<!-- 关闭 -->
<view class='mask_ConCha' bindtap='ShutdownFun'>
<image src='/image/83.png'></image>
</view>
<!-- 标题 -->
<view class='mask_ConTit'>添加学生</view>
<view class='mask_ConInput'>
<view class='mask_ConInput2'>
<input bindinput='maskChangeFun' placeholder='请输入学生姓名' placeholder-style='color:#D2D2D2;' value='{{value}}'></input>
</view>
<view class='maks_ConWrong'>学生姓名不得超过6个字符</view>
</view>
<!-- 按钮 -->
<view class='mask_Btns' bindtap='maskOkFun'>确定</view>
</view>
</view>
<view class='joinBox'>
<!-- 标题 -->
<view class='joinTitle'>班级名称:{{className.name}}</view>
<!-- 内容 -->
<view class='joinCon'>
<view class='joinConTit'>绑定学生:</view>
<!-- 学生 -->
<view class='joinStudents'>
<view class="joinStudentsLi {{ind == index ? 'studentsActive' : ''}}" data-ind="{{index}}" wx:for="{{students}}" wx:key bindtap='gay' data-id="{{item.id}}">{{item.name}}</view>
<view class='joinStudentsAdd' bindtap='addFun' wx:if= "{{className.jzaddstudent == 1}}">
<image src='/image/70.png'></image>
</view>
</view>
<!-- 与学生关系 -->
<view class='joinConTit2'>与学生关系:</view>
<picker class='picker' bindchange="bindPickerChange" value="{{index}}" range="{{array}}" data-arr="{{array[index]}}">
<view class='pickerTxt' >{{array[index]}}</view>
<view class='pickerImg'>
<image src='/image/13.png'></image>
</view>
</picker>
<!-- 按钮 -->
<form report-submit="true" bindsubmit='addClassFun'>
<button class='joinBtn' form-type="submit">加入班级</button>
</form>
</view>
</view>