|
|
@ -1,8 +1,6 @@
|
|
|
|
<script setup lang="ts">
|
|
|
|
<script setup lang="ts">
|
|
|
|
import { OrderState, orderStateList } from '@/services/constants'
|
|
|
|
import { OrderState, orderStateList } from '@/services/constants'
|
|
|
|
import {
|
|
|
|
import { getOrderByIdAPI } from '@/services/order'
|
|
|
|
getOrderByIdAPI
|
|
|
|
|
|
|
|
} from '@/services/order'
|
|
|
|
|
|
|
|
import type { LogisticItem, OrderResult } from '@/types/order'
|
|
|
|
import type { LogisticItem, OrderResult } from '@/types/order'
|
|
|
|
import { onLoad, onReady } from '@dcloudio/uni-app'
|
|
|
|
import { onLoad, onReady } from '@dcloudio/uni-app'
|
|
|
|
import { ref, getCurrentInstance, unref } from 'vue'
|
|
|
|
import { ref, getCurrentInstance, unref } from 'vue'
|
|
|
@ -24,22 +22,20 @@ onLoad((options) => {
|
|
|
|
const order = ref<OrderResult>()
|
|
|
|
const order = ref<OrderResult>()
|
|
|
|
const getMemberOrderByIdData = async (orderId) => {
|
|
|
|
const getMemberOrderByIdData = async (orderId) => {
|
|
|
|
const params = {
|
|
|
|
const params = {
|
|
|
|
id: orderId,
|
|
|
|
orderId: orderId,
|
|
|
|
location: {
|
|
|
|
latitude: 31.163973,
|
|
|
|
latitude: 31.163973,
|
|
|
|
longitude: 121.404032,
|
|
|
|
longitude: 121.404032,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const res = await getOrderByIdAPI(params)
|
|
|
|
const res = await getOrderByIdAPI(params)
|
|
|
|
if (resizeBy.code == 200) {
|
|
|
|
if (res.code == 200) {
|
|
|
|
order.value = res.data
|
|
|
|
const data = res.data
|
|
|
|
|
|
|
|
const str = data.appointmentTimeStart.slice(0, 10)
|
|
|
|
|
|
|
|
const start = data.appointmentTimeStart.slice(11, 16)
|
|
|
|
|
|
|
|
const end = data.appointmentTimeEnd.slice(11, 16)
|
|
|
|
|
|
|
|
data.appointmentTime = str + ' ' + start + '-' + end
|
|
|
|
|
|
|
|
order.value = data
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
onLoad((options) => {
|
|
|
|
|
|
|
|
orderStatus.value = options.status || 'PENDING'
|
|
|
|
|
|
|
|
// getMemberOrderByIdData()
|
|
|
|
|
|
|
|
// buttonDriving()
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
// 确认收货
|
|
|
|
// 确认收货
|
|
|
|
const handleCancleOrder = () => {
|
|
|
|
const handleCancleOrder = () => {
|
|
|
|
// 二次确认弹窗
|
|
|
|
// 二次确认弹窗
|
|
|
@ -64,10 +60,35 @@ const handleAcceptConfirm = () => {
|
|
|
|
<template v-if="1">
|
|
|
|
<template v-if="1">
|
|
|
|
<view class="order-detail">
|
|
|
|
<view class="order-detail">
|
|
|
|
<view class="status">
|
|
|
|
<view class="status">
|
|
|
|
<view class="title">待接单中</view>
|
|
|
|
<template v-if="order.orderStatus.code == '520192817293693253'">
|
|
|
|
<view class="desc">预约时间:2023-11-12 11:55</view>
|
|
|
|
<view class="title">{{ order.orderStatus.desc }}</view>
|
|
|
|
<view class="action">
|
|
|
|
<view class="desc">预约时间:{{ order.appointmentTime }}</view>
|
|
|
|
<view class="button" @click="handleCancleOrder">取消订单</view>
|
|
|
|
<view class="action">
|
|
|
|
|
|
|
|
<view class="button" @click="handleCancleOrder">取消订单</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="module">
|
|
|
|
|
|
|
|
<view class="title">订单编号:{{ order.orderNumber }}</view>
|
|
|
|
|
|
|
|
<view class="orderDetails">{{ order.orderDetails[0].productName }}</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="module info">
|
|
|
|
|
|
|
|
<view class="title">取件信息</view>
|
|
|
|
|
|
|
|
<view class="item">
|
|
|
|
|
|
|
|
<view class="label">取件时间</view>
|
|
|
|
|
|
|
|
<view class="val">{{ order.appointmentTime }}</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="item">
|
|
|
|
|
|
|
|
<view class="label">取件地址</view>
|
|
|
|
|
|
|
|
<view class="val">{{ order.recycleAddress }}</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="item">
|
|
|
|
|
|
|
|
<view class="label">下单时间</view>
|
|
|
|
|
|
|
|
<view class="val">{{ order.creatorTime }}</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="item">
|
|
|
|
|
|
|
|
<view class="label">备注</view>
|
|
|
|
|
|
|
|
<view class="val">{{ order.remark }}</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
@ -119,204 +140,47 @@ page {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.module {
|
|
|
|
|
|
|
|
margin: 20rpx;
|
|
|
|
.toolbar {
|
|
|
|
padding: 10rpx;
|
|
|
|
position: fixed;
|
|
|
|
min-height: 300rpx;
|
|
|
|
left: 0;
|
|
|
|
background: #FFFFFF;
|
|
|
|
right: 0;
|
|
|
|
box-shadow: 0px 0px 8px 0px rgba(161, 161, 177, 0.12);
|
|
|
|
bottom: calc(var(--window-bottom));
|
|
|
|
.title {
|
|
|
|
z-index: 1;
|
|
|
|
color: #3D3D3D;
|
|
|
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
height: 100rpx;
|
|
|
|
padding: 10rpx;
|
|
|
|
display: flex;
|
|
|
|
border-bottom: 2rpx solid #F2F2F2;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
justify-content: space-around;
|
|
|
|
|
|
|
|
border-top: 1rpx solid #ededed;
|
|
|
|
|
|
|
|
border-bottom: 1rpx solid #ededed;
|
|
|
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
|
|
box-sizing: content-box;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.button {
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
font-size: 26rpx;
|
|
|
|
|
|
|
|
border-right: 1rpx solid #ccc;
|
|
|
|
|
|
|
|
color: #fff;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.concat {
|
|
|
|
|
|
|
|
width: 48rpx;
|
|
|
|
|
|
|
|
height: 44rpx;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.orderDetails {
|
|
|
|
.concat-img {
|
|
|
|
padding: 10rpx;
|
|
|
|
width: 48rpx;
|
|
|
|
|
|
|
|
height: 44rpx;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.info {
|
|
|
|
|
|
|
|
.title {
|
|
|
|
.primary {
|
|
|
|
color: #0D0D26;
|
|
|
|
color: #fff;
|
|
|
|
font-size: 32rpx;
|
|
|
|
background: linear-gradient(158deg, #51b6ff -10%, #3775f6 129%);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.popup-root {
|
|
|
|
|
|
|
|
padding: 30rpx 30rpx 50rpx;
|
|
|
|
|
|
|
|
border-radius: 10rpx 10rpx 0 0;
|
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
background: linear-gradient(180deg, #d2eeff -7%, rgba(255, 255, 255, 0) 38%), #ffffff;
|
|
|
|
|
|
|
|
box-shadow: 0px -2px 8px 0px rgba(133, 155, 180, 0.4);
|
|
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.title {
|
|
|
|
|
|
|
|
text-align: left;
|
|
|
|
|
|
|
|
margin-bottom: 30rpx;
|
|
|
|
|
|
|
|
padding-bottom: 20rpx;
|
|
|
|
|
|
|
|
border-bottom: 2rpx solid #e1e7f2;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.text {
|
|
|
|
|
|
|
|
font-size: 30rpx;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.close {
|
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
right: 0;
|
|
|
|
|
|
|
|
top: 0;
|
|
|
|
|
|
|
|
padding: 23rpx 50rpx;
|
|
|
|
|
|
|
|
color: #333;
|
|
|
|
|
|
|
|
font-size: 30rpx;
|
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.cont {
|
|
|
|
|
|
|
|
.info1 {
|
|
|
|
|
|
|
|
padding: 20rpx 0;
|
|
|
|
|
|
|
|
min-height: 100rpx;
|
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
border-bottom: 2rpx solid #e1e7f2;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.loction {
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.text {
|
|
|
|
|
|
|
|
color: #3d3d3d;
|
|
|
|
|
|
|
|
width: 80%;
|
|
|
|
|
|
|
|
-webkit-line-clamp: 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.item {
|
|
|
|
.num {}
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
padding: 20rpx;
|
|
|
|
.coming-time {
|
|
|
|
border-bottom: 2rpx solid #F2F2F2;
|
|
|
|
margin: 10rpx 0;
|
|
|
|
&:last-child {
|
|
|
|
display: flex;
|
|
|
|
border: none;
|
|
|
|
flex-direction: row;
|
|
|
|
}
|
|
|
|
color: #3d3d3d;
|
|
|
|
.label {
|
|
|
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
.label {}
|
|
|
|
color: #3D3D3D;
|
|
|
|
}
|
|
|
|
width: 120rpx;
|
|
|
|
|
|
|
|
}
|
|
|
|
.people {
|
|
|
|
.val {
|
|
|
|
color: #3d3d3d;
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
|
|
|
color: #3D3D3D;
|
|
|
|
.label {}
|
|
|
|
flex: 1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.info2 {
|
|
|
|
|
|
|
|
padding: 20rpx 0;
|
|
|
|
|
|
|
|
min-height: 100rpx;
|
|
|
|
|
|
|
|
border-bottom: 2rpx solid #e1e7f2;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.item {
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
|
|
|
margin: 20rpx 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.label {
|
|
|
|
|
|
|
|
color: #999a9f;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.time-status {
|
|
|
|
|
|
|
|
margin: 20rpx 0;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.label {
|
|
|
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.time {
|
|
|
|
|
|
|
|
color: #e30000;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.description {
|
|
|
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
|
|
|
padding: 0 20rpx;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.tips {
|
|
|
|
|
|
|
|
color: #444;
|
|
|
|
|
|
|
|
margin-bottom: 12rpx;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.cell {
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
padding: 15rpx 0;
|
|
|
|
|
|
|
|
color: #666;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.icon::before {
|
|
|
|
|
|
|
|
content: '\e6cd';
|
|
|
|
|
|
|
|
font-family: 'erabbit' !important;
|
|
|
|
|
|
|
|
font-size: 38rpx;
|
|
|
|
|
|
|
|
color: #999;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.icon.checked::before {
|
|
|
|
|
|
|
|
content: '\e6cc';
|
|
|
|
|
|
|
|
font-size: 38rpx;
|
|
|
|
|
|
|
|
color: #3775F6;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.footer {
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
padding: 30rpx 0 40rpx;
|
|
|
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
|
|
|
color: #444;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.button {
|
|
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
|
|
height: 72rpx;
|
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
line-height: 72rpx;
|
|
|
|
|
|
|
|
margin: 0 20rpx;
|
|
|
|
|
|
|
|
color: #444;
|
|
|
|
|
|
|
|
border-radius: 72rpx;
|
|
|
|
|
|
|
|
border: 1rpx solid #ccc;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.primary {
|
|
|
|
|
|
|
|
color: #fff;
|
|
|
|
|
|
|
|
background-color: #3775F6;
|
|
|
|
|
|
|
|
border: none;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|