myEdit.wxml 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <view style="background:#f7f7f7;overflow: hidden;height: 100%">
  2. <button class="avatar-wrapper resetBtn" open-type="chooseAvatar" bind:chooseavatar="changeAvatar">
  3. <image class="avatar" src="{{user.avatar}}"></image>
  4. </button>
  5. <view class='setting-info'>
  6. <form bindsubmit="formSubmit" class='form'>
  7. <view class='nickname-box'>
  8. <text class='setting-title'>昵称</text>
  9. <view class='user-action'>
  10. <input name='nickname' type="nickname" placeholder="请输入昵称" class='nickname' maxlength="9" placeholder-class='placeholderStyle' value='{{user.nickName}}' bindblur='saveNickName'></input>
  11. </view>
  12. <view class='edit-img'>
  13. <image src='../../../static/image/edit_new.png' class='icon'></image>
  14. </view>
  15. </view>
  16. <view class='sex-box'>
  17. <view class='setting-title'>性别</view>
  18. <radio-group name='radioGroup1' class="radio-group" bindchange="optionAction">
  19. <label class="radio" wx:for="{{ sexs }}" wx:key="{{ index }}">
  20. <text class='sex-title'>{{ item.sex }}</text>
  21. <radio value="{{ item.value }}" checked="{{ item.checked }}" color='#fff' />
  22. </label>
  23. </radio-group>
  24. </view>
  25. <view class='birthday-box'>
  26. <picker name='picker' mode="date" value="{{ date }}" start="1900-01-01" end="2020-09-01" bindchange="bindDateChange">
  27. <view class="picker">
  28. <text class='setting-title'>生日</text>
  29. <text>{{ date }}</text>
  30. </view>
  31. </picker>
  32. <view class='edit-img'>
  33. <image src='../../../static/image/edit_new.png' class='icon'></image>
  34. </view>
  35. </view>
  36. <view class='birthday-box'>
  37. <picker name='gradePicker' value="{{gradeIndex}}" range="{{gradeArray}}" bindchange="bindGradeChange">
  38. <view class="picker">
  39. <text class='setting-title'>年级</text>
  40. <text>{{ gradeObject[gradeIndex].name}}</text>
  41. </view>
  42. </picker>
  43. <view class='edit-img'>
  44. <image src='../../../static/image/edit_new.png' class='icon'></image>
  45. </view>
  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>