orders.wxml 1.0 KB

123456789101112131415161718192021222324
  1. <view class="main">
  2. <navigator url="../address/address">
  3. <view wx:if="{{hasAddress}}" class="orders-address">
  4. <text class="orders-address-name">收货人: {{address.name}}</text>
  5. <text class="orders-address-phone">电话: {{address.phone}}</text>
  6. <view class="orders-address-detail">{{address.detail}}</view>
  7. </view>
  8. <view wx:else class="orders-no-address">添加收货地址</view>
  9. </navigator>
  10. <view class="orders-box">
  11. <view wx:for="{{orders}}" wx:key="index" class="orders-list">
  12. <image class="orders-thumb" src="{{item.image}}"></image>
  13. <view class="orders-pro-name">{{item.title}}</view>
  14. <view class="orders-pro-price">¥{{item.price}}</view>
  15. <view class="orders-count-num">×{{item.num}}</view>
  16. </view>
  17. </view>
  18. <view class="orders-footer">
  19. <view class="orders-footer-total">付款合计:¥{{total}}</view>
  20. <view class="orders-footer-btn" bindtap="toPay">去付款</view>
  21. </view>
  22. </view>