newuser.wxml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <!--pages/newuser/newuser.wxml-->
  2. <!-- <text>pages/newuser/newuser.wxml</text> -->
  3. <view class="pagetop">
  4. <van-cell-group >
  5. <van-cell title="完善信息" label="请填写以下个人信息" size="large"/>
  6. <van-field
  7. value="{{ name }}"
  8. required
  9. clearable
  10. label="姓名"
  11. placeholder="请输入用户名"
  12. size="large"
  13. />
  14. <van-field
  15. value="{{ iphone }}"
  16. type="iphone"
  17. label="手机号"
  18. placeholder="请输入手机号"
  19. required
  20. border="{{ false }}"
  21. size="large"
  22. />
  23. <van-field
  24. value="{{ id }}"
  25. type="id"
  26. label="身份证号"
  27. placeholder="请输入身份证号"
  28. required
  29. border="{{ false }}"
  30. size="large"
  31. />
  32. </van-cell-group>
  33. </view>
  34. <view class="middle">
  35. <van-cell-group>
  36. <!-- 身份选择器 -->
  37. <view bindtap="showPopup">
  38. <van-field
  39. label="请选择身份"
  40. title-width="5em"
  41. input-align="right"
  42. placeholder="请选择"
  43. value="{{gender}}"
  44. size="large"
  45. required
  46. readonly
  47. is-link
  48. />
  49. </view>
  50. <van-field
  51. value="{{ school }}"
  52. required
  53. clearable
  54. label="学校"
  55. placeholder="请填写学校全称"
  56. size="large"
  57. />
  58. <view bindtap="showPopuptime">
  59. <van-field
  60. label="入学时间"
  61. title-width="5em"
  62. input-align="right"
  63. placeholder="请选择"
  64. value="{{year}}年{{month}}月{{day}}日"
  65. size="large"
  66. required
  67. readonly
  68. is-link
  69. />
  70. </view>
  71. <view bindtap="showProject">
  72. <van-field
  73. label="专业"
  74. title-width="5em"
  75. input-align="right"
  76. placeholder="请选择"
  77. value="{{project}}"
  78. size="large"
  79. required
  80. readonly
  81. is-link
  82. />
  83. </view>
  84. <view bindtap="showHobby">
  85. <van-field
  86. label="美食偏好"
  87. title-width="5em"
  88. input-align="right"
  89. placeholder="请选择"
  90. value="{{hobby}}"
  91. size="large"
  92. readonly
  93. is-link
  94. />
  95. </view>
  96. </van-cell-group>
  97. </view>
  98. <view>
  99. <!-- 选择日期 -->
  100. <van-popup show="{{ showtime }}" bind:close="onClose" position="bottom"
  101. custom-style="height: 40%">
  102. <picker-view
  103. indicator-style="height: 60px;"
  104. style="width: 100%; height: 300px; margin-left: 50px;"
  105. value="{{value}}"
  106. bindchange="bindChange"
  107. >
  108. <picker-view-column>
  109. <view wx:for="{{years}}" wx:key='{{index}}' style="line-height: 50px">{{item}}年</view>
  110. </picker-view-column>
  111. <picker-view-column>
  112. <view wx:for="{{months}}" wx:key='{{index}}' style="line-height: 50px">{{item}}月</view>
  113. </picker-view-column>
  114. <picker-view-column>
  115. <view wx:for="{{days}}" wx:key='{{index}}' style="line-height: 50px">{{item}}日</view>
  116. </picker-view-column>
  117. </picker-view>
  118. </van-popup>
  119. </view>
  120. <!-- 选择身份 -->
  121. <van-popup show="{{ show }}" bind:close="onClose" position="bottom"
  122. custom-style="height: 40%">
  123. <van-picker title="选择身份" show-toolbar columns="{{ columns }}" bind:cancel="onClose"
  124. bind:confirm="onConfirm"/>
  125. </van-popup>
  126. <!-- 选择专业 -->
  127. <van-popup show="{{ showproject }}" bind:close="onClose" position="bottom"
  128. custom-style="height: 40%">
  129. <van-picker title="选择专业" show-toolbar columns="{{ columns2 }}" bind:cancel="onClose"
  130. bind:confirm="onConfirm2"/>
  131. </van-popup>
  132. <!-- 美食偏好 -->
  133. <van-popup show="{{ showhobby }}" bind:close="onClose" position="bottom"
  134. custom-style="height: 40%">
  135. <van-picker title="选择偏好" show-toolbar columns="{{ columns3 }}" bind:cancel="onClose"
  136. bind:confirm="onConfirm3"/>
  137. </van-popup>
  138. <view class="bottom">
  139. <van-button round type="primary" size="large" color="#7F7C7C">提交</van-button>
  140. </view>