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,30 +259,58 @@ function changeMenu(menu, l) { ...@@ -259,30 +259,58 @@ 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 }
269 checkIsSign().then(() => { 270 checkIsSign().then(() => {
270 if (matchData.value.signType == '0' || (matchData.value.signType == '2' && user.utype == '1')) { 271 switch (matchData.value.signType) {
271 // 个人报名 272 case '0':
272 // router.push({ 273 if (user.utype == '1') {
273 // path: `${matchId.value}/singleSign` 274 goPersonalSign()
274 // }) 275 } else {
275 276 ElMessageBox.confirm(
276 const routeData = router.resolve({ 277 '当前活动是个人活动,无法报名',
277 name: `chooseCoach`, 278 '提示',
278 query: { 279 {
279 matchId: matchId.value, 280 confirmButtonText: '好的',
280 signType: matchData.value.signType 281 cancelButtonText: '取消',
282 type: 'warning',
283 }
284 )
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
281 } 309 }
282 }) 310 })
283 window.open(routeData.href, '_blank')
284 } 311 }
285 if (matchData.value.signType == '1' || (matchData.value.signType == '2' && user.utype == '2')) { 312 }
313 function goTeamSign() {
286 const routeData = router.resolve({ 314 const routeData = router.resolve({
287 path: `${matchId.value}/teamSign`, 315 path: `${matchId.value}/teamSign`,
288 query: { 316 query: {
...@@ -292,10 +320,17 @@ function choseSignType() { ...@@ -292,10 +320,17 @@ function choseSignType() {
292 } 320 }
293 }) 321 })
294 window.open(routeData.href, '_blank') 322 window.open(routeData.href, '_blank')
323 }
324 function goPersonalSign() {
325 // 选项目
326 const routeData = router.resolve({
327 name: `chooseProject`,
328 query: {
329 matchId: matchId.value
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!