myEdit.wxml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <view class='container'>
  2. <form bindsubmit="formSubmit">
  3. <view class='nickname-box'>
  4. <text class='text'>昵称</text>
  5. <input class='nickname' type='text' placeholder='喔喔' placeholder-class='placeholderStyle'>
  6. </input>
  7. <image src='https://developers.weixin.qq.com/miniprogram/dev/image/cat/0.jpg?t=18102320' class='icon'></image>
  8. </view>
  9. <view class='sex-box'>
  10. <text class='sex'>性别</text>
  11. <radio-group class="radio-group" bindchange="radioChange">
  12. <label class='radios' wx:for="{{ items }}" wx:key="{{ index }}">
  13. <text>{{ item.sex }}</text>
  14. <radio class='radio' value="{{ item.sex }}" checked="{{item.checked}}"/>
  15. </label>
  16. </radio-group>
  17. </view>
  18. <view class='birthday-box'>
  19. <text class='birthday'>生日</text>
  20. <view class='date'>2001年12月12日</view>
  21. </view>
  22. <view class='occupation-box'>
  23. <radio-group class="radio-groups" bindchange="checkboxChange">
  24. <text class='occupation'>职业</text>
  25. <label class="checkbox" wx:for="{{ checkbox }}" wx:key="{{ index }}">
  26. <text>{{ item.occupation }}</text>
  27. <radio value="{{ item.occupation }}" checked="{{item.checked}}"/>
  28. </label>
  29. </radio-group>
  30. </view>
  31. <view class='school-box'>
  32. <text class='sex'>学校</text>
  33. <view class="address-box">
  34. <picker mode="region" bindchange="bindRegionChange" value="{{region}}" custom-item="{{customItem}}">
  35. <view class="picker">
  36. 当前选择:{{region[0]}},{{region[1]}},{{region[2]}}
  37. </view>
  38. </picker>
  39. </view>
  40. </view>
  41. <view class="submit-btn">
  42. <button class='btn' formType="submit">完成</button>
  43. </view>
  44. </form>
  45. </view>