no message
Showing
4 changed files
with
29 additions
and
9 deletions
| ... | @@ -46,8 +46,8 @@ | ... | @@ -46,8 +46,8 @@ |
| 46 | <el-form-item :label="language==0?'状态':'Status'" required v-if="user.utype=='1'"> | 46 | <el-form-item :label="language==0?'状态':'Status'" required v-if="user.utype=='1'"> |
| 47 | <el-input v-model="myform.wdsfStatus" disabled/> | 47 | <el-input v-model="myform.wdsfStatus" disabled/> |
| 48 | </el-form-item> | 48 | </el-form-item> |
| 49 | <el-form-item :label="language==0?'证件号':'Passport number'" v-if="user.utype=='1'"> | 49 | <el-form-item :label="language==0?'证件号':'Passport number'" required v-if="user.utype=='1'"> |
| 50 | <el-input v-model="myform.passportNumber"/> | 50 | <el-input v-model="myform.passportNumber" disabled/> |
| 51 | </el-form-item> | 51 | </el-form-item> |
| 52 | <el-form-item :label="language==0?'有效证件':'Valid Passport'" required v-if="user.utype=='1'"> | 52 | <el-form-item :label="language==0?'有效证件':'Valid Passport'" required v-if="user.utype=='1'"> |
| 53 | <image-upload v-model="myform.passportUrl" :limit="1" :is-show-tip="false" | 53 | <image-upload v-model="myform.passportUrl" :limit="1" :is-show-tip="false" | ... | ... |
| ... | @@ -18,20 +18,25 @@ | ... | @@ -18,20 +18,25 @@ |
| 18 | 报到时间:2024年7月14日13:30 -17:00<br/> | 18 | 报到时间:2024年7月14日13:30 -17:00<br/> |
| 19 | 联系人:蒋璐<br/> | 19 | 联系人:蒋璐<br/> |
| 20 | 联系电话:15961580050<br/> | 20 | 联系电话:15961580050<br/> |
| 21 | 报名截止日期:<span style="text-decoration: underline">2024-06-30</span><br/> | ||
| 21 | </div> | 22 | </div> |
| 22 | <div v-else style="width: 400px;margin: auto"><br/> | 23 | <div v-else style="width: 400px;margin: auto;text-transform: capitalize"><br/> |
| 23 | <!-- The age limit for Youth Session: Born between 1st Jan, 2006 and 31st Dec., 2009.<br/>--> | 24 | <!-- The age limit for Youth Session: Born between 1st Jan, 2006 and 31st Dec., 2009.<br/>--> |
| 24 | <!-- The age limit for Juvenile Session: Born after 1 Jan., 2010.<br/>--> | 25 | <!-- The age limit for Juvenile Session: Born after 1 Jan., 2010.<br/>--> |
| 25 | Training Camp venue:Worldhotel Grand Juna Wuxi<br/> | 26 | Training Camp Venue:Worldhotel Grand Juna Wuxi<br/> |
| 26 | Address:No.111 Hefeng Road, Binhu District, Wuxi, Jiangsu<br/> | 27 | Address:No.111 Hefeng Road, Binhu District, Wuxi, Jiangsu<br/> |
| 27 | Check-in:From 13:30 to 17:00 on July 14, 2024.<br/> | 28 | Check-in:From 13:30 to 17:00 on July 14, 2024.<br/> |
| 28 | Contact Person:Dean Ding<br/> | 29 | Contact Person:Dean Ding<br/> |
| 29 | Tel: +86 19951486130<br/> | 30 | Tel:+86 19951486130<br/> |
| 31 | Registration Deadline:<span style="text-decoration: underline">2024-06-30</span><br/> | ||
| 30 | </div> | 32 | </div> |
| 31 | </div> | 33 | </div> |
| 32 | <div class="text-center"> | 34 | <div class="text-center" v-loading="loading"> |
| 33 | <el-button type="primary" v-if="courseList.length>0" class="btn-lineG" round @click="setActive(1)"> | 35 | <el-button type="primary" v-if="courseList.length>0" class="btn-lineG" round @click="setActive(1)"> |
| 34 | {{ language == 0 ? '下一步' : 'NEXT' }} | 36 | <span v-if="dayjs().format('YYYY-MM-DD')>'2024-06-30'"> |
| 37 | {{ language == 0 ? '报名已结束' : 'Registration has ended' }} | ||
| 38 | </span> | ||
| 39 | <span v-else>{{ language == 0 ? '下一步' : 'NEXT' }}</span> | ||
| 35 | </el-button> | 40 | </el-button> |
| 36 | <el-button type="primary" class="btn-lineG" round v-else @click="close"> | 41 | <el-button type="primary" class="btn-lineG" round v-else @click="close"> |
| 37 | {{ language == 0 ? '暂无可报课程' : 'No courses available for reporting' }} | 42 | {{ language == 0 ? '暂无可报课程' : 'No courses available for reporting' }} |
| ... | @@ -168,6 +173,7 @@ import {ElMessage, ElMessageBox} from "element-plus"; | ... | @@ -168,6 +173,7 @@ import {ElMessage, ElMessageBox} from "element-plus"; |
| 168 | import {addInvitation, countryList} from "@/apiPc/match"; | 173 | import {addInvitation, countryList} from "@/apiPc/match"; |
| 169 | import ImageUpload from "@/components/ImageUpload"; | 174 | import ImageUpload from "@/components/ImageUpload"; |
| 170 | import {masterClassList, getByCard, submitMasterApply, getMasterApply, delByCard} from "@/apiPc/common"; | 175 | import {masterClassList, getByCard, submitMasterApply, getMasterApply, delByCard} from "@/apiPc/common"; |
| 176 | import dayjs from "dayjs"; | ||
| 171 | 177 | ||
| 172 | const {proxy} = getCurrentInstance() | 178 | const {proxy} = getCurrentInstance() |
| 173 | const language = useStorage('language', 0) | 179 | const language = useStorage('language', 0) |
| ... | @@ -179,6 +185,7 @@ const title = ref('') | ... | @@ -179,6 +185,7 @@ const title = ref('') |
| 179 | const activeStep = ref(0) | 185 | const activeStep = ref(0) |
| 180 | const countrys = ref([]) | 186 | const countrys = ref([]) |
| 181 | const courseList = ref([]) | 187 | const courseList = ref([]) |
| 188 | const loading = ref(false) | ||
| 182 | const cptId = ref('') | 189 | const cptId = ref('') |
| 183 | const rules = ref( | 190 | const rules = ref( |
| 184 | { | 191 | { |
| ... | @@ -215,12 +222,18 @@ watch(show, (value) => { | ... | @@ -215,12 +222,18 @@ watch(show, (value) => { |
| 215 | 222 | ||
| 216 | function getCourse() { | 223 | function getCourse() { |
| 217 | // '1777256058082189313' | 224 | // '1777256058082189313' |
| 225 | loading.value = true | ||
| 218 | masterClassList({cptId: cptId.value}).then(res => { | 226 | masterClassList({cptId: cptId.value}).then(res => { |
| 219 | courseList.value = res.data | 227 | courseList.value = res.data |
| 228 | loading.value = false | ||
| 220 | }) | 229 | }) |
| 221 | } | 230 | } |
| 222 | 231 | ||
| 223 | function setActive(n) { | 232 | function setActive(n) { |
| 233 | if(n==1&&dayjs().format('YYYY-MM-DD')>'2024-06-30'){ | ||
| 234 | ElMessage.error(language.value == 0 ? '报名已结束' : 'The application has ended') | ||
| 235 | return | ||
| 236 | } | ||
| 224 | activeStep.value = n | 237 | activeStep.value = n |
| 225 | } | 238 | } |
| 226 | 239 | ... | ... |
| ... | @@ -175,7 +175,7 @@ import {ref, toRefs, reactive} from "vue" | ... | @@ -175,7 +175,7 @@ import {ref, toRefs, reactive} from "vue" |
| 175 | import {getCurrentInstance, onMounted} from "@vue/runtime-core"; | 175 | import {getCurrentInstance, onMounted} from "@vue/runtime-core"; |
| 176 | import Step3 from "./team/step3" | 176 | import Step3 from "./team/step3" |
| 177 | import Vcode from "vue3-puzzle-vcode" | 177 | import Vcode from "vue3-puzzle-vcode" |
| 178 | import {ElMessage} from 'element-plus' | 178 | import {ElMessage, ElMessageBox} from 'element-plus' |
| 179 | import CountDown from '@chenfengyuan/vue-countdown' | 179 | import CountDown from '@chenfengyuan/vue-countdown' |
| 180 | import {checkWdsf, getCaptchaSms, loginSingle, registerSingle} from "@/apiPc/match"; | 180 | import {checkWdsf, getCaptchaSms, loginSingle, registerSingle} from "@/apiPc/match"; |
| 181 | import {setToken} from "@/utils/auth"; | 181 | import {setToken} from "@/utils/auth"; |
| ... | @@ -217,6 +217,9 @@ const { | ... | @@ -217,6 +217,9 @@ const { |
| 217 | } = toRefs(data) | 217 | } = toRefs(data) |
| 218 | const matchId = ref('0') | 218 | const matchId = ref('0') |
| 219 | onMounted(() => { | 219 | onMounted(() => { |
| 220 | if(user.utype=='1'||user.utype=='2'){ | ||
| 221 | router.push({name: 'matchList'}) | ||
| 222 | } | ||
| 220 | if (language.value == 1) { | 223 | if (language.value == 1) { |
| 221 | failVcode.value = 'Error!' | 224 | failVcode.value = 'Error!' |
| 222 | successVcode.value = 'Success!' | 225 | successVcode.value = 'Success!' | ... | ... |
| ... | @@ -25,10 +25,11 @@ import Step2 from "./step2"; | ... | @@ -25,10 +25,11 @@ import Step2 from "./step2"; |
| 25 | import Step3 from "./step3"; | 25 | import Step3 from "./step3"; |
| 26 | import {onMounted, toRefs, reactive} from "vue" | 26 | import {onMounted, toRefs, reactive} from "vue" |
| 27 | import {useStorage} from "@vueuse/core/index"; | 27 | import {useStorage} from "@vueuse/core/index"; |
| 28 | import {useRoute} from "vue-router"; | 28 | import {useRoute,useRouter} from "vue-router"; |
| 29 | import useUserStore from "@/store/modules/user"; | 29 | import useUserStore from "@/store/modules/user"; |
| 30 | 30 | ||
| 31 | const language = useStorage('language', 0) | 31 | const language = useStorage('language', 0) |
| 32 | const router = useRouter() | ||
| 32 | const route = useRoute() | 33 | const route = useRoute() |
| 33 | const data = reactive({ | 34 | const data = reactive({ |
| 34 | isShow: false, | 35 | isShow: false, |
| ... | @@ -48,6 +49,9 @@ onMounted(() => { | ... | @@ -48,6 +49,9 @@ onMounted(() => { |
| 48 | if (user) { | 49 | if (user) { |
| 49 | form.value.userName = user.userName | 50 | form.value.userName = user.userName |
| 50 | } | 51 | } |
| 52 | if(user&&(user.utype=='1'||user.utype=='2')){ | ||
| 53 | router.push({name: 'matchList'}) | ||
| 54 | } | ||
| 51 | }) | 55 | }) |
| 52 | const toStep1 = () => { | 56 | const toStep1 = () => { |
| 53 | activeStep.value = 0 | 57 | activeStep.value = 0 | ... | ... |
-
Please register or sign in to post a comment