Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
jijin
/
dance-pc
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
7411ae40
authored
2024-08-09 18:38:38 +0800
by
zhangmeng
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
开票
1 parent
c02847f9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
7 deletions
src/apiPc/booking.js
src/viewsPc/booking/ticket/index.vue
src/apiPc/booking.js
View file @
7411ae4
...
...
@@ -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
({
...
...
src/viewsPc/booking/ticket/index.vue
View file @
7411ae4
...
...
@@ -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'
)
}
})
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment