c90e9218 by 杨炀

no message

1 parent e80e0f3a
...@@ -154,14 +154,16 @@ onMounted(() => { ...@@ -154,14 +154,16 @@ onMounted(() => {
154 activeIndex.value = '/notice' 154 activeIndex.value = '/notice'
155 } else if (route.fullPath.indexOf('about') > -1) { 155 } else if (route.fullPath.indexOf('about') > -1) {
156 activeIndex.value = '/about' 156 activeIndex.value = '/about'
157 } else if (route.fullPath.indexOf('mate') > -1) { 157 } else if (route.fullPath.indexOf('meta') > -1) {
158 activeIndex.value = '/mate' 158 activeIndex.value = '/meta'
159 } else if (route.fullPath.indexOf('guide') > -1) { 159 } else if (route.fullPath.indexOf('guide') > -1) {
160 activeIndex.value = '/guide' 160 activeIndex.value = '/guide'
161 } else if (route.fullPath.indexOf('saiC') > -1) { 161 } else if (route.fullPath.indexOf('saiC') > -1) {
162 activeIndex.value = '/saiC' 162 activeIndex.value = '/saiC'
163 } else if (route.fullPath.indexOf('match') > -1) {
164 activeIndex.value = '/match/list/0'
163 } 165 }
164 // console.log(activeIndex.value) 166 console.log(activeIndex.value)
165 }) 167 })
166 function changeLanguage(n) { 168 function changeLanguage(n) {
167 proxy.$modal.loading() 169 proxy.$modal.loading()
......
...@@ -126,7 +126,7 @@ const menusPersonal = ref([ ...@@ -126,7 +126,7 @@ const menusPersonal = ref([
126 isActive: false 126 isActive: false
127 }, 127 },
128 { 128 {
129 name: language.value==0?'我的报名':'My Eegistration', 129 name: language.value==0?'我的报名':'My Registration',
130 routeName: 'myMatch', 130 routeName: 'myMatch',
131 picUrl1: '/img/nav_28.png', 131 picUrl1: '/img/nav_28.png',
132 picUrl2: '/img/nav_28_dwn.png', 132 picUrl2: '/img/nav_28_dwn.png',
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
3 <!-- 个人报名-国外--> 3 <!-- 个人报名-国外-->
4 <div class="box ph-30"> 4 <div class="box ph-30">
5 <el-card class="mb20"> 5 <el-card class="mb20">
6 <single-sign-step :activeStep="2" :language="language"/> 6 <single-sign-step :activeStep="1" :language="language"/>
7 </el-card> 7 </el-card>
8 8
9 <el-card :body-style="{'padding': '0'}"> 9 <el-card :body-style="{'padding': '0'}">
...@@ -429,7 +429,7 @@ function submitForm(n) { ...@@ -429,7 +429,7 @@ function submitForm(n) {
429 // Submission must be completed before the registration deadline${signEndTime.value}。 429 // Submission must be completed before the registration deadline${signEndTime.value}。
430 // You can also find this registration in the My Registration section of your personal center and click submit for review.`, 430 // You can also find this registration in the My Registration section of your personal center and click submit for review.`,
431 // language.value == 0 ? '提示' : 'Tip', { 431 // language.value == 0 ? '提示' : 'Tip', {
432 // confirmButtonText: language.value == 0 ? '去个人中心' : 'Go My Eegistration ', 432 // confirmButtonText: language.value == 0 ? '去个人中心' : 'Go My Registration ',
433 // cancelButtonText: language.value == 0 ? '知道了' : 'OK', 433 // cancelButtonText: language.value == 0 ? '知道了' : 'OK',
434 // type: 'warning' 434 // type: 'warning'
435 // }).then((res) => { 435 // }).then((res) => {
......
1 <template> 1 <template>
2 <el-steps :active="activeStep" align-center> 2 <el-steps :active="activeStep" align-center>
3 <el-step :title="language==0?'教练/领队/其他':'Coach/Team Leader/Other'" /> 3 <el-step :title="language==0?'校验 WDSF 会员号':'Check WDSF ID'" />
4 <el-step :title="language==0?'选手报名':'Participant Registration'" /> 4 <el-step :title="language==0?'选手报名':'Participant Registration'" />
5 <el-step :title="language==0?'提交审核':'Submit for review'" /> 5 <el-step :title="language==0?'提交审核':'Submit for review'" />
6 </el-steps> 6 </el-steps>
......
...@@ -259,43 +259,78 @@ function changeMenu(menu, l) { ...@@ -259,43 +259,78 @@ function changeMenu(menu, l) {
259 } 259 }
260 } 260 }
261 } 261 }
262 262 function goLogin() {
263 useUserStore().setReLogin(true)
264 }
263 function choseSignType() { 265 function choseSignType() {
264 console.log(matchData.value.signType,user) 266 console.log(matchData.value.signType,user)
265 if (!user) { 267 if (!user) {
266 useUserStore().setReLogin(true) 268 goLogin()
267 return 269 } else {
268 } 270 checkIsSign().then(() => {
269 checkIsSign().then(() => { 271 switch (matchData.value.signType) {
270 if (matchData.value.signType == '0' || (matchData.value.signType == '2' && user.utype == '1')) { 272 case '0':
271 // 个人报名 273 if (user.utype == '1') {
272 // router.push({ 274 goPersonalSign()
273 // path: `${matchId.value}/singleSign` 275 } else {
274 // }) 276 ElMessageBox.confirm(
275 277 '当前活动是个人活动,无法报名',
276 const routeData = router.resolve({ 278 '提示',
277 name: `chooseCoach`, 279 {
278 query: { 280 confirmButtonText: '好的',
279 matchId: matchId.value, 281 cancelButtonText: '取消',
280 signType: matchData.value.signType 282 type: 'warning',
281 } 283 }
282 }) 284 )
283 window.open(routeData.href, '_blank') 285 }
286 break
287 case '1':
288 if (user.utype == '1') {
289 ElMessageBox.confirm(
290 '当前活动是团队活动,无法报名',
291 '提示',
292 {
293 confirmButtonText: '好的',
294 cancelButtonText: '取消',
295 type: 'warning',
296 }
297 )
298 } else {
299 goTeamSign()
300 }
301 break
302 case '2':
303 if (user.utype == '1') {
304 goPersonalSign()
305 } else {
306 goTeamSign()
307 }
308 break
309 }
310 })
311 }
312 }
313 function goTeamSign() {
314 const routeData = router.resolve({
315 path: `${matchId.value}/teamSign`,
316 query: {
317 matchId: matchId.value,
318 groupId: groupId.value,
319 signType: matchData.value.signType
284 } 320 }
285 if (matchData.value.signType == '1' || (matchData.value.signType == '2' && user.utype == '2')) { 321 })
286 const routeData = router.resolve({ 322 window.open(routeData.href, '_blank')
287 path: `${matchId.value}/teamSign`, 323 }
288 query: { 324 function goPersonalSign() {
289 matchId: matchId.value, 325 // 选项目
290 groupId: groupId.value, 326 const routeData = router.resolve({
291 signType: matchData.value.signType 327 name: `chooseProject`,
292 } 328 query: {
293 }) 329 matchId: matchId.value
294 window.open(routeData.href, '_blank')
295 } 330 }
296 }) 331 })
332 window.open(routeData.href, '_blank')
297 } 333 }
298
299 // 获取已报信息 334 // 获取已报信息
300 function checkIsSign() { 335 function checkIsSign() {
301 var obj = { 336 var obj = {
......
...@@ -260,7 +260,7 @@ ...@@ -260,7 +260,7 @@
260 <!-- 线下支付待核销--> 260 <!-- 线下支付待核销-->
261 <div class="text-center"> 261 <div class="text-center">
262 <el-icon color="#32B16C" size="80"><SuccessFilled /></el-icon> 262 <el-icon color="#32B16C" size="80"><SuccessFilled /></el-icon>
263 <p class="text-success">{{ language==0?'支付成功':'successful!' }}</p> 263 <p class="text-success">{{ language==0?'支付成功':'successfully!' }}</p>
264 <h3 class="wePrice">{{ language==0?'¥':'€' }}{{form.totalFee}}</h3> 264 <h3 class="wePrice">{{ language==0?'¥':'€' }}{{form.totalFee}}</h3>
265 <span v-if="language==0" class="text-danger size12">*您可以在上传汇款单完成后,与联系人进行电话确认。具体缴费结果,可以在个人中心-我的报名中查看进度</span> 265 <span v-if="language==0" class="text-danger size12">*您可以在上传汇款单完成后,与联系人进行电话确认。具体缴费结果,可以在个人中心-我的报名中查看进度</span>
266 <span v-else class="text-danger size12">*You can confirm with the contact person by phone after uploading the remittance form. The specific payment results can be viewed in the My Registration section of the personal center to check the progress</span> 266 <span v-else class="text-danger size12">*You can confirm with the contact person by phone after uploading the remittance form. The specific payment results can be viewed in the My Registration section of the personal center to check the progress</span>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
4 <el-card class="mb60 mt30"> 4 <el-card class="mb60 mt30">
5 <div class="text-center mt30"> 5 <div class="text-center mt30">
6 <el-icon color="#32B16C" size="80"><SuccessFilled /></el-icon> 6 <el-icon color="#32B16C" size="80"><SuccessFilled /></el-icon>
7 <p class="text-success mb20">{{ language==0?'支付成功':'successful!' }}</p> 7 <p class="text-success mb20">{{ language==0?'支付成功':'successfully!' }}</p>
8 8
9 <el-button type="primary" class="btn-lineG mb60" @click="goBillDetail" round>{{ language==0?'返回订单详情':'Return order details' }}</el-button> 9 <el-button type="primary" class="btn-lineG mb60" @click="goBillDetail" round>{{ language==0?'返回订单详情':'Return order details' }}</el-button>
10 </div> 10 </div>
......
...@@ -197,7 +197,7 @@ const submitForm = (n) => { ...@@ -197,7 +197,7 @@ const submitForm = (n) => {
197 Submission must be completed before the registration deadline${signEndTime.value} 197 Submission must be completed before the registration deadline${signEndTime.value}
198 You can also find this registration in the My Registration section of your personal center and click submit for review.`, 198 You can also find this registration in the My Registration section of your personal center and click submit for review.`,
199 language.value == 0 ? '提示' : 'Tip', { 199 language.value == 0 ? '提示' : 'Tip', {
200 confirmButtonText: language.value == 0 ? '去个人中心' : 'Go My Eegistration ', 200 confirmButtonText: language.value == 0 ? '去个人中心' : 'Go My Registration ',
201 cancelButtonText: language.value == 0 ? '知道了' : 'OK', 201 cancelButtonText: language.value == 0 ? '知道了' : 'OK',
202 type: 'warning' 202 type: 'warning'
203 }).then((res) => { 203 }).then((res) => {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!