change.wxml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <!--pages/address/address.wxml-->
  2. <view class="all">
  3. <!-- 内容 -->
  4. <view class="content">
  5. <!-- 姓名 -->
  6. <view class="name">
  7. <van-field
  8. value="{{ name }}"
  9. label="姓名"
  10. placeholder="请填写姓名"
  11. />
  12. </view>
  13. <!-- 手机号 -->
  14. <view class="name">
  15. <van-field
  16. value="{{ phone }}"
  17. label="手机号"
  18. placeholder="请填写手机号"
  19. />
  20. </view>
  21. <!-- 性别 -->
  22. <view class="gender">
  23. <view style="float: left; margin: 0.8rem 1rem; color: rgb(117, 117, 117);">性别</view>
  24. <van-radio-group value="{{ radio }}" bind:change="onChange" direction="horizontal">
  25. <van-radio use-icon-slot value="{{ radio }}" name="1">
  26. <view style="float: left; margin-top: 0.5rem;">男</view>
  27. <image slot="icon" src="{{ radio === '1' ? icon.active : icon.normal }}" style="width: 1rem;height: 1rem; margin-top: 1rem; margin-left: 3rem;"/>
  28. </van-radio>
  29. <van-radio use-icon-slot value="{{ radio }}" name="2" >
  30. <view style="float: left; margin-top: 0.5rem;">女</view>
  31. <image slot="icon" src="{{ radio === '2' ? icon.active : icon.normal }}" style="width: 1rem;height: 1rem; margin-top: 1rem;" />
  32. </van-radio>
  33. </van-radio-group>
  34. </view>
  35. <!-- 选择地址 -->
  36. <view class="name">
  37. <van-cell title="收货地址" is-link value="请点击选择地址" center="true" bind:click="onClickShow"/>
  38. <van-overlay show="{{ show }}" bind:click="onClickHide" z-index="100">
  39. <view class="wrapper">
  40. <view class="block" catch:tap="noop" />
  41. </view>
  42. </van-overlay>
  43. </view>
  44. <!-- 门牌号 -->
  45. <view class="name">
  46. <van-field
  47. value="{{ housu }}"
  48. label="姓名"
  49. placeholder="例:1号公寓2门312"
  50. />
  51. </view>
  52. <!-- 默认 -->
  53. <view class="gender">
  54. <view style="float: left; margin: 0.8rem 1rem; color: rgb(117, 117, 117);">设置默认</view>
  55. <van-switch checked="{{ checked }}"
  56. bind:change="onChange2"
  57. active-color="#07c160"
  58. inactive-color="#C0C0C0" style="position:relative;left: 13rem; top: 0.7rem;"size="20px"/>
  59. </view>
  60. </view>
  61. <!-- 按钮 -->
  62. <view class="box">
  63. <van-button round type="info" color="#C0C0C0" style="position: relative;left: 4rem;">删除</van-button>
  64. <van-button round type="info" color="#FF7F00" style="position: relative;left: 9rem;">提交</van-button>
  65. </view>
  66. </view>