71507ba8 by zhangmeng

开票

1 parent 5053e439
...@@ -302,8 +302,20 @@ async function paymentHandle() { ...@@ -302,8 +302,20 @@ async function paymentHandle() {
302 type: 'ticket' 302 type: 'ticket'
303 } 303 }
304 }) 304 })
305 } else if (res.code == 200 && res.data.orderId == -400) {
306 ElMessageBox.confirm(language.value == 0 ? '剩余票数不足,请选择其他日期' : 'There are not enough votes left. Please select another date', {
307 confirmButtonText: language.value == 0 ? '确定' : 'Confirm',
308 cancelButtonText: language.value == 0 ? '取消' : 'Cancel',
309 type: 'warning'
310 })
311 } else if (res.code == 200 && res.data.orderId == -500) {
312 ElMessageBox.confirm(language.value == 0 ? '每人每天限购一张票,请确认后下单' : 'One ticket per person per day, please confirm and place your order', {
313 confirmButtonText: language.value == 0 ? '确定' : 'Confirm',
314 cancelButtonText: language.value == 0 ? '取消' : 'Cancel',
315 type: 'warning'
316 })
305 } else { 317 } else {
306 ElMessage.warning(language.value == 0 ? '下单失败,' : 'Order failure') 318 ElMessage.error(language.value == 0 ? '下单失败,' : 'Order failure')
307 } 319 }
308 }) 320 })
309 } 321 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!