|
@@ -1,357 +1,350 @@
|
|
<template>
|
|
<template>
|
|
- <view class="content">
|
|
|
|
|
|
+ <view class="content" :style="'padding-top:'+ headerHeight+'px'">
|
|
<uHeader ref="toRefresh" :userinfo="userinfo" />
|
|
<uHeader ref="toRefresh" :userinfo="userinfo" />
|
|
<view class="menu-top">
|
|
<view class="menu-top">
|
|
<u-tabs :list="list" name="cate_name" count="cate_count" :is-scroll="false" :current="current"
|
|
<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>
|
|
@change="change" bg-color="#F7E8CB" active-color="#E68500"></u-tabs>
|
|
- </view>
|
|
|
|
- <swiper :interval="3000" :duration="1000" :current="current" class="order-list-box" @change="touchChange">
|
|
|
|
- <swiper-item style="height: 100%;overflow-y: scroll;">
|
|
|
|
- <view class="noOrder" v-if="data.data.length < 1">
|
|
|
|
- 暂无订单~~
|
|
|
|
- </view>
|
|
|
|
- <view class="card" @click="info(item)" v-for="(item,index) in data.data" :key="index">
|
|
|
|
- <view class="row center">
|
|
|
|
- <view class="big-text">
|
|
|
|
- {{item.from_city}}
|
|
|
|
- </view>
|
|
|
|
- <view class="image">
|
|
|
|
- -
|
|
|
|
- </view>
|
|
|
|
- <view class="big-text">
|
|
|
|
- {{item.to_city}}
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <view class="row">
|
|
|
|
- <view class="row half">
|
|
|
|
- <view class="name">
|
|
|
|
- 宠物类别
|
|
|
|
- </view>
|
|
|
|
- <view class="text">
|
|
|
|
- {{item.pet_category}}
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <view class="row half">
|
|
|
|
- <view class="name">
|
|
|
|
- 宠物规格
|
|
|
|
- </view>
|
|
|
|
- <view class="text">
|
|
|
|
- {{item.spec}}
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <view class="row">
|
|
|
|
- <view class="row half" style="width: 100%;">
|
|
|
|
- <view class="name">
|
|
|
|
- 取宠时间
|
|
|
|
- </view>
|
|
|
|
- <view class="text">
|
|
|
|
- {{item.agree_date}}
|
|
|
|
- {{item.agree_time}}
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <view class="row">
|
|
|
|
- <view class="row half" style="width: 100%;">
|
|
|
|
- <view class="name">
|
|
|
|
- 订单号
|
|
|
|
- </view>
|
|
|
|
- <view class="text">
|
|
|
|
- {{item.no}}
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <view class="row border" v-if="isAdmin">
|
|
|
|
- <view class="btn">
|
|
|
|
- 拒绝
|
|
|
|
- </view>
|
|
|
|
- <view class="btn">
|
|
|
|
- 备注
|
|
|
|
- </view>
|
|
|
|
- <view class="btn">
|
|
|
|
- 结算
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <view class="row border" v-if="!isAdmin">
|
|
|
|
- <view class="btn" @click.stop="getOrder(item.id)" >
|
|
|
|
- 立即接单
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- </swiper-item>
|
|
|
|
- <swiper-item style="height: 100%;overflow-y: scroll;">
|
|
|
|
- <view class="noOrder" v-if="data.data.length < 1">
|
|
|
|
- 暂无订单~~
|
|
|
|
- </view>
|
|
|
|
- <view class="card" @click="info(item)" v-for="(item,index) in data.data" :key="index">
|
|
|
|
- <view class="row center">
|
|
|
|
- <view class="big-text">
|
|
|
|
- {{item.from_city}}
|
|
|
|
- </view>
|
|
|
|
- <view class="image">
|
|
|
|
- -
|
|
|
|
- </view>
|
|
|
|
- <view class="big-text">
|
|
|
|
- {{item.to_city}}
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <view class="row">
|
|
|
|
- <view class="row half">
|
|
|
|
- <view class="name">
|
|
|
|
- 宠物类别
|
|
|
|
- </view>
|
|
|
|
- <view class="text">
|
|
|
|
- {{item.pet_category}}
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <view class="row half">
|
|
|
|
- <view class="name">
|
|
|
|
- 宠物规格
|
|
|
|
- </view>
|
|
|
|
- <view class="text">
|
|
|
|
- {{item.spec}}
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
|
|
+ <swiper :interval="3000" :duration="1000" :current="current" class="order-list-box" @change="touchChange">
|
|
|
|
+ <!-- 待接单 -->
|
|
|
|
+ <swiper-item style="height: 100%;overflow-y: scroll;">
|
|
|
|
+ <view class="noOrder" v-if="data.data.length < 1">
|
|
|
|
+ 暂无订单~~
|
|
</view>
|
|
</view>
|
|
- <view class="row">
|
|
|
|
- <view class="row half" style="width: 100%;">
|
|
|
|
- <view class="name">
|
|
|
|
- 取宠时间
|
|
|
|
- </view>
|
|
|
|
- <view class="text">
|
|
|
|
- {{item.agree_date}}
|
|
|
|
- {{item.agree_time}}
|
|
|
|
|
|
+ <view class="card" @click="info(item)" v-for="(item,index) in data.data" :key="index">
|
|
|
|
+ <view class="row center">
|
|
|
|
+ <view class="big-text">
|
|
|
|
+ {{item.from_city}}
|
|
|
|
+ </view>
|
|
|
|
+ <view class="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}}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="row">
|
|
|
|
+ <view class="row half">
|
|
|
|
+ <view class="name">
|
|
|
|
+ 宠物类别
|
|
|
|
+ </view>
|
|
|
|
+ <view class="text">
|
|
|
|
+ {{item.pet_category}}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="row half">
|
|
|
|
+ <view class="name">
|
|
|
|
+ 宠物规格
|
|
|
|
+ </view>
|
|
|
|
+ <view class="text">
|
|
|
|
+ {{item.spec}}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="row">
|
|
|
|
+ <view class="row half" style="width: 100%;">
|
|
|
|
+ <view class="name">
|
|
|
|
+ 取宠时间
|
|
|
|
+ </view>
|
|
|
|
+ <view class="text">
|
|
|
|
+ {{item.agree_date}}
|
|
|
|
+ {{item.agree_time}}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="row">
|
|
|
|
+ <view class="row half" style="width: 100%;">
|
|
|
|
+ <view class="name">
|
|
|
|
+ 订单号
|
|
|
|
+ </view>
|
|
|
|
+ <view class="text">
|
|
|
|
+ {{item.no}}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <!-- 如果是配送员 接 收 都是接单操作 -->
|
|
|
|
+ <view class="row border" v-if="!isAdmin">
|
|
|
|
+ <view class="btn" @click.stop="getOrder(item.id)">
|
|
|
|
+ 立即接单
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="row">
|
|
|
|
- <view class="row half" style="width: 100%;">
|
|
|
|
- <view class="name">
|
|
|
|
- 订单号
|
|
|
|
- </view>
|
|
|
|
- <view class="text">
|
|
|
|
- {{item.no}}
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
|
|
+ </swiper-item>
|
|
|
|
+ <!-- 进行中 -->
|
|
|
|
+ <swiper-item style="height: 100%;overflow-y: scroll;">
|
|
|
|
+ <view class="noOrder" v-if="data.data.length < 1">
|
|
|
|
+ 暂无订单~~
|
|
</view>
|
|
</view>
|
|
- <view class="row border" v-if="isAdmin">
|
|
|
|
- <view class="btn">
|
|
|
|
- 拒绝
|
|
|
|
|
|
+ <view class="card" @click="info(item)" v-for="(item,index) in data.data" :key="index">
|
|
|
|
+ <view class="row center">
|
|
|
|
+ <view class="big-text">
|
|
|
|
+ {{item.from_city}}
|
|
|
|
+ </view>
|
|
|
|
+ <view class="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}}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="row">
|
|
|
|
+ <view class="row half">
|
|
|
|
+ <view class="name">
|
|
|
|
+ 宠物类别
|
|
|
|
+ </view>
|
|
|
|
+ <view class="text">
|
|
|
|
+ {{item.pet_category}}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="row half">
|
|
|
|
+ <view class="name">
|
|
|
|
+ 宠物规格
|
|
|
|
+ </view>
|
|
|
|
+ <view class="text">
|
|
|
|
+ {{item.spec}}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="row">
|
|
|
|
+ <view class="row half" style="width: 100%;">
|
|
|
|
+ <view class="name">
|
|
|
|
+ 取宠时间
|
|
|
|
+ </view>
|
|
|
|
+ <view class="text">
|
|
|
|
+ {{item.agree_date}}
|
|
|
|
+ {{item.agree_time}}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="row">
|
|
|
|
+ <view class="row half" style="width: 100%;">
|
|
|
|
+ <view class="name">
|
|
|
|
+ 订单号
|
|
|
|
+ </view>
|
|
|
|
+ <view class="text">
|
|
|
|
+ {{item.no}}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <!-- 判断位配送员 -->
|
|
|
|
+ <view class="row border" v-if="!isAdmin">
|
|
|
|
+ <!-- 判断已经接单 并且 配送员位取宠人 -->
|
|
|
|
+ <view class="btn" v-if="item.status === 10 && item.current_send_order.type === 1">
|
|
|
|
+ 上传取宠视频
|
|
|
|
+ </view>
|
|
|
|
+ <view class="btn" v-if="item.status === 20 && item.current_send_order.type === 1">
|
|
|
|
+ 上传运宠视频
|
|
|
|
+ </view>
|
|
|
|
+ <!-- 判断已经接单 并且 配送员位取宠人 -->
|
|
|
|
+ <view class="btn" v-if="item.status === 30 && item.current_send_order.type === 2">
|
|
|
|
+ 上传送达视频
|
|
|
|
+ </view>
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
- </view>
|
|
|
|
- <view class="row border" v-if="!isAdmin">
|
|
|
|
- <view class="btn" v-if="item.status === 10">
|
|
|
|
- 上传取宠视频
|
|
|
|
- </view>
|
|
|
|
</view>
|
|
</view>
|
|
- </view>
|
|
|
|
- </swiper-item>
|
|
|
|
- <swiper-item style="height: 100%;overflow-y: scroll;">
|
|
|
|
- <view class="noOrder" v-if="data.data.length < 1">
|
|
|
|
- 暂无订单~~
|
|
|
|
- </view>
|
|
|
|
- <view class="card" @click="info(item)" v-for="(item,index) in data.data" :key="index">
|
|
|
|
- <view class="row center">
|
|
|
|
- <view class="big-text">
|
|
|
|
- {{item.from_city}}
|
|
|
|
- </view>
|
|
|
|
- <view class="image">
|
|
|
|
- -
|
|
|
|
- </view>
|
|
|
|
- <view class="big-text">
|
|
|
|
- {{item.to_city}}
|
|
|
|
- </view>
|
|
|
|
|
|
+ </swiper-item>
|
|
|
|
+ <!-- 已完成 -->
|
|
|
|
+ <swiper-item style="height: 100%;overflow-y: scroll;">
|
|
|
|
+ <view class="noOrder" v-if="data.data.length < 1">
|
|
|
|
+ 暂无订单~~
|
|
</view>
|
|
</view>
|
|
- <view class="row">
|
|
|
|
- <view class="row half">
|
|
|
|
- <view class="name">
|
|
|
|
- 宠物类别
|
|
|
|
|
|
+ <view class="card" @click="info(item)" v-for="(item,index) in data.data" :key="index">
|
|
|
|
+ <view class="row center">
|
|
|
|
+ <view class="big-text">
|
|
|
|
+ {{item.from_city}}
|
|
</view>
|
|
</view>
|
|
- <view class="text">
|
|
|
|
- {{item.pet_category}}
|
|
|
|
|
|
+ <view class="image">
|
|
|
|
+ <image src="http://pet.hdlkeji.com/assets/static/1/95.png" style="width: 50rpx;height: 20rpx;"></image>
|
|
</view>
|
|
</view>
|
|
- </view>
|
|
|
|
- <view class="row half">
|
|
|
|
- <view class="name">
|
|
|
|
- 宠物规格
|
|
|
|
- </view>
|
|
|
|
- <view class="text">
|
|
|
|
- {{item.spec}}
|
|
|
|
|
|
+ <view class="big-text">
|
|
|
|
+ {{item.to_city}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- </view>
|
|
|
|
- <view class="row">
|
|
|
|
- <view class="row half" style="width: 100%;">
|
|
|
|
- <view class="name">
|
|
|
|
- 取宠时间
|
|
|
|
|
|
+ <view class="row">
|
|
|
|
+ <view class="row half">
|
|
|
|
+ <view class="name">
|
|
|
|
+ 宠物类别
|
|
|
|
+ </view>
|
|
|
|
+ <view class="text">
|
|
|
|
+ {{item.pet_category}}
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
- <view class="text">
|
|
|
|
- {{item.agree_date}}
|
|
|
|
- {{item.agree_time}}
|
|
|
|
|
|
+ <view class="row half">
|
|
|
|
+ <view class="name">
|
|
|
|
+ 宠物规格
|
|
|
|
+ </view>
|
|
|
|
+ <view class="text">
|
|
|
|
+ {{item.spec}}
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- </view>
|
|
|
|
- <view class="row">
|
|
|
|
- <view class="row half" style="width: 100%;">
|
|
|
|
- <view class="name">
|
|
|
|
- 订单号
|
|
|
|
|
|
+ <view class="row">
|
|
|
|
+ <view class="row half" style="width: 100%;">
|
|
|
|
+ <view class="name">
|
|
|
|
+ 取宠时间
|
|
|
|
+ </view>
|
|
|
|
+ <view class="text">
|
|
|
|
+ {{item.agree_date}}
|
|
|
|
+ {{item.agree_time}}
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
- <view class="text">
|
|
|
|
- {{item.no}}
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <view class="row border" v-if="!isAdmin">
|
|
|
|
- <view class="btn">
|
|
|
|
- 拒绝
|
|
|
|
- </view>
|
|
|
|
- <view class="btn">
|
|
|
|
- 备注
|
|
|
|
- </view>
|
|
|
|
- <view class="btn">
|
|
|
|
- 结算
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- </swiper-item>
|
|
|
|
- <swiper-item style="height: 100%;overflow-y: scroll;">
|
|
|
|
- <view class="noOrder" v-if="data.data.length < 1">
|
|
|
|
- 暂无订单~~
|
|
|
|
- </view>
|
|
|
|
- <view class="card" @click="info(item)" v-for="(item,index) in data.data" :key="index">
|
|
|
|
- <view class="row center">
|
|
|
|
- <view class="big-text">
|
|
|
|
- {{item.from_city}}
|
|
|
|
</view>
|
|
</view>
|
|
- <view class="image">
|
|
|
|
- -
|
|
|
|
- </view>
|
|
|
|
- <view class="big-text">
|
|
|
|
- {{item.to_city}}
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <view class="row">
|
|
|
|
- <view class="row half">
|
|
|
|
- <view class="name">
|
|
|
|
- 宠物类别
|
|
|
|
- </view>
|
|
|
|
- <view class="text">
|
|
|
|
- {{item.pet_category}}
|
|
|
|
|
|
+ <view class="row">
|
|
|
|
+ <view class="row half" style="width: 100%;">
|
|
|
|
+ <view class="name">
|
|
|
|
+ 订单号
|
|
|
|
+ </view>
|
|
|
|
+ <view class="text">
|
|
|
|
+ {{item.no}}
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="row half">
|
|
|
|
- <view class="name">
|
|
|
|
- 宠物规格
|
|
|
|
- </view>
|
|
|
|
- <view class="text">
|
|
|
|
- {{item.spec}}
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <view class="row">
|
|
|
|
- <view class="row half" style="width: 100%;">
|
|
|
|
- <view class="name">
|
|
|
|
- 取宠时间
|
|
|
|
|
|
+ <view class="row border" v-if="isAdmin">
|
|
|
|
+ <view class="btn" @click.stop="refuse(item.id)">
|
|
|
|
+ 拒绝
|
|
</view>
|
|
</view>
|
|
- <view class="text">
|
|
|
|
- {{item.agree_date}}
|
|
|
|
- {{item.agree_time}}
|
|
|
|
|
|
+ <view class="btn" @click.stop="push(item.id)">
|
|
|
|
+ 结算
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- </view>
|
|
|
|
- <view class="row">
|
|
|
|
- <view class="row half" style="width: 100%;">
|
|
|
|
- <view class="name">
|
|
|
|
- 订单号
|
|
|
|
- </view>
|
|
|
|
- <view class="text">
|
|
|
|
- {{item.no}}
|
|
|
|
|
|
+ <view class="row border" v-if="!isAdmin">
|
|
|
|
+ <view class="btn" @click.stop="settle(item.id)">
|
|
|
|
+ 申请结算
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="row border" v-if="isAdmin">
|
|
|
|
- <view class="btn">
|
|
|
|
- 拒绝
|
|
|
|
- </view>
|
|
|
|
- <view class="btn">
|
|
|
|
- 备注
|
|
|
|
- </view>
|
|
|
|
- <view class="btn">
|
|
|
|
- 结算
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- </swiper-item>
|
|
|
|
- <swiper-item style="height: 100%;overflow-y: scroll;">
|
|
|
|
- <view class="noOrder" v-if="data.data.length < 1">
|
|
|
|
- 暂无订单~~
|
|
|
|
- </view>
|
|
|
|
- <view class="card" @click="info(item)" v-for="(item,index) in data.data" :key="index">
|
|
|
|
- <view class="row center">
|
|
|
|
- <view class="big-text">
|
|
|
|
- {{item.from_city}}
|
|
|
|
- </view>
|
|
|
|
- <view class="image">
|
|
|
|
- -
|
|
|
|
- </view>
|
|
|
|
- <view class="big-text">
|
|
|
|
- {{item.to_city}}
|
|
|
|
- </view>
|
|
|
|
|
|
+ </swiper-item>
|
|
|
|
+ <!-- 已结算 -->
|
|
|
|
+ <swiper-item style="height: 100%;overflow-y: scroll;">
|
|
|
|
+ <view class="noOrder" v-if="data.data.length < 1">
|
|
|
|
+ 暂无订单~~
|
|
</view>
|
|
</view>
|
|
- <view class="row">
|
|
|
|
- <view class="row half">
|
|
|
|
- <view class="name">
|
|
|
|
- 宠物类别
|
|
|
|
- </view>
|
|
|
|
- <view class="text">
|
|
|
|
- {{item.pet_category}}
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <view class="row half">
|
|
|
|
- <view class="name">
|
|
|
|
- 宠物规格
|
|
|
|
- </view>
|
|
|
|
- <view class="text">
|
|
|
|
- {{item.spec}}
|
|
|
|
|
|
+ <view class="card" @click="info(item)" v-for="(item,index) in data.data" :key="index">
|
|
|
|
+ <view class="row center">
|
|
|
|
+ <view class="big-text">
|
|
|
|
+ {{item.from_city}}
|
|
|
|
+ </view>
|
|
|
|
+ <view class="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}}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="row">
|
|
|
|
+ <view class="row half">
|
|
|
|
+ <view class="name">
|
|
|
|
+ 宠物类别
|
|
|
|
+ </view>
|
|
|
|
+ <view class="text">
|
|
|
|
+ {{item.pet_category}}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="row half">
|
|
|
|
+ <view class="name">
|
|
|
|
+ 宠物规格
|
|
|
|
+ </view>
|
|
|
|
+ <view class="text">
|
|
|
|
+ {{item.spec}}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="row">
|
|
|
|
+ <view class="row half" style="width: 100%;">
|
|
|
|
+ <view class="name">
|
|
|
|
+ 取宠时间
|
|
|
|
+ </view>
|
|
|
|
+ <view class="text">
|
|
|
|
+ {{item.agree_date}}
|
|
|
|
+ {{item.agree_time}}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="row">
|
|
|
|
+ <view class="row half" style="width: 100%;">
|
|
|
|
+ <view class="name">
|
|
|
|
+ 订单号
|
|
|
|
+ </view>
|
|
|
|
+ <view class="text">
|
|
|
|
+ {{item.no}}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="row border" v-if="isAdmin">
|
|
|
|
+ <view class="btn" @click.stop="del(item.id)">
|
|
|
|
+ 删除
|
|
</view>
|
|
</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="row border" v-if="!isAdmin">
|
|
|
|
+ <view class="btn" @click.stop="del(item.id)">
|
|
|
|
+ 删除
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="row">
|
|
|
|
- <view class="row half" style="width: 100%;">
|
|
|
|
- <view class="name">
|
|
|
|
- 取宠时间
|
|
|
|
- </view>
|
|
|
|
- <view class="text">
|
|
|
|
- {{item.agree_date}}
|
|
|
|
- {{item.agree_time}}
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
|
|
+ </swiper-item>
|
|
|
|
+ <swiper-item style="height: 100%;overflow-y: scroll;">
|
|
|
|
+ <view class="noOrder" v-if="data.data.length < 1">
|
|
|
|
+ 暂无订单~~
|
|
</view>
|
|
</view>
|
|
- <view class="row">
|
|
|
|
- <view class="row half" style="width: 100%;">
|
|
|
|
- <view class="name">
|
|
|
|
- 订单号
|
|
|
|
- </view>
|
|
|
|
- <view class="text">
|
|
|
|
- {{item.no}}
|
|
|
|
|
|
+ <view class="card" @click="info(item)" v-for="(item,index) in data.data" :key="index">
|
|
|
|
+ <view class="row center">
|
|
|
|
+ <view class="big-text">
|
|
|
|
+ {{item.from_city}}
|
|
|
|
+ </view>
|
|
|
|
+ <view class="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}}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="row">
|
|
|
|
+ <view class="row half">
|
|
|
|
+ <view class="name">
|
|
|
|
+ 宠物类别
|
|
|
|
+ </view>
|
|
|
|
+ <view class="text">
|
|
|
|
+ {{item.pet_category}}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="row half">
|
|
|
|
+ <view class="name">
|
|
|
|
+ 宠物规格
|
|
|
|
+ </view>
|
|
|
|
+ <view class="text">
|
|
|
|
+ {{item.spec}}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="row">
|
|
|
|
+ <view class="row half" style="width: 100%;">
|
|
|
|
+ <view class="name">
|
|
|
|
+ 取宠时间
|
|
|
|
+ </view>
|
|
|
|
+ <view class="text">
|
|
|
|
+ {{item.agree_date}}
|
|
|
|
+ {{item.agree_time}}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="row">
|
|
|
|
+ <view class="row half" style="width: 100%;">
|
|
|
|
+ <view class="name">
|
|
|
|
+ 订单号
|
|
|
|
+ </view>
|
|
|
|
+ <view class="text">
|
|
|
|
+ {{item.no}}
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="row border" v-if="isAdmin">
|
|
|
|
+ <view class="btn">
|
|
|
|
+ 拒绝
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="row border" v-if="isAdmin">
|
|
|
|
- <view class="btn">
|
|
|
|
- 拒绝
|
|
|
|
- </view>
|
|
|
|
- <view class="btn">
|
|
|
|
- 备注
|
|
|
|
- </view>
|
|
|
|
- <view class="btn">
|
|
|
|
- 结算
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- </swiper-item>
|
|
|
|
- </swiper>
|
|
|
|
-
|
|
|
|
|
|
+ </swiper-item>
|
|
|
|
+ </swiper>
|
|
|
|
+ </view>
|
|
|
|
|
|
|
|
|
|
<!-- 弹窗 -->
|
|
<!-- 弹窗 -->
|
|
@@ -371,6 +364,7 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</u-popup>
|
|
</u-popup>
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -410,11 +404,13 @@
|
|
// 弹窗
|
|
// 弹窗
|
|
show: false,
|
|
show: false,
|
|
page: 1,
|
|
page: 1,
|
|
- limit: 10,
|
|
|
|
|
|
+ limit: 100,
|
|
type: 1,
|
|
type: 1,
|
|
data: {},
|
|
data: {},
|
|
// 是否是管理员
|
|
// 是否是管理员
|
|
- isAdmin: false
|
|
|
|
|
|
+ isAdmin: false,
|
|
|
|
+ // 顶部高度
|
|
|
|
+ headerHeight: ''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
@@ -422,53 +418,121 @@
|
|
this.getData()
|
|
this.getData()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ created() {
|
|
|
|
+ uni.getSystemInfo({
|
|
|
|
+ success: (res) => {
|
|
|
|
+ const menuButton = uni.getMenuButtonBoundingClientRect() // 胶囊
|
|
|
|
+ const navBarPadding = (menuButton.top - res.statusBarHeight) * 2
|
|
|
|
+ let statusBarHeight = res.statusBarHeight
|
|
|
|
+ let navHeight = menuButton.height + navBarPadding
|
|
|
|
+ this.headerHeight = navHeight + statusBarHeight
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
onLoad() {
|
|
onLoad() {
|
|
- this.getData()
|
|
|
|
- // 获取订单数量
|
|
|
|
|
|
+ this.getData()
|
|
|
|
+ // 获取订单数量
|
|
this.getDataNum()
|
|
this.getDataNum()
|
|
let data = getApp().globalData
|
|
let data = getApp().globalData
|
|
- this.isAdmin = data.isAdmin
|
|
|
|
- if(!this.isAdmin){
|
|
|
|
- this.getInfo()
|
|
|
|
|
|
+ this.isAdmin = data.isAdmin
|
|
|
|
+ if (!this.isAdmin) {
|
|
|
|
+ this.getInfo()
|
|
}
|
|
}
|
|
- },
|
|
|
|
- onShow() {
|
|
|
|
- this.getDataNum()
|
|
|
|
},
|
|
},
|
|
- methods: {
|
|
|
|
- // 获取会员信息
|
|
|
|
- getInfo(){
|
|
|
|
- this.request('/user/index',{},"GET").then(res=>{
|
|
|
|
- if(res.code === 1){
|
|
|
|
- if(res.data.need_verification){
|
|
|
|
- this.show = true
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ onShow() {
|
|
|
|
+ this.getData()
|
|
|
|
+ this.getDataNum()
|
|
|
|
+ },
|
|
|
|
+ onPullDownRefresh() {
|
|
|
|
+ this.getDataNum()
|
|
|
|
+ this.getData()
|
|
|
|
+ },
|
|
|
|
+ methods: {
|
|
|
|
+ // 删除订单
|
|
|
|
+ del(id) {
|
|
|
|
+ let url = ""
|
|
|
|
+ if (this.isAdmin) {
|
|
|
|
+ url = "/admin_order/order_delete"
|
|
|
|
+ } else {
|
|
|
|
+ url = "/sender_order_controller/delete"
|
|
|
|
+ }
|
|
|
|
+ this.request(url, {
|
|
|
|
+ id: id
|
|
|
|
+ }, "GET").then(res => {
|
|
|
|
+ if (res.code === 1) {
|
|
|
|
+ this.getData()
|
|
|
|
+ this.getDataNum()
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ // 拒绝结算
|
|
|
|
+ refuse(id) {
|
|
|
|
+ this.request("/admin_order/deal_settle", {
|
|
|
|
+ id: id,
|
|
|
|
+ status: 2
|
|
|
|
+ }, "GET").then(res => {
|
|
|
|
+ if (res.code === 1) {
|
|
|
|
+ this.getData()
|
|
|
|
+ this.getDataNum()
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ // 结算
|
|
|
|
+ push(id) {
|
|
|
|
+ this.request("/admin_order/deal_settle", {
|
|
|
|
+ id: id,
|
|
|
|
+ status: 1
|
|
|
|
+ }, "GET").then(res => {
|
|
|
|
+ if (res.code === 1) {
|
|
|
|
+ this.getData()
|
|
|
|
+ this.getDataNum()
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ // 申请结算
|
|
|
|
+ settle(id) {
|
|
|
|
+ // this.requset("/sender_order_controller/settle",{
|
|
|
|
+
|
|
|
|
+ // },"POST").then(res=>{
|
|
|
|
+ // console.log(res)
|
|
|
|
+ // })
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: './settle?id=' + id
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ // 获取会员信息
|
|
|
|
+ getInfo() {
|
|
|
|
+ this.request('/user/index', {}, "GET").then(res => {
|
|
|
|
+ if (res.code === 1) {
|
|
|
|
+ if (res.data.need_verification) {
|
|
|
|
+ this.show = true
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
},
|
|
},
|
|
// 点击立即接单
|
|
// 点击立即接单
|
|
getOrder(id) {
|
|
getOrder(id) {
|
|
this.request("/sender_order_controller/get", {
|
|
this.request("/sender_order_controller/get", {
|
|
id: id
|
|
id: id
|
|
}, "POST").then(res => {
|
|
}, "POST").then(res => {
|
|
- if(res.code === 1){
|
|
|
|
- this.getData()
|
|
|
|
- this.getDataNum()
|
|
|
|
|
|
+ if (res.code === 1) {
|
|
|
|
+ this.getData()
|
|
|
|
+ this.getDataNum()
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ // 获取订单数量
|
|
|
|
+ getDataNum() {
|
|
|
|
+ this.request("/sender_order_controller/nums", {}, "GET").then(res => {
|
|
|
|
+ console.log(res)
|
|
|
|
+ if (res.code === 1) {
|
|
|
|
+ this.list[0].cate_count = res.data[1]
|
|
|
|
+ this.list[1].cate_count = res.data[2]
|
|
|
|
+ this.list[2].cate_count = res.data[3]
|
|
|
|
+ this.list[3].cate_count = res.data[4]
|
|
|
|
+ this.list[4].cate_count = res.data[5]
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- },
|
|
|
|
- // 获取订单数量
|
|
|
|
- getDataNum(){
|
|
|
|
- this.request("/sender_order_controller/nums",{},"GET").then(res=>{
|
|
|
|
- console.log(res)
|
|
|
|
- if(res.code === 1){
|
|
|
|
- this.list[0].cate_count = res.data[1]
|
|
|
|
- this.list[1].cate_count = res.data[2]
|
|
|
|
- this.list[2].cate_count = res.data[3]
|
|
|
|
- this.list[3].cate_count = res.data[4]
|
|
|
|
- this.list[4].cate_count = res.data[5]
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
},
|
|
},
|
|
// 获取订单列表
|
|
// 获取订单列表
|
|
getData() {
|
|
getData() {
|
|
@@ -483,6 +547,7 @@
|
|
limit: this.limit,
|
|
limit: this.limit,
|
|
type: this.type
|
|
type: this.type
|
|
}, "GET").then(res => {
|
|
}, "GET").then(res => {
|
|
|
|
+ uni.stopPullDownRefresh();
|
|
if (res.code === 1) {
|
|
if (res.code === 1) {
|
|
this.data = res.data
|
|
this.data = res.data
|
|
this.list[this.current].cate_count = res.data.total
|
|
this.list[this.current].cate_count = res.data.total
|
|
@@ -533,19 +598,19 @@
|
|
|
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|
|
.content {
|
|
.content {
|
|
- padding-top: 260rpx;
|
|
|
|
|
|
+ background-color: #F8F8F8;
|
|
|
|
|
|
.order-list-box {
|
|
.order-list-box {
|
|
height: 80vh;
|
|
height: 80vh;
|
|
|
|
+ background-color: #F8F8F8;
|
|
|
|
+ padding-top: 20rpx;
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
.menu-top {
|
|
.menu-top {
|
|
- position: fixed;
|
|
|
|
- top: 140rpx;
|
|
|
|
width: 100%;
|
|
width: 100%;
|
|
background-color: #FFFFFF;
|
|
background-color: #FFFFFF;
|
|
- padding: 10rpx;
|
|
|
|
|
|
|
|
.menu-list {
|
|
.menu-list {
|
|
background-color: #F7E8CB;
|
|
background-color: #F7E8CB;
|
|
@@ -606,8 +671,10 @@
|
|
background-color: #F6B301;
|
|
background-color: #F6B301;
|
|
color: #FFFFFF;
|
|
color: #FFFFFF;
|
|
margin: 20rpx 20rpx 0 20rpx;
|
|
margin: 20rpx 20rpx 0 20rpx;
|
|
- padding: 20rpx 30rpx;
|
|
|
|
- border-radius: 50rpx;
|
|
|
|
|
|
+ padding: 10rpx 30rpx;
|
|
|
|
+ border-radius: 50rpx;
|
|
|
|
+ min-width: 120rpx;
|
|
|
|
+ text-align: center;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -617,22 +684,23 @@
|
|
}
|
|
}
|
|
|
|
|
|
// 弹窗
|
|
// 弹窗
|
|
- .u-update-content {
|
|
|
|
|
|
+ .u-update-content {
|
|
width: 500rpx;
|
|
width: 500rpx;
|
|
height: 650rpx;
|
|
height: 650rpx;
|
|
- padding: 40rpx;
|
|
|
|
- background-image: url("http://pet.hdlkeji.com/assets/static/1/110.png");
|
|
|
|
|
|
+ padding: 40rpx;
|
|
|
|
+ background-image: url("http://pet.hdlkeji.com/assets/static/1/110.png");
|
|
background-size: 100% 100%;
|
|
background-size: 100% 100%;
|
|
|
|
|
|
.u-update-top {
|
|
.u-update-top {
|
|
- height: 50%;
|
|
|
|
- display: flex;
|
|
|
|
- position: relative;
|
|
|
|
- .top-image{
|
|
|
|
- height: 300rpx;
|
|
|
|
- width: 300rpx;
|
|
|
|
- position: absolute;
|
|
|
|
- left: 100rpx;
|
|
|
|
|
|
+ height: 50%;
|
|
|
|
+ display: flex;
|
|
|
|
+ position: relative;
|
|
|
|
+
|
|
|
|
+ .top-image {
|
|
|
|
+ height: 300rpx;
|
|
|
|
+ width: 300rpx;
|
|
|
|
+ position: absolute;
|
|
|
|
+ left: 100rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|