awaitproxy.$modal.confirm(language.value==0?'请选择日期':'Please select a date')
return
}
ElMessageBox.confirm(language.value==0?`你当前选择的出行日期为${dayjs(currentDate.value).format('YYYY-MM-DD')}是否确定?`:`Your current check-in time is ${dayjs(currentDate.value).format('YYYY-MM-DD')} Are you sure?`,{type:'warning'}).then({}).then(()=>{
checkOrderPay(6).then(res=>{
if(res.data==-100){
ElMessageBox.confirm(
language.value==0?'你有未支付的旅游预订,是否前往个人中心查看':'You already have an unpaid travel order, do you want to go to the personal center to check it?',
language.value==0?'提示':'Warning',
{
confirmButtonText:language.value==1?'Go My Reservation ':'前往我的预订',
// cancelButtonText: language.value==1?'Continue to book':'继续预订',
awaitproxy.$modal.confirm(language.value==0?'请选择购票数量':'Please select the number of tickets to purchase')
return
}
).then((res)=>{
console.log(res)
router.push({
awaitcheckOrderPay()
}
asyncfunctioncheckOrderPay(){
constres=awaitbooking.checkOrderPay(8)
if(res.data==-100){
awaitproxy.$modal.confirm(language.value==0?'你有未支付的旅游预订,是否前往个人中心查看?':'You already have an unpaid travel order, do you want to go to the personal center to check it?')
ElMessageBox.confirm(language.value==0?`你当前选择的出行日期为${dayjs(currentDate.value).format('YYYY-MM-DD')}是否确定?`:`Your current check-in time is ${dayjs(currentDate.value).format('YYYY-MM-DD')} Are you sure?`,{type:'warning'}).then({}).then(()=>{
checkOrderPay(6).then(res=>{
if(res.data==-100){
ElMessageBox.confirm(
language.value==0?'你有未支付的旅游预订,是否前往个人中心查看':'You already have an unpaid travel order, do you want to go to the personal center to check it?',
language.value==0?'提示':'Warning',
{
confirmButtonText:language.value==1?'Go My Reservation ':'前往我的预订',
// cancelButtonText: language.value==1?'Continue to book':'继续预订',