kids_information.wxml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <!--pages/kids_information/kids_information.wxml-->
  2. <import src="../../templates/picker/picker.wxml" />
  3. <view class='container'>
  4. <view class='wrapper'>
  5. <view class='list' wx:if='{{isMain==1}}'>
  6. <view class='li'>
  7. <view class='li-label'>孩子姓名(实名制必填)<text class='li-label-star'>*</text></view>
  8. <view class='li-content'>
  9. <input class='li-input' type='text' placeholder='请填写姓名' placeholder-class='input-placeholder' value='{{childName}}' bindblur='inputCtl' data-type='childName'></input>
  10. </view>
  11. </view>
  12. <view class='li'>
  13. <view class='li-label'>家长姓名(实名制必填)<text class='li-label-star'>*</text></view>
  14. <view class='li-content'>
  15. <input class='li-input' type='text' placeholder='请填写家长姓名' placeholder-class='input-placeholder' value='{{parentName}}' bindblur='inputCtl' data-type='parentName'></input>
  16. </view>
  17. </view>
  18. <view class='li'>
  19. <view class='li-label'>所读年级(必填)<text class='li-label-star'>*</text> </view>
  20. <view class='li-content' data-type='grade' data-index='0' bindtap='pickerCtl'>
  21. <view class='li-text'>{{grade || '请选择就读年级'}}</view>
  22. </view>
  23. </view>
  24. <view class='li'>
  25. <view class='li-label'>所读学校(必填)<text class='li-label-star'>*</text> </view>
  26. <view class='li-content li-arrow' data-url='school' data-method='{{({schoolList,school,vipId,isAddChild,type,childName,parentName,grade,leagueName,libId,schoolState})}}' bindtap='redirectCtl'>
  27. <view class='li-text'>{{school|| '请选择就读学校'}}</view>
  28. </view>
  29. </view>
  30. <view class='li'>
  31. <view class='li-label'>家长角色(必填)<text class='li-label-star'>*</text> </view>
  32. <view class='li-content' data-type='parentRole' data-index='4' bindtap='pickerCtl'>
  33. <view class='li-text'>{{parentRole || '请选择家长角色'}}</view>
  34. </view>
  35. </view>
  36. <view class='li'>
  37. <view class='li-label'>所属校区</view>
  38. <view class='li-content li-arrow' data-url='studyHouse' data-method='{{({isAddOrgam:1,school,vipId,isAddChild,type,childName,parentName,grade,derver,parentRole,phone,schoolName:school})}}' bindtap='navigateCtl'>
  39. <view class='li-text'>{{leagueName?leagueName:'无'}}</view>
  40. </view>
  41. </view>
  42. <view class='li'>
  43. <view class='li-label'>孩子头像</view>
  44. <view class='li-content' bindtap='uploadHeadIconCtl'>
  45. <image class='li-image' wx:if='{{imgUrl}}' src='{{baseImgUrl + imgUrl}}'></image>
  46. <view class='li-text' wx:else>请上传头像</view>
  47. </view>
  48. </view>
  49. <view class='li'>
  50. <view class='li-label'>孩子性别</view>
  51. <view class='li-content' data-type='sex' data-index='2' bindtap='pickerCtl'>
  52. <view class='li-text'>{{sex == 1 ? '男' : sex == 2 ? '女' : '请选择性别'}}</view>
  53. </view>
  54. </view>
  55. <view class='li'>
  56. <view class='li-label'>联系方式</view>
  57. <view class='li-content'>
  58. <input class='li-input' type='number' placeholder='请填写绑定手机号' placeholder-class='input-placeholder' value='{{phone}}' bindblur='inputCtl' bindinput='' data-type='phone'></input>
  59. </view>
  60. </view>
  61. <view class='li'>
  62. <view class='li-label'>常用教辅</view>
  63. <view class='li-content li-arrow' bindtap='addTeaching'>
  64. <view class='li-text'>{{hasBook==1||isAdd?'已添加':'未添加'}}</view>
  65. </view>
  66. </view>
  67. <view class='li' wx:if='{{isAddChild!=1}}'>
  68. <view class='li-label'>小塾相机</view>
  69. <view class='li-content li-arrow' data-url='shell_device' data-method='{{({commuEndDate,childName,imgUrl,derver,vipId,isShell:0,childIndex})}}' bindtap='navigateCtl'>
  70. <view class='li-text'>{{derver?'已绑定':'未绑定'}}</view>
  71. </view>
  72. </view>
  73. <view class='li' wx:if='{{isAddChild!=1}}'>
  74. <view class='li-label'>学习系统服务</view>
  75. <view class='li-content li-arrow' data-url='shell_device' data-method='{{({childName,imgUrl,derver,vipId,isShell:1,isZybService,childIndex,zybEndDate,childType,vipId})}}' bindtap='navigateCtl'>
  76. <view class='li-text'>{{childType==1?'内部人员使用':isZybService==1?'有服务':'无服务'}}</view>
  77. </view>
  78. </view>
  79. <view class='li' wx:if='{{isAddChild!=1}}'>
  80. <view class='li-label'>添加家长</view>
  81. <view class='li-contents li-arrow' data-url='add_parent' data-method='{{({vipId})}}' bindtap='navigateCtl'>
  82. </view>
  83. </view>
  84. <view class='button' bindtap="{{isAddChild==0?'saveInfo':'addChildren'}}">保存</view>
  85. </view>
  86. <!-- 副家长的孩子 -->
  87. <view class='list' wx:if='{{isMain==0}}'>
  88. <view class='li'>
  89. <view class='li-label'>孩子姓名</view>
  90. <view class='li-content'>
  91. <view class='li-text'>{{childName || ''}}</view>
  92. </view>
  93. </view>
  94. <view class='li'>
  95. <view class='li-label'>家长姓名</view>
  96. <view class='li-content'>
  97. <view class='li-text'>{{parentName || ''}}</view>
  98. </view>
  99. </view>
  100. <view class='li'>
  101. <view class='li-label'>所读年级</view>
  102. <view class='li-content'>
  103. <view class='li-text'>{{grade || ''}}</view>
  104. </view>
  105. </view>
  106. <view class='li'>
  107. <view class='li-label'>所读学校</view>
  108. <view class='li-content'>
  109. <view class='li-text'>{{school|| ''}}</view>
  110. </view>
  111. </view>
  112. <view class='li'>
  113. <view class='li-label'>孩子头像</view>
  114. <view class='li-content'>
  115. <image class='li-image' src="{{imgUrl?baseImgUrl + imgUrl:'../../image/default_headicon2.png'}}"></image>
  116. </view>
  117. </view>
  118. <view class='li'>
  119. <view class='li-label'>孩子性别</view>
  120. <view class='li-content'>
  121. <view class='li-text'>{{sex == 1 ? '男' : sex == 2 ? '女' : ''}}</view>
  122. </view>
  123. </view>
  124. </view>
  125. </view>
  126. <template is='picker' wx:if='{{isShowPickerModel}}' data='{{...pickerData[pickerIndex],pickerIndex}}'></template>
  127. </view>