index.wxml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <!-- pages/pay/index.wxml -->
  2. <view name="订单页面" wx:if="{{!addressDialog}}">
  3. <view name="地址选择">
  4. <van-row>
  5. <view class="top__tag">
  6. <van-col span="24">
  7. <van-tag type="danger" class="tag__margin" wx-if="{{address.is_default}}">默认</van-tag>
  8. <span wx:if="{{address.tags}}">
  9. <van-tag wx:for="{{address.tags}}" wx:for-index="index" wx:key="tagKey" wx:for-item="tag" type="primary" class="tag__margin">
  10. {{tag}}
  11. </van-tag>
  12. </span>
  13. {{address.position}}
  14. </van-col>
  15. </view>
  16. <van-col span="24" class="address">
  17. <van-cell is-link border="{{false}}" bind:click="toAddressSelect">
  18. <view slot="title">
  19. <span class="big__title">{{address.place}}</span>
  20. </view>
  21. </van-cell>
  22. </van-col>
  23. <van-col span="24">
  24. <van-cell>
  25. <view slot="title">
  26. <span class="context">{{address.d_contact}} {{address.d_phone}}</span>
  27. </view>
  28. </van-cell>
  29. <van-cell>
  30. <view slot="title" is-link>
  31. <span class="send__line">立即送出</span>
  32. </view>
  33. <span class="send__line__time">大约23:32送达</span>
  34. </van-cell>
  35. </van-col>
  36. </van-row>
  37. </view>
  38. <view name="商品列表">
  39. <van-card wx:for="{{goods}}" wx:for-index="gIndex" wx:key="gkey" wx:for-item="good" num="{{good.num}}" price="{{good.price}}" desc="{{good.desc}}" title="{{good.title}}" thumb="{{ good.thumb }}" thumb-class="thumb" />
  40. </view>
  41. <view name="配送信息">
  42. <van-cell title="配送费" border="{{false}}">
  43. <span class="cell__value">5</span>
  44. </van-cell>
  45. </view>
  46. <view name="金额">
  47. <van-cell title="商品金额">
  48. <span class="cell__value">60</span>
  49. </van-cell>
  50. </view>
  51. <view name="备注" style="margin-bottom:120rpx">
  52. <van-field label="备注" model:value="{{ remark }}" placeholder="若需要,请填写备注" border="{{ false }}" />
  53. </view>
  54. </view>
  55. <page-container show="{{addressDialog}}" position="right" custom-style="height:100vh">
  56. <van-nav-bar title="选择地址" left-text="返回" left-arrow bind:click-left="toAddressSelect" custom-class="addr__top" />
  57. <van-radio-group value="{{ address.id }}" bind:change="addressChange">
  58. <view wx:for="{{addressList}}" wx:for-index="index" wx:key="addrkey" wx:for-item="addr">
  59. <van-row custom-class="address__list">
  60. <van-col span="2">
  61. <van-radio name="{{addr.id}}"></van-radio>
  62. </van-col>
  63. <van-col span="20">
  64. <van-col span="24" custom-class="one__line">
  65. <span class="place__word ">{{addr.place}}</span>
  66. </van-col>
  67. <van-col span="24">{{addr.d_contact}} {{addr.d_phone}}</van-col>
  68. </van-col>
  69. <van-col span="2" custom-class="address__list__edit">
  70. <van-icon name="edit" bind:click="addressEdit" data-data="{{addr}}" />
  71. </van-col>
  72. </van-row>
  73. <van-divider></van-divider>
  74. </view>
  75. </van-radio-group>
  76. </page-container>
  77. <view>
  78. <van-submit-bar price="{{ 6000 }}" button-text="提交订单" bind:submit="onSubmit" />
  79. </view>