1234567891011121314151617181920212223242526272829303132333435 |
- <view class="content">
- <view class="navbar">
- <view bindtap="__e" class="{{['nav-item',tabCurrentIndex===index?'current':'']}}" data-event-opts="{{[ [ 'tap',[ [ 'tabClick',[index] ] ] ] ]}}" wx:for="{{navList}}" wx:key="index">{{item.text}}</view>
- </view>
- <swiper bindchange="__e" class="swiper-box" current="{{tabCurrentIndex}}" data-event-opts="{{[ [ 'change',[ [ 'changeTab',['$event'] ] ] ] ]}}" duration="300">
- <swiper-item class="tab-content" wx:for="{{$root.l2}}" wx:for-index="tabIndex" wx:for-item="tabItem" wx:key="tabIndex">
- <scroll-view bindscrolltolower="__e" class="list-scroll-content" data-event-opts="{{[ [ 'scrolltolower',[ [ 'loadData',['$event'] ] ] ] ]}}" scrollY="{{true}}">
- <empty bind:__l="__l" vueId="{{'7d9191ec-1-'+tabIndex}}" wx:if="{{tabItem[$orig].loaded===true&&tabItem[$orig].orderList.length===0}}"></empty>
- <view bindtap="__e" class="order-item" data-event-opts="{{[ [ 'tap',[ [ 'goToOrderDetail',['$0'],[ [ ['navList','',tabIndex],['orderList','',index] ] ] ] ] ] ]}}" wx:for="{{tabItem.l1}}" wx:key="index">
- <view class="i-top b-b">
- <text class="time">{{'订单号:'+item[$orig].order_id}}</text>
- <text class="state" style="{{'color:'+item[$orig].stateTipColor+';'}}">{{item[$orig]._status._title}}</text>
- <text bindtap="__e" class="del-btn iconfont icondelete" data-event-opts="{{[ [ 'tap',[ [ 'deleteOrder',[index] ] ] ] ]}}" wx:if="{{item[$orig].status===4}}"></text>
- </view>
- <scroll-view class="goods-box" scrollX="{{true}}" wx:if="{{item[$orig].cartInfo.length>1}}">
- <view class="goods-item" wx:for="{{item[$orig].cartInfo}}" wx:for-index="goodsIndex" wx:for-item="goodsItem" wx:key="goodsIndex">
- <image class="goods-img" mode="aspectFill" src="{{goodsItem.productInfo.image}}"></image>
- </view>
- </scroll-view>
- <view class="goods-box-single" wx:if="{{item[$orig].cartInfo.length===1}}" wx:for="{{item.l0}}" wx:for-index="goodsIndex" wx:for-item="goodsItem" wx:key="goodsIndex">
- <image class="goods-img" mode="aspectFill" src="{{goodsItem[$orig].productInfo.image}}"></image>
- <view class="right">
- <text class="title clamp">{{goodsItem[$orig].productInfo.store_name}}</text>
- <text class="attr-box">{{(goodsItem[$orig].attrInfo?goodsItem[$orig].attrInfo.suk:'')+' x '+goodsItem[$orig].cart_num}}</text>
- <text class="price">{{goodsItem.m0}}</text>
- </view>
- </view>
- <view class="price-box">共<text class="num">{{item[$orig].cartInfo.length}}</text>件商品 邮费<text class="price">{{item.m1}}</text>实付款<text class="price">{{item.m2}}</text>
- </view>
- </view>
- <uni-load-more bind:__l="__l" status="{{tabItem[$orig].loadingType}}" vueId="{{'7d9191ec-2-'+tabIndex}}"></uni-load-more>
- </scroll-view>
- </swiper-item>
- </swiper>
- </view>
|