|
|
|
@ -17,26 +17,26 @@ import QQMapWX from '@/libs/qqmap-wx-jssdk1.2/qqmap-wx-jssdk.min.js'
|
|
|
|
|
|
|
|
|
|
// 获取屏幕边界到安全区域距离
|
|
|
|
|
const { safeAreaInsets } = uni.getSystemInfoSync()
|
|
|
|
|
// 弹出层组件
|
|
|
|
|
const orderDetailPopup = ref<UniHelper.UniPopupInstance>()
|
|
|
|
|
const orderConfirmPopup = ref<UniHelper.UniPopupInstance>()
|
|
|
|
|
// 地图
|
|
|
|
|
const longitude = ref(0)
|
|
|
|
|
const latitude = ref(0)
|
|
|
|
|
const polyline = ref<any>([])
|
|
|
|
|
// 获取页面参数
|
|
|
|
|
interface Props {
|
|
|
|
|
id: string
|
|
|
|
|
state: string,
|
|
|
|
|
targetLongitude: string,
|
|
|
|
|
targetLatitude: string,
|
|
|
|
|
}
|
|
|
|
|
const props = withDefaults(defineProps<Props>(), {
|
|
|
|
|
id: '0',
|
|
|
|
|
state: '0',
|
|
|
|
|
targetLongitude: '121.197665',
|
|
|
|
|
targetLatitude: '31.128418',
|
|
|
|
|
})
|
|
|
|
|
// // 弹出层组件
|
|
|
|
|
// const orderDetailPopup = ref<UniHelper.UniPopupInstance>()
|
|
|
|
|
// const orderConfirmPopup = ref<UniHelper.UniPopupInstance>()
|
|
|
|
|
// // 地图
|
|
|
|
|
// const longitude = ref(0)
|
|
|
|
|
// const latitude = ref(0)
|
|
|
|
|
// // 获取页面参数
|
|
|
|
|
// interface Props {
|
|
|
|
|
// id: string
|
|
|
|
|
// state: string,
|
|
|
|
|
// targetLongitude: string,
|
|
|
|
|
// targetLatitude: string,
|
|
|
|
|
// }
|
|
|
|
|
// const props = withDefaults(defineProps<Props>(), {
|
|
|
|
|
// id: '0',
|
|
|
|
|
// state: '0',
|
|
|
|
|
// targetLongitude: '121.197665',
|
|
|
|
|
// targetLatitude: '31.128418',
|
|
|
|
|
// })
|
|
|
|
|
const orderStatus = ref('')
|
|
|
|
|
// 页面渲染完毕,绑定动画效果
|
|
|
|
|
onReady(() => {
|
|
|
|
|
console.log(props)
|
|
|
|
@ -62,7 +62,8 @@ onReady(() => {
|
|
|
|
|
// logisticList.value = res.result.list
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
onLoad(() => {
|
|
|
|
|
onLoad((options) => {
|
|
|
|
|
orderStatus.value = options.status || 'PENDING'
|
|
|
|
|
// getMemberOrderByIdData()
|
|
|
|
|
// buttonDriving()
|
|
|
|
|
})
|
|
|
|
@ -83,20 +84,20 @@ const phone = async () => {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 确认收货
|
|
|
|
|
// const onOrderConfirm = () => {
|
|
|
|
|
// // 二次确认弹窗
|
|
|
|
|
// uni.showModal({
|
|
|
|
|
// content: '为保障您的权益,请收到货并确认无误后,再确认收货',
|
|
|
|
|
// confirmColor: '#3775F6',
|
|
|
|
|
// success: async (success) => {
|
|
|
|
|
// if (success.confirm) {
|
|
|
|
|
const handleCancleOrder = () => {
|
|
|
|
|
// 二次确认弹窗
|
|
|
|
|
uni.showModal({
|
|
|
|
|
content: '是否取消订单',
|
|
|
|
|
confirmColor: '#3775F6',
|
|
|
|
|
success: async (success) => {
|
|
|
|
|
if (success.confirm) {
|
|
|
|
|
// const res = await putMemberOrderReceiptByIdAPI(query.id)
|
|
|
|
|
// // 更新订单状态
|
|
|
|
|
// 更新订单状态
|
|
|
|
|
// order.value = res.result
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
const handleAcceptConfirm = () => {
|
|
|
|
|
uni.navigateTo({ url: '/payment/detail/detail' })
|
|
|
|
|
}
|
|
|
|
@ -109,7 +110,7 @@ const handleAcceptConfirm = () => {
|
|
|
|
|
<view class="title">待接单中</view>
|
|
|
|
|
<view class="desc">预约时间:2023-11-12 11:55</view>
|
|
|
|
|
<view class="action">
|
|
|
|
|
<view class="button">取消订单</view>
|
|
|
|
|
<view class="button" @click="handleCancleOrder">取消订单</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
@ -148,24 +149,21 @@ page {
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
.action {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
.button {
|
|
|
|
|
width: 200rpx;
|
|
|
|
|
padding: 20rpx 32rpx;
|
|
|
|
|
padding: 14rpx 40rpx;
|
|
|
|
|
text-align: center;
|
|
|
|
|
border: 2rpx solid #D5D6DB;
|
|
|
|
|
font-size: 30rpx;
|
|
|
|
|
font-weight: normal;
|
|
|
|
|
color: #0D0D26;
|
|
|
|
|
border-radius: 30rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.toolbar-height {
|
|
|
|
|
height: 100rpx;
|
|
|
|
|
box-sizing: content-box;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.toolbar {
|
|
|
|
|
position: fixed;
|
|
|
|
|
left: 0;
|
|
|
|
|