myEdit_20190327155027.wxml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <view>
  2. <view class='setting-info'>
  3. <form bindsubmit="formSubmit" class='form'>
  4. <view class="avatarBox" name="avatar" value="user.avatar">
  5. <image src="{{user.avatar}}" bindtap="changeAvatar" class="avatarImage" />
  6. <view class="avatar-text" bindtap="changeAvatar">
  7. <text >修改头像</text>
  8. <image src='../../../static/image/edit_new.png' class='icon'></image>
  9. </view>
  10. </view>
  11. <view class='nickname-box'>
  12. <text class='setting-title'>宝贝昵称</text>
  13. <view class='user-action'>
  14. <input name='nickname' class='nickname' type='text' maxlength="9" placeholder='{{user.nickName}}' placeholder-class='placeholderStyle' focus='{{ true }}' value='{{user.nickName}}' bindblur='saveNickName'>
  15. </input>
  16. </view>
  17. <view class='edit-img'>
  18. <image src='../../../static/image/edit_new.png' class='icon'></image>
  19. </view>
  20. </view>
  21. <view class='sex-box'>
  22. <view class='setting-title'>性别</view>
  23. <radio-group name='radioGroup1' class="radio-group" bindchange="optionAction">
  24. <label class="radio" wx:for="{{ sexs }}" wx:key="{{ index }}">
  25. <text class='sex-title'>{{ item.sex }}</text>
  26. <radio value="{{ item.value }}" checked="{{ item.checked }}" color='#fff' />
  27. </label>
  28. </radio-group>
  29. </view>
  30. <view class='birthday-box'>
  31. <picker name='picker' mode="date" value="{{ date }}" start="1900-01-01" end="2020-09-01" bindchange="bindDateChange">
  32. <view class="picker">
  33. <text class='setting-title'>生日</text>
  34. <text>{{ date }}</text>
  35. </view>
  36. </picker>
  37. <view class='edit-img'>
  38. <image src='../../../static/image/edit_new.png' class='icon'></image>
  39. </view>
  40. </view>
  41. <view class='occupation-box'>
  42. <text class='setting-title'>职业</text>
  43. <radio-group name='radioGroup2' class="radio-group" bindchange="optionSetting">
  44. <label class="radio" wx:for="{{ occupations }}" wx:key="{{ index }}">
  45. <text class='sex-title'>{{ item.value }}</text>
  46. <radio value="{{ item.value }}" checked="{{ item.checked }}" color='#fff' />
  47. </label>
  48. </radio-group>
  49. </view>
  50. <view class='school-box'>
  51. <text class='setting-title'>学校</text>
  52. <input name='address' maxlength="14" class='address' type='text' placeholder='{{user.schoolName}}' value='{{ user.schoolName }}' bindblur='saveAddress'></input>
  53. <view class='edit-image'>
  54. <image src='../../../static/image/edit_new.png' class='icon'></image>
  55. </view>
  56. </view>
  57. <view class="submit-btn">
  58. <button class='btn' formType="submit">保存</button>
  59. </view>
  60. </form>
  61. </view>
  62. </view>