all-order.wxml 2.0 KB
<view class="content"><view class="searchBox"><input type="text" value="" placeholder="请输入订单号" data-event-opts="{{[['input',[['bindInput',['$event']]]]]}}" bindinput="__e"/></view><view class="tabList"><block wx:for="{{tabList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['tabClick',[index]]]]]}}" class="{{[tabIndex==index?'tabItem active':'tabItem']}}" bindtap="__e">{{''+item+''}}<block wx:if="{{tabIndex==index&&maskShow}}"><view class="{{[tabIndex==3?'lastStatus':'orderSelect']}}"><view class="{{[tabIndex==3?'lastStatusArrow':'arrowIcon']}}"></view><block wx:for="{{orderStatus}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['orderStatusClick',[index]]]]]}}" class="statusItem" catchtap="__e">{{''+item+''}}</view></block></view></block></view></block></view><view><block wx:for="{{dataList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="itemOrder"><view class="orderNumber"><view>{{'订单号:'+item.number+''}}</view><view class="status">{{''+(item.status==0?'待发货':item.status==1?'已支付代发货':item.status==1?'已支付待收货':'待支付')+''}}</view></view><view class="goodbOX"><view class="goodLeftBox"><image class="goodImg" src="{{item.image}}" mode></image><view class="goodTitle">{{''+item.goodName+''}}</view></view><view class="goodRightBox"><view class="price"><text style="font-size:22rpx;">¥</text>{{''+item.price+''}}</view><view class="num">{{'X'+item.num+''}}</view></view></view><view class="btnBox"><view class="btnItem">{{''+(item.status==0?'取消订单':item.status==1?'发货':item.status==1?'查看物流':'待支付')+''}}</view></view></view></block></view><view class="bottomTab"><view class="bottomIcon"><image src="../../static/ic_12@2x.png" mode></image><view>订单管理</view></view><view class="bottomIcon"><image src="../../static/ic_13@2x.png" mode></image><view>我的</view></view></view><block wx:if="{{maskShow}}"><view class="mask"></view></block></view>