|
@@ -1,368 +1,354 @@
|
|
|
<template>
|
|
|
- <div class="login-container">
|
|
|
- <div class="login-left">
|
|
|
- <div class="header">
|
|
|
- <img class="logo-img" src="@/assets/icons/logo.svg" alt="logo" />
|
|
|
- {{ title }}
|
|
|
+ <div class="login_bg">
|
|
|
+ <div class="login_adv" style="background-image: url(img/auth_banner.png)">
|
|
|
+ <div class="login_adv__title">
|
|
|
+ <h2>AIZUDA</h2>
|
|
|
+ <h4>{{ $t('login.slogan') }}</h4>
|
|
|
+ <p>{{ $t('login.describe') }}</p>
|
|
|
</div>
|
|
|
- <ServerLogin class="login-left_svg" style="color: var(--el-color-primary)" />
|
|
|
+ <div class="login_adv__mask"></div>
|
|
|
+ <div class="login_adv__bottom">© {{ $CONFIG.APP_NAME }} {{ $CONFIG.APP_VER }}</div>
|
|
|
</div>
|
|
|
- <div class="login-right">
|
|
|
- <el-form ref="loginFormRef" :model="loginForm" :rules="loginRules" class="login-form" auto-complete="on" label-position="left">
|
|
|
- <div class="title-container">
|
|
|
- <h3 class="title">{{ title }}</h3>
|
|
|
- <lang-select class="set-language" />
|
|
|
+ <div class="login_main">
|
|
|
+ <div class="login_config">
|
|
|
+ <el-button :icon="config.dark ? 'el-icon-sunny' : 'el-icon-moon'" circle type="info" @click="configDark"></el-button>
|
|
|
+ <el-dropdown trigger="click" placement="bottom-end" @command="configLang">
|
|
|
+ <el-button circle>
|
|
|
+ <svg
|
|
|
+ xmlns="http://www.w3.org/2000/svg"
|
|
|
+ xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
|
+ aria-hidden="true"
|
|
|
+ role="img"
|
|
|
+ width="1em"
|
|
|
+ height="1em"
|
|
|
+ preserveAspectRatio="xMidYMid meet"
|
|
|
+ viewBox="0 0 512 512"
|
|
|
+ >
|
|
|
+ <path
|
|
|
+ d="M478.33 433.6l-90-218a22 22 0 0 0-40.67 0l-90 218a22 22 0 1 0 40.67 16.79L316.66 406h102.67l18.33 44.39A22 22 0 0 0 458 464a22 22 0 0 0 20.32-30.4zM334.83 362L368 281.65L401.17 362z"
|
|
|
+ fill="currentColor"
|
|
|
+ ></path>
|
|
|
+ <path
|
|
|
+ d="M267.84 342.92a22 22 0 0 0-4.89-30.7c-.2-.15-15-11.13-36.49-34.73c39.65-53.68 62.11-114.75 71.27-143.49H330a22 22 0 0 0 0-44H214V70a22 22 0 0 0-44 0v20H54a22 22 0 0 0 0 44h197.25c-9.52 26.95-27.05 69.5-53.79 108.36c-31.41-41.68-43.08-68.65-43.17-68.87a22 22 0 0 0-40.58 17c.58 1.38 14.55 34.23 52.86 83.93c.92 1.19 1.83 2.35 2.74 3.51c-39.24 44.35-77.74 71.86-93.85 80.74a22 22 0 1 0 21.07 38.63c2.16-1.18 48.6-26.89 101.63-85.59c22.52 24.08 38 35.44 38.93 36.1a22 22 0 0 0 30.75-4.9z"
|
|
|
+ fill="currentColor"
|
|
|
+ ></path>
|
|
|
+ </svg>
|
|
|
+ </el-button>
|
|
|
+ <template #dropdown>
|
|
|
+ <el-dropdown-menu>
|
|
|
+ <el-dropdown-item v-for="item in lang" :key="item.value" :command="item" :class="{ selected: config.lang == item.value }">{{
|
|
|
+ item.name
|
|
|
+ }}</el-dropdown-item>
|
|
|
+ </el-dropdown-menu>
|
|
|
+ </template>
|
|
|
+ </el-dropdown>
|
|
|
+ </div>
|
|
|
+ <div class="login-form">
|
|
|
+ <div class="login-header">
|
|
|
+ <div class="logo">
|
|
|
+ <img :alt="$CONFIG.APP_NAME" src="/logo.png" />
|
|
|
+ <label>{{ $CONFIG.APP_NAME }}</label>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
-
|
|
|
- <el-form-item prop="username">
|
|
|
- <el-input
|
|
|
- ref="username"
|
|
|
- v-model="loginForm.username"
|
|
|
- class="login-input"
|
|
|
- :placeholder="$t('login.username')"
|
|
|
- name="username"
|
|
|
- type="text"
|
|
|
- tabindex="1"
|
|
|
- auto-complete="on"
|
|
|
- >
|
|
|
- <template #prefix>
|
|
|
- <span class="svg-container">
|
|
|
- <svg-icon icon-class="user" />
|
|
|
- </span>
|
|
|
- </template>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
-
|
|
|
- <el-form-item prop="password">
|
|
|
- <el-input
|
|
|
- ref="passwordRef"
|
|
|
- v-model="loginForm.password"
|
|
|
- class="login-input"
|
|
|
- type="password"
|
|
|
- :placeholder="$t('login.password')"
|
|
|
- name="password"
|
|
|
- tabindex="2"
|
|
|
- auto-complete="on"
|
|
|
- :show-password="true"
|
|
|
- @keyup.enter="handleLogin"
|
|
|
- >
|
|
|
- <template #prefix>
|
|
|
- <span class="svg-container">
|
|
|
- <svg-icon icon-class="password" />
|
|
|
- </span>
|
|
|
- </template>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
-
|
|
|
- <el-button size="default" :loading="loading" type="primary" style="width: 100%; margin-bottom: 30px" @click.prevent="handleLogin"
|
|
|
- >{{ $t('login.login') }}
|
|
|
- </el-button>
|
|
|
- </el-form>
|
|
|
+ <el-tabs>
|
|
|
+ <el-tab-pane :label="$t('login.accountLogin')" lazy>
|
|
|
+ <password-form></password-form>
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane :label="$t('login.mobileLogin')" lazy>
|
|
|
+ <phone-form></phone-form>
|
|
|
+ </el-tab-pane>
|
|
|
+ </el-tabs>
|
|
|
+ <template v-if="$CONFIG.MY_SHOW_LOGIN_OAUTH">
|
|
|
+ <el-divider>{{ $t('login.signInOther') }}</el-divider>
|
|
|
+ <div class="login-oauth">
|
|
|
+ <el-button type="success" icon="sc-icon-wechat" circle @click="wechatLogin"></el-button>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <el-dialog v-model="showWechatLogin" :title="$t('login.wechatLoginTitle')" :width="400" destroy-on-close>
|
|
|
+ <div class="qrCodeLogin">
|
|
|
+ <!-- <sc-qr-code class="qrCode" :text="WechatLoginCode" :size="200"></sc-qr-code> -->
|
|
|
+ <p class="msg">{{ $tc('login.wechatLoginMsg', 1) }}<br />{{ $tc('login.wechatLoginMsg', 2) }}</p>
|
|
|
+ <div v-if="isWechatLoginResult" class="qrCodeLogin-result">
|
|
|
+ <el-result icon="success" :title="$tc('login.wechatLoginResult', 1)" :sub-title="$tc('login.wechatLoginResult', 2)"></el-result>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
</template>
|
|
|
|
|
|
-<script setup lang="ts">
|
|
|
-import { onMounted, reactive, ref, toRefs, watch, nextTick } from 'vue'
|
|
|
-import ServerLogin from './components/LoginMainSvg.vue'
|
|
|
-// 组件依赖
|
|
|
-import LangSelect from '@/layout/components/Header/components/Language.vue'
|
|
|
+<script>
|
|
|
+import passwordForm from './components/passwordForm'
|
|
|
+import phoneForm from './components/phoneForm'
|
|
|
|
|
|
-const title = import.meta.env.VITE_APP_TITLE
|
|
|
-// 状态管理依赖
|
|
|
-import useStore from '@/store'
|
|
|
-// API依赖
|
|
|
-// import { getGeetConfig } from '@/api/login'
|
|
|
-import { useRoute } from 'vue-router'
|
|
|
-
|
|
|
-const { user } = useStore()
|
|
|
-const route = useRoute()
|
|
|
-
|
|
|
-const loginFormRef = ref(/*ElForm*/)
|
|
|
-const passwordRef = ref(/*ElInput*/)
|
|
|
-
|
|
|
-const state = reactive({
|
|
|
- loginForm: {
|
|
|
- username: 'admin',
|
|
|
- password: '100607'
|
|
|
+export default {
|
|
|
+ components: {
|
|
|
+ passwordForm,
|
|
|
+ phoneForm
|
|
|
},
|
|
|
- loginRules: {
|
|
|
- username: [{ required: true, message: '用户名不能为空', trigger: 'blur' }],
|
|
|
- password: [{ required: true, message: '密码不能为空', trigger: 'blur' }]
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ config: {
|
|
|
+ lang: this.$TOOL.data.get('APP_LANG') || this.$CONFIG.LANG,
|
|
|
+ dark: this.$TOOL.data.get('APP_DARK') || false
|
|
|
+ },
|
|
|
+ lang: [
|
|
|
+ {
|
|
|
+ name: '简体中文',
|
|
|
+ value: 'zh-cn'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'English',
|
|
|
+ value: 'en'
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ WechatLoginCode: '',
|
|
|
+ showWechatLogin: false,
|
|
|
+ isWechatLoginResult: false
|
|
|
+ }
|
|
|
},
|
|
|
- loading: false
|
|
|
-})
|
|
|
-
|
|
|
-const { loginForm, loginRules, loading } = toRefs(state)
|
|
|
-
|
|
|
-function handleLogin() {
|
|
|
- loginFormRef.value.validate((valid: boolean) => {
|
|
|
- if (valid) {
|
|
|
- state.loading = true
|
|
|
- user.login(state.loginForm).finally(() => {
|
|
|
- state.loading = false
|
|
|
- })
|
|
|
+ watch: {
|
|
|
+ // 先不考虑 暗黑模式
|
|
|
+ // 'config.dark'(val) {
|
|
|
+ // if (val) {
|
|
|
+ // document.documentElement.classList.add('dark')
|
|
|
+ // this.$TOOL.data.set('APP_DARK', val)
|
|
|
+ // } else {
|
|
|
+ // document.documentElement.classList.remove('dark')
|
|
|
+ // this.$TOOL.data.remove('APP_DARK')
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ 'config.lang'(val) {
|
|
|
+ this.$i18n.locale = val
|
|
|
+ this.$TOOL.data.set('APP_LANG', val)
|
|
|
}
|
|
|
- })
|
|
|
-}
|
|
|
-
|
|
|
-watch(
|
|
|
- route,
|
|
|
- () => {
|
|
|
- const query = route.query
|
|
|
- user.$patch({
|
|
|
- loginQuery: query
|
|
|
- })
|
|
|
},
|
|
|
- {
|
|
|
- immediate: true
|
|
|
+ created: function () {
|
|
|
+ this.$TOOL.cookie.remove('TOKEN')
|
|
|
+ this.$TOOL.data.remove('USER_INFO')
|
|
|
+ this.$TOOL.data.remove('MENU')
|
|
|
+ this.$TOOL.data.remove('PERMISSIONS')
|
|
|
+ this.$TOOL.data.remove('DASHBOARDGRID')
|
|
|
+ this.$TOOL.data.remove('grid')
|
|
|
+ this.$store.commit('clearViewTags')
|
|
|
+ this.$store.commit('clearKeepLive')
|
|
|
+ this.$store.commit('clearIframeList')
|
|
|
+ console.log('%c SCUI %c Gitee: https://gitee.com/lolicode/scui', 'background:#666;color:#fff;border-radius:3px;', '')
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ configDark() {
|
|
|
+ this.config.dark = this.config.dark ? false : true
|
|
|
+ },
|
|
|
+ configLang(command) {
|
|
|
+ this.config.lang = command.value
|
|
|
+ },
|
|
|
+ wechatLogin() {
|
|
|
+ this.showWechatLogin = true
|
|
|
+ this.WechatLoginCode = 'SCUI-823677237287236-' + new Date().getTime()
|
|
|
+ this.isWechatLoginResult = false
|
|
|
+ setTimeout(() => {
|
|
|
+ this.isWechatLoginResult = true
|
|
|
+ }, 3000)
|
|
|
+ }
|
|
|
}
|
|
|
-)
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
-<style lang="scss" scoped>
|
|
|
-@import '@/styles/mixins.scss';
|
|
|
-//$light_gray: var(--el-input-icon-color);
|
|
|
-//$light_gray: #fff;
|
|
|
-$light_gray: var(--el-color-white);
|
|
|
-.login-container {
|
|
|
- min-height: 100%;
|
|
|
+<style scoped>
|
|
|
+.login_bg {
|
|
|
width: 100%;
|
|
|
- display: flex;
|
|
|
height: 100%;
|
|
|
- overflow: hidden;
|
|
|
- .login-left {
|
|
|
- flex: 1;
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- background: var(--el-color-primary-light-5);
|
|
|
- .header {
|
|
|
- margin-top: 80px;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- height: 78px;
|
|
|
- padding: 0 20px;
|
|
|
- color: #fff;
|
|
|
- font-size: 22px;
|
|
|
- @include hover-bg-opacity(0, #f00, 0.5);
|
|
|
- &::before {
|
|
|
- //background-color: var(--el-color-primary) !important;
|
|
|
- background: linear-gradient(270deg, var(--el-color-primary-light-5), var(--el-color-primary-light-7));
|
|
|
- }
|
|
|
- .logo-img {
|
|
|
- width: 50px;
|
|
|
- margin-right: 10px;
|
|
|
- }
|
|
|
- }
|
|
|
- .login-left_svg {
|
|
|
- margin: 10% auto;
|
|
|
- max-height: 500px;
|
|
|
- }
|
|
|
- }
|
|
|
- .login-right {
|
|
|
- width: 660px;
|
|
|
- max-width: 100%;
|
|
|
- background: linear-gradient(145deg, var(--el-color-primary-light-5), var(--el-color-white));
|
|
|
- }
|
|
|
- .login-form {
|
|
|
- position: relative;
|
|
|
- width: 360px;
|
|
|
- max-width: 100%;
|
|
|
- padding: 12px 24px;
|
|
|
- margin: 0 auto;
|
|
|
- overflow: hidden;
|
|
|
- top: 30%;
|
|
|
- //left: 50%;
|
|
|
- //transform: translate(-50%, -50%);
|
|
|
- :deep(.el-form-item) {
|
|
|
- border: 1px solid rgba(255, 255, 255, 0.1);
|
|
|
- background: rgba(0, 0, 0, 0.1);
|
|
|
- border-radius: 5px;
|
|
|
- color: #454545;
|
|
|
- .el-input {
|
|
|
- height: 47px;
|
|
|
- .el-input__wrapper {
|
|
|
- padding: 0;
|
|
|
- background: transparent;
|
|
|
- box-shadow: none;
|
|
|
- .el-input__inner {
|
|
|
- background: transparent;
|
|
|
- border: 0;
|
|
|
- -webkit-appearance: none;
|
|
|
- border-radius: 0;
|
|
|
- padding: 12px 8px;
|
|
|
- //padding: 12px 0;
|
|
|
- //padding-right: 8px;
|
|
|
- color: $light_gray;
|
|
|
- height: 47px;
|
|
|
- caret-color: $light_gray;
|
|
|
- &:-webkit-autofill {
|
|
|
- box-shadow: 0 0 0px 1000px var(--el-color-primary-light-5) inset !important;
|
|
|
- -webkit-text-fill-color: $light_gray !important;
|
|
|
- }
|
|
|
- }
|
|
|
- .el-input__prefix-inner > :last-child {
|
|
|
- margin-right: 0;
|
|
|
- }
|
|
|
- /*.el-input__suffix-inner > :first-child {
|
|
|
- margin-left: 0;
|
|
|
- }*/
|
|
|
- }
|
|
|
- }
|
|
|
- .el-input__inner {
|
|
|
- &:hover {
|
|
|
- border-color: var(--el-input-hover-border, var(--el-border-color-hover));
|
|
|
- box-shadow: none;
|
|
|
- }
|
|
|
-
|
|
|
- box-shadow: none;
|
|
|
- }
|
|
|
- }
|
|
|
- .login-input {
|
|
|
- //--el-input-icon-color: #fff;
|
|
|
- --el-input-placeholder-color: #fafafa;
|
|
|
- :deep(.el-input__suffix) {
|
|
|
- padding-right: 10px;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .tips {
|
|
|
- font-size: 14px;
|
|
|
- color: #fff;
|
|
|
- margin-bottom: 10px;
|
|
|
-
|
|
|
- span {
|
|
|
- &:first-of-type {
|
|
|
- margin-right: 16px;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ background: #fff;
|
|
|
+ display: flex;
|
|
|
+}
|
|
|
+.login_adv {
|
|
|
+ width: 33.33333%;
|
|
|
+ background-color: #555;
|
|
|
+ background-size: cover;
|
|
|
+ background-position: center center;
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ position: relative;
|
|
|
+}
|
|
|
+.login_adv__title {
|
|
|
+ color: #fff;
|
|
|
+ padding: 40px;
|
|
|
+ position: absolute;
|
|
|
+ top: 0px;
|
|
|
+ left: 0px;
|
|
|
+ right: 0px;
|
|
|
+ z-index: 2;
|
|
|
+}
|
|
|
+.login_adv__title h2 {
|
|
|
+ font-size: 40px;
|
|
|
+}
|
|
|
+.login_adv__title h4 {
|
|
|
+ font-size: 18px;
|
|
|
+ margin-top: 10px;
|
|
|
+ font-weight: normal;
|
|
|
+}
|
|
|
+.login_adv__title p {
|
|
|
+ font-size: 14px;
|
|
|
+ margin-top: 10px;
|
|
|
+ line-height: 1.8;
|
|
|
+ color: rgba(255, 255, 255, 0.6);
|
|
|
+}
|
|
|
+.login_adv__title div {
|
|
|
+ margin-top: 10px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+}
|
|
|
+.login_adv__title div span {
|
|
|
+ margin-right: 15px;
|
|
|
+}
|
|
|
+.login_adv__title div i {
|
|
|
+ font-size: 40px;
|
|
|
+}
|
|
|
+.login_adv__title div i.add {
|
|
|
+ font-size: 20px;
|
|
|
+ color: rgba(255, 255, 255, 0.6);
|
|
|
+}
|
|
|
+.login_adv__bottom {
|
|
|
+ position: absolute;
|
|
|
+ left: 0px;
|
|
|
+ right: 0px;
|
|
|
+ bottom: 0px;
|
|
|
+ color: #fff;
|
|
|
+ padding: 40px;
|
|
|
+ background-image: linear-gradient(transparent, #000);
|
|
|
+ z-index: 3;
|
|
|
+}
|
|
|
+.login_adv__mask {
|
|
|
+ position: absolute;
|
|
|
+ top: 0px;
|
|
|
+ left: 0px;
|
|
|
+ right: 0px;
|
|
|
+ bottom: 0px;
|
|
|
+ z-index: 1;
|
|
|
+}
|
|
|
|
|
|
- .svg-container {
|
|
|
- padding-left: 10px;
|
|
|
- color: $light_gray;
|
|
|
- display: inline-block;
|
|
|
- }
|
|
|
+.login_main {
|
|
|
+ flex: 1;
|
|
|
+ overflow: auto;
|
|
|
+ display: flex;
|
|
|
+}
|
|
|
+.login-form {
|
|
|
+ width: 400px;
|
|
|
+ margin: auto;
|
|
|
+ padding: 20px 0;
|
|
|
+}
|
|
|
+.login-header {
|
|
|
+ margin-bottom: 40px;
|
|
|
+}
|
|
|
+.login-header .logo {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+}
|
|
|
+.login-header .logo img {
|
|
|
+ width: 40px;
|
|
|
+ height: 40px;
|
|
|
+ vertical-align: bottom;
|
|
|
+ margin-right: 10px;
|
|
|
+}
|
|
|
+.login-header .logo label {
|
|
|
+ font-size: 26px;
|
|
|
+ font-weight: bold;
|
|
|
+}
|
|
|
+.login-oauth {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-around;
|
|
|
+}
|
|
|
+.login-form .el-divider {
|
|
|
+ margin-top: 40px;
|
|
|
+}
|
|
|
|
|
|
- .title-container {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: space-between;
|
|
|
- margin-bottom: 36px;
|
|
|
- .title {
|
|
|
- font-size: 24px;
|
|
|
- color: $light_gray;
|
|
|
- text-align: center;
|
|
|
- font-weight: bold;
|
|
|
- }
|
|
|
- .set-language {
|
|
|
- color: $light_gray;
|
|
|
- font-size: 18px;
|
|
|
- cursor: pointer;
|
|
|
- }
|
|
|
- }
|
|
|
+.login-form {
|
|
|
+}
|
|
|
+.login-form:deep(.el-tabs) .el-tabs__header {
|
|
|
+ margin-bottom: 25px;
|
|
|
+}
|
|
|
+.login-form:deep(.el-tabs) .el-tabs__header .el-tabs__item {
|
|
|
+ font-size: 14px;
|
|
|
+}
|
|
|
|
|
|
- /*.captcha {
|
|
|
- width: 100%;
|
|
|
- &_placeholder {
|
|
|
- height: 42px;
|
|
|
- width: 100%;
|
|
|
- text-align: center;
|
|
|
- border-radius: 2px;
|
|
|
- background-color: #f3f3f3;
|
|
|
- color: #bbbbbb;
|
|
|
- font-size: 14px;
|
|
|
- letter-spacing: 0.1px;
|
|
|
- line-height: 42px;
|
|
|
- }
|
|
|
- &_wait {
|
|
|
- height: 42px;
|
|
|
- width: 100%;
|
|
|
- text-align: center;
|
|
|
- border-radius: 2px;
|
|
|
- background-color: #f3f3f3;
|
|
|
- }
|
|
|
- }*/
|
|
|
+.login-form:deep(.login-forgot) {
|
|
|
+ text-align: right;
|
|
|
+}
|
|
|
+.login-form:deep(.login-forgot) a {
|
|
|
+ color: var(--el-color-primary);
|
|
|
+}
|
|
|
+.login-form:deep(.login-forgot) a:hover {
|
|
|
+ color: var(--el-color-primary-light-3);
|
|
|
+}
|
|
|
+.login-form:deep(.login-reg) {
|
|
|
+ font-size: 14px;
|
|
|
+ color: var(--el-text-color-primary);
|
|
|
+}
|
|
|
+.login-form:deep(.login-reg) a {
|
|
|
+ color: var(--el-color-primary);
|
|
|
+}
|
|
|
+.login-form:deep(.login-reg) a:hover {
|
|
|
+ color: var(--el-color-primary-light-3);
|
|
|
+}
|
|
|
|
|
|
- .loading {
|
|
|
- margin: auto;
|
|
|
- width: 70px;
|
|
|
- height: 20px;
|
|
|
- &-dot {
|
|
|
- &:nth-child(1) {
|
|
|
- animation-delay: 0s;
|
|
|
- }
|
|
|
- &:nth-child(2) {
|
|
|
- animation-delay: 0.1s;
|
|
|
- }
|
|
|
+.login_config {
|
|
|
+ position: absolute;
|
|
|
+ top: 20px;
|
|
|
+ right: 20px;
|
|
|
+}
|
|
|
|
|
|
- &:nth-child(3) {
|
|
|
- animation-delay: 0.2s;
|
|
|
- }
|
|
|
+.login-form:deep(.login-msg-yzm) {
|
|
|
+ display: flex;
|
|
|
+ width: 100%;
|
|
|
+}
|
|
|
+.login-form:deep(.login-msg-yzm) .el-button {
|
|
|
+ margin-left: 10px;
|
|
|
+ --el-button-size: 42px;
|
|
|
+}
|
|
|
|
|
|
- &:nth-child(4) {
|
|
|
- animation-delay: 0.3s;
|
|
|
- }
|
|
|
- float: left;
|
|
|
- width: 8px;
|
|
|
- height: 8px;
|
|
|
- margin: 18px 4px;
|
|
|
- background: #ccc;
|
|
|
- border-radius: 50%;
|
|
|
- opacity: 0;
|
|
|
- box-shadow: 0 0 2px black;
|
|
|
- animation: loadingFade 1s infinite;
|
|
|
- }
|
|
|
- }
|
|
|
+.qrCodeLogin {
|
|
|
+ text-align: center;
|
|
|
+ position: relative;
|
|
|
+ padding: 20px 0;
|
|
|
+}
|
|
|
+.qrCodeLogin img.qrCode {
|
|
|
+ background: #fff;
|
|
|
+ padding: 20px;
|
|
|
+ border-radius: 10px;
|
|
|
+}
|
|
|
+.qrCodeLogin p.msg {
|
|
|
+ margin-top: 15px;
|
|
|
+}
|
|
|
+.qrCodeLogin .qrCodeLogin-result {
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ bottom: 0;
|
|
|
+ text-align: center;
|
|
|
+ background: var(--el-mask-color);
|
|
|
+}
|
|
|
|
|
|
- @keyframes loadingFade {
|
|
|
- 0% {
|
|
|
- opacity: 0;
|
|
|
- }
|
|
|
- 50% {
|
|
|
- opacity: 0.8;
|
|
|
- }
|
|
|
- 100% {
|
|
|
- opacity: 0;
|
|
|
- }
|
|
|
+@media (max-width: 1200px) {
|
|
|
+ .login-form {
|
|
|
+ width: 340px;
|
|
|
}
|
|
|
}
|
|
|
-@media screen and (max-width: 1200px) and (min-width: 576px) {
|
|
|
- .login-container .login-left .login-left_svg {
|
|
|
- position: absolute;
|
|
|
- top: 76% !important;
|
|
|
- left: 0 !important;
|
|
|
- height: 24% !important;
|
|
|
- margin: 0;
|
|
|
+@media (max-width: 1000px) {
|
|
|
+ .login_main {
|
|
|
+ display: block;
|
|
|
}
|
|
|
-
|
|
|
- .login-container .login-right {
|
|
|
- position: absolute;
|
|
|
- top: 50%;
|
|
|
- left: 50%;
|
|
|
- transform: translate(-50%, -50%);
|
|
|
- padding-top: 20px;
|
|
|
- background: linear-gradient(145deg, var(--el-color-primary-light-5), var(--el-color-primary-light-7));
|
|
|
+ .login_main .login_config {
|
|
|
+ position: static;
|
|
|
+ padding: 20px 20px 0 20px;
|
|
|
+ text-align: right;
|
|
|
}
|
|
|
-}
|
|
|
-
|
|
|
-@media screen and (max-width: 576px) {
|
|
|
- .login-container .login-left {
|
|
|
- display: none;
|
|
|
- /*.header {
|
|
|
- display: none;
|
|
|
- }*/
|
|
|
+ .login-form {
|
|
|
+ width: 100%;
|
|
|
+ padding: 20px 40px;
|
|
|
}
|
|
|
- /*.login-container .login-left .login-left_svg {
|
|
|
- position: absolute;
|
|
|
- top: 82% !important;
|
|
|
- left: 0 !important;
|
|
|
- height: 18% !important;
|
|
|
- margin: 0;
|
|
|
- }*/
|
|
|
- .login-container .title-container .title {
|
|
|
- font-size: 20px;
|
|
|
+ .login_adv {
|
|
|
+ display: none;
|
|
|
}
|
|
|
}
|
|
|
</style>
|