7411ae40 by zhangmeng

开票

1 parent c02847f9
......@@ -466,6 +466,15 @@ export function getTicketListApi(params) {
})
}
// 检查是否购票
export function checkNonPayment() {
return request({
url: `/ota/norder/checkNonPayment`,
method: 'get',
params: {orderType: 5}
})
}
// 根据赛事ID获取票档
export function listApi(params) {
return request({
......
......@@ -135,7 +135,7 @@
<script setup>
import {ref, computed} from "vue";
import {listApi, getTicketInfoByActivityId, getTicketListApi} from '@/apiPc/booking'
import {listApi, getTicketInfoByActivityId, getTicketListApi, checkNonPayment} from '@/apiPc/booking'
import {dayjs} from "element-plus";
import {ElMessageBox, ElMessage} from "element-plus";
......@@ -228,13 +228,20 @@ function toSelectSeat() {
useStore.setVisitor()
return
}
router.push({
name: 'confirmOrder',
params: {
activeId: activeId.value,
latId: selectForm.value.latId,
attId: selectForm.value.id
checkNonPayment().then(res => {
if (res.count) {
router.push({
name: 'confirmOrder',
params: {
activeId: activeId.value,
latId: selectForm.value.latId,
attId: selectForm.value.id
}
})
} else {
router.push('/center/myInfo')
}
})
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!