myEdit.wxml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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='birthday-box'>
  41. <picker name='gradePicker' value="{{gradeIndex}}" range="{{gradeArray}}" bindchange="bindGradeChange">
  42. <view class="picker">
  43. <text class='setting-title'>年级</text>
  44. <text>{{ gradeObject[gradeIndex].name}}</text>
  45. </view>
  46. </picker>
  47. <view class='edit-img'>
  48. <image src='../../../static/image/edit_new.png' class='icon'></image>
  49. </view>
  50. </view>
  51. <view class='school-box'>
  52. <text class='setting-title'>学校</text>
  53. <input name='address' maxlength="14" class='address' type='text' placeholder='{{user.schoolName}}' value='{{ user.schoolName }}' bindblur='saveAddress'></input>
  54. <view class='edit-image'>
  55. <image src='../../../static/image/edit_new.png' class='icon'></image>
  56. </view>
  57. </view>
  58. <view class="submit-btn">
  59. <button class='btn' formType="submit">保存</button>
  60. </view>
  61. </form>
  62. </view>
  63. </view>