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
f496bf23
authored
2025-05-28 17:28:34 +0800
by
zhangmeng
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
报名校验
1 parent
84b1fef0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
92 additions
and
50 deletions
src/apiPc/match.js
src/plugins/modal.js
src/viewsPc/match/detail_en.vue
src/apiPc/match.js
View file @
f496bf2
...
...
@@ -798,10 +798,11 @@ export function getZNList(params) {
}
// 团体报名校验
export
function
preCheckForGroup
(
groupId
)
{
export
function
preCheckForGroup
(
groupId
,
type
)
{
return
request
({
url
:
`/systemj/personInfo/preCheckForGroup/
${
groupId
}
`
,
method
:
'get'
method
:
'get'
,
params
:
{
type
}
})
}
...
...
src/plugins/modal.js
View file @
f496bf2
import
{
ElMessage
,
ElMessageBox
,
ElNotification
,
ElLoading
}
from
'element-plus'
import
{
useStorage
}
from
"@vueuse/core/index"
;
import
{
useStorage
}
from
'@vueuse/core/index'
const
language
=
useStorage
(
'language'
,
0
)
const
language
=
useStorage
(
'language'
,
0
)
let
loadingInstance
export
default
{
...
...
@@ -23,19 +23,19 @@ export default {
},
// 弹出提示
alert
(
content
)
{
return
ElMessageBox
.
alert
(
content
,
language
.
value
==
0
?
language
.
value
==
0
?
'系统提示'
:
'Tips'
:
'Tips'
)
return
ElMessageBox
.
alert
(
content
,
language
.
value
==
0
?
language
.
value
==
0
?
'系统提示'
:
'Tips'
:
'Tips'
)
},
// 错误提示
alertError
(
content
)
{
return
ElMessageBox
.
alert
(
content
,
language
.
value
==
0
?
language
.
value
==
0
?
'系统提示'
:
'Tips'
:
'Tips'
,
{
type
:
'error'
})
return
ElMessageBox
.
alert
(
content
,
language
.
value
==
0
?
language
.
value
==
0
?
'系统提示'
:
'Tips'
:
'Tips'
,
{
type
:
'error'
})
},
// 成功提示
alertSuccess
(
content
)
{
return
ElMessageBox
.
alert
(
content
,
language
.
value
==
0
?
'系统提示'
:
'Tips'
,
{
type
:
'success'
})
return
ElMessageBox
.
alert
(
content
,
language
.
value
==
0
?
'系统提示'
:
'Tips'
,
{
type
:
'success'
})
},
// 警告提示
alertWarning
(
content
)
{
return
ElMessageBox
.
alert
(
content
,
language
.
value
==
0
?
'系统提示'
:
'Tips'
,
{
type
:
'warning'
})
return
ElMessageBox
.
alert
(
content
,
language
.
value
==
0
?
'系统提示'
:
'Tips'
,
{
type
:
'warning'
})
},
// 通知提示
notify
(
content
)
{
...
...
@@ -55,17 +55,17 @@ export default {
},
// 确认窗体
confirm
(
content
)
{
return
ElMessageBox
.
confirm
(
content
,
language
.
value
==
0
?
'系统提示'
:
'Tips'
,
{
confirmButtonText
:
language
.
value
==
0
?
'确定'
:
'OK'
,
cancelButtonText
:
language
.
value
==
0
?
'取消'
:
'Cancel'
,
return
ElMessageBox
.
confirm
(
content
,
language
.
value
==
0
?
'系统提示'
:
'Tips'
,
{
confirmButtonText
:
language
.
value
==
0
?
'确定'
:
'OK'
,
cancelButtonText
:
language
.
value
==
0
?
'取消'
:
'Cancel'
,
type
:
'warning'
})
},
// 提交内容
prompt
(
content
)
{
return
ElMessageBox
.
prompt
(
content
,
language
.
value
==
0
?
'系统提示'
:
'Tips'
,
{
confirmButtonText
:
language
.
value
==
0
?
'确定'
:
'OK'
,
cancelButtonText
:
language
.
value
==
0
?
'取消'
:
'Cancel'
,
return
ElMessageBox
.
prompt
(
content
,
language
.
value
==
0
?
'系统提示'
:
'Tips'
,
{
confirmButtonText
:
language
.
value
==
0
?
'确定'
:
'OK'
,
cancelButtonText
:
language
.
value
==
0
?
'取消'
:
'Cancel'
,
type
:
'warning'
})
},
...
...
src/viewsPc/match/detail_en.vue
View file @
f496bf2
...
...
@@ -588,16 +588,19 @@ function goTeamSign() {
)
return
}
router
.
push
({
path
:
`
${
route
.
params
.
id
}
/teamSignCn`
,
query
:
{
matchId
:
matchId
.
value
,
groupId
:
groupId
.
value
,
signType
:
matchData
.
value
.
signType
,
languageSource
:
matchData
.
value
.
languageSource
,
isNational
:
false
}
})
handelPreCheckForGroup
(
router
.
push
({
path
:
`
${
route
.
params
.
id
}
/teamSignCn`
,
query
:
{
matchId
:
matchId
.
value
,
groupId
:
groupId
.
value
,
signType
:
matchData
.
value
.
signType
,
languageSource
:
matchData
.
value
.
languageSource
,
isNational
:
false
}
})
)
}
else
{
// 国际赛
if
(
group
?.
type
!=
'4'
&&
matchData
.
value
.
countryLimit
==
'1'
)
{
...
...
@@ -612,16 +615,18 @@ function goTeamSign() {
)
return
}
router
.
push
({
path
:
`
${
route
.
params
.
id
}
/teamSign`
,
query
:
{
matchId
:
matchId
.
value
,
groupId
:
groupId
.
value
,
signType
:
matchData
.
value
.
signType
,
isNational
:
true
,
languageSource
:
matchData
.
value
.
languageSource
}
})
handelPreCheckForGroup
(
router
.
push
({
path
:
`
${
route
.
params
.
id
}
/teamSign`
,
query
:
{
matchId
:
matchId
.
value
,
groupId
:
groupId
.
value
,
signType
:
matchData
.
value
.
signType
,
isNational
:
true
,
languageSource
:
matchData
.
value
.
languageSource
}
})
)
}
}
...
...
@@ -754,17 +759,7 @@ function switchSignType() {
switch
(
matchData
.
value
.
signType
)
{
case
'0'
:
// 个人
if
(
user
.
utype
==
'1'
)
{
match
.
preCheckForPerson
().
then
(
res
=>
{
if
(
res
.
data
==
1
)
{
goPersonalSign
()
}
else
{
return
proxy
.
$modal
.
msgError
(
language
.
value
==
0
?
'您绑定的WDSF会员号已过期,请先到WDSF官网激活您的会员号。'
:
'Your bound WDSF Number has expired. Please activate your WDSF Number on the WDSF official website first.'
)
}
})
handelGeRenNext
()
}
if
(
user
.
utype
==
'2'
)
{
ElMessageBox
.
confirm
(
...
...
@@ -796,7 +791,9 @@ function switchSignType() {
)
}
if
(
user
.
utype
==
'2'
)
{
match
.
preCheckForGroup
(
groupId
.
value
).
then
(
goTeamSign
)
// match.preCheckForGroup(groupId.value).then(goTeamSign)
// handelPreCheckForGroup(goTeamSign)
goTeamSign
()
}
if
(
user
.
utype
==
'3'
)
{
// 团队活动 且 游客
...
...
@@ -805,12 +802,14 @@ function switchSignType() {
break
case
'2'
:
// 团体队伍
if
(
user
.
utype
==
'1'
)
{
match
.
preCheckForGroup
(
groupId
.
value
).
then
(
goPersonalSign
)
//
match.preCheckForGroup(groupId.value).then(goPersonalSign)
// goPersonalSign()
handelPreCheckForGroup
(
goPersonalSign
)
}
if
(
user
.
utype
==
'2'
)
{
match
.
preCheckForGroup
(
groupId
.
value
).
then
(
goTeamSign
)
// goTeamSign()
// handelPreCheckForGroup(goTeamSign)
// match.preCheckForGroup(groupId.value).then(goTeamSign)
goTeamSign
()
}
if
(
user
.
utype
==
'3'
)
{
// 游客
...
...
@@ -820,8 +819,35 @@ function switchSignType() {
}
}
async
function
handelGeRenNext
()
{
const
res
=
await
match
.
preCheckForPerson
({
type
:
'1'
})
// 不给报名
if
(
res
.
data
==
0
)
{
await
proxy
.
$modal
.
confirm
(
language
.
value
==
0
?
'您绑定的WDSF会员号已过期,请先到WDSF官网激活您的会员号。'
:
'Your bound WDSF Number has expired. Please activate your WDSF Number on the WDSF official website first.'
)
return
}
// 正常报名
if
(
res
.
data
==
1
)
{
goPersonalSign
()
}
// 提示
if
(
res
.
data
==
2
)
{
await
proxy
.
$modal
.
confirm
(
language
.
value
==
0
?
'运动员的WDSF会员号已变更,是否更新?'
:
'The athlete`s WDSF membership number has been changed. Should it be updated?'
)
await
match
.
preCheckForPerson
({
type
:
'2'
})
await
goPersonalSign
()
}
}
function
applyInvitation
()
{
var
obj
=
{
const
obj
=
{
title
:
language
.
value
==
0
?
'邀请函申请'
:
'Visa Invitation Letter '
,
cptId
:
matchId
.
value
}
...
...
@@ -835,6 +861,21 @@ const openPickup = () => {
}
proxy
.
$refs
[
'pickupRef'
].
open
(
obj
)
}
async
function
handelPreCheckForGroup
(
fn
)
{
const
res
=
await
match
.
preCheckForGroup
(
groupId
.
value
,
'1'
)
if
(
res
.
data
==
1
||
res
.
data
==
0
)
{
await
fn
()
}
if
(
res
.
data
==
2
)
{
await
proxy
.
$modal
.
confirm
(
language
.
value
==
0
?
'运动员的WDSF会员号已变更,是否更新?'
:
'The athlete`s WDSF membership number has been changed. Should it be updated?'
)
await
match
.
preCheckForGroup
(
groupId
.
value
,
'2'
)
await
fn
()
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
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