d738403b by zhangmeng

车辆

1 parent 83f265ca
......@@ -237,7 +237,7 @@ async function changeSelectIn() {
async function changeSelectOut() {
const res = await booking.getVehicleByCheckIn({
activityId: route.params.cptId,
checkIn: form1.value.checkIn,
checkIn: form2.value.checkIn,
category: '1'
})
form2.value.checkOut = ''
......@@ -273,13 +273,21 @@ async function handleSubmit(v) {
// category: v
// })
}
await router.push({
name: 'carList',
params: {
id: route.params.cptId
},
query: obj
})
const res = await booking.checkOrderPay('1')
if (!res.data) {
await proxy.$modal.confirm(language == 0 ? '您有未支付的订单,请前往支付!' : 'You have unpaid orders, please proceed to payment!')
await router.push({
path: '/center/myReservation'
})
} else {
await router.push({
name: 'carList',
params: {
id: route.params.cptId
},
query: obj
})
}
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!