myEdit.wxml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <view>
  2. <view class='setting-info'>
  3. <form bindsubmit="formSubmit" class='form'>
  4. <view class='nickname-box'>
  5. <text class='setting-title'>昵称</text>
  6. <view class='user-action'>
  7. <input name='nickname' class='nickname' type='text' placeholder='喔喔' placeholder-class='placeholderStyle' focus='{{ true }}' value='{{ nickname }}' bindblur='saveNickName'>
  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. <view class='setting-title'>性别</view>
  16. <radio-group name='radioGroup1' class="radio-group" bindchange="optionAction">
  17. <label class="radio" wx:for="{{ sexs }}" wx:key="{{ index }}">
  18. <text class='sex-title'>{{ item.value }}</text>
  19. <radio value="{{ item.value }}" checked="{{ item.checked }}" color='#fff' />
  20. </label>
  21. </radio-group>
  22. </view>
  23. <view class='birthday-box'>
  24. <picker name='picker' mode="date" value="{{ date }}" start="1900-01-01" end="2018-09-01" bindchange="bindDateChange">
  25. <view class="picker">
  26. <text class='setting-title'>生日</text>
  27. <text>{{ date }}</text>
  28. </view>
  29. </picker>
  30. </view>
  31. <view class='occupation-box'>
  32. <text class='setting-title'>职业</text>
  33. <radio-group name='radioGroup2' class="radio-group" bindchange="optionSetting">
  34. <label class="radio" wx:for="{{ occupations }}" wx:key="{{ index }}">
  35. <text class='sex-title'>{{ item.value }}</text>
  36. <radio value="{{ item.value }}" checked="{{ item.checked }}" color='#fff' />
  37. </label>
  38. </radio-group>
  39. </view>
  40. <view class='school-box'>
  41. <text class='setting-title'>学校</text>
  42. <input name='address' class='address' type='text' placeholder='北京市海淀区万泉胜景远小学' value='{{ msg }}' bindblur='saveAddress'></input>
  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>