myEdit_20190327152925.wxml 2.7 KB

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