71507ba8 by zhangmeng

开票

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