myEdit_20190327140358.wxml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <view>
  2. <view class='setting-info'>
  3. <form bindsubmit="formSubmit" class='form'>
  4. <view class="avatarBox">
  5. <image src="{{user.avatar}}" class="avatarImage" />
  6. </view>
  7. <view class='nickname-box'>
  8. <text class='setting-title'>宝贝昵称</text>
  9. <view class='user-action'>
  10. <input name='nickname' class='nickname' type='text' maxlength="9" placeholder='{{user.nickName}}' placeholder-class='placeholderStyle' focus='{{ true }}' value='{{user.nickName}}' bindblur='saveNickName'>
  11. </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='occupation-box'>
  38. <text class='setting-title'>职业</text>
  39. <radio-group name='radioGroup2' class="radio-group" bindchange="optionSetting">
  40. <label class="radio" wx:for="{{ occupations }}" wx:key="{{ index }}">
  41. <text class='sex-title'>{{ item.value }}</text>
  42. <radio value="{{ item.value }}" checked="{{ item.checked }}" color='#fff' />
  43. </label>
  44. </radio-group>
  45. </view>
  46. <view class='school-box'>
  47. <text class='setting-title'>学校</text>
  48. <input name='address' maxlength="14" class='address' type='text' placeholder='{{user.schoolName}}' value='{{ user.schoolName }}' bindblur='saveAddress'></input>
  49. <view class='edit-image'>
  50. <image src='../../../static/image/edit_new.png' class='icon'></image>
  51. </view>
  52. </view>
  53. <view class="submit-btn">
  54. <button class='btn' formType="submit">保存</button>
  55. </view>
  56. </form>
  57. </view>
  58. </view>