add_parent.wxml 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <!--pages/add_parent/add_parent.wxml-->
  2. <import src="../../templates/nodata/nodata.wxml" />
  3. <view class='container'>
  4. <view class='wrapper'>
  5. <!-- 家长列表 -->
  6. <view class='li' wx:if='{{!isAddParents}}'>
  7. <view class='li-items' wx:for='{{roleList}}' wx:key='index' wx:if='{{roleList.length>0}}'>
  8. <view>
  9. <image class='li-items-headImg' src="{{item.imgUrl?baseImgUrl+item.imgUrl:'../../image/default_headicon5.png'}}"></image>
  10. <view class='li-items-name'>
  11. <view class='li-items-name-real'>{{item.name}}</view>
  12. <view class="li-items-name-role {{item.roleName=='爸爸'?'li-blue':item.roleName=='妈妈'?'li-red':item.roleName=='爷爷'?'li-blue':item.roleName=='奶奶'?'li-red':item.roleName=='外公'?'li-blue':item.roleName=='外婆'?'li-red':'li-yellow'}}">{{item.roleName}}</view>
  13. </view>
  14. </view>
  15. <view class='li-items-tips' data-id='{{item.roleUserId}}' bindtap='showModel'>
  16. <view class='li-items-relax'>解绑</view>
  17. <image class='li-items-relax-img' src='../../image/jie_bang.png'></image>
  18. </view>
  19. </view>
  20. <template wx:if='{{roleList.length==0}}' is='nodata-three' ></template>
  21. <view class='li-add-parents' bindtap='skipParents'>
  22. <text class='li-ten'>+</text>
  23. <text>添加家长</text>
  24. </view>
  25. </view>
  26. <!-- 添加家长 -->
  27. <view class='list' wx:if='{{isAddParents}}'>
  28. <view class='list-tips'>输入要添加的家长的手机号,前提是此手机号必须
  29. 登录过我们的平台,才可添加成功。</view>
  30. <view class='list-item list-one'>
  31. <view class='li-item-head'>
  32. <text>家长手机号</text>
  33. <text class='li-item-head-red'>*</text>
  34. </view>
  35. <view class=''>
  36. <input class='li-input' type='number' placeholder='请填写绑定手机号' placeholder-class='input-placeholder' value='{{}}' bindblur='' bindinput='inputCtl' data-type='phone'></input>
  37. </view>
  38. </view>
  39. <view class='role {{isRole?"role-active":""}}'>
  40. <view class='role-list-item'>
  41. <view class='li-item-head'>
  42. <text> 家长角色</text>
  43. <text class='li-item-head-red'>*</text>
  44. </view>
  45. <view class='li-role' bindtap='clickShow'>
  46. <view class='li-select {{role?"li-select-active":""}}'>{{role?role:'请选择角色'}}</view>
  47. <view>
  48. <image class='li-row-img {{isRole?"li-row-active":""}}' src='../../image/right_zy7@2x.png'></image>
  49. </view>
  50. </view>
  51. </view>
  52. <view class='list-item-center' wx:if='{{isRole}}'>
  53. <view class="role-item {{item.status=='active'?'li-active':''}}" wx:for='{{parentList}}' wx:key='index' data-str='{{item.str}}' data-idx='{{index}}' bindtap='selectRole'>{{item.str}}</view>
  54. </view>
  55. </view>
  56. <view class='list-item list-three'>
  57. <view class='li-item-head'>
  58. <text>家长姓名</text>
  59. <text class='li-item-head-red'>*</text>
  60. </view>
  61. <view class=''>
  62. <input class='li-input' type='text' placeholder='实名制' placeholder-class='input-placeholder' value='{{parents}}' bindblur='inputCtl' bindinput='' data-type='parents'></input>
  63. </view>
  64. </view>
  65. <view class='li-submit' bindtap='saveParents'>添加家长</view>
  66. </view>
  67. <view class='showModel' bindtap='allShowModel' catchtouchmove="allShowModel" wx:if='{{hiddenModel}}'></view>
  68. <view class='model' wx:if='{{hiddenModel}}'>
  69. <view class='model-text' bindtap='sureCheckChildren'>是否要解除此家长对孩子的绑定?</view>
  70. <view class='model-list'>
  71. <view bindtap='allShowModel'>取消</view>
  72. <view class='model-list-sure' bindtap='checkCtl'>确定</view>
  73. </view>
  74. </view>
  75. </view>
  76. </view>