information.wxml 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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">
  9. <image class='{{vip.imgUrl ? "li-imageTip" : "li-image"}}' src='{{vip.imgUrl ? baseImgUrl + vip.imgUrl : "../../../assets/cameare.png"}}'></image>
  10. <view class="upload-text" wx:if='{{!vip.imgUrl}}'>上传头像</view>
  11. <view class="upload-Model" wx:if='{{vip.imgUrl}}'>
  12. <view class="upload-refrehtext">更换头像</view>
  13. </view>
  14. </view>
  15. </view>
  16. <view class='li'>
  17. <view class='li-label'>孩子姓名 (实名制必填)</view>
  18. <input class='li-input' type='text' placeholder='请填写姓名' placeholder-class='input-placeholder' value='{{vip.childName}}' bindinput='inputCtl' data-type='childName'></input>
  19. </view>
  20. <view class='li'>
  21. <view class='li-label'>家长姓名 (实名制必填)</view>
  22. <input class='li-input' type='text' placeholder='请填写家长姓名' placeholder-class='input-placeholder' value='{{vip.parentName}}' bindinput='inputCtl' data-type='parentName'></input>
  23. </view>
  24. <view class='li'>
  25. <view class='li-label'>所读年级 (必填)</view>
  26. <picker bindchange='pickerGradeCtl' value='{{gradeIndex}}' range='{{gradeArray}}'>
  27. <view class='li-picker'>{{vip.grade || '请选择就读年级'}}</view>
  28. </picker>
  29. <view class="icon">
  30. <image class="image" src='../../../assets/arrow_gray.png' />
  31. </view>
  32. </view>
  33. <view class='li'>
  34. <view class='li-label'>家长角色 (必填)</view>
  35. <picker bindchange='pickerRoleCtl' value='{{parentRoleIndex}}' parentRolevalue='{{vip.parentRole}}' range='{{parentRoleArray}}'>
  36. <view class='li-picker'>{{vip.parentRole?vip.parentRole : '其他'}}</view>
  37. </picker>
  38. <view class="icon">
  39. <image class="image" src='../../../assets/arrow_gray.png' />
  40. </view>
  41. </view>
  42. <view class='li' data-url='president/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})}}' bindtap='redirectTo' >
  43. <view class='li-label'>所读学校 (必填)</view>
  44. <view class='li-picker'>{{vip.school|| '请填写就读学校'}}</view>
  45. <view class="icon">
  46. <image class="image" src='../../../assets/arrow_gray.png' />
  47. </view>
  48. </view>
  49. <view class='li'>
  50. <view class='li-label'>孩子性别 (选填)</view>
  51. <picker bindchange='pickerSexCtl' value='{{sexIndex}}' range='{{sexArray}}'>
  52. <view class='li-picker'>{{vip.sex == 1 ? '男' : vip.sex == 2 ? '女' : '请选择性别'}}</view>
  53. </picker>
  54. <view class="icon">
  55. <image class="image" src='../../../assets/arrow_gray.png' />
  56. </view>
  57. </view>
  58. <view class='li'>
  59. <view class='li-label'>联系方式 (选填)</view>
  60. <input class='li-input' type='text' placeholder='' placeholder-class='input-placeholder' value='{{vip.phone}}' bindinput='inputCtl' data-type='phone'></input>
  61. </view>
  62. </view>
  63. <view class='footer-box'>
  64. <view class='footer-box-item' wx:for='{{footerArray}}' wx:key='index' data-type='{{item.type}}' bindtap='submitCtl'>{{item.text}}</view>
  65. </view>
  66. </view>
  67. </view>