|
|
@ -22,6 +22,8 @@ const loginInfo = reactive<loginStruct>({ |
|
|
time: getTimeUnix() |
|
|
time: getTimeUnix() |
|
|
}) |
|
|
}) |
|
|
const singButLoading = ref(false) |
|
|
const singButLoading = ref(false) |
|
|
|
|
|
|
|
|
|
|
|
const xingzhi = ref(1) |
|
|
//验证码图片 |
|
|
//验证码图片 |
|
|
const codePic = ref<string>("") |
|
|
const codePic = ref<string>("") |
|
|
const getSignCode = () => { |
|
|
const getSignCode = () => { |
|
|
@ -35,11 +37,20 @@ const getSignCode = () => { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
onBeforeMount(() => { |
|
|
onBeforeMount(() => { |
|
|
let xingzhi = judgingEnvironment(); |
|
|
if(!userPinia.judgeIsLogin(route.query.userkey,route.query.token)){ |
|
|
if(xingzhi == 3){ |
|
|
xingzhi.value = judgingEnvironment(); |
|
|
window.location.href="http://wab.hxgk.group/systemapi/wechat/obtainAuthorization?systemapp="+import.meta.env.VITE_APP_SYSTEM_APP+"&isagain="+import.meta.env.VITE_APP_AGAIN+"&userid="+route.query.userid |
|
|
if(xingzhi.value == 3){ |
|
|
} |
|
|
window.location.href="http://wab.hxgk.group/systemapi/wechat/obtaOnePage?systemapp="+import.meta.env.VITE_APP_SYSTEM_APP+"&isagain="+import.meta.env.VITE_APP_AGAIN+"&userid="+route.query.userid+"&call_back_type=login" |
|
|
|
|
|
}else{ |
|
|
|
|
|
xingzhi.value = 1 |
|
|
getSignCode() |
|
|
getSignCode() |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
userPinia.getInfo() |
|
|
|
|
|
router.push('/') |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
const loginForm = ref(ElForm); //表单实例化 |
|
|
const loginForm = ref(ElForm); //表单实例化 |
|
|
|
|
|
|
|
|
@ -132,10 +143,12 @@ const judgingEnvironment = () => { |
|
|
</script> |
|
|
</script> |
|
|
<template> |
|
|
<template> |
|
|
<div class="appBodyBeiJing appBody contentCenter"> |
|
|
<div class="appBodyBeiJing appBody contentCenter"> |
|
|
<el-card style="max-width: 90%; background-color: rgba(255,255,255,0.6); border: rgba(255,255,255,0.6);"> |
|
|
<el-card v-if="xingzhi==3" v-loading="true" element-loading-text="身份验证中!请耐心等待!..." style="max-width: 90%; min-width:80%; height:250px; background-color: rgba(255,255,255,0.1); border: rgba(255,255,255,0.1);" element-loading-background="rgba(255,255,255,0.6)"> |
|
|
|
|
|
</el-card> |
|
|
|
|
|
<el-card v-else style="max-width: 90%; background-color: rgba(255,255,255,0.6); border: rgba(255,255,255,0.6);"> |
|
|
<template #header> |
|
|
<template #header> |
|
|
<div class="card-header"> |
|
|
<div class="card-header"> |
|
|
<el-text class="loginTitle">{{ loginTitle }}</el-text> |
|
|
<el-text class="loginTitle">{{ loginTitle }}--{{xingzhi}}</el-text> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
<el-form |
|
|
<el-form |
|
|
@ -166,6 +179,7 @@ const judgingEnvironment = () => { |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
</el-card> |
|
|
</el-card> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
<style lang='scss' scoped> |
|
|
<style lang='scss' scoped> |
|
|
|