myEdit_20190128180953.wxml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <view>
  2. <view class='setting-info'>
  3. <form bindsubmit="formSubmit" class='form'>
  4. <view class='nickname-box'>
  5. <text class='setting-title'>宝贝昵称</text>
  6. <view class='user-action'>
  7. <input name='nickname' class='nickname' type='text' maxlength="9" placeholder='{{user.nickName}}' placeholder-class='placeholderStyle' focus='{{ true }}' value='{{user.nickName}}' bindblur='saveNickName'>
  8. </input>
  9. </view>
  10. <view class='edit-img'>
  11. <image src='../../../static/image/edit_new.png' class='icon'></image>
  12. </view>
  13. </view>
  14. <view class='sex-box'>
  15. <view class='setting-title'>性别</view>
  16. <radio-group name='radioGroup1' class="radio-group" bindchange="optionAction">
  17. <label class="radio" wx:for="{{ sexs }}" wx:key="{{ index }}">
  18. <text class='sex-title'>{{ item.sex }}</text>
  19. <radio value="{{ item.value }}" checked="{{ item.checked }}" color='#fff' />
  20. </label>
  21. </radio-group>
  22. </view>
  23. <view class='birthday-box'>
  24. <picker name='picker' mode="date" value="{{ date }}" start="1900-01-01" end="2020-09-01" bindchange="bindDateChange">
  25. <view class="picker">
  26. <text class='setting-title'>生日</text>
  27. <text>{{ date }}</text>
  28. </view>
  29. </picker>
  30. <view class='edit-img'>
  31. <image src='../../../static/image/edit_new.png' class='icon'></image>
  32. </view>
  33. </view>
  34. <view class='occupation-box'>
  35. <text class='setting-title'>职业</text>
  36. <radio-group name='radioGroup2' class="radio-group" bindchange="optionSetting">
  37. <label class="radio" wx:for="{{ occupations }}" wx:key="{{ index }}">
  38. <text class='sex-title'>{{ item.value }}</text>
  39. <radio value="{{ item.value }}" checked="{{ item.checked }}" color='#fff' />
  40. </label>
  41. </radio-group>
  42. </view>
  43. <view class='school-box'>
  44. <text class='setting-title'>学校</text>
  45. <input name='address' maxlength="14" class='address' type='text' placeholder='{{user.schoolName}}' value='{{ user.schoolName }}' bindblur='saveAddress'></input>
  46. <view class='edit-image'>
  47. <image src='../../../static/image/edit_new.png' class='icon'></image>
  48. </view>
  49. </view>
  50. <view class="submit-btn">
  51. <button class='btn' formType="submit">保存</button>
  52. </view>
  53. </form>
  54. </view>
  55. </view>