|
@@ -5,59 +5,54 @@
|
|
|
<img :src="siteLogo" />
|
|
|
<div class="login-left-logo-text">
|
|
|
<span>{{ getSystemConfig['login.site_title'] || getThemeConfig.globalViceTitle }}</span>
|
|
|
- <span class="login-left-logo-text-msg" style="margin-top: 5px;">{{
|
|
|
- getSystemConfig['login.site_name'] || getThemeConfig.globalViceTitleMsg }}</span>
|
|
|
+ <span class="login-left-logo-text-msg" style="margin-top: 5px">{{
|
|
|
+ getSystemConfig['login.site_name'] || getThemeConfig.globalViceTitleMsg
|
|
|
+ }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="login-right flex z-10">
|
|
|
<div class="login-right-warp flex-margin">
|
|
|
-<!-- <span class="login-right-warp-one"></span>-->
|
|
|
-<!-- <span class="login-right-warp-two"></span>-->
|
|
|
+ <!-- <span class="login-right-warp-one"></span>-->
|
|
|
+ <!-- <span class="login-right-warp-two"></span>-->
|
|
|
<div class="login-right-warp-mian">
|
|
|
- <div class="login-right-warp-main-title">
|
|
|
- {{userInfos.pwd_change_count===0?'初次登录修改密码':'欢迎登录'}}
|
|
|
- </div>
|
|
|
- <div class="login-right-warp-main-form">
|
|
|
- <div v-if="!state.isScan">
|
|
|
- <el-tabs v-model="state.tabsActiveName">
|
|
|
- <el-tab-pane :label="$t('message.label.changePwd')" name="changePwd" v-if="userInfos.pwd_change_count===0">
|
|
|
- <ChangePwd />
|
|
|
- </el-tab-pane>
|
|
|
- <el-tab-pane :label="$t('message.label.one1')" name="account" v-else>
|
|
|
- <Account />
|
|
|
- </el-tab-pane>
|
|
|
-
|
|
|
- <!-- TODO 手机号码登录未接入,展示隐藏 -->
|
|
|
- <!-- <el-tab-pane :label="$t('message.label.two2')" name="mobile">
|
|
|
- <Mobile />
|
|
|
- </el-tab-pane> -->
|
|
|
- </el-tabs>
|
|
|
+ <div class="flex flex-col items-center justify-center p-8 pt-14">
|
|
|
+ <!-- Logo -->
|
|
|
+ <div class="text-4xl font-bold text-red-600 mb-12">敏龙AI面试</div>
|
|
|
+
|
|
|
+ <!-- 登录表单区域 -->
|
|
|
+ <div class="w-full max-w-sm">
|
|
|
+ <div v-if="!state.isScan">
|
|
|
+ <!-- <el-tabs v-model="state.tabsActiveName" class="w-full">
|
|
|
+ <el-tab-pane :label="$t('message.label.changePwd')" name="changePwd" v-if="userInfos.pwd_change_count === 0">
|
|
|
+ <ChangePwd />
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane :label="$t('message.label.one1')" name="account" v-else> -->
|
|
|
+ <Account />
|
|
|
+ <!-- </el-tab-pane> -->
|
|
|
+
|
|
|
+ <!-- TODO 手机号码登录未接入,展示隐藏 -->
|
|
|
+ <!-- <el-tab-pane :label="$t('message.label.two2')" name="mobile">
|
|
|
+ <Mobile />
|
|
|
+ </el-tab-pane> -->
|
|
|
+ <!-- </el-tabs> -->
|
|
|
+ </div>
|
|
|
</div>
|
|
|
-<!-- <Scan v-if="state.isScan" />-->
|
|
|
-<!-- <div class="login-content-main-sacn" @click="state.isScan = !state.isScan">-->
|
|
|
-<!-- <i class="iconfont" :class="state.isScan ? 'icon-diannao1' : 'icon-barcode-qr'"></i>-->
|
|
|
-<!-- <div class="login-content-main-sacn-delta"></div>-->
|
|
|
-<!-- </div>-->
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="login-authorization z-10">
|
|
|
- <p>Copyright © {{ getSystemConfig['login.copyright'] || '2021-2024 北京信码新创科技有限公司' }} 版权所有</p>
|
|
|
- <p class="la-other" style="margin-top: 5px;">
|
|
|
- <a href="https://beian.miit.gov.cn" target="_blank">{{ getSystemConfig['login.keep_record'] ||
|
|
|
- '京ICP备2021031018号' }}</a>
|
|
|
+ <p>Copyright © {{ getSystemConfig['login.copyright'] || ' 上海瑞赢旷视科技有限公司' }}</p>
|
|
|
+ <p class="la-other" style="margin-top: 5px">
|
|
|
+ <a href="https://beian.miit.gov.cn" target="_blank">{{ getSystemConfig['login.keep_record'] || '京ICP备2021031018号' }}</a>
|
|
|
|
|
|
|
- <a :href="getSystemConfig['login.help_url'] ? getSystemConfig['login.help_url'] : '#'"
|
|
|
- target="_blank">帮助</a>
|
|
|
+ <a :href="getSystemConfig['login.help_url'] ? getSystemConfig['login.help_url'] : '#'" target="_blank">帮助</a>
|
|
|
|
|
|
|
- <a
|
|
|
- :href="getSystemConfig['login.privacy_url'] ? getBaseURL(getSystemConfig['login.privacy_url']) : '#'">隐私</a>
|
|
|
+ <a :href="getSystemConfig['login.privacy_url'] ? getBaseURL(getSystemConfig['login.privacy_url']) : '#'">隐私</a>
|
|
|
|
|
|
|
- <a
|
|
|
- :href="getSystemConfig['login.clause_url'] ? getBaseURL(getSystemConfig['login.clause_url']) : '#'">条款</a>
|
|
|
+ <a :href="getSystemConfig['login.clause_url'] ? getBaseURL(getSystemConfig['login.clause_url']) : '#'">条款</a>
|
|
|
</p>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -67,22 +62,22 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts" name="loginIndex">
|
|
|
-import {defineAsyncComponent, onMounted, reactive, computed, watch} from 'vue';
|
|
|
+import { defineAsyncComponent, onMounted, reactive, computed, watch } from 'vue';
|
|
|
import { storeToRefs } from 'pinia';
|
|
|
import { useThemeConfig } from '/@/stores/themeConfig';
|
|
|
import { NextLoading } from '/@/utils/loading';
|
|
|
import logoMini from '/@/assets/logo-mini.svg';
|
|
|
import loginMain from '/@/assets/login-main.svg';
|
|
|
-import loginBg from '/@/assets/login-bg.png';
|
|
|
-import { SystemConfigStore } from '/@/stores/systemConfig'
|
|
|
-import { getBaseURL } from "/@/utils/baseUrl";
|
|
|
+import loginBg from '/@/assets/login_background.jpg';
|
|
|
+import { SystemConfigStore } from '/@/stores/systemConfig';
|
|
|
+import { getBaseURL } from '/@/utils/baseUrl';
|
|
|
// 引入组件
|
|
|
const Account = defineAsyncComponent(() => import('/@/views/system/login/component/account.vue'));
|
|
|
const Mobile = defineAsyncComponent(() => import('/@/views/system/login/component/mobile.vue'));
|
|
|
const Scan = defineAsyncComponent(() => import('/@/views/system/login/component/scan.vue'));
|
|
|
const ChangePwd = defineAsyncComponent(() => import('/@/views/system/login/component/changePwd.vue'));
|
|
|
-import _ from "lodash-es";
|
|
|
-import {useUserInfo} from "/@/stores/userInfo";
|
|
|
+import _ from 'lodash-es';
|
|
|
+import { useUserInfo } from '/@/stores/userInfo';
|
|
|
const { userInfos } = storeToRefs(useUserInfo());
|
|
|
|
|
|
// 定义变量内容
|
|
@@ -93,37 +88,39 @@ const state = reactive({
|
|
|
isScan: false,
|
|
|
});
|
|
|
|
|
|
-
|
|
|
-watch(()=>userInfos.value.pwd_change_count,(val)=>{
|
|
|
- if(val===0){
|
|
|
- state.tabsActiveName ='changePwd'
|
|
|
- }else{
|
|
|
- state.tabsActiveName ='account'
|
|
|
- }
|
|
|
-},{deep:true,immediate:true})
|
|
|
-
|
|
|
+watch(
|
|
|
+ () => userInfos.value.pwd_change_count,
|
|
|
+ (val) => {
|
|
|
+ if (val === 0) {
|
|
|
+ state.tabsActiveName = 'changePwd';
|
|
|
+ } else {
|
|
|
+ state.tabsActiveName = 'account';
|
|
|
+ }
|
|
|
+ },
|
|
|
+ { deep: true, immediate: true }
|
|
|
+);
|
|
|
|
|
|
// 获取布局配置信息
|
|
|
const getThemeConfig = computed(() => {
|
|
|
return themeConfig.value;
|
|
|
});
|
|
|
|
|
|
-const systemConfigStore = SystemConfigStore()
|
|
|
-const { systemConfig } = storeToRefs(systemConfigStore)
|
|
|
+const systemConfigStore = SystemConfigStore();
|
|
|
+const { systemConfig } = storeToRefs(systemConfigStore);
|
|
|
const getSystemConfig = computed(() => {
|
|
|
- return systemConfig.value
|
|
|
-})
|
|
|
+ return systemConfig.value;
|
|
|
+});
|
|
|
|
|
|
const siteLogo = computed(() => {
|
|
|
if (!_.isEmpty(getSystemConfig.value['login.site_logo'])) {
|
|
|
- return getSystemConfig.value['login.site_logo']
|
|
|
+ return getSystemConfig.value['login.site_logo'];
|
|
|
}
|
|
|
- return logoMini
|
|
|
+ return logoMini;
|
|
|
});
|
|
|
|
|
|
const siteBg = computed(() => {
|
|
|
if (!_.isEmpty(getSystemConfig.value['login.login_background'])) {
|
|
|
- return getSystemConfig.value['login.login_background']
|
|
|
+ return getSystemConfig.value['login.login_background'];
|
|
|
}
|
|
|
});
|
|
|
|
|
@@ -161,7 +158,6 @@ onMounted(() => {
|
|
|
.login-left-logo-text {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
-
|
|
|
span {
|
|
|
margin-left: 10px;
|
|
|
font-size: 16px;
|
|
@@ -202,9 +198,9 @@ onMounted(() => {
|
|
|
|
|
|
.login-right-warp {
|
|
|
//border: 1px solid var(--el-color-primary-light-3);
|
|
|
- border-radius: 3px;
|
|
|
- width: 500px;
|
|
|
- height: 500px;
|
|
|
+ border-radius: 10px;
|
|
|
+ width: 450px;
|
|
|
+ height: 470px;
|
|
|
position: relative;
|
|
|
overflow: hidden;
|
|
|
//background-color: var(--el-color-white);
|
|
@@ -275,12 +271,12 @@ onMounted(() => {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
height: 100%;
|
|
|
-
|
|
|
+ background: #fff;
|
|
|
.login-right-warp-main-title {
|
|
|
height: 130px;
|
|
|
line-height: 130px;
|
|
|
font-size: 32px;
|
|
|
- font-weight: 600;
|
|
|
+ font-weight: 600;
|
|
|
text-align: center;
|
|
|
letter-spacing: 3px;
|
|
|
animation: logoAnimation 0.3s ease;
|