information.wxml 4.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <!--parents/pages/information/information.wxml-->
  2. <import src="../../../templates/loading/loading.wxml" />
  3. <view class='container'>
  4. <template is='loading' wx:if='{{!isLoaded}}'></template>
  5. <view class='wrapper' wx:else>
  6. <view class='list'>
  7. <view class='li' bindtap='uploadImgCtl'>
  8. <view class="uploadImg" style='background:{{vip.imgUrl ? "" : "#EBEBEB"}}'>
  9. <image class='li-imageTip' src='{{vip.imgUrl?baseImgUrl + vip.imgUrl : "../../../assets/default_headicon.png"}}' wx:if='{{vip.imgUrl}}'></image>
  10. <view class="upload-text" wx:if='{{!vip.imgUrl}}'>
  11. <image class='li-image' src='../../../assets/cameare.png'></image>
  12. <view>上传头像</view>
  13. </view>
  14. <view class="upload-Model" wx:if='{{vip.imgUrl}}' bindtap='uploadImgCtl'>
  15. <view class="upload-refrehtext">更换头像</view>
  16. </view>
  17. </view>
  18. </view>
  19. <view class='li'>
  20. <view class='li-label'>孩子姓名 (实名制必填)</view>
  21. <input class='li-input' type='text' placeholder='请填写姓名' placeholder-class='input-placeholder' value='{{vip.childName}}' bindinput='inputCtl' data-type='childName'></input>
  22. </view>
  23. <view class='li'>
  24. <view class='li-label'>家长姓名 (实名制必填)</view>
  25. <input class='li-input' type='text' placeholder='请填写家长姓名' placeholder-class='input-placeholder' value='{{vip.parentName}}' bindinput='inputCtl' data-type='parentName'></input>
  26. </view>
  27. <view class='li'>
  28. <view class='li-label'>所读年级 (必填)</view>
  29. <picker bindchange='pickerGradeCtl' value='{{gradeIndex}}' range='{{gradeArray}}'>
  30. <view class='li-picker'>{{vip.grade || '请选择就读年级'}}</view>
  31. </picker>
  32. <view class="icon">
  33. <image class="image" src='../../../assets/arrow_gray.png' />
  34. </view>
  35. </view>
  36. <view class='li'>
  37. <view class='li-label'>家长角色 (必填)</view>
  38. <picker bindchange='pickerRoleCtl' value='{{parentRoleIndex}}' range='{{parentRoleArray}}'>
  39. <view class='li-picker'>{{vip.parentRole?vip.parentRole : '其他'}}</view>
  40. </picker>
  41. <view class="icon">
  42. <image class="image" src='../../../assets/arrow_gray.png' />
  43. </view>
  44. </view>
  45. <view class='li' data-url='parents/pages/School_library/School_library' data-zindex='3' data-paras='{{({isAdd:options.isAdd,childName:vip.childName,sex:vip.sex,grade:vip.grade,school:vip.school,phone:vip.phone,parentRole:vip.parentRole,parentName:vip.parentName,imgUrl:vip.imgUrl,zindex:options.zindex,vipId:options.vipId,league_name:vip.league_name})}}' bindtap='navigateTo' >
  46. <view class='li-label'>选择学校 (必填)</view>
  47. <view class='li-picker'>{{vip.school|| '请填写就读学校'}}</view>
  48. <view class="icon">
  49. <image class="image" src='../../../assets/arrow_gray.png' />
  50. </view>
  51. </view>
  52. <view class='li' data-url='parents/pages/library/library' data-zindex='3' data-paras='{{({isAdd:options.isAdd,childName:vip.childName,sex:vip.sex,grade:vip.grade,school:vip.school,phone:vip.phone,parentRole:vip.parentRole,parentName:vip.parentName,imgUrl:vip.imgUrl,zindex:options.zindex,vipId:options.vipId,league_name:vip.league_name})}}' bindtap='navigateTo' wx:if='{{options.isAdd==1}}' >
  53. <view class='li-label'>选定图书馆 (必填)</view>
  54. <view class='li-picker'>{{vip.league_name|| '请选择图书馆'}}</view>
  55. <view class="icon">
  56. <image class="image" src='../../../assets/arrow_gray.png' />
  57. </view>
  58. </view>
  59. <view class='li'>
  60. <view class='li-label'>孩子性别 (选填)</view>
  61. <picker bindchange='pickerSexCtl' value='{{sexIndex}}' range='{{sexArray}}'>
  62. <view class='li-picker'>{{vip.sex == 1 ? '男' : vip.sex == 2 ? '女' : '请选择性别'}}</view>
  63. </picker>
  64. <view class="icon">
  65. <image class="image" src='../../../assets/arrow_gray.png' />
  66. </view>
  67. </view>
  68. <view class='li'>
  69. <view class='li-label'>联系方式 (选填)</view>
  70. <input class='li-input' type='text' placeholder='' placeholder-class='input-placeholder' value='{{vip.phone}}' bindinput='inputCtl' data-type='phone'></input>
  71. </view>
  72. </view>
  73. <view class='footer-box'>
  74. <view class='footer-box-item' wx:for='{{footerArray}}' wx:key='index' data-type='{{item.type}}' bindtap='submitCtl'>{{item.text}}</view>
  75. </view>
  76. </view>
  77. </view>