登录注册
Showing
3 changed files
with
32 additions
and
24 deletions
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
| ... | @@ -394,6 +394,7 @@ | ... | @@ -394,6 +394,7 @@ |
| 394 | <pickup ref="pickupRef" /> | 394 | <pickup ref="pickupRef" /> |
| 395 | 395 | ||
| 396 | <checkAllSportsman ref="checkAllSportsmanRef" /> | 396 | <checkAllSportsman ref="checkAllSportsmanRef" /> |
| 397 | <LoginDialog ref="pcloginDialog" @submitForm="reFlash" /> | ||
| 397 | </div> | 398 | </div> |
| 398 | </template> | 399 | </template> |
| 399 | 400 | ||
| ... | @@ -405,12 +406,12 @@ import SubstationList from '@/viewsPc/match/components/substation-list' | ... | @@ -405,12 +406,12 @@ import SubstationList from '@/viewsPc/match/components/substation-list' |
| 405 | import MatchInfoProjectList from '@/viewsPc/match/components/matchInfo-projectList' | 406 | import MatchInfoProjectList from '@/viewsPc/match/components/matchInfo-projectList' |
| 406 | import QuickRow from '@/viewsPc/match/components/quick-row' | 407 | import QuickRow from '@/viewsPc/match/components/quick-row' |
| 407 | import Pickup from '@/viewsPc/components/pickup' | 408 | import Pickup from '@/viewsPc/components/pickup' |
| 408 | import { getCurrentInstance, ref } from 'vue' | 409 | import { getCurrentInstance, ref, watch } from 'vue' |
| 409 | import { reactive, onMounted } from '@vue/runtime-core' | 410 | import { reactive, onMounted } from '@vue/runtime-core' |
| 410 | import { useRoute, useRouter } from 'vue-router' | 411 | import { useRoute, useRouter } from 'vue-router' |
| 411 | import AffixInvitation from '@/viewsPc/match/components/affix-invitation' | 412 | import AffixInvitation from '@/viewsPc/match/components/affix-invitation' |
| 412 | import checkAllSportsman from '@/viewsPc/match/components/checkAllSportsman' | 413 | import checkAllSportsman from '@/viewsPc/match/components/checkAllSportsman' |
| 413 | 414 | import LoginDialog from '@/viewsPc/login' | |
| 414 | 415 | ||
| 415 | const language = useStorage('language', 0) | 416 | const language = useStorage('language', 0) |
| 416 | const route = useRoute() | 417 | const route = useRoute() |
| ... | @@ -455,6 +456,7 @@ const data = reactive({ | ... | @@ -455,6 +456,7 @@ const data = reactive({ |
| 455 | startSign: '', | 456 | startSign: '', |
| 456 | isNational: false | 457 | isNational: false |
| 457 | }) | 458 | }) |
| 459 | |||
| 458 | const { | 460 | const { |
| 459 | error, | 461 | error, |
| 460 | loading, | 462 | loading, |
| ... | @@ -466,6 +468,7 @@ const { | ... | @@ -466,6 +468,7 @@ const { |
| 466 | signDoneGroupList, signDoneGroupListToTal, queryGroupList, | 468 | signDoneGroupList, signDoneGroupListToTal, queryGroupList, |
| 467 | time, startSign, isNational | 469 | time, startSign, isNational |
| 468 | } = toRefs(data) | 470 | } = toRefs(data) |
| 471 | |||
| 469 | const signTypePop = ref(false) | 472 | const signTypePop = ref(false) |
| 470 | const upgradePop = ref(false) | 473 | const upgradePop = ref(false) |
| 471 | 474 | ||
| ... | @@ -539,22 +542,22 @@ function changeMenu(menu, l) { | ... | @@ -539,22 +542,22 @@ function changeMenu(menu, l) { |
| 539 | 542 | ||
| 540 | function choseSignType() { | 543 | function choseSignType() { |
| 541 | console.log(matchData.value.signType, matchData.value.languageSource, user) | 544 | console.log(matchData.value.signType, matchData.value.languageSource, user) |
| 542 | |||
| 543 | if (!user) { | 545 | if (!user) { |
| 546 | handelGoLogin({}, matchData.value.signType) | ||
| 544 | // 判断signType,如1个人注册-报名; | 547 | // 判断signType,如1个人注册-报名; |
| 545 | switch (matchData.value.signType) { | 548 | // switch (matchData.value.signType) { |
| 546 | case '0': | 549 | // case '0': |
| 547 | // 注册 | 550 | // // 注册 |
| 548 | goGeren() | 551 | // goGeren() |
| 549 | break | 552 | // break |
| 550 | case '1': | 553 | // case '1': |
| 551 | // 登录 | 554 | // // 登录 |
| 552 | goLogin() | 555 | // goLogin() |
| 553 | break | 556 | // break |
| 554 | case '2': | 557 | // case '2': |
| 555 | popChangeType() | 558 | // popChangeType() |
| 556 | break | 559 | // break |
| 557 | } | 560 | // } |
| 558 | } else { | 561 | } else { |
| 559 | // 获取已报名信息 | 562 | // 获取已报名信息 |
| 560 | checkIsSign().then(() => { | 563 | checkIsSign().then(() => { |
| ... | @@ -952,16 +955,21 @@ async function getCheckOcr(obj) { | ... | @@ -952,16 +955,21 @@ async function getCheckOcr(obj) { |
| 952 | } | 955 | } |
| 953 | } | 956 | } |
| 954 | 957 | ||
| 958 | watch(() => useUserStore().reLogin, (val) => { | ||
| 959 | if (val.show) { | ||
| 960 | console.log(val) | ||
| 961 | handelGoLogin(val.query) | ||
| 962 | } | ||
| 963 | }) | ||
| 955 | 964 | ||
| 956 | // 登录 | 965 | // 登录 |
| 957 | const handelGoLogin = (query) => { | 966 | const handelGoLogin = (query, type) => { |
| 958 | const param = {} | 967 | proxy.$refs['pcloginDialog'].open(query, type) |
| 959 | // if (_.isBoolean(flag)) { | 968 | } |
| 960 | // param = { | 969 | |
| 961 | // notShowClose: flag | 970 | const reFlash = () => { |
| 962 | // } | 971 | // 刷新 |
| 963 | // } | 972 | location.reload() |
| 964 | proxy.$refs['pcloginDialog'].open(query) | ||
| 965 | } | 973 | } |
| 966 | </script> | 974 | </script> |
| 967 | 975 | ... | ... |
-
Please register or sign in to post a comment