|
@@ -1,6 +1,6 @@
|
|
|
<script setup>
|
|
|
-import {login, message} from "./api.js";
|
|
|
-import {user, refresh} from '~/store/user';
|
|
|
+import { login, message } from "./api.js";
|
|
|
+import { user, refresh } from '~/store/user';
|
|
|
|
|
|
// console.log('user :>> ', user);
|
|
|
const navList = [
|
|
@@ -88,7 +88,7 @@ function handleCommand(command) {
|
|
|
if (localStorage.getItem('userInfo')) {
|
|
|
localStorage.removeItem('userInfo');
|
|
|
|
|
|
- router.replace({name: 'home'});
|
|
|
+ router.replace({ name: 'home' });
|
|
|
setTimeout(() => {
|
|
|
location.reload();
|
|
|
}, 300);
|
|
@@ -100,9 +100,9 @@ function handleCommand(command) {
|
|
|
let userData = JSON.parse(userInfo);
|
|
|
let isStudent = userData.user_role_id == 76 ? true : false;
|
|
|
if (!isStudent) {
|
|
|
- router.replace({name: 'personal'});
|
|
|
+ router.replace({ name: 'personal' });
|
|
|
} else {
|
|
|
- router.replace({name: 'personalStudent'});
|
|
|
+ router.replace({ name: 'personalStudent' });
|
|
|
}
|
|
|
break;
|
|
|
case 'back_manager':
|
|
@@ -126,13 +126,13 @@ function routerReplace(name) {
|
|
|
if (name === 'tbkt') {
|
|
|
window.open('https://tyyxopenapi.bozedu.net/tbkt.php?token=' + JSON.parse(localStorage.getItem('userInfo')).token, '_self');
|
|
|
} else {
|
|
|
- router.replace({name})
|
|
|
+ router.replace({ name })
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
function toMessage() {
|
|
|
- router.replace({name: 'message'});
|
|
|
+ router.replace({ name: 'message' });
|
|
|
}
|
|
|
|
|
|
let messageList = $ref([]);
|
|
@@ -161,7 +161,10 @@ function partyLogin(from) {
|
|
|
location.replace(`https://jyyj.zjjxedu.gov.cn:86/edu-manager/login?redirectTo=${window.location.origin}/pending.html?fromType=${from}_login`)
|
|
|
break;
|
|
|
case 'zlb':
|
|
|
-
|
|
|
+ location.replace(`https://puser.zjzwfw.gov.cn/sso/newusp.do?action=ssoLogin&servicecode=beb8fa1fd85f4963bebf839f0d304d63&redirectUrl=`
|
|
|
+ + encodeURIComponent(
|
|
|
+ `${window.GLOBAL_CONFIG.pend}/openapi/oauth/zlb/checkticket.php?goto=${window.location.origin}/pending.html?fromType=${from}_login`
|
|
|
+ ))
|
|
|
break;
|
|
|
default:
|
|
|
break;
|
|
@@ -221,8 +224,8 @@ function partyLogin(from) {
|
|
|
</div>
|
|
|
<div class="nav-list">
|
|
|
<ul>
|
|
|
- <li v-for="item in navList" :class="{'selected':currentRootRoute===item.name}"
|
|
|
- @click="handleSwitchRoute(item.name)">
|
|
|
+ <li v-for="item in navList" :class="{ 'selected': currentRootRoute === item.name }"
|
|
|
+ @click="handleSwitchRoute(item.name)">
|
|
|
{{ item.title }}
|
|
|
</li>
|
|
|
</ul>
|
|
@@ -267,22 +270,22 @@ function partyLogin(from) {
|
|
|
<div class="w-full flex-auto flex-auto mt-8 flex flex-col justify-between">
|
|
|
<el-input v-model="loginForm.user_name" class="h-70px" size="large" placeholder="账号">
|
|
|
<template #suffix>
|
|
|
- <i:ant-design:user-outlined class="w-23px h-23px"/>
|
|
|
+ <i:ant-design:user-outlined class="w-23px h-23px" />
|
|
|
</template>
|
|
|
</el-input>
|
|
|
<el-input v-model="loginForm.user_password" class="h-70px mt-4" size="large" :type="passwordType"
|
|
|
- placeholder="数字、字母或符号组成的密码">
|
|
|
+ placeholder="数字、字母或符号组成的密码">
|
|
|
<template #suffix>
|
|
|
- <i:bi:eye-slash class="w-23px h-23px cursor-pointer" v-show="passwordType==='password'"
|
|
|
- @click="passwordType='text'"/>
|
|
|
- <i:bi:eye class="w-23px h-23px cursor-pointer" v-show="passwordType==='text'"
|
|
|
- @click="passwordType='password'"/>
|
|
|
+ <i:bi:eye-slash class="w-23px h-23px cursor-pointer" v-show="passwordType === 'password'"
|
|
|
+ @click="passwordType = 'text'" />
|
|
|
+ <i:bi:eye class="w-23px h-23px cursor-pointer" v-show="passwordType === 'text'"
|
|
|
+ @click="passwordType = 'password'" />
|
|
|
<!-- <i:akar-icons:lock-off class="w-23px h-23px" /> -->
|
|
|
</template>
|
|
|
</el-input>
|
|
|
- <button type="button" :disabled="!(loginForm.user_name &&loginForm.user_password)" @click="userLoginSubmit"
|
|
|
- class="w-full mt-12 h-56px bg-hex-409EFF rounded text-white tracking-0.5rem "
|
|
|
- :class="!(loginForm.user_name &&loginForm.user_password) && 'cursor-not-allowed bg-hex-79BBFF'">登录
|
|
|
+ <button type="button" :disabled="!(loginForm.user_name && loginForm.user_password)" @click="userLoginSubmit"
|
|
|
+ class="w-full mt-12 h-56px bg-hex-409EFF rounded text-white tracking-0.5rem "
|
|
|
+ :class="!(loginForm.user_name && loginForm.user_password) && 'cursor-not-allowed bg-hex-79BBFF'">登录
|
|
|
</button>
|
|
|
<div class="mt-12 w-full">
|
|
|
<el-divider>其他登录方式</el-divider>
|
|
@@ -340,8 +343,9 @@ function partyLogin(from) {
|
|
|
.nav-list {
|
|
|
width: 100%;
|
|
|
height: 80px;
|
|
|
- background:#423F72;
|
|
|
- ul{
|
|
|
+ background: #423F72;
|
|
|
+
|
|
|
+ ul {
|
|
|
width: 1200px;
|
|
|
margin: 0 auto;
|
|
|
display: flex;
|
|
@@ -356,12 +360,13 @@ function partyLogin(from) {
|
|
|
text-align: center;
|
|
|
cursor: pointer;
|
|
|
line-height: 80px;
|
|
|
- &+li{
|
|
|
+
|
|
|
+ &+li {
|
|
|
margin-left: 13px;
|
|
|
}
|
|
|
|
|
|
&.selected {
|
|
|
- background: rgba(255,255,255,.2);
|
|
|
+ background: rgba(255, 255, 255, .2);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -433,7 +438,7 @@ function partyLogin(from) {
|
|
|
|
|
|
&:hover {
|
|
|
.m-con {
|
|
|
- background: rgba(66,63,114,0.06);
|
|
|
+ background: rgba(66, 63, 114, 0.06);
|
|
|
}
|
|
|
|
|
|
.dot {
|
|
@@ -441,7 +446,7 @@ function partyLogin(from) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- & + li {
|
|
|
+ &+li {
|
|
|
border-top: 1px solid #EFF0F1;
|
|
|
}
|
|
|
|
|
@@ -530,6 +535,7 @@ function partyLogin(from) {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.login-close {
|
|
|
position: absolute;
|
|
|
right: -40px;
|
|
@@ -540,6 +546,7 @@ function partyLogin(from) {
|
|
|
background-size: 30px 30px;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
+
|
|
|
.login-mask {
|
|
|
position: fixed;
|
|
|
left: 0;
|
|
@@ -551,6 +558,7 @@ function partyLogin(from) {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
+
|
|
|
.login-box {
|
|
|
position: relative;
|
|
|
width: 1065px;
|
|
@@ -584,7 +592,7 @@ function partyLogin(from) {
|
|
|
padding-left: 20px;
|
|
|
padding-right: 15px;
|
|
|
|
|
|
- & + .form-line {
|
|
|
+ &+.form-line {
|
|
|
margin-top: 8px;
|
|
|
}
|
|
|
}
|