myEdit_20190327162022.wxml 2.8 KB

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