<view><view class="top-fixed"><view class="pub-tab-box"><view class="tab-inner"><block wx:for="{{orderStatus}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['orderStatusChange',['$0'],[[['orderStatus','',index]]]]]]]}}" class="{{[status==item.value?'item active':'item']}}" bindtap="__e"><view class="text">{{''+item.name+''}}<image hidden="{{!(status==item.value)}}" class="tab-bg" src="../../static/images/tab_bg.png" mode></image></view></view></block></view></view><view class="search-cont"><view class="inner"><image class="icon-search" src="/static/images/search.png" mode></image><input type="text" value="" placeholder="输入订单号" confirm-type="搜索" placeholder-style="font-size:28rpx;color:#BBBBBB;font-family: PingFang SC;" data-event-opts="{{[['confirm',[['goSearch',['$event']]]]]}}" bindconfirm="__e"/></view></view></view><view class="top-seat"></view><mescroll-body class="vue-ref" vue-id="0579f0b0-1" down="{{downOption}}" up="{{upOption}}" data-ref="mescrollRef" data-event-opts="{{[['^init',[['mescrollInit']]],['^down',[['downCallback']]],['^up',[['upCallback']]]]}}" bind:init="__e" bind:down="__e" bind:up="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="order-list"><block wx:for="{{$root.l1}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="item"><view data-event-opts="{{[['tap',[['showDetail',['$0'],[[['dataList','',index]]]]]]]}}" class="ordersn-box" bindtap="__e"><view class="num">{{"订单号："+item.$orig.orderCode}}</view><view class="status-box"><text class="text success">{{''+item.g0+''}}</text></view></view><view class="drug-list"><block wx:for="{{item.l0}}" wx:for-item="subItem" wx:for-index="subIndex" wx:key="subIndex"><block wx:if="{{item.$orig.isPackage!=1}}"><view data-event-opts="{{[['tap',[['showDetail',['$0'],[[['dataList','',index]]]]]]]}}" class="drug-item" bindtap="__e"><view class="img-box"><image src="{{subItem.g1.image}}" mode="aspectFill"></image></view><view class="drug-info"><view><view class="name-box ellipsis2"><block wx:if="{{subItem.$orig.isPrescribe==1}}"><view class="tag">处方药</view></block>{{subItem.g2.productName+''}}</view><view class="spec ellipsis2">{{subItem.g3.sku}}</view></view><view class="num-box"><view class="price"><text class="unit">¥</text><text class="num">{{subItem.g4}}</text></view><view class="amount">{{"x"+subItem.g5.num}}</view></view></view></view></block></block><block wx:if="{{item.$orig.isPackage==1&&item.$orig.packageJson!=null}}"><view data-event-opts="{{[['tap',[['showDetail',['$0'],[[['dataList','',index]]]]]]]}}" class="drug-item" bindtap="__e"><view class="img-box"><image src="{{item.g6.imgUrl}}" mode="aspectFill"></image></view><view class="drug-info"><view><view class="name-box ellipsis2"><view class="tag">套餐</view>{{item.g7.title+''}}</view><view class="spec ellipsis2">{{item.g8.descs}}</view></view></view></view></block><view class="bottom-box"><view class="amount-paid"><text class="label">订单金额：</text><view class="price-box"><view class="unit">¥</view><view class="num">{{item.g9}}</view></view></view><view class="btn-box"><block wx:if="{{item.$orig.status==0}}"><view data-event-opts="{{[['tap',[['cancel',['$0'],[[['dataList','',index]]]]]]]}}" class="btn cancel" bindtap="__e">取消订单</view></block><block wx:if="{{item.$orig.status==0}}"><view data-event-opts="{{[['tap',[['pay',['$0'],[[['dataList','',index]]]]]]]}}" class="btn pay" bindtap="__e">支付</view></block><block wx:if="{{item.$orig.isAfterSales==1}}"><view data-event-opts="{{[['tap',[['refund',['$0'],[[['dataList','',index]]]]]]]}}" class="btn cancel" bindtap="__e">申请售后</view></block><block wx:if="{{item.$orig.status>=2&&item.$orig.deliveryId!=null}}"><view data-event-opts="{{[['tap',[['showDelivery',['$0'],[[['dataList','',index]]]]]]]}}" class="btn pay" catchtap="__e">查看物流</view></block></view></view></view></view></block></view></mescroll-body></view>