myEdit.wxml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!-- <StatusBar receiveData="{{statusbarobj}}" grade="{{grade}}" bindgradeTap="gradeTap" /> -->
  2. <view style="background:#f7f7f7;margin-top:-30rpx;">
  3. <view class="avatarBox" name="avatar" value="user.avatar">
  4. <image src="{{user.avatar}}" bindtap="changeAvatar" class="avatarImage" />
  5. <view class="avatar-text" bindtap="changeAvatar">
  6. <text>修改头像</text>
  7. <image src='../../../static/image/edit_new.png' class='icon'></image>
  8. </view>
  9. </view>
  10. <view class='setting-info'>
  11. <form bindsubmit="formSubmit" class='form'>
  12. <view class='nickname-box'>
  13. <text class='setting-title'>昵称</text>
  14. <view class='user-action'>
  15. <input name='nickname' class='nickname' type='text' maxlength="9" placeholder='{{user.wechatName}}' placeholder-class='placeholderStyle' focus='{{ true }}' value='{{user.wechatName}}' bindblur='saveNickName'></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='birthday-box'>
  42. <picker name='gradePicker' value="{{gradeIndex}}" range="{{gradeArray}}" bindchange="bindGradeChange">
  43. <view class="picker">
  44. <text class='setting-title'>年级</text>
  45. <text>{{ gradeObject[gradeIndex].name}}</text>
  46. </view>
  47. </picker>
  48. <view class='edit-img'>
  49. <image src='../../../static/image/edit_new.png' class='icon'></image>
  50. </view>
  51. </view>
  52. <view class='school-box'>
  53. <text class='setting-title'>学校</text>
  54. <input name='address' maxlength="14" class='address' type='text' placeholder='{{user.schoolName}}' value='{{ user.schoolName }}' bindblur='saveAddress'></input>
  55. <view class='edit-image'>
  56. <image src='../../../static/image/edit_new.png' class='icon'></image>
  57. </view>
  58. </view>
  59. <view class="submit-btn">
  60. <button class='btn' formType="submit">保存</button>
  61. </view>
  62. </form>
  63. </view>
  64. </view>