checkout.wxml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. <image src="/static/images/address_right.png"></image>
  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. <image src="/static/images/address_right.png"></image>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="order-box">
  26. <view class="order-item">
  27. <view class="l">
  28. <text class="name">商品合计</text>
  29. </view>
  30. <view class="r">
  31. <text class="txt">¥ {{goodsTotalPrice}}元</text>
  32. </view>
  33. </view>
  34. <view class="order-item">
  35. <view class="l">
  36. <text class="name">运费</text>
  37. </view>
  38. <view class="r">
  39. <text class="txt">¥ {{freightPrice}}元</text>
  40. </view>
  41. </view>
  42. </view>
  43. <view class="goods-items">
  44. <view class="item" wx:for="{{checkedGoodsList}}" wx:key="id">
  45. <view class="img">
  46. <image src="{{item.picUrl}}"></image>
  47. </view>
  48. <view class="info">
  49. <view class="t">
  50. <text class="name">{{item.goodsName}}</text>
  51. <text class="number">x{{item.number}}</text>
  52. </view>
  53. <view class="m">{{item.specifications}}</view>
  54. <view class="b">¥{{item.price}}</view>
  55. </view>
  56. </view>
  57. </view>
  58. <view class="order-total">
  59. <view class="l">实付:¥{{actualPrice}}</view>
  60. <view class="r" bindtap="submitOrder">去付款</view>
  61. </view>
  62. </view>