myEdit.wxml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 class='nickname' type='text' placeholder='喔喔' placeholder-class='placeholderStyle' focus='{{ true }}'>
  8. </input>
  9. </view>
  10. <view class='edit-img'>
  11. <image src='../../../static/image/edit.png' class='icon'></image>
  12. </view>
  13. </view>
  14. <view class='sex-box'>
  15. <view class='setting-title'>性别</view>
  16. <radio-group class="radio-group" bindchange="optionAction">
  17. <label class="radio" wx:for="{{ sexs }}" wx:key="{{ index }}">
  18. <text class='sex-title'>{{ item.value }}</text>
  19. <radio value="{{ item.value }}" checked="{{ item.checked }}" color='#fff' />
  20. </label>
  21. </radio-group>
  22. </view>
  23. <view class='birthday-box'>
  24. <text class='setting-title'>生日</text>
  25. <input type='text' placeholder='2001年12月12日'></input>
  26. </view>
  27. <view class='occupation-box'>
  28. <text class='setting-title'>职业</text>
  29. <radio-group class="radio-group" bindchange="optionSetting">
  30. <label class="radio" wx:for="{{ occupations }}" wx:key="{{ index }}">
  31. <text class='sex-title'>{{ item.value }}</text>
  32. <radio value="{{ item.value }}" checked="{{ item.checked }}" color='#fff' />
  33. </label>
  34. </radio-group>
  35. </view>
  36. <view class='school-box'>
  37. <text class='setting-title'>学校</text>
  38. <input class='address' type='text' placeholder='北京市海淀区万泉胜景远小学'></input>
  39. <view class='edit-image'>
  40. <image src='../../../static/image/edit.png' class='icon'></image>
  41. </view>
  42. </view>
  43. <view class="submit-btn">
  44. <button class='btn' formType="submit">确定</button>
  45. </view>
  46. </form>
  47. </view>
  48. </view>