checkout.wxml 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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.is_default === 1}}">默认</text>
  7. </view>
  8. <view class="m">
  9. <text class="mobile">{{checkedAddress.mobile}}</text>
  10. <text class="address">{{checkedAddress.full_region + checkedAddress.address}}</text>
  11. </view>
  12. <view class="r">
  13. <image src="/static/images/address_right.png"></image>
  14. </view>
  15. </view>
  16. <view class="address-item address-empty" bindtap="addAddress" wx:if="{{checkedAddress.id <= 0}}">
  17. <view class="m">
  18. 还没有收货地址,去添加
  19. </view>
  20. <view class="r">
  21. <image src="/static/images/address_right.png"></image>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="coupon-box">
  26. <view class="coupon-item">
  27. <view class="l">
  28. <text class="name">请选择优惠券</text>
  29. <text class="txt">{{couponList.length}}张</text>
  30. </view>
  31. <view class="r">
  32. <image src="/static/images/address_right.png"></image>
  33. </view>
  34. </view>
  35. </view>
  36. <view class="order-box">
  37. <view class="order-item">
  38. <view class="l">
  39. <text class="name">商品合计</text>
  40. </view>
  41. <view class="r">
  42. <text class="txt">¥{{goodsTotalPrice}}</text>
  43. </view>
  44. </view>
  45. <view class="order-item">
  46. <view class="l">
  47. <text class="name">运费</text>
  48. </view>
  49. <view class="r">
  50. <text class="txt">¥{{freightPrice}}</text>
  51. </view>
  52. </view>
  53. <view class="order-item no-border">
  54. <view class="l">
  55. <text class="name">优惠券</text>
  56. </view>
  57. <view class="r">
  58. <text class="txt">-¥{{couponPrice}}</text>
  59. </view>
  60. </view>
  61. </view>
  62. <view class="goods-items">
  63. <view class="item" wx:for="{{checkedGoodsList}}" wx:key="{{item.id}}">
  64. <view class="img">
  65. <image src="{{item.list_pic_url}}"></image>
  66. </view>
  67. <view class="info">
  68. <view class="t">
  69. <text class="name">{{item.goods_name}}</text>
  70. <text class="number">x{{item.number}}</text>
  71. </view>
  72. <view class="m">{{item.goods_specifition_name_value}}</view>
  73. <view class="b">¥{{item.retail_price}}</view>
  74. </view>
  75. </view>
  76. </view>
  77. <view class="order-total">
  78. <view class="l">实付:¥{{actualPrice}}</view>
  79. <view class="r" bindtap="submitOrder">去付款</view>
  80. </view>
  81. </view>