new.wxml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <!--pages/new/new.wxml-->
  2. <view class="all">
  3. <!-- 大标题 -->
  4. <view class="top">
  5. <view class="title">完善信息</view>
  6. <view class="small">请填写以下个人信息</view>
  7. </view>
  8. <!-- 内容 -->
  9. <view class="content">
  10. <view class="name">
  11. <van-field
  12. value="{{ username }}"
  13. label="用户名"
  14. required="true"
  15. placeholder="请输入用户名"
  16. />
  17. </view>
  18. <view class="name">
  19. <van-field
  20. value="{{ phone }}"
  21. label="手机号"
  22. placeholder="请输入手机号"
  23. required="true"
  24. />
  25. </view>
  26. <view class="name">
  27. <van-field
  28. value="{{ id }}"
  29. label="身份号"
  30. placeholder="请输入身份证号"
  31. required="true"
  32. />
  33. </view>
  34. <!-- 请选择身份 -->
  35. <view class="name">
  36. <view class="section">
  37. <picker bindchange="bindPickerChange" value="{{index}}" range="{{array}}">
  38. <van-cell title="请选择身份" is-link value="{{array[index]}}" required="true"/>
  39. </picker>
  40. </view>
  41. </view>
  42. <!-- 学校 -->
  43. <view class="name">
  44. <van-field
  45. value="{{ school }}"
  46. label="学校"
  47. placeholder="请输入学校全称"
  48. />
  49. </view>
  50. <!-- 入学时间 时间选择器 -->
  51. <view class="name" >
  52. <picker class="in-name" mode="date" value="{{date}}" bindchange="bindDateChange" label="请选择身份">
  53. <view class="picker">
  54. <text class="xing">*</text>入学时间:<text class="picker-conter">{{date}}</text>
  55. </view>
  56. </picker>
  57. </view>
  58. <!-- 专业 -->
  59. <view class="name">
  60. <picker bindchange="bindPicker2Change" value="{{index2}}" range="{{array2}}" >
  61. <van-cell title="专业" is-link value="{{array2[index2]}}" required="true" placeholder="请输入"/>
  62. </picker>
  63. </view>
  64. <!-- 美食偏好 -->
  65. <view class="name">
  66. <picker bindchange="bindPicker3Change" value="{{index3}}" range="{{array3}}">
  67. <van-cell title="美食偏好" is-link value="{{array3[index3]}}" placeholder="请输入"/>
  68. </picker>
  69. </view>
  70. </view>
  71. <!-- 按钮 -->
  72. <view class="box">
  73. <van-button round type="info" color="red" block>提交</van-button>
  74. </view>
  75. </view>