Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨炀
/
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
920f6ab7
authored
2025-06-24 17:28:36 +0800
by
华明祺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
04b3bff0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
16 deletions
src/apiPc/match.js
src/viewsPc/center/myVisa.vue
src/apiPc/match.js
View file @
920f6ab
...
...
@@ -790,6 +790,22 @@ export function getVisaInfo(query) {
})
}
export
function
downInvite
(
params
)
{
return
request
({
url
:
'/league/visa/downInvite'
,
method
:
'get'
,
params
})
}
export
function
getUplaodFile
(
params
)
{
return
request
({
url
:
'/league/visa/getUplaodFile'
,
method
:
'get'
,
params
})
}
export
function
listVisaInfo
(
query
)
{
return
request
({
url
:
'/league/visaInfo/list'
,
...
...
src/viewsPc/center/myVisa.vue
View file @
920f6ab
...
...
@@ -36,6 +36,9 @@
</el-col>
<el-col
:lg=
"6"
:md=
"16"
:sm=
"16"
:xs=
"16"
>
<div
class=
"text-right"
>
<el-button
class=
"mb10"
:disabled=
"b.emailFlag!='1'"
plain
round
size=
"small"
type=
"primary"
@
click=
"handleDownload(b)"
>
{{
language
==
0
?
'下载邀请函'
:
'Download Invitation'
}}
</el-button>
<el-button
class=
"mb10"
plain
round
size=
"small"
type=
"primary"
@
click=
"goDetail(b)"
>
{{
language
==
0
?
'详情'
:
'Detail'
}}
</el-button>
...
...
@@ -58,10 +61,11 @@ import useUserStore from "@/store/modules/user";
import
{
cancelOrder2
,
cancelOrder
}
from
"/@/apiPc/booking"
;
import
{
ElMessage
}
from
"element-plus"
;
import
{
getVisaInfo
}
from
"/@/apiPc/match"
;
import
{
downInvite
,
getUplaodFile
,
getVisaInfo
}
from
"/@/apiPc/match"
;
import
AffixInvitationView
from
"/@/viewsPc/match/components/affix-invitation-view.vue"
;
import
{
ref
}
from
"vue"
;
import
{
useRouter
}
from
"vue-router"
;
import
{
fillImgUrl
}
from
"/@/utils/ruoyi"
;
const
router
=
useRouter
()
const
language
=
useStorage
(
'language'
,
0
)
...
...
@@ -83,21 +87,6 @@ function finish(bill) {
function
getList
()
{
getVisaInfo
({
userId
:
user
.
userId
}).
then
(
res
=>
{
list
.
value
=
res
.
rows
||
[]
for
(
let
b
of
list
.
value
)
{
b
.
messageObj
=
JSON
.
parse
(
b
.
message
)
||
{}
b
.
extJsonObj
=
JSON
.
parse
(
b
.
extJson
)
||
{}
if
(
b
.
orderType
==
5
)
{
try
{
b
.
extJsonObj
.
ticketDate
=
b
.
extJsonObj
.
ticketDate
?
JSON
.
parse
(
b
.
extJsonObj
.
ticketDate
)
:
{}
b
.
extJsonObj
.
ticketType
=
b
.
extJsonObj
.
ticketType
?
JSON
.
parse
(
b
.
extJsonObj
.
ticketType
)
:
{}
}
catch
(
e
)
{
console
.
log
(
e
)
}
}
if
(
b
.
surplus
&&
b
.
status
==
'0'
&&
(
b
.
surplus
!=
'0,0'
&&
b
.
surplus
!=
'0'
))
{
b
.
countdown
=
Date
.
now
()
+
Number
((
b
.
surplus
.
split
(
','
)[
0
]
*
60
+
b
.
surplus
.
split
(
','
)[
1
])
*
10
)
}
}
})
}
...
...
@@ -112,6 +101,12 @@ function goDetail(b) {
// })
}
function
handleDownload
(
b
)
{
getUplaodFile
({
id
:
b
.
id
}).
then
(
res
=>
{
window
.
open
(
fillImgUrl
(
res
.
msg
),
'_blank'
)
})
}
function
Rebook
(
row
)
{
console
.
log
(
row
)
if
(
row
.
orderType
==
0
)
{
...
...
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