8554c0db by zhangmeng

登录注册

1 parent 04376af8
......@@ -394,6 +394,7 @@
<pickup ref="pickupRef" />
<checkAllSportsman ref="checkAllSportsmanRef" />
<LoginDialog ref="pcloginDialog" @submitForm="reFlash" />
</div>
</template>
......@@ -405,12 +406,12 @@ import SubstationList from '@/viewsPc/match/components/substation-list'
import MatchInfoProjectList from '@/viewsPc/match/components/matchInfo-projectList'
import QuickRow from '@/viewsPc/match/components/quick-row'
import Pickup from '@/viewsPc/components/pickup'
import { getCurrentInstance, ref } from 'vue'
import { getCurrentInstance, ref, watch } from 'vue'
import { reactive, onMounted } from '@vue/runtime-core'
import { useRoute, useRouter } from 'vue-router'
import AffixInvitation from '@/viewsPc/match/components/affix-invitation'
import checkAllSportsman from '@/viewsPc/match/components/checkAllSportsman'
import LoginDialog from '@/viewsPc/login'
const language = useStorage('language', 0)
const route = useRoute()
......@@ -455,6 +456,7 @@ const data = reactive({
startSign: '',
isNational: false
})
const {
error,
loading,
......@@ -466,6 +468,7 @@ const {
signDoneGroupList, signDoneGroupListToTal, queryGroupList,
time, startSign, isNational
} = toRefs(data)
const signTypePop = ref(false)
const upgradePop = ref(false)
......@@ -539,22 +542,22 @@ function changeMenu(menu, l) {
function choseSignType() {
console.log(matchData.value.signType, matchData.value.languageSource, user)
if (!user) {
handelGoLogin({}, matchData.value.signType)
// 判断signType,如1个人注册-报名;
switch (matchData.value.signType) {
case '0':
// 注册
goGeren()
break
case '1':
// 登录
goLogin()
break
case '2':
popChangeType()
break
}
// switch (matchData.value.signType) {
// case '0':
// // 注册
// goGeren()
// break
// case '1':
// // 登录
// goLogin()
// break
// case '2':
// popChangeType()
// break
// }
} else {
// 获取已报名信息
checkIsSign().then(() => {
......@@ -952,16 +955,21 @@ async function getCheckOcr(obj) {
}
}
watch(() => useUserStore().reLogin, (val) => {
if (val.show) {
console.log(val)
handelGoLogin(val.query)
}
})
// 登录
const handelGoLogin = (query) => {
const param = {}
// if (_.isBoolean(flag)) {
// param = {
// notShowClose: flag
// }
// }
proxy.$refs['pcloginDialog'].open(query)
const handelGoLogin = (query, type) => {
proxy.$refs['pcloginDialog'].open(query, type)
}
const reFlash = () => {
// 刷新
location.reload()
}
</script>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!