index.wxml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <view class="box">
  2. <view class="content">
  3. <van-cell-group>
  4. <van-field
  5. value="{{ name }}"
  6. clearable
  7. label="姓名"
  8. placeholder="请填写姓名"
  9. />
  10. <van-field
  11. value="{{ phone }}"
  12. label="手机号"
  13. placeholder="请填写手机号"
  14. type="number"
  15. />
  16. <van-cell title="性别" value="{{ sex }}" title-width="100px" class="simulate-field">
  17. <van-radio-group v-model="chargeType" direction="horizontal" bind:change="onChange">
  18. <van-radio name="0" checked-color="#F88300">男</van-radio>
  19. <van-radio name="1" checked-color="#F88300">女</van-radio>
  20. </van-radio-group>
  21. </van-cell>
  22. <van-field
  23. value="{{ address }}"
  24. label="收货地址"
  25. placeholder="请点击选择地址"
  26. is-link
  27. bind:click-icon="selectaddress"
  28. />
  29. <van-field
  30. value="{{ number }}"
  31. label="门牌号"
  32. placeholder="例:1号公寓2门312"
  33. />
  34. <van-cell title="设置默认" value="{{ default }}"
  35. size="small" >
  36. <van-switch checked="{{ checked }}"
  37. bind:change="onChange" size="20px"
  38. active-color="#0D9C2B"
  39. inactive-color="fff"
  40. checked="{{checked}}"
  41. />
  42. </van-cell>
  43. </van-cell-group>
  44. </view>
  45. <view class="button">
  46. <van-row>
  47. <van-col span="9" offset="2">
  48. <van-button round type="info" block color="#999999" size="small">删除</van-button>
  49. </van-col>
  50. <van-col span="9" offset="2">
  51. <van-button round type="info" block color="#F88300" size="small">保存</van-button>
  52. </van-col>
  53. </van-row>
  54. </view>
  55. </view>