information.wxml 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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:1,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})}}' bindtap='redirectTo' >
  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'>
  53. <view class='li-label'>孩子性别 (选填)</view>
  54. <picker bindchange='pickerSexCtl' value='{{sexIndex}}' range='{{sexArray}}'>
  55. <view class='li-picker'>{{vip.sex == 1 ? '男' : vip.sex == 2 ? '女' : '请选择性别'}}</view>
  56. </picker>
  57. <view class="icon">
  58. <image class="image" src='../../../assets/arrow_gray.png' />
  59. </view>
  60. </view>
  61. <view class='li'>
  62. <view class='li-label'>联系方式 (选填)</view>
  63. <input class='li-input' type='text' placeholder='' placeholder-class='input-placeholder' value='{{vip.phone}}' bindinput='inputCtl' data-type='phone'></input>
  64. </view>
  65. </view>
  66. <view class='footer-box'>
  67. <view class='footer-box-item' wx:for='{{footerArray}}' wx:key='index' data-type='{{item.type}}' bindtap='submitCtl'>{{item.text}}</view>
  68. </view>
  69. </view>
  70. </view>