personaldataModifythe.wxml 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. <!-- 填写资料 -->
  2. <view class='data_box'>
  3. <view class='data_name c'> <!-- 姓名 -->
  4. <text>我的昵称</text>
  5. <input type='text' placeholder="填写您的姓名" bindinput="getPhone" value="{{personal.nickname}}"></input>
  6. </view>
  7. <view class="Choice_dx_box" bindtap="GenderEvent"> <!-- 性别 单项选择器-->
  8. <!-- <picker bindchange="GenderEvent" value="{{index}}" range="{{selectArray}}"> -->
  9. <view class='Choice_dx c'>
  10. <view class="Choice_dx_title">性别</view>
  11. <view class='Choice_dx_text' >
  12. <!-- {{selectArray[index] ? selectArray[index] : personal.sex}} -->
  13. {{personal.sex}}
  14. </view>
  15. </view>
  16. <!-- </picker> -->
  17. </view>
  18. <view class="Choice_dx_box"> <!-- 年龄 单项选择器-->
  19. <picker bindchange="AgeEvent" value="{{Ageindex}}" range="{{AgeArray}}" >
  20. <view class='Choice_dx c'>
  21. <view class="Choice_dx_title">年龄</view>
  22. <view class='Choice_dx_text' wx:if='{{personacodel.code == 201}}'>
  23. {{AgeArray[Ageindex]}}
  24. </view>
  25. <view class='Choice_dx_text' wx:else>
  26. {{AgeArray[Ageindex] ? AgeArray[Ageindex] : "请选择"}}
  27. </view>
  28. </view>
  29. </picker>
  30. </view>
  31. <view class="Choice_dx_box"> <!-- 身高 单项选择器-->
  32. <picker bindchange="heightEvent" value="{{heightindex}}" range="{{heightArray}}">
  33. <view class='Choice_dx c'>
  34. <view class="Choice_dx_title">身高</view>
  35. <view class='Choice_dx_text' wx:if='{{personacodel.code == 201}}'>
  36. {{heightArray[heightindex]}}
  37. </view>
  38. <view class='Choice_dx_text' wx:else>
  39. {{heightArray[heightindex]? heightArray[heightindex] : "请选择"}}
  40. </view>
  41. </view>
  42. </picker>
  43. </view>
  44. <view class="Choice_dx_box"> <!-- 住址 多项选择器 -->
  45. <picker mode="multiSelector" range="{{multiArray}}" bindcolumnchange="columnchange" value="{{multiIndex}}" bindchange='pickchange'>
  46. <view class='Choice_dx c'>
  47. <view class="Choice_dx_title">住址</view>
  48. <view class='Choice_dx_text' >
  49. <view class='right' wx:if="{{multiArray[2][multiIndex[2]] && step == 0}}">
  50. <text>{{personal.province}}-{{personal.city}}-{{personal.area}}</text>
  51. </view>
  52. <view class="picker c" wx:if="{{multiArray[0][multiIndex[0]] && step == 1}}">
  53. {{ multiArray[0][multiIndex[0]] }}-{{ multiArray[1][multiIndex[1]] }}-{{ multiArray[2][multiIndex[2]] }}
  54. </view>
  55. </view>
  56. </view>
  57. </picker>
  58. </view>
  59. <view class="Choice_dx_box"> <!-- 学历 单项选择器-->
  60. <picker bindchange="EducationEvent" value="{{Educationindex}}" range="{{EducationArray}}" range-key="name">
  61. <view class='Choice_dx c'>
  62. <view class="Choice_dx_title">学历</view>
  63. <view class='Choice_dx_text' wx:if='{{personacodel.code == 201}}'>
  64. {{EducationArray[Educationindex].name}}
  65. </view>
  66. <view class='Choice_dx_text' wx:else>
  67. {{EducationArray[Educationindex].name ? EducationArray[Educationindex].name : "请选择"}}
  68. </view>
  69. </view>
  70. </picker>
  71. </view>
  72. <view class="Choice_dx_box"> <!-- 婚史 单项选择器-->
  73. <picker bindchange="MarriageEvent" value="{{Marriageindex}}" range="{{MarriageArray}}" range-key="name">
  74. <view class='Choice_dx c'>
  75. <view class="Choice_dx_title">婚史</view>
  76. <view class='Choice_dx_text' wx:if='{{personacodel.code == 201}}'>
  77. {{MarriageArray[Marriageindex].name}}
  78. </view>
  79. <view class='Choice_dx_text' wx:else>
  80. {{MarriageArray[Marriageindex].name ? MarriageArray[Marriageindex].name : "请选择"}}
  81. </view>
  82. </view>
  83. </picker>
  84. </view>
  85. <view class="Choice_dx_box"> <!-- 收入 单项选择器-->
  86. <picker bindchange="incomeEvent" value="{{incomeindex}}" range="{{incomeArray}}" range-key="name">
  87. <view class='Choice_dx c'>
  88. <view class="Choice_dx_title">收入</view>
  89. <view class='Choice_dx_text' wx:if='{{personacodel.code == 201}}'>
  90. {{incomeArray[incomeindex].name}}
  91. </view>
  92. <view class='Choice_dx_text' wx:else>
  93. {{incomeArray[incomeindex].name ? incomeArray[incomeindex].name : "请选择"}}
  94. </view>
  95. </view>
  96. </picker>
  97. </view>
  98. <view class="Choice_dx_box"> <!-- 职业 单项选择器-->
  99. <picker bindchange="OccupationEvent" value="{{Occupationindex}}" range="{{OccupationArray}}" range-key="name">
  100. <view class='Choice_dx c'>
  101. <view class="Choice_dx_title">职业</view>
  102. <view class='Choice_dx_text' wx:if='{{personacodel.code == 201}}'>
  103. {{OccupationArray[Occupationindex].name}}
  104. </view>
  105. <view class='Choice_dx_text' wx:else>
  106. {{OccupationArray[Occupationindex].name ? OccupationArray[Occupationindex].name : "请选择"}}
  107. </view>
  108. </view>
  109. </picker>
  110. </view>
  111. <view class='NextStep' bindtap='register'>保存</view>
  112. </view>