order.wxml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <view class="order-container">
  2. <view class="order-bar">
  3. <view class="order-title" bindtap="handleTitleTap" data-index="{{0}}">
  4. <view class="order-title-text">全部订单</view>
  5. <view wx:if="{{tabIdx==0}}" class="select-bar"></view>
  6. </view>
  7. <view class="order-title" bindtap="handleTitleTap" data-index="{{1}}">
  8. <view class="order-title-text">待评价</view>
  9. <view wx:if="{{tabIdx==1}}" class="select-bar"></view>
  10. </view>
  11. <view class="order-title" bindtap="handleTitleTap" data-index="{{2}}">
  12. <view class="order-title-text">退款</view>
  13. <view wx:if="{{tabIdx==2}}" class="select-bar"></view>
  14. </view>
  15. </view>
  16. <view class="order-list-container">
  17. <scroll-view style="height: 100%;" scroll-y="true" bindscrolltolower="handleReachBottom">
  18. <view class="order-list" wx:for="{{orderPage.data}}" wx:for-item="order" wx:key="orderNum">
  19. <view class="order-status float-right" bindtap="handle2Detail" data-order-num="{{order.orderNum}}">
  20. <block wx:if="{{order.tradeStatus==0}}">待支付</block>
  21. <block wx:if="{{order.tradeStatus==1}}">制作中</block>
  22. <block wx:if="{{order.tradeStatus==2}}">已完成</block>
  23. <block wx:if="{{order.tradeStatus==3}}">已取消</block>
  24. </view>
  25. <view class="order-info" bindtap="handle2Detail" data-order-num="{{order.orderNum}}">
  26. <view class="order-pic-container">
  27. <scroll-view class="scroll-order-pics" scroll-x="true">
  28. <view class="order-goods-pic" wx:for="{{order.goodsList}}" wx:for-item="goods" wx:key="goodsId">
  29. <image src="{{serverPrefix+goods.goodsPic}}"></image>
  30. </view>
  31. </scroll-view>
  32. </view>
  33. <view class="order-time order-item float-left">下单时间:{{order.createTime}}</view>
  34. <view class="order-num order-item float-left">订单编号:{{order.orderNum}}</view>
  35. <view class="order-price float-right">¥{{order.payAmount}}.00</view>
  36. </view>
  37. <view class="order-option">
  38. <view wx:if="{{order.tradeStatus==0}}" class="order-pay-now order-option-item float-right" bindtap="handlePayTap" data-index="{{index}}">立即支付</view>
  39. <view wx:if="{{order.tradeStatus==0}}" class="order-close order-option-item float-right" bindtap="handleCloseTap" data-index="{{index}}">关闭订单</view>
  40. <view wx:if="{{order.tradeStatus!=0}}" class="order-one-more order-option-item float-right" bindtap="handleReOrderTap" data-index="{{index}}">再来一单</view>
  41. <view wx:if="{{order.isComment=='n' && order.tradeStatus==2}}" class="order-one-comment order-option-item float-right" bindtap="handle2Comment" data-index="{{index}}">立即评论</view>
  42. <!-- <view class="order-delete order-option-item float-right" bindtap="handleDeleteOrder">删除订单</view> -->
  43. </view>
  44. </view>
  45. <view class="bottom" wx:if="{{reachedBottom}}">我也是有底线的哦</view>
  46. </scroll-view>
  47. </view>
  48. </view>