myEdit.wxml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <!-- <StatusBar receiveData="{{statusbarobj}}" grade="{{grade}}" bindgradeTap="gradeTap" /> -->
  2. <view style="background:#f7f7f7;overflow: hidden;height: 100%">
  3. <button class="avatar-wrapper resetBtn" open-type="chooseAvatar" bind:chooseavatar="changeAvatar">
  4. <image class="avatar" src="{{user.avatar}}"></image>
  5. </button>
  6. <view class='setting-info'>
  7. <form bindsubmit="formSubmit" class='form'>
  8. <view class='nickname-box'>
  9. <text class='setting-title'>昵称</text>
  10. <view class='user-action'>
  11. <input name='nickname' type="nickname" placeholder="请输入昵称" class='nickname' maxlength="9" placeholder-class='placeholderStyle' value='{{user.nickName}}' bindblur='saveNickName'></input>
  12. </view>
  13. <view class='edit-img'>
  14. <image src='../../../static/image/edit_new.png' class='icon'></image>
  15. </view>
  16. </view>
  17. <view class='sex-box'>
  18. <view class='setting-title'>性别</view>
  19. <radio-group name='radioGroup1' class="radio-group" bindchange="optionAction">
  20. <label class="radio" wx:for="{{ sexs }}" wx:key="{{ index }}">
  21. <text class='sex-title'>{{ item.sex }}</text>
  22. <radio value="{{ item.value }}" checked="{{ item.checked }}" color='#fff' />
  23. </label>
  24. </radio-group>
  25. </view>
  26. <view class='birthday-box'>
  27. <picker name='picker' mode="date" value="{{ date }}" start="1900-01-01" end="2020-09-01" bindchange="bindDateChange">
  28. <view class="picker">
  29. <text class='setting-title'>生日</text>
  30. <text>{{ date }}</text>
  31. </view>
  32. </picker>
  33. <view class='edit-img'>
  34. <image src='../../../static/image/edit_new.png' class='icon'></image>
  35. </view>
  36. </view>
  37. <view class='birthday-box'>
  38. <picker name='gradePicker' value="{{gradeIndex}}" range="{{gradeArray}}" bindchange="bindGradeChange">
  39. <view class="picker">
  40. <text class='setting-title'>年级</text>
  41. <text>{{ gradeObject[gradeIndex].name}}</text>
  42. </view>
  43. </picker>
  44. <view class='edit-img'>
  45. <image src='../../../static/image/edit_new.png' class='icon'></image>
  46. </view>
  47. </view>
  48. <view class='school-box'>
  49. <text class='setting-title'>学校</text>
  50. <input name='address' maxlength="14" class='address' type='text' placeholder='{{user.schoolName}}' value='{{ user.schoolName }}' bindblur='saveAddress'></input>
  51. <view class='edit-image'>
  52. <image src='../../../static/image/edit_new.png' class='icon'></image>
  53. </view>
  54. </view>
  55. <view class="submit-btn">
  56. <button class='btn' formType="submit">保存</button>
  57. </view>
  58. </form>
  59. </view>
  60. </view>