checkout.wxml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <view class="container">
  2. <view class="address-box">
  3. <view class="address-item" bindtap="selectAddress" wx:if="{{checkedAddress.id > 0}}">
  4. <view class="l">
  5. <text class="name">{{checkedAddress.name}}</text>
  6. <text class="default" wx:if="{{checkedAddress.isDefault}}">默认</text>
  7. </view>
  8. <view class="m">
  9. <text class="mobile">{{checkedAddress.tel}}</text>
  10. <text class="address">{{checkedAddress.addressDetail}}</text>
  11. </view>
  12. <view class="r">
  13. <van-icon name="arrow" />
  14. </view>
  15. </view>
  16. <view class="address-item address-empty" bindtap="selectAddress" wx:else>
  17. <view class="m">
  18. 还没有收货地址,去添加
  19. </view>
  20. <view class="r">
  21. <van-icon name="arrow" />
  22. </view>
  23. </view>
  24. </view>
  25. <view class="coupon-box">
  26. <view class="coupon-item" bindtap="selectCoupon">
  27. <view class="l" wx:if="{{couponId == 0}}">
  28. <text class="name">没有可用的优惠券</text>
  29. <text class="txt">0张</text>
  30. </view>
  31. <view class="l" wx:elif="{{couponId == -1}}">
  32. <text class="name">优惠券</text>
  33. <text class="txt">{{availableCouponLength}}张</text>
  34. </view>
  35. <view class="l" wx:else>
  36. <text class="name">优惠券</text>
  37. <text class="txt">-¥{{couponPrice}}元</text>
  38. </view>
  39. <view class="r">
  40. <van-icon name="arrow" />
  41. </view>
  42. </view>
  43. </view>
  44. <view class="message-box">
  45. <input class="message-item" bindinput="bindMessageInput" placeholder="如需要,请输入留言" value="{{message}}" />
  46. </view>
  47. <view class="order-box">
  48. <view class="order-item">
  49. <view class="l">
  50. <text class="name">商品合计</text>
  51. </view>
  52. <view class="r">
  53. <text class="txt">¥{{goodsTotalPrice}}元</text>
  54. </view>
  55. </view>
  56. <view class="order-item">
  57. <view class="l">
  58. <text class="name">运费</text>
  59. </view>
  60. <view class="r">
  61. <text class="txt">¥{{freightPrice}}元</text>
  62. </view>
  63. </view>
  64. <view class="order-item no-border">
  65. <view class="l">
  66. <text class="name">优惠券</text>
  67. </view>
  68. <view class="r">
  69. <text class="txt">-¥{{couponPrice}}元</text>
  70. </view>
  71. </view>
  72. </view>
  73. <view class="goods-items">
  74. <view class="item" wx:for="{{checkedGoodsList}}" wx:key="id">
  75. <view class="img">
  76. <image src="{{item.picUrl}}"></image>
  77. </view>
  78. <view class="info">
  79. <view class="t">
  80. <text class="name">{{item.goodsName}}</text>
  81. <text class="number">x{{item.number}}</text>
  82. </view>
  83. <view class="m">{{item.specifications}}</view>
  84. <view class="b">¥{{item.price}}</view>
  85. </view>
  86. </view>
  87. </view>
  88. <view class="order-total">
  89. <view class="l">实付:¥{{actualPrice}}</view>
  90. <view class="r" bindtap="submitOrder">去付款</view>
  91. </view>
  92. </view>