order.wxml 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <view class="content">
  2. <view class="navbar">
  3. <view bindtap="__e" class="{{['nav-item',tabCurrentIndex===index?'current':'']}}" data-event-opts="{{[ [ 'tap',[ [ 'tabClick',[index] ] ] ] ]}}" wx:for="{{navList}}" wx:key="index">{{item.text}}</view>
  4. </view>
  5. <swiper bindchange="__e" class="swiper-box" current="{{tabCurrentIndex}}" data-event-opts="{{[ [ 'change',[ [ 'changeTab',['$event'] ] ] ] ]}}" duration="300">
  6. <swiper-item class="tab-content" wx:for="{{$root.l2}}" wx:for-index="tabIndex" wx:for-item="tabItem" wx:key="tabIndex">
  7. <scroll-view bindscrolltolower="__e" class="list-scroll-content" data-event-opts="{{[ [ 'scrolltolower',[ [ 'loadData',['$event'] ] ] ] ]}}" scrollY="{{true}}">
  8. <empty bind:__l="__l" vueId="{{'3c50aaa2-1-'+tabIndex}}" wx:if="{{tabItem[$orig].loaded===true&&tabItem[$orig].orderList.length===0}}"></empty>
  9. <view bindtap="__e" class="order-item" data-event-opts="{{[ [ 'tap',[ [ 'goToOrderDetail',['$0'],[ [ ['navList','',tabIndex],['orderList','',index] ] ] ] ] ] ]}}" wx:for="{{tabItem.l1}}" wx:key="index">
  10. <view class="i-top b-b">
  11. <text class="time">{{item.m3}}</text>
  12. <text class="state">{{item.m4}}</text>
  13. <text bindtap="__e" class="del-btn iconfont icondelete" data-event-opts="{{[ [ 'tap',[ [ 'deleteOrder',[index] ] ] ] ]}}" wx:if="{{item[$orig].status===4}}"></text>
  14. </view>
  15. <scroll-view class="goods-box" scrollX="{{true}}" wx:if="{{item[$orig].cartInfo.length>1}}">
  16. <view class="goods-item" wx:for="{{item[$orig].cartInfo}}" wx:for-index="goodsIndex" wx:for-item="goodsItem" wx:key="goodsIndex">
  17. <image class="goods-img" mode="aspectFill" src="{{goodsItem.productInfo.image}}"></image>
  18. </view>
  19. </scroll-view>
  20. <view class="goods-box-single" wx:if="{{item.m6.length===1}}" wx:for="{{item.l0}}" wx:for-index="goodsIndex" wx:for-item="goodsItem" wx:key="goodsIndex">
  21. <image class="goods-img" mode="aspectFill" src="{{goodsItem.m1}}"></image>
  22. <view class="right">
  23. <text class="title clamp">{{goodsItem.m2}}</text>
  24. <text class="attr-box">{{goodsItem.m4+' x '+goodsItem.m3}}</text>
  25. <text class="price">{{goodsItem.m0}}</text>
  26. </view>
  27. </view>
  28. <view class="price-box">共<text class="num">{{item.m5}}</text>件商品 邮费<text class="price">{{item.m1}}</text>实付款<text class="price">{{item.m2}}</text>
  29. </view>
  30. <view class="action-box b-t" wx:if="{{item.m7._title==='未支付'||item.m7._title==='待评价'||item.m7._title==='待收货'}}">
  31. <button catchtap="__e" class="action-btn" data-event-opts="{{[ [ 'tap',[ [ 'cancelOrder',['$0'],[ [ ['navList','',tabIndex],['orderList','',index] ] ] ] ] ] ]}}" wx:if="{{item.m7._title=='未支付'}}">取消订单</button>
  32. <button catchtap="__e" class="action-btn recom" data-event-opts="{{[ [ 'tap',[ [ 'orderPay',['$0'],[ [ ['navList','',tabIndex],['orderList','',index] ] ] ] ] ] ]}}" wx:if="{{item.m7._title=='未支付'}}">立即支付</button>
  33. <button catchtap="__e" class="action-btn" data-event-opts="{{[ [ 'tap',[ [ 'goToOrderDetail',['$0'],[ [ ['navList','',tabIndex],['orderList','',index] ] ] ] ] ] ]}}" wx:if="{{item.m7._type==3}}">去评价</button>
  34. <button catchtap="__e" class="action-btn" data-event-opts="{{[ [ 'tap',[ [ 'orderTake',['$0',index],[ [ ['navList','',tabIndex],['orderList','',index] ] ] ] ] ] ]}}" wx:if="{{item.m7._title=='待收货'}}">确认收货</button>
  35. </view>
  36. </view>
  37. <uni-load-more bind:__l="__l" status="{{tabItem.loadingType}}" vueId="{{'3c50aaa2-2-'+tabIndex}}"></uni-load-more>
  38. </scroll-view>
  39. </swiper-item>
  40. </swiper>
  41. </view>