开票
Showing
2 changed files
with
17 additions
and
1 deletions
| ... | @@ -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,6 +228,8 @@ function toSelectSeat() { | ... | @@ -228,6 +228,8 @@ function toSelectSeat() { |
| 228 | useStore.setVisitor() | 228 | useStore.setVisitor() |
| 229 | return | 229 | return |
| 230 | } | 230 | } |
| 231 | checkNonPayment().then(res => { | ||
| 232 | if (res.count) { | ||
| 231 | router.push({ | 233 | router.push({ |
| 232 | name: 'confirmOrder', | 234 | name: 'confirmOrder', |
| 233 | params: { | 235 | params: { |
| ... | @@ -236,6 +238,11 @@ function toSelectSeat() { | ... | @@ -236,6 +238,11 @@ function toSelectSeat() { |
| 236 | attId: selectForm.value.id | 238 | attId: selectForm.value.id |
| 237 | } | 239 | } |
| 238 | }) | 240 | }) |
| 241 | } else { | ||
| 242 | router.push('/center/myInfo') | ||
| 243 | } | ||
| 244 | |||
| 245 | }) | ||
| 239 | } | 246 | } |
| 240 | 247 | ||
| 241 | function toSelectClosed() { | 248 | function toSelectClosed() { | ... | ... |
-
Please register or sign in to post a comment