|
@@ -2,27 +2,22 @@
|
|
|
<view class="content" :style="'padding-top:'+ headerHeight+'px'">
|
|
|
<uHeader ref="toRefresh" :userinfo="userinfo" />
|
|
|
<view class="menu-top">
|
|
|
- <u-tabs :list="list" name="cate_name" count="cate_count" :is-scroll="false" :current="current"
|
|
|
- @change="change" bg-color="#F7E8CB" active-color="#E68500"></u-tabs>
|
|
|
+ <u-tabs :list="list" name="cate_name" count="cate_count" :is-scroll="false" :current="current" @change="change" bg-color="#F7E8CB" active-color="#E68500"></u-tabs>
|
|
|
<swiper :interval="3000" :duration="1000" :current="current" class="order-list-box" @change="touchChange">
|
|
|
<!-- 待接单 -->
|
|
|
<swiper-item style="height: 100%;">
|
|
|
- <scroll-view :scroll-top="50" scroll-y="true" style=" height:100%;" @scrolltoupper="upper"
|
|
|
- @scrolltolower="lower">
|
|
|
+ <scroll-view :scroll-top="50" scroll-y="true" style=" height:100%;" @scrolltoupper="upper" @scrolltolower="lower">
|
|
|
<view class="noOrder" v-if="dataA.length < 1">
|
|
|
暂无订单~~
|
|
|
</view>
|
|
|
- <view class="card" @click=" isAdmin? info(item) : ''" v-for="(item,index) in dataA"
|
|
|
- :key="index">
|
|
|
+ <view class="card" @click=" isAdmin? info(item) : ''" v-for="(item,index) in dataA" :key="index">
|
|
|
<view class="row">
|
|
|
<view style="width:20%;">
|
|
|
- <view
|
|
|
- :class="item.freight==='fast'?'type_name green':item.freight === 'air'?'type_name blue':'type_name yellow' ">
|
|
|
+ <view :class="item.freight==='fast'?'type_name green':item.freight === 'air'?'type_name blue':'type_name yellow' ">
|
|
|
{{item.freight === 'fast'?'快 车':item.freight === 'air'?'空 运':'专 车'}}
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="row"
|
|
|
- style="width: 60%; justify-content: flex-start; overflow: hidden; white-space:nowrap;text-overflow:ellipsis;">
|
|
|
+ <view class="row" style="width: 60%; justify-content: flex-start; overflow: hidden; white-space:nowrap;text-overflow:ellipsis;">
|
|
|
<view class="name" style="width:20%;">
|
|
|
订单号
|
|
|
</view>
|
|
@@ -40,8 +35,7 @@
|
|
|
{{item.from_city}}
|
|
|
</view>
|
|
|
<view class="image">
|
|
|
- <image src="http://pet.hdlkeji.com/assets/static/1/95.png"
|
|
|
- style="width: 50rpx;height: 20rpx;"></image>
|
|
|
+ <image src="http://pet.hdlkeji.com/assets/static/1/95.png" style="width: 50rpx;height: 20rpx;"></image>
|
|
|
</view>
|
|
|
<view class="big-text">
|
|
|
{{item.to_city}}
|
|
@@ -115,21 +109,18 @@
|
|
|
</swiper-item>
|
|
|
<!-- 进行中 -->
|
|
|
<swiper-item style="height: 100%;">
|
|
|
- <scroll-view :scroll-top="50" scroll-y="true" style=" height:100%;" @scrolltoupper="upper"
|
|
|
- @scrolltolower="lower">
|
|
|
+ <scroll-view :scroll-top="50" scroll-y="true" style=" height:100%;" @scrolltoupper="upper" @scrolltolower="lower">
|
|
|
<view class="noOrder" v-if="dataB.length < 1">
|
|
|
暂无订单~~
|
|
|
</view>
|
|
|
<view class="card" @click="info(item)" v-for="(item,index) in dataB" :key="index">
|
|
|
<view class="row">
|
|
|
<view style="width:20%;">
|
|
|
- <view
|
|
|
- :class="item.freight==='fast'?'type_name green':item.freight === 'air'?'type_name blue':'type_name yellow' ">
|
|
|
+ <view :class="item.freight==='fast'?'type_name green':item.freight === 'air'?'type_name blue':'type_name yellow' ">
|
|
|
{{item.freight === 'fast'?'快 车':item.freight === 'air'?'空 运':'专 车'}}
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="row"
|
|
|
- style="width: 60%; justify-content: flex-start; overflow: hidden; white-space:nowrap;text-overflow:ellipsis;">
|
|
|
+ <view class="row" style="width: 60%; justify-content: flex-start; overflow: hidden; white-space:nowrap;text-overflow:ellipsis;">
|
|
|
<view class="name" style="width:20%;">
|
|
|
订单号
|
|
|
</view>
|
|
@@ -147,8 +138,7 @@
|
|
|
{{item.from_city}}
|
|
|
</view>
|
|
|
<view class="image">
|
|
|
- <image src="http://pet.hdlkeji.com/assets/static/1/95.png"
|
|
|
- style="width: 40rpx;height: 20rpx;"></image>
|
|
|
+ <image src="http://pet.hdlkeji.com/assets/static/1/95.png" style="width: 40rpx;height: 20rpx;"></image>
|
|
|
</view>
|
|
|
<view class="big-text">
|
|
|
{{item.to_city}}
|
|
@@ -245,8 +235,7 @@
|
|
|
</swiper-item>
|
|
|
<!-- 已完成 -->
|
|
|
<swiper-item style="height: 100%;">
|
|
|
- <scroll-view :scroll-top="50" scroll-y="true" style=" height:100%;" @scrolltoupper="upper"
|
|
|
- @scrolltolower="lower">
|
|
|
+ <scroll-view :scroll-top="50" scroll-y="true" style=" height:100%;" @scrolltoupper="upper" @scrolltolower="lower">
|
|
|
<view class="noOrder" v-if="dataC.length < 1">
|
|
|
暂无订单~~
|
|
|
</view>
|
|
@@ -254,13 +243,11 @@
|
|
|
<view class="row">
|
|
|
<view class="row">
|
|
|
<view style="width:20%">
|
|
|
- <view
|
|
|
- :class="item.freight==='fast'?'type_name green':item.freight === 'air'?'type_name blue':'type_name yellow' ">
|
|
|
+ <view :class="item.freight==='fast'?'type_name green':item.freight === 'air'?'type_name blue':'type_name yellow' ">
|
|
|
{{item.freight === 'fast'?'快 车':item.freight === 'air'?'空 运':'专 车'}}
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="row"
|
|
|
- style="width: 60%; justify-content: flex-start; overflow: hidden; white-space:nowrap;text-overflow:ellipsis;">
|
|
|
+ <view class="row" style="width: 60%; justify-content: flex-start; overflow: hidden; white-space:nowrap;text-overflow:ellipsis;">
|
|
|
<view class="name">
|
|
|
订单号
|
|
|
</view>
|
|
@@ -279,8 +266,7 @@
|
|
|
{{item.from_city}}
|
|
|
</view>
|
|
|
<view class="image">
|
|
|
- <image src="http://pet.hdlkeji.com/assets/static/1/95.png"
|
|
|
- style="width: 50rpx;height: 20rpx;"></image>
|
|
|
+ <image src="http://pet.hdlkeji.com/assets/static/1/95.png" style="width: 50rpx;height: 20rpx;"></image>
|
|
|
</view>
|
|
|
<view class="big-text">
|
|
|
{{item.to_city}}
|
|
@@ -365,21 +351,18 @@
|
|
|
</swiper-item>
|
|
|
<!-- 已结算 -->
|
|
|
<swiper-item style="height: 100%;">
|
|
|
- <scroll-view :scroll-top="50" scroll-y="true" style=" height:100%;" @scrolltoupper="upper"
|
|
|
- @scrolltolower="lower">
|
|
|
+ <scroll-view :scroll-top="50" scroll-y="true" style=" height:100%;" @scrolltoupper="upper" @scrolltolower="lower">
|
|
|
<view class="noOrder" v-if="dataD.length < 1">
|
|
|
暂无订单~~
|
|
|
</view>
|
|
|
<view class="card" @click="info(item)" v-for="(item,index) in dataD" :key="index">
|
|
|
<view class="row">
|
|
|
<view style="width:20%;">
|
|
|
- <view
|
|
|
- :class="item.freight==='fast'?'type_name green':item.freight === 'air'?'type_name blue':'type_name yellow' ">
|
|
|
+ <view :class="item.freight==='fast'?'type_name green':item.freight === 'air'?'type_name blue':'type_name yellow' ">
|
|
|
{{item.freight === 'fast'?'快 车':item.freight === 'air'?'空 运':'专 车'}}
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="row"
|
|
|
- style="width: 60%; justify-content: flex-start; overflow: hidden; white-space:nowrap;text-overflow:ellipsis;">
|
|
|
+ <view class="row" style="width: 60%; justify-content: flex-start; overflow: hidden; white-space:nowrap;text-overflow:ellipsis;">
|
|
|
<view class="name" style="width:20%;">
|
|
|
订单号
|
|
|
</view>
|
|
@@ -397,8 +380,7 @@
|
|
|
{{item.from_city}}
|
|
|
</view>
|
|
|
<view class="image">
|
|
|
- <image src="http://pet.hdlkeji.com/assets/static/1/95.png"
|
|
|
- style="width: 50rpx;height: 20rpx;"></image>
|
|
|
+ <image src="http://pet.hdlkeji.com/assets/static/1/95.png" style="width: 50rpx;height: 20rpx;"></image>
|
|
|
</view>
|
|
|
<view class="big-text">
|
|
|
{{item.to_city}}
|
|
@@ -480,21 +462,18 @@
|
|
|
</swiper-item>
|
|
|
<!-- 已取消 -->
|
|
|
<swiper-item style="height: 100%;">
|
|
|
- <scroll-view :scroll-top="50" scroll-y="true" style=" height:100%;" @scrolltoupper="upper"
|
|
|
- @scrolltolower="lower">
|
|
|
+ <scroll-view :scroll-top="50" scroll-y="true" style=" height:100%;" @scrolltoupper="upper" @scrolltolower="lower">
|
|
|
<view class="noOrder" v-if="dataE.length < 1">
|
|
|
暂无订单~~
|
|
|
</view>
|
|
|
<view class="card" @click="info(item)" v-for="(item,index) in dataE" :key="index">
|
|
|
<view class="row">
|
|
|
<view style="width:20%;">
|
|
|
- <view
|
|
|
- :class="item.freight==='fast'?'type_name green':item.freight === 'air'?'type_name blue':'type_name yellow' ">
|
|
|
+ <view :class="item.freight==='fast'?'type_name green':item.freight === 'air'?'type_name blue':'type_name yellow' ">
|
|
|
{{item.freight === 'fast'?'快 车':item.freight === 'air'?'空 运':'专 车'}}
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="row"
|
|
|
- style="width: 60%; justify-content: flex-start; overflow: hidden; white-space:nowrap;text-overflow:ellipsis;">
|
|
|
+ <view class="row" style="width: 60%; justify-content: flex-start; overflow: hidden; white-space:nowrap;text-overflow:ellipsis;">
|
|
|
<view class="name" style="width:20%;">
|
|
|
订单号
|
|
|
</view>
|
|
@@ -512,8 +491,7 @@
|
|
|
{{item.from_city}}
|
|
|
</view>
|
|
|
<view class="image">
|
|
|
- <image src="http://pet.hdlkeji.com/assets/static/1/95.png"
|
|
|
- style="width: 50rpx;height: 20rpx;"></image>
|
|
|
+ <image src="http://pet.hdlkeji.com/assets/static/1/95.png" style="width: 50rpx;height: 20rpx;"></image>
|
|
|
</view>
|
|
|
<view class="big-text">
|
|
|
{{item.to_city}}
|
|
@@ -616,8 +594,7 @@
|
|
|
</u-popup>
|
|
|
|
|
|
<!-- 手动派单选择人员 -->
|
|
|
- <u-select safe-area-inset-bottom="true" title="取宠人-----送宠人" v-model="checkUser" :list="all_data"
|
|
|
- :label-name="'name'" :value-name="'id'" mode="mutil-column" @confirm="checkUsered">
|
|
|
+ <u-select safe-area-inset-bottom="true" title="取宠人-----送宠人" v-model="checkUser" :list="all_data" :label-name="'name'" :value-name="'id'" mode="mutil-column" @confirm="checkUsered">
|
|
|
</u-select>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -880,6 +857,17 @@
|
|
|
if (res.data.need_verification) {
|
|
|
this.show = true
|
|
|
}
|
|
|
+ if (!res.data.wx_authed) {
|
|
|
+ uni.login({
|
|
|
+ provider: 'weixin',
|
|
|
+ success: (code) => {
|
|
|
+ console.log(code.code);
|
|
|
+ this.request('/user/wx_auth', {
|
|
|
+ code: code.code
|
|
|
+ }, "GET")
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
},
|