myEdit.wxml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <view class='container'>
  2. <view class='setting-info'>
  3. <form bindsubmit="formSubmit">
  4. <view class='nickname-box'>
  5. <text class='setting-title'>昵称</text>
  6. <view class='user-action'>
  7. <input class='nickname' type='text' placeholder='喔喔' placeholder-class='placeholderStyle'>
  8. </input>
  9. </view>
  10. <view class='edit-img'>
  11. <image src='../../../static/image/edit.png' class='icon'></image>
  12. </view>
  13. </view>
  14. <view class='sex-box'>
  15. <text class='setting-title'>性别</text>
  16. <view class='radio-box' wx:for='{{ zradio }}' wx:key='{{ index }}' data-index='{{ index }}' bindtap='radioChange'>
  17. <view>{{ item.sex }}</view>
  18. <view class='radio'>
  19. <view class='circle' wx:if='{{ item.bool === !item.checked }}'></view>
  20. </view>
  21. </view>
  22. </view>
  23. <view class='birthday-box'>
  24. <text class='setting-title'>生日</text>
  25. <view class='date'>2001年12月12日</view>
  26. </view>
  27. <view class='occupation-box'>
  28. <text class='setting-title'>职业</text>
  29. <view class='radio-box' wx:for='{{ occupations }}' wx:key='{{ index }}' data-index='{{ index }}' bindtap='radioSetting'>
  30. <view>{{ item.occupation }}</view>
  31. <view class='radio'>
  32. <view class='circle' wx:if='{{ item.status === index && item.checked }}'></view>
  33. </view>
  34. </view>
  35. </view>
  36. <view class='school-box'>
  37. <text class='setting-title'>学校</text>
  38. <picker mode="region" bindchange="bindRegionChange" value="{{region}}" custom-item="{{customItem}}">
  39. <view class="picker">
  40. {{region[0]}}{{region[1]}}{{region[2]}}
  41. </view>
  42. </picker>
  43. <view class='edit-image'>
  44. <image src='../../../static/image/edit.png' class='icon'></image>
  45. </view>
  46. </view>
  47. <view class="submit-btn">
  48. <button class='btn' formType="submit">确定</button>
  49. </view>
  50. </form>
  51. </view>
  52. </view>