index.wxml 14 KB

1
  1. <view class="pages data-v-0ca91b30" style="position:relative;"><view class="bg data-v-0ca91b30" style="position:fixed;top:0;left:0;right:0;z-index:99;width:100%;"><view class="flex bg justify-between padding-lr-xl data-v-0ca91b30"><block wx:if="{{XCXIsSelect=='是'}}"><view data-event-opts="{{[['tap',[['switchTab',[2]]]]]}}" class="{{['tabBtn','data-v-0ca91b30',orderType==2?'select':'']}}" bindtap="__e"><view class="title data-v-0ca91b30">外卖配送</view><view class="{{['data-v-0ca91b30',orderType==2?'active':'']}}"></view></view></block><block wx:if="{{XCXIsSelect=='是'}}"><view data-event-opts="{{[['tap',[['switchTab',[1]]]]]}}" class="{{['tabBtn','data-v-0ca91b30',orderType==1?'select':'']}}" bindtap="__e"><view class="title data-v-0ca91b30">到店取餐</view><view class="{{['data-v-0ca91b30',orderType==1?'active':'']}}"></view></view></block><block wx:if="{{XCXIsSelect=='是'}}"><view data-event-opts="{{[['tap',[['switchTab',[3]]]]]}}" class="{{['tabBtn','data-v-0ca91b30',orderType==3?'select':'']}}" bindtap="__e"><view class="title data-v-0ca91b30">跑腿订单</view><view class="{{['data-v-0ca91b30',orderType==3?'active':'']}}"></view></view></block></view><view class="data-v-0ca91b30"><block wx:if="{{orderType==1}}"><u-tabs vue-id="3bc35b9e-1" active-color="#FCD202" list="{{qucanList}}" is-scroll="{{true}}" current="{{current}}" data-event-opts="{{[['^change',[['change']]]]}}" bind:change="__e" class="data-v-0ca91b30" bind:__l="__l"></u-tabs></block><block wx:if="{{orderType==2}}"><u-tabs vue-id="3bc35b9e-2" active-color="#FCD202" list="{{waimaiList}}" is-scroll="{{true}}" current="{{current1}}" data-event-opts="{{[['^change',[['change1']]]]}}" bind:change="__e" class="data-v-0ca91b30" bind:__l="__l"></u-tabs></block><block wx:if="{{orderType==3}}"><u-tabs vue-id="3bc35b9e-3" list="{{paotuiList}}" is-scroll="{{true}}" active-color="#FCD202" current="{{current2}}" data-event-opts="{{[['^change',[['change2']]]]}}" bind:change="__e" class="data-v-0ca91b30" bind:__l="__l"></u-tabs></block></view></view><block wx:if="{{orderType!=3&&XCXIsSelect=='是'}}"><view class="cont_one data-v-0ca91b30"><block wx:for="{{orderList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['goNav',['/pages/order/takefood?orderId='+item.orderId+'&shopId='+item.shopId]]]]]}}" bindtap="__e" class="data-v-0ca91b30"><block wx:if="{{item.orderType==1}}"><view class="cont data-v-0ca91b30"><block wx:if="{{item.expectDeliveryTime}}"><view class="order_title data-v-0ca91b30">{{"预约订单:"+item.expectDeliveryTime+"送达"}}</view></block><view class="order_success data-v-0ca91b30"><block wx:if="{{item.status==6}}"><view class="order_name data-v-0ca91b30">制作中</view></block><block wx:if="{{item.status==3}}"><view class="order_name data-v-0ca91b30">待取餐</view></block><block wx:if="{{item.status==4}}"><view class="order_name data-v-0ca91b30">已完成</view></block><block wx:if="{{item.status==5}}"><view class="order_name data-v-0ca91b30">已取消</view></block><block wx:if="{{item.status==7}}"><view class="order_name data-v-0ca91b30">待接单</view></block><block wx:if="{{item.status==8}}"><view class="order_name data-v-0ca91b30">已取消</view></block><view class="order_data data-v-0ca91b30">{{item.payTime}}</view></view><u-line vue-id="{{'3bc35b9e-4-'+index}}" color="#E6E6E6" class="data-v-0ca91b30" bind:__l="__l"></u-line><view class="cont_two_top data-v-0ca91b30"><view class="text-lg text-bold text-black flex align-center data-v-0ca91b30"><image style="width:80rpx;height:80rpx;border-radius:80rpx;" src="{{item.shopCover}}" mode class="data-v-0ca91b30"></image><view class="margin-left-xs data-v-0ca91b30">{{item.shopName}}</view></view></view><block wx:if="{{item.orderSequence}}"><view style="padding:0 30rpx;font-size:20px;" class="data-v-0ca91b30">{{"#"+item.orderSequence}}</view></block><view class="cont_two_text data-v-0ca91b30">{{item.orderCode}}</view><block wx:if="{{item.status==6}}"><view class="cont_two_text2 data-v-0ca91b30">前面还有<text class="data-v-0ca91b30">{{item.countOrder}}</text>个人排队</view></block><u-line vue-id="{{'3bc35b9e-5-'+index}}" color="#E6E6E6" class="data-v-0ca91b30" bind:__l="__l"></u-line><view class="flex justify-between align-center padding-lr-sm padding-tb-sm data-v-0ca91b30"><view class="text-sm text-gray data-v-0ca91b30">实收<text class="text-lg text-bold text-black margin-left-xs data-v-0ca91b30">{{"¥"+item.payMoney}}</text></view><view class="flex padding-tb-sm data-v-0ca91b30"><block wx:if="{{item.status==7}}"><view data-event-opts="{{[['tap',[['cancel',['$0'],[[['orderList','',index]]]]]]]}}" class="btn data-v-0ca91b30" catchtap="__e">取消订单</view></block></view><block wx:if="{{item.status==4&&item.commentFlag!=1}}"><view data-event-opts="{{[['tap',[['pingjia',['$0'],[[['orderList','',index]]]]]]]}}" class="btn data-v-0ca91b30" catchtap="__e">评价订单</view></block></view></view></block><block wx:if="{{item.orderType==2}}"><view class="cont data-v-0ca91b30"><block wx:if="{{item.expectDeliveryTime}}"><view class="order_title data-v-0ca91b30">{{"预约订单:"+item.expectDeliveryTime+"送达"}}</view></block><view class="order_success data-v-0ca91b30"><block wx:if="{{item.status==3}}"><view class="order_name data-v-0ca91b30">配送中<text style="color:#666666;margin-left:10rpx;" class="data-v-0ca91b30">{{item.autoSendOrder==1?'商家配送':'平台配送'}}</text></view></block><block wx:if="{{item.status==4}}"><view class="order_name data-v-0ca91b30">已完成</view></block><block wx:if="{{item.status==5}}"><view class="order_name data-v-0ca91b30">已取消</view></block><block wx:if="{{item.status==6}}"><view class="order_name data-v-0ca91b30">制作中</view></block><block wx:if="{{item.status==7}}"><view class="order_name data-v-0ca91b30">待接单</view></block><block wx:if="{{item.status==8}}"><view class="order_name data-v-0ca91b30">已取消</view></block><view class="order_data data-v-0ca91b30">{{item.payTime}}</view></view><u-line vue-id="{{'3bc35b9e-6-'+index}}" color="#E6E6E6" class="data-v-0ca91b30" bind:__l="__l"></u-line><view class="flex justify-between padding align-center data-v-0ca91b30"><view class="text-lg text-bold text-black flex align-center data-v-0ca91b30"><image style="width:80rpx;height:80rpx;border-radius:80rpx;" src="{{item.shopCover}}" mode class="data-v-0ca91b30"></image><view class="margin-left-xs data-v-0ca91b30">{{item.shopName}}</view></view></view><block wx:if="{{item.orderSequence}}"><view style="padding:0 30rpx;font-size:20px;" class="data-v-0ca91b30">{{"#"+item.orderSequence}}</view></block><view style="padding:0 30rpx;font-size:20px;" class="data-v-0ca91b30">{{item.orderType==1?'商家配送':'骑手配送'}}</view><block wx:if="{{item.riderPhone}}"><view style="padding:0 30rpx;font-size:20px;" class="data-v-0ca91b30">{{"骑手电话:"+item.riderPhone}}</view></block><view class="data-v-0ca91b30"><block wx:for="{{item.orderGoodsList}}" wx:for-item="ite" wx:for-index="ind" wx:key="ind"><view class="padding-lr margin-tb-sm data-v-0ca91b30"><view class="flex data-v-0ca91b30"><image style="width:120rpx;height:120rpx;border-radius:10rpx;" src="{{ite.goodsPicture[0]}}" mode class="data-v-0ca91b30"></image><view class="margin-left-sm flex flex-direction justify-between data-v-0ca91b30"><view class="text-black text-bold text-lg data-v-0ca91b30">{{ite.goodsName}}</view><block wx:if="{{ite.skuMessage}}"><view class="text-gray text-sm data-v-0ca91b30">{{ite.skuMessage}}</view></block></view></view></view></block></view><u-line vue-id="{{'3bc35b9e-7-'+index}}" color="#E6E6E6" class="data-v-0ca91b30" bind:__l="__l"></u-line><view class="flex justify-between align-center padding-lr-sm data-v-0ca91b30"><view class="text-sm text-gray data-v-0ca91b30">实收<text class="text-lg text-bold text-black margin-left-xs data-v-0ca91b30">{{"¥"+item.payMoney}}</text></view><view class="flex padding-tb-sm data-v-0ca91b30"><block wx:if="{{item.status==3}}"><view data-event-opts="{{[['tap',[['finish',['$0'],[[['orderList','',index]]]]]]]}}" class="btn data-v-0ca91b30" catchtap="__e">确认收货</view></block><block wx:if="{{item.status==7}}"><view data-event-opts="{{[['tap',[['cancel',['$0'],[[['orderList','',index]]]]]]]}}" class="btn data-v-0ca91b30" catchtap="__e">取消订单</view></block><block wx:if="{{item.status==4&&item.commentFlag!=1}}"><view data-event-opts="{{[['tap',[['pingjia',['$0'],[[['orderList','',index]]]]]]]}}" class="btn data-v-0ca91b30" catchtap="__e">评价订单</view></block><view data-event-opts="{{[['tap',[['goShop',['$0'],[[['orderList','',index,'shopId']]]]]]]}}" class="btn_ data-v-0ca91b30" catchtap="__e">再来一单</view></view></view></view></block></view></block><block wx:if="{{!$root.g0}}"><empty style="z-index:0;" vue-id="3bc35b9e-8" class="data-v-0ca91b30" bind:__l="__l"></empty></block></view></block><block wx:if="{{orderType==3}}"><view style="margin-top:160rpx;" class="data-v-0ca91b30"><view class="data-v-0ca91b30"><block wx:for="{{order}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['bindorderDetail',['$0'],[[['order','',index,'indentNumber']]]]]]]}}" class="order_box data-v-0ca91b30" bindtap="__e"><view class="order_success data-v-0ca91b30"><block wx:if="{{item.indentState==0}}"><view class="order_name data-v-0ca91b30">待付款</view></block><block wx:if="{{item.indentState==1||item.indentState==8||item.indentState==9||item.indentState==10}}"><view class="order_name data-v-0ca91b30">已取消</view></block><block wx:if="{{item.indentState==2}}"><view class="order_name data-v-0ca91b30">待接单</view></block><block wx:if="{{item.indentState==5}}"><view class="order_name data-v-0ca91b30">待确认</view></block><block wx:if="{{item.indentState==3}}"><view class="order_name data-v-0ca91b30">已接单</view></block><block wx:if="{{item.indentState==4}}"><view class="order_name data-v-0ca91b30">派送中</view></block><block wx:if="{{item.indentState==6||item.indentState==7}}"><view class="order_name data-v-0ca91b30">已完成</view></block><block wx:if="{{item.indentState==10}}"><view class="order_name data-v-0ca91b30">已取消</view></block><view class="order_data data-v-0ca91b30">{{item.createTime}}</view></view><u-line vue-id="{{'3bc35b9e-9-'+index}}" color="#E6E6E6" class="data-v-0ca91b30" bind:__l="__l"></u-line><view class="order_city data-v-0ca91b30"><view class="city_type data-v-0ca91b30"><block wx:if="{{item.indentType==1}}"><view class="type_name data-v-0ca91b30">帮我送</view></block><block wx:if="{{item.indentType==2}}"><view class="type_name data-v-0ca91b30">帮我取</view></block><block wx:if="{{item.indentType==3}}"><view class="type_name data-v-0ca91b30">同城帮买</view></block><block wx:if="{{item.indentType==4}}"><view class="type_name data-v-0ca91b30">同城服务</view></block><block wx:if="{{item.indentType==5}}"><view class="type_name data-v-0ca91b30">同城外卖</view></block><block wx:if="{{item.indentType==1||item.indentType==2}}"><view class="city_text data-v-0ca91b30">{{''+item.itemType+''}}</view></block><block wx:if="{{item.indentType==3&&item.buyType==0}}"><view class="city_text data-v-0ca91b30">骑手购买</view></block><block wx:if="{{item.indentType==3&&item.buyType==1}}"><view class="city_text data-v-0ca91b30">指定购买</view></block><block wx:if="{{item.indentType==4&&item.serviceType}}"><view class="city_text data-v-0ca91b30">{{item.serviceType}}</view></block></view><view class="city_address data-v-0ca91b30"><block wx:if="{{item.indentType==1||item.indentType==2||item.indentType==3}}"><view class="fh_box data-v-0ca91b30"><view class="fh_image data-v-0ca91b30"><block wx:if="{{item.indentType==3}}"><image src="../../static/images/order/mai.png" class="data-v-0ca91b30"></image></block><block wx:else><image src="../../static/images/order/icon_f.png" class="data-v-0ca91b30"></image></block></view><view class="box data-v-0ca91b30"><view class="fh_name data-v-0ca91b30">{{item.shopAddressDetail}}</view><block wx:if="{{item.indentType!=3}}"><view class="fh_type data-v-0ca91b30">{{''+item.shopName+''}}<text class="data-v-0ca91b30">{{item.shopPhone}}</text></view></block></view></view></block><block wx:if="{{item.orderSequence}}"><view style="padding:0 30rpx;font-size:20px;" class="data-v-0ca91b30">{{"#"+item.orderSequence}}</view></block><view class="sh_box data-v-0ca91b30"><view class="sh_image data-v-0ca91b30"><image src="../../static/images/order/icon_s.png" class="data-v-0ca91b30"></image></view><view class="box data-v-0ca91b30"><view class="sh_name data-v-0ca91b30">{{item.userAddressDetail}}</view><view class="sh_type data-v-0ca91b30">{{''+item.userName+''}}<text class="data-v-0ca91b30">{{item.userPhone}}</text></view></view></view></view></view><u-line vue-id="{{'3bc35b9e-10-'+index}}" color="#E6E6E6" class="data-v-0ca91b30" bind:__l="__l"></u-line><view class="order_btn data-v-0ca91b30"><block wx:if="{{item.indentState==7||item.indentState==6&&(!item.evaluateMessage||item.evaluateMessage==0)}}"><view data-event-opts="{{[['tap',[['pingjias',['$0'],[[['order','',index]]]]]]]}}" class="btn data-v-0ca91b30" catchtap="__e">点赞骑手</view></block><block wx:if="{{item.indentState==0||item.indentState==2}}"><view data-event-opts="{{[['tap',[['bindorderOff',['$0'],[[['order','',index]]]]]]]}}" class="btn data-v-0ca91b30" catchtap="__e">取消订单</view></block><block wx:if="{{item.indentState==5}}"><view data-event-opts="{{[['tap',[['bindconfirm',['$0'],[[['order','',index]]]]]]]}}" class="btn data-v-0ca91b30" catchtap="__e">确认订单</view></block><block wx:if="{{item.indentState==1||item.indentState==3||item.indentState==8||item.indentState==9||item.indentState==10||item.indentState==4||item.indentState==6}}"><view data-event-opts="{{[['tap',[['bindorder',['$0'],[[['order','',index]]]]]]]}}" class="btn_ data-v-0ca91b30" catchtap="__e">再来一单</view></block><block wx:if="{{item.indentState==0}}"><view data-event-opts="{{[['tap',[['bindorderpay',['$0'],[[['order','',index]]]]]]]}}" class="btn_ data-v-0ca91b30" catchtap="__e">立即付款</view></block></view></view></block></view><block wx:if="{{!$root.g1}}"><empty style="z-index:0;" vue-id="3bc35b9e-11" class="data-v-0ca91b30" bind:__l="__l"></empty></block></view></block></view>