1 |
- <view class="content"><view class="navbar"><block wx:for="{{navList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['tabClick',[index]]]]]}}" class="{{['nav-item',(tabCurrentIndex===index)?'current':'']}}" bindtap="__e">{{item.text}}</view></block></view><swiper class="swiper-box" current="{{tabCurrentIndex}}" duration="300" data-event-opts="{{[['change',[['changeTab',['$event']]]]]}}" bindchange="__e"><block wx:for="{{$root.l2}}" wx:for-item="tabItem" wx:for-index="tabIndex" wx:key="tabIndex"><swiper-item class="tab-content"><scroll-view class="list-scroll-content" scroll-y="{{true}}" data-event-opts="{{[['scrolltolower',[['loadData',['$event']]]]]}}" bindscrolltolower="__e"><block wx:if="{{tabItem.$orig.loaded===true&&tabItem.$orig.orderList.length===0}}"><empty vue-id="{{'3c50aaa2-1-'+tabIndex}}" bind:__l="__l"></empty></block><block wx:for="{{tabItem.l1}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['goToOrderDetail',['$0'],[[['navList','',tabIndex],['orderList','',index]]]]]]]}}" class="order-item" bindtap="__e"><view class="i-top b-b"><text class="time">{{item.$orig._add_time}}</text><text class="state" style="{{'color:'+(item.$orig.stateTipColor)+';'}}">{{item.$orig._status._title}}</text><block wx:if="{{item.$orig.status===4}}"><text data-event-opts="{{[['tap',[['deleteOrder',[index]]]]]}}" class="del-btn iconfont icondelete" bindtap="__e"></text></block></view><block wx:if="{{item.$orig.cartInfo.length>1}}"><scroll-view class="goods-box" scroll-x="{{true}}"><block wx:for="{{item.$orig.cartInfo}}" wx:for-item="goodsItem" wx:for-index="goodsIndex" wx:key="goodsIndex"><view class="goods-item"><image class="goods-img" src="{{goodsItem.productInfo.image}}" mode="aspectFill"></image></view></block></scroll-view></block><block wx:for="{{item.l0}}" wx:for-item="goodsItem" wx:for-index="goodsIndex" wx:key="goodsIndex"><view class="goods-box-single"><image class="goods-img" src="{{goodsItem.$orig.productInfo.image}}" mode="scaleToFill"></image><view class="right"><view class="flex-start"><text class="title clamp">{{goodsItem.$orig.productInfo.store_name}}</text><text class="price">{{goodsItem.f0}}</text></view><view class="row flex"><text class="row_title">{{goodsItem.$orig.productInfo.attrInfo?goodsItem.$orig.productInfo.attrInfo.suk:''}}</text><text class="attr-box">{{'x '+goodsItem.$orig.cart_num}}</text></view></view></view></block><view class="price-box">共<text class="num">{{item.$orig.cartInfo.length}}</text>件商品 邮费<text class="price">{{item.m0}}</text>实付款<text class="price">{{item.m1}}</text></view><block wx:if="{{item.$orig.status!=5}}"><view class="action-box b-t"><block wx:if="{{item.$orig._status._title=='未支付'}}"><button data-event-opts="{{[['tap',[['cancelOrder',['$0'],[[['navList','',tabIndex],['orderList','',index]]]]]]]}}" class="action-btn" catchtap="__e">取消订单</button></block><block wx:if="{{item.$orig._status._title=='未支付'}}"><button data-event-opts="{{[['tap',[['orderPay',['$0'],[[['navList','',tabIndex],['orderList','',index]]]]]]]}}" class="action-btn recom" catchtap="__e">立即支付</button></block><block wx:if="{{item.$orig._status._title=='待评价'}}"><button class="action-btn">评价</button></block><block wx:if="{{item.$orig._status._title=='待收货'}}"><button data-event-opts="{{[['tap',[['orderTake',['$0',index],[[['navList','',tabIndex],['orderList','',index]]]]]]]}}" class="action-btn" catchtap="__e">确认收货</button></block><block wx:if="{{item.$orig._status._title=='未发货'}}"><button data-event-opts="{{[['tap',[['orderRefund',['$0'],[[['navList','',tabIndex],['orderList','',index]]]]]]]}}" class="action-btn" catchtap="__e">申请退款</button></block></view></block></view></block><uni-load-more vue-id="{{'3c50aaa2-2-'+tabIndex}}" status="{{tabItem.$orig.loadingType}}" bind:__l="__l"></uni-load-more></scroll-view></swiper-item></block></swiper></view>
|