huangsijun
2025-09-22 a78c011de350b188afb03beb2f26a73f35f71986
1
<view><view class="top-tabbar"><view data-event-opts="{{[['tap',[['stateFunc',[0]]]]]}}" class="{{[state_active==0?'tab-item active':'tab-item']}}" bindtap="__e">全部订单</view><view data-event-opts="{{[['tap',[['stateFunc',[1]]]]]}}" class="{{[state_active==1?'tab-item active':'tab-item']}}" bindtap="__e">待付款</view><view data-event-opts="{{[['tap',[['stateFunc',[2]]]]]}}" class="{{[state_active==2?'tab-item active':'tab-item']}}" bindtap="__e">待发货</view><view data-event-opts="{{[['tap',[['stateFunc',[3]]]]]}}" class="{{[state_active==3?'tab-item active':'tab-item']}}" bindtap="__e">待收货</view><view data-event-opts="{{[['tap',[['stateFunc',[4]]]]]}}" class="{{[state_active==4?'tab-item active':'tab-item']}}" bindtap="__e">待评价</view></view><scroll-view class="scroll-Y" style="{{('height:'+scrollviewHigh+'px;')}}" scroll-y="true" lower-threshold="50" data-event-opts="{{[['scrolltolower',[['scrolltolowerFunc',['$event']]]]]}}" bindscrolltolower="__e"><view class="{{[topRefresh?'top-refresh open':'top-refresh']}}"><block wx:for="{{3}}" wx:for-item="circle" wx:for-index="n" wx:key="n"><view class="circle"></view></block></view><view class="order-list"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="item"><view class="order-head d-b-c"><view><text class="state-text">{{item.$orig.order_source_text}}</text><text class="shop-name flex-1 fb">{{"订单号:"+item.$orig.order_no}}</text></view><view class="state"><text class="red">{{item.$orig.state_text}}</text></view></view><block wx:if="{{item.g0>1}}"><view data-event-opts="{{[['tap',[['jumpPage',['$0'],[[['listData','',index,'order_id']]]]]]]}}" class="product-list pr" bindtap="__e"><scroll-view scroll-x="true"><view class="list d-s-c pr100"><block wx:for="{{item.$orig.product}}" wx:for-item="img" wx:for-index="num" wx:key="num"><view class="cover mr10"><image src="{{img.image.file_path}}" mode="aspectFit"></image></view></block></view></scroll-view><view class="total-count"><view class="left-shadow"></view><view class="price f22">¥<text class="f40">{{item.$orig.pay_price}}</text></view><view class="count">{{"共"+item.g1+"件"}}</view></view></view></block><block wx:else><view data-event-opts="{{[['tap',[['jumpPage',['$0'],[[['listData','',index,'order_id']]]]]]]}}" class="one-product d-s-c" bindtap="__e"><block wx:for="{{item.$orig.product}}" wx:for-item="img" wx:for-index="num" wx:key="num"><view class="cover"><image src="{{img.image.file_path}}" mode="aspectFit"></image></view></block><view class="pro-info flex-1">{{item.$orig.product[0].product_name}}</view><view class="total-count"><view class="left-shadow"></view><view class="price f22">¥<text class="f40">{{item.$orig.pay_price}}</text></view><view class="count">{{"共"+item.$orig.product[0].total_num+"件"}}</view></view></view></block><view class="order-bts"><block wx:if="{{item.$orig.pay_status.value==20&&item.$orig.delivery_type.value==10&&item.$orig.order_status.value==10&&item.$orig.delivery_status.value==10}}"><block><button data-event-opts="{{[['tap',[['jumpPage',['$0'],[[['listData','',index,'order_id']]]]]]]}}" class="btn-red-border" bindtap="__e">去发货</button></block></block><block wx:if="{{item.$orig.extract_clerk_id==0&&item.$orig.pay_status.value==20&&item.$orig.delivery_type.value==40&&item.$orig.order_status.value==10&&item.$orig.delivery_status.value==10}}"><block><button data-event-opts="{{[['tap',[['openSelectClerk',['$0'],[[['listData','',index,'order_no']]]]]]]}}" class="btn-red-border" bindtap="__e">分配配送员</button></block></block><block wx:if="{{item.$orig.extract_clerk_id>0&&item.$orig.pay_status.value==20&&item.$orig.delivery_type.value==40&&item.$orig.order_status.value==10}}"><block><button data-event-opts="{{[['tap',[['openExtractClerk',['$0','$1'],[[['listData','',index,'order_no']],[['listData','',index,'extractClerk']]]]]]]}}" class="btn-red-border" bindtap="__e">查看配送员</button></block></block><block wx:if="{{item.$orig.pay_status.value==20&&item.$orig.order_status.value==21}}"><block><button data-event-opts="{{[['tap',[['jumpPage',['$0'],[[['listData','',index,'order_id']]]]]]]}}" class="btn-red-border" bindtap="__e">去审核</button></block></block></view></view></block><block wx:if="{{$root.g2}}"><view class="d-c-c p30"><text class="iconfont icon-wushuju"></text><text class="cont">亲,暂无相关记录哦</text></view></block><block wx:else><uni-load-more vue-id="3c50f5b0-1" loadingType="{{loadingType}}" bind:__l="__l"></uni-load-more></block></view></scroll-view><popup vue-id="3c50f5b0-2" show="{{isClose}}" type="middle" data-event-opts="{{[['^hidePopup',[['hideClose']]]]}}" bind:hidePopup="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="ww100 p20 box-s-b"><view class="f32 fb mb20">取消订单</view><view class="d-s-c mb20"><view class="w120 f26">订单号:</view><view>{{order_no}}</view></view><view class="d-s-s mb20"><view class="w120 f26">备注:</view><textarea class="border p10 w400" placeholder="请输入备注" data-event-opts="{{[['input',[['__set_model',['','cancel_remark','$event',[]]]]]]}}" value="{{cancel_remark}}" bindinput="__e"></textarea></view><view class="d-c-c"><button data-event-opts="{{[['tap',[['hideClose',['$event']]]]]}}" class="send_btn btn-gray-border mr30" bindtap="__e">取消</button><button data-event-opts="{{[['tap',[['sendClose']]]]}}" class="send_btn btn-orange" bindtap="__e">确定</button></view></view></popup><popup vue-id="3c50f5b0-3" show="{{isSelectClerk}}" type="middle" data-event-opts="{{[['^hidePopup',[['hideSelectClerk']]]]}}" bind:hidePopup="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="ww100 box-s-b"><view class="f32 tc fb border-b-e pb20 mb30">分配配送员</view><view class="d-s-c mb20"><view class="w120 f26">订单号:</view><view>{{order_no}}</view></view><view class="d-s-c mb20"><view class="w120 f26">配送员:</view><view class="d-s-c flex-1"><block wx:if="{{selectClerk.clerk_id}}"><view class="flex-1 pr20">{{''+selectClerk.real_name+" / "+selectClerk.mobile+''}}</view></block><button data-event-opts="{{[['tap',[['jumpSelect']]]]}}" class="send_btn btn-blue f26" bindtap="__e">{{selectClerk.clerk_id?'重新选择':'选择配送员'}}</button></view></view><view class="d-c-c mt40"><button data-event-opts="{{[['tap',[['hideSelectClerk',['$event']]]]]}}" class="send_btn btn-gray-border mr30" bindtap="__e">取消</button><button data-event-opts="{{[['tap',[['sendSelectClerk']]]]}}" class="send_btn btn-red" bindtap="__e">确定</button></view></view></popup><popup vue-id="3c50f5b0-4" show="{{isExtractClerk}}" type="middle" data-event-opts="{{[['^hidePopup',[['hideExtractClerk']]]]}}" bind:hidePopup="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="ww100 box-s-b"><view class="f32 tc fb border-b-e pb20 mb30">查看配送员</view><view class="d-s-c mb20"><view class="w120 f26">订单号:</view><view>{{order_no}}</view></view><view class="d-s-c mb20"><view class="w120 f26">配送员:</view><view class="d-s-c flex-1"><block wx:if="{{extract_clerk.clerk_id}}"><view class="flex-1">{{''+extract_clerk.real_name+" / "+extract_clerk.mobile+''}}</view></block><button data-event-opts="{{[['tap',[['changeCleck',['$event']]]]]}}" class="send_btn btn-blue f26" bindtap="__e">更换配送员</button></view></view><view class="d-c-c mt40"><button data-event-opts="{{[['tap',[['hideExtractClerk',['$event']]]]]}}" class="send_btn btn-gray-border mr30" bindtap="__e">取消</button><button data-event-opts="{{[['tap',[['callClerk',['$0'],['extract_clerk.mobile']]]]]}}" class="send_btn btn-red" bindtap="__e">拨打电话</button></view></view></popup></view>