7411ae40 by zhangmeng

开票

1 parent c02847f9
...@@ -466,6 +466,15 @@ export function getTicketListApi(params) { ...@@ -466,6 +466,15 @@ export function getTicketListApi(params) {
466 }) 466 })
467 } 467 }
468 468
469 // 检查是否购票
470 export function checkNonPayment() {
471 return request({
472 url: `/ota/norder/checkNonPayment`,
473 method: 'get',
474 params: {orderType: 5}
475 })
476 }
477
469 // 根据赛事ID获取票档 478 // 根据赛事ID获取票档
470 export function listApi(params) { 479 export function listApi(params) {
471 return request({ 480 return request({
......
...@@ -135,7 +135,7 @@ ...@@ -135,7 +135,7 @@
135 135
136 <script setup> 136 <script setup>
137 import {ref, computed} from "vue"; 137 import {ref, computed} from "vue";
138 import {listApi, getTicketInfoByActivityId, getTicketListApi} from '@/apiPc/booking' 138 import {listApi, getTicketInfoByActivityId, getTicketListApi, checkNonPayment} from '@/apiPc/booking'
139 139
140 import {dayjs} from "element-plus"; 140 import {dayjs} from "element-plus";
141 import {ElMessageBox, ElMessage} from "element-plus"; 141 import {ElMessageBox, ElMessage} from "element-plus";
...@@ -228,13 +228,20 @@ function toSelectSeat() { ...@@ -228,13 +228,20 @@ function toSelectSeat() {
228 useStore.setVisitor() 228 useStore.setVisitor()
229 return 229 return
230 } 230 }
231 router.push({ 231 checkNonPayment().then(res => {
232 name: 'confirmOrder', 232 if (res.count) {
233 params: { 233 router.push({
234 activeId: activeId.value, 234 name: 'confirmOrder',
235 latId: selectForm.value.latId, 235 params: {
236 attId: selectForm.value.id 236 activeId: activeId.value,
237 latId: selectForm.value.latId,
238 attId: selectForm.value.id
239 }
240 })
241 } else {
242 router.push('/center/myInfo')
237 } 243 }
244
238 }) 245 })
239 } 246 }
240 247
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!