13d49825 by zhangmeng

报名

1 parent bcca2ea4
......@@ -521,7 +521,10 @@ function getGroupListByCptId() {
function changeMenu(menu, l) {
console.log(matchData.value.leagueId, l.name)
if (matchData.value.leagueId == '1778253367748993026' && (l.name == '成绩' || l.name == 'Achievement')) {
if (
matchData.value.leagueId == '1778253367748993026' &&
(l.name == '成绩' || l.name == 'Achievement')
) {
window.open('http://www.cdsf.org.cn/h5/sscj.index?matchID=526')
}
for (const n of menu) {
......@@ -541,9 +544,11 @@ function choseSignType() {
// 判断signType,如1个人注册-报名;
switch (matchData.value.signType) {
case '0':
// 注册
goGeren()
break
case '1':
// 登录
goLogin()
break
case '2':
......@@ -551,7 +556,9 @@ function choseSignType() {
break
}
} else {
// 获取已报名信息
checkIsSign().then(() => {
// 报名
switchSignType()
})
}
......@@ -581,37 +588,74 @@ function goUpdatePersonal() {
function goTeamSign() {
if (matchData.value.languageSource == '100') {
// 国内
if (group.type == '4') {
ElMessageBox.confirm(
language.value == 0 ? '您的团体类型不符合报名条件' : 'Your Team type does not meet the registration requirements',
language.value == 0 ? '提示' : 'Warning',
{
confirmButtonText: language.value == 1 ? 'OK' : '确定',
cancelButtonText: language.value == 1 ? 'Cancel' : '取消',
type: 'warning'
}
)
return
// if (group.type == '4') {
// ElMessageBox.confirm(
// language.value == 0 ? '您的团体类型不符合报名条件' : 'Your Team type does not meet the registration requirements',
// language.value == 0 ? '提示' : 'Warning',
// {
// confirmButtonText: language.value == 1 ? 'OK' : '确定',
// cancelButtonText: language.value == 1 ? 'Cancel' : '取消',
// type: 'warning'
// }
// )
// return
// }
if (matchData.value.countryLimit == 1) {
// 国家协会账号报名
if (group && group.type == 4) {
handelPreCheckForGroup(goTeamSignCn)
} else {
return proxy.$modal.confirm(language.value == 0
? '您的账号类型为团队,无法报名当前活动。请切换至国家协会类型的账号,或重新注册类型为国家协会的账号报名当前活动。'
: 'Your account type is "Team",which does not qualify for the current event.Please switch to a "National Association" type account or register a new account with this type to proceed.')
}
} else {
if (group && group.type == 4) {
return proxy.$modal.confirm(language.value == 0
? '您的账号类型为团队(国家协会),无法报名当前活动。请切换至团队类型的账号,或重新注册类型为非国家协会的团队类型的账号,报名当前活动。'
: 'Your account type is "National Association Team"which does not qualify for the current event.Please switch to a "Team" type account or register a new account with this type to proceed.')
} else {
handelPreCheckForGroup(goTeamSignCn)
}
}
} else {
// 国际赛
if (group?.type != '4' && matchData.value.countryLimit == '1') {
ElMessageBox.confirm(
language.value == 0 ? '您的团体类型不符合报名条件' : 'Your Team type does not meet the registration requirements',
language.value == 0 ? '提示' : 'Warning',
{
confirmButtonText: language.value == 1 ? 'OK' : '确定',
cancelButtonText: language.value == 1 ? 'Cancel' : '取消',
type: 'warning'
}
)
return
if (matchData.value.countryLimit == 1) {
if (group && group.type == 4) {
handelPreCheckForGroup(goTamSign)
} else {
return proxy.$modal.confirm(language.value == 0
? '您的账号类型为团队,无法报名当前活动。请切换至国家协会类型的账号,或重新注册类型为国家协会的账号报名当前活动。'
: 'Your account type is "Team",which does not qualify for the current event.Please switch to a "National Association" type account or register a new account with this type to proceed.')
}
} else {
if (group && group.type == 4) {
return proxy.$modal.confirm(language.value == 0
? '您的账号类型为团队(国家协会),无法报名当前活动。请切换至团队类型的账号,或重新注册类型为非国家协会的团队类型的账号,报名当前活动。'
: 'Your account type is "National Association Team"which does not qualify for the current event.Please switch to a "Team" type account or register a new account with this type to proceed.')
} else {
handelPreCheckForGroup(goTamSign)
}
}
// if (group?.type != '4' && matchData.value.countryLimit == '1') {
// ElMessageBox.confirm(
// language.value == 0 ? '您的团体类型不符合报名条件' : 'Your Team type does not meet the registration requirements',
// language.value == 0 ? '提示' : 'Warning',
// {
// confirmButtonText: language.value == 1 ? 'OK' : '确定',
// cancelButtonText: language.value == 1 ? 'Cancel' : '取消',
// type: 'warning'
// }
// )
// return
// }
// handelPreCheckForGroup(goTamSign)
}
}
// 国际赛
function goTamSign() {
router.push({
path: `${route.params.id}/teamSign`,
......@@ -625,6 +669,7 @@ function goTamSign() {
})
}
// 国内赛
function goTeamSignCn() {
router.push({
path: `${route.params.id}/teamSignCn`,
......@@ -765,37 +810,25 @@ function reSign() {
function switchSignType() {
switch (matchData.value.signType) {
case '0':// 个人
case '0':// 个人赛报名
if (user.utype == '1') {
handelGeRenNext()
}
if (user.utype == '2') {
ElMessageBox.confirm(
language.value == 0 ? '当前活动是个人活动,无法报名' : 'The current event is a personal event, cannot register',
language.value == 0 ? '提示' : 'Warning',
{
confirmButtonText: language.value == 0 ? '好的' : 'OK',
cancelButtonText: language.value == 0 ? '取消' : 'Cancel',
type: 'warning'
}
)
return proxy.$modal.confirm(language.value == 0
? '您的账号类型为:团队,无法报名当前活动。请切换至个人类型的账号,或重新注册类型为个人的账号,报名当前活动。'
: 'Your account type is "Team",which does not qualify for the current race. Please switch to a "Individual" type account or register a new account with this type to proceed.')
}
if (user.utype == '3') {
// 注册
goGeren()
}
break
case '1':// 团体
case '1':// 团体赛报名
if (user.utype == '1') {
ElMessageBox.confirm(
language.value == 0 ? '当前活动是团队活动,无法报名' : 'The current event is a team event, cannot register',
language.value == 0 ? '提示' : 'Warning',
{
confirmButtonText: language.value == 0 ? '好的' : 'OK',
cancelButtonText: language.value == 0 ? '取消' : 'Cancel',
type: 'warning'
}
)
return proxy.$modal.confirm(language.value == 0
? '您的账号类型为:个人,无法报名当前活动。请切换至团体类型账号报名。或者重新注册团体类型账号后再报名。'
: 'Your account type is: Individual. which does not qualify for the current race.Please switch to a group type account to register. Or register with a group type account before signing up.')
}
if (user.utype == '2') {
// match.preCheckForGroup(groupId.value).then(goTeamSign)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!