更改登录页UI
21231
package-lock.json
generated
Normal file
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 1.4 KiB |
BIN
src/assets/loginmini/icon/jeecg_bg.jpg
Normal file
After Width: | Height: | Size: 378 KiB |
BIN
src/assets/loginmini/icon/login-btn.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
src/assets/loginmini/icon/login-btnHover.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
src/assets/loginmini/icon/login-input-bg.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 28 KiB |
|
@ -132,8 +132,7 @@ a {
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.clearfix {
|
.clearfix {}
|
||||||
}
|
|
||||||
|
|
||||||
.divHeight {
|
.divHeight {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -215,6 +214,7 @@ a {
|
||||||
-webkit-box-align: center;
|
-webkit-box-align: center;
|
||||||
-webkit-align-items: center;
|
-webkit-align-items: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -358,8 +358,8 @@ a {
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-background-img {
|
.login-background-img {
|
||||||
background-image: url(../icon/jeecg_bg.png);
|
background-image: url(../icon/jeecg_bg.jpg);
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
background-position: top center;
|
background-position: top center;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
|
@ -4,14 +4,13 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.aui-container {
|
.aui-container {
|
||||||
max-width: 1000px;
|
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
box-shadow: 0 4px 8px 1px rgba(0, 0, 0, 0.2);
|
// box-shadow: 0 4px 8px 1px rgba(0, 0, 0, 0.2);
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
width: 92%;
|
width: 541px;
|
||||||
height: auto;
|
height: 625px;
|
||||||
-webkit-transform: translateX(-50%) translateY(-50%);
|
-webkit-transform: translateX(-50%) translateY(-50%);
|
||||||
-moz-transform: translateX(-50%) translateY(-50%);
|
-moz-transform: translateX(-50%) translateY(-50%);
|
||||||
-ms-transform: translateX(-50%) translateY(-50%);
|
-ms-transform: translateX(-50%) translateY(-50%);
|
||||||
|
@ -21,7 +20,7 @@
|
||||||
|
|
||||||
.aui-form {
|
.aui-form {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background: #eee;
|
background: transparent;
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
display: -moz-box;
|
display: -moz-box;
|
||||||
display: -ms-flexbox;
|
display: -ms-flexbox;
|
||||||
|
@ -45,12 +44,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.aui-formBox {
|
.aui-formBox {
|
||||||
flex-basis: 40%;
|
flex-basis: 100%;
|
||||||
-webkit-flex-basis: 40%;
|
-webkit-flex-basis: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 30px 20px;
|
padding: 0px;
|
||||||
background: #fff;
|
background: transparent;
|
||||||
box-shadow: 2px 9px 49px -17px rgba(0, 0, 0, 0.1);
|
// box-shadow: 2px 9px 49px -17px rgba(0, 0, 0, 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.aui-logo {
|
.aui-logo {
|
||||||
|
@ -231,7 +230,7 @@
|
||||||
|
|
||||||
.aui-form-nav {
|
.aui-form-nav {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding-bottom: 20px;
|
padding-bottom: 43px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.aui-form-nav .aui-flex-box {
|
.aui-form-nav .aui-flex-box {
|
||||||
|
@ -323,31 +322,87 @@
|
||||||
padding: 50px 40px 55px 40px;
|
padding: 50px 40px 55px 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.aui-inputLabel {
|
||||||
|
position: absolute;
|
||||||
|
top: 28px;
|
||||||
|
left: 0;
|
||||||
|
width: 68px;
|
||||||
|
font-family: AdobeHeitiStd-Regular;
|
||||||
|
font-size: 22px;
|
||||||
|
font-weight: normal;
|
||||||
|
font-stretch: normal;
|
||||||
|
line-height: 3px;
|
||||||
|
letter-spacing: 0px;
|
||||||
|
color: #bafffc;
|
||||||
|
}
|
||||||
|
|
||||||
|
.aui-inputContent {
|
||||||
|
position: relative;
|
||||||
|
margin: 0 10px;
|
||||||
|
height: 60px;
|
||||||
|
background-image: url(../icon/login-input-bg.png);
|
||||||
|
background-size: 100% 100%;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
.aui-codeContent {
|
||||||
|
position: relative;
|
||||||
|
margin: 0 10px;
|
||||||
|
height: 60px;
|
||||||
|
background-image: url(../icon/login-input-bg.png);
|
||||||
|
background-size: 72% 100%;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
.aui-code-img {
|
||||||
|
width: 100% !important;
|
||||||
|
height: 60px !important;
|
||||||
|
display: block;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logoTitle {
|
||||||
|
width: 100%;
|
||||||
|
height: 36px;
|
||||||
|
font-family: MicrosoftYaHei-Bold;
|
||||||
|
font-size: 36px;
|
||||||
|
font-weight: normal;
|
||||||
|
font-stretch: normal;
|
||||||
|
line-height: 43px;
|
||||||
|
letter-spacing: 11px;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
.aui-inputClear {
|
.aui-inputClear {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-bottom: 1px solid #cccccc;
|
border-bottom: 0px solid #cccccc;
|
||||||
position: relative;
|
position: relative;
|
||||||
padding-left: 20px;
|
padding-left: 68px;
|
||||||
background: #fff;
|
background: transparent;
|
||||||
margin-bottom: 8px;
|
margin-bottom: 8px;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.aui-inputClear .icon {
|
.aui-inputClear .icon {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 10px;
|
top: 20px;
|
||||||
left: 0;
|
left: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.aui-inputClear input {
|
.aui-inputClear input {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 10px;
|
height: 60px;
|
||||||
|
padding: 10px 0 10px 60px;
|
||||||
border: none;
|
border: none;
|
||||||
color: #333333;
|
color: #ffffff;
|
||||||
font-size: 14px;
|
font-size: 16px;
|
||||||
background: none;
|
background: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.code-input {
|
||||||
|
width: 60% !important;
|
||||||
|
}
|
||||||
|
|
||||||
.aui-code {
|
.aui-code {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 8px;
|
right: 8px;
|
||||||
|
@ -356,29 +411,31 @@
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon-code {
|
.icon-user {
|
||||||
|
height: 24px !important;
|
||||||
background-image: url(../icon/icon-user.png);
|
background-image: url(../icon/icon-user.png);
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon-password {
|
.icon-password {
|
||||||
|
height: 24px !important;
|
||||||
background-image: url(../icon/icon-password.png);
|
background-image: url(../icon/icon-password.png);
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon-code {
|
.icon-code {
|
||||||
|
height: 24px !important;
|
||||||
background-image: url(../icon/icon-code.png);
|
background-image: url(../icon/icon-code.png);
|
||||||
}
|
}
|
||||||
|
|
||||||
.aui-inputClear:focus {
|
.aui-inputClear:focus {
|
||||||
border-bottom: 1px solid #1b90ff;
|
border-bottom: 0px solid #1b90ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.aui-inputClear:hover {
|
.aui-inputClear:hover {
|
||||||
border-bottom: 1px solid #1b90ff;
|
border-bottom: 0px solid #1b90ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.aui-choice {
|
.aui-choice {
|
||||||
position: relative;
|
position: relative;
|
||||||
font-size: 12px;
|
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
display: -webkit-flex;
|
display: -webkit-flex;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -386,12 +443,18 @@
|
||||||
-webkit-align-items: center;
|
-webkit-align-items: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
color: #040404;
|
left: 78px;
|
||||||
|
font-family: AdobeHeitiStd-Regular;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: normal;
|
||||||
|
font-stretch: normal;
|
||||||
|
letter-spacing: 0px;
|
||||||
|
color: #6ebad0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.aui-choice input {
|
.aui-choice input {
|
||||||
width: 14px;
|
width: 16px;
|
||||||
height: 14px;
|
height: 16px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -406,6 +469,7 @@
|
||||||
|
|
||||||
.aui-formButton {
|
.aui-formButton {
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
|
padding-left: 78px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.aui-formButton a {
|
.aui-formButton a {
|
||||||
|
@ -609,4 +673,4 @@
|
||||||
.aui-logo {
|
.aui-logo {
|
||||||
top: 3%;
|
top: 3%;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -75,7 +75,7 @@ export default {
|
||||||
|
|
||||||
loginButton: '登录',
|
loginButton: '登录',
|
||||||
registerButton: '注册',
|
registerButton: '注册',
|
||||||
rememberMe: '记住我',
|
rememberMe: '记住密码',
|
||||||
forgetPassword: '忘记密码?',
|
forgetPassword: '忘记密码?',
|
||||||
otherSignIn: '其他登录方式',
|
otherSignIn: '其他登录方式',
|
||||||
|
|
||||||
|
|
|
@ -1,139 +1,77 @@
|
||||||
<template>
|
<template>
|
||||||
<div :class="prefixCls" class="login-background-img">
|
<div :class="prefixCls" class="login-background-img">
|
||||||
<AppLocalePicker class="absolute top-4 right-4 enter-x xl:text-gray-600" :showText="false"/>
|
<!-- <AppLocalePicker class="absolute top-4 right-4 enter-x xl:text-gray-600" :showText="false" /> -->
|
||||||
<AppDarkModeToggle class="absolute top-3 right-7 enter-x" />
|
<!-- <AppDarkModeToggle class="absolute top-3 right-7 enter-x" /> -->
|
||||||
<div class="aui-logo" v-if="!getIsMobile">
|
|
||||||
<div>
|
<div class="aui-content">
|
||||||
<h3>
|
<div class="aui-container">
|
||||||
<img :src="logoImg" alt="jeecg" />
|
<div class="aui-form">
|
||||||
</h3>
|
<div class="aui-formBox">
|
||||||
</div>
|
<div class="aui-formWell">
|
||||||
</div>
|
|
||||||
<div v-else class="aui-phone-logo">
|
<div style="width: 100%;margin-bottom: 25px;">
|
||||||
<img :src="logoImg" alt="jeecg" />
|
<img :src="logoImg" style="margin: 0 auto;" />
|
||||||
</div>
|
|
||||||
<div v-show="type === 'login'">
|
|
||||||
<div class="aui-content">
|
|
||||||
<div class="aui-container">
|
|
||||||
<div class="aui-form">
|
|
||||||
<div class="aui-image">
|
|
||||||
<div class="aui-image-text">
|
|
||||||
<img :src="adTextImg" />
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="aui-flex aui-form-nav investment_title">
|
||||||
<div class="aui-formBox">
|
<div class="logoTitle">放射性源项分析系统</div>
|
||||||
<div class="aui-formWell">
|
</div>
|
||||||
<div class="aui-flex aui-form-nav investment_title">
|
<div class="aui-form-box" style="height: 252px">
|
||||||
<div class="aui-flex-box" :class="activeIndex === 'accountLogin' ? 'activeNav on' : ''" @click="loginClick('accountLogin')"
|
<a-form ref="loginRef" :model="formData" @keyup.enter.native="loginHandleClick">
|
||||||
>{{ t('sys.login.signInFormTitle') }}
|
<div class="aui-account">
|
||||||
</div>
|
<div class="aui-inputClear">
|
||||||
<div class="aui-flex-box" :class="activeIndex === 'phoneLogin' ? 'activeNav on' : ''" @click="loginClick('phoneLogin')"
|
<div class="aui-inputLabel">用户名</div>
|
||||||
>{{ t('sys.login.mobileSignInFormTitle') }}
|
<div class="aui-inputContent">
|
||||||
</div>
|
<i class="icon icon-user"></i>
|
||||||
</div>
|
|
||||||
<div class="aui-form-box" style="height: 180px">
|
|
||||||
<a-form ref="loginRef" :model="formData" v-if="activeIndex === 'accountLogin'" @keyup.enter.native="loginHandleClick">
|
|
||||||
<div class="aui-account">
|
|
||||||
<div class="aui-inputClear">
|
|
||||||
<i class="icon icon-code"></i>
|
|
||||||
<a-form-item>
|
<a-form-item>
|
||||||
<a-input class="fix-auto-fill" :placeholder="t('sys.login.userName')" v-model:value="formData.username" />
|
<a-input class="fix-auto-fill" v-model:value="formData.username" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</div>
|
</div>
|
||||||
<div class="aui-inputClear">
|
</div>
|
||||||
|
<div class="aui-inputClear">
|
||||||
|
<div class="aui-inputLabel" style="text-align: right;">密码</div>
|
||||||
|
<div class="aui-inputContent">
|
||||||
<i class="icon icon-password"></i>
|
<i class="icon icon-password"></i>
|
||||||
<a-form-item>
|
<a-form-item>
|
||||||
<a-input class="fix-auto-fill" type="password" :placeholder="t('sys.login.password')" v-model:value="formData.password" />
|
<a-input class="fix-auto-fill" type="password" v-model:value="formData.password" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</div>
|
</div>
|
||||||
<div class="aui-inputClear">
|
</div>
|
||||||
|
<div class="aui-inputClear">
|
||||||
|
<div class="aui-inputLabel">验证码</div>
|
||||||
|
<div class="aui-codeContent">
|
||||||
<i class="icon icon-code"></i>
|
<i class="icon icon-code"></i>
|
||||||
<a-form-item>
|
<a-form-item>
|
||||||
<a-input class="fix-auto-fill" type="text" :placeholder="t('sys.login.inputCode')" v-model:value="formData.inputCode" />
|
<a-input class="fix-auto-fill code-input" type="text" v-model:value="formData.inputCode" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<div class="aui-code">
|
|
||||||
<img v-if="randCodeData.requestCodeSuccess" :src="randCodeData.randCodeImage" @click="handleChangeCheckCode" />
|
|
||||||
<img v-else style="margin-top: 2px; max-width: initial" :src="codeImg" @click="handleChangeCheckCode" />
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="aui-flex">
|
<div class="aui-code">
|
||||||
<div class="aui-flex-box">
|
<img v-if="randCodeData.requestCodeSuccess" :src="randCodeData.randCodeImage"
|
||||||
<div class="aui-choice">
|
class="aui-code-img" @click="handleChangeCheckCode" />
|
||||||
<a-input class="fix-auto-fill" type="checkbox" v-model:value="rememberMe" />
|
<img v-else style="margin-top: 2px; max-width: initial" :src="codeImg" class="aui-code-img"
|
||||||
<span style="margin-left: 5px">{{ t('sys.login.rememberMe') }}</span>
|
@click="handleChangeCheckCode" />
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="aui-forget">
|
|
||||||
<a @click="forgetHandelClick"> {{ t('sys.login.forgetPassword') }}</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a-form>
|
<div class="aui-flex">
|
||||||
<a-form v-else ref="phoneFormRef" :model="phoneFormData" @keyup.enter.native="loginHandleClick">
|
<div class="aui-flex-box">
|
||||||
<div class="aui-account phone">
|
<div class="aui-choice">
|
||||||
<div class="aui-inputClear phoneClear">
|
<a-input class="fix-auto-fill" type="checkbox" v-model:value="rememberMe" />
|
||||||
<a-input class="fix-auto-fill" :placeholder="t('sys.login.mobile')" v-model:value="phoneFormData.mobile" />
|
<span style="margin-left: 5px">{{ t('sys.login.rememberMe') }}</span>
|
||||||
</div>
|
|
||||||
<div class="aui-inputClear">
|
|
||||||
<a-input class="fix-auto-fill" :maxlength="6" :placeholder="t('sys.login.smsCode')" v-model:value="phoneFormData.smscode" />
|
|
||||||
<div v-if="showInterval" class="aui-code" @click="getLoginCode">
|
|
||||||
<a>{{ t('component.countdown.normalText') }}</a>
|
|
||||||
</div>
|
</div>
|
||||||
<div v-else class="aui-code">
|
</div>
|
||||||
<span class="aui-get-code code-shape">{{ t('component.countdown.sendText', [unref(timeRuning)]) }}</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</a-form>
|
|
||||||
</div>
|
|
||||||
<div class="aui-formButton">
|
|
||||||
<div class="aui-flex">
|
|
||||||
<a-button :loading="loginLoading" class="aui-link-login" type="primary" @click="loginHandleClick">
|
|
||||||
{{ t('sys.login.loginButton') }}</a-button>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="aui-flex">
|
</a-form>
|
||||||
<a class="aui-linek-code aui-flex-box" @click="codeHandleClick">{{ t('sys.login.qrSignInFormTitle') }}</a>
|
</div>
|
||||||
</div>
|
<div class="aui-formButton">
|
||||||
<div class="aui-flex">
|
<a-button :loading="loginLoading" class="aui-link-login" type="primary" @click="loginHandleClick">
|
||||||
<a class="aui-linek-code aui-flex-box" @click="registerHandleClick">{{ t('sys.login.registerButton') }}</a>
|
{{ t('sys.login.loginButton') }}</a-button>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<a-form @keyup.enter.native="loginHandleClick">
|
|
||||||
<div class="aui-flex aui-third-text">
|
|
||||||
<div class="aui-flex-box aui-third-border">
|
|
||||||
<span>{{ t('sys.login.otherSignIn') }}</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="aui-flex" :class="`${prefixCls}-sign-in-way`">
|
|
||||||
<div class="aui-flex-box">
|
|
||||||
<div class="aui-third-login">
|
|
||||||
<a title="github" @click="onThirdLogin('github')"><GithubFilled /></a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="aui-flex-box">
|
|
||||||
<div class="aui-third-login">
|
|
||||||
<a title="企业微信" @click="onThirdLogin('wechat_enterprise')"><icon-font class="item-icon" type="icon-qiyeweixin3" /></a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="aui-flex-box">
|
|
||||||
<div class="aui-third-login">
|
|
||||||
<a title="钉钉" @click="onThirdLogin('dingtalk')"><DingtalkCircleFilled /></a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="aui-flex-box">
|
|
||||||
<div class="aui-third-login">
|
|
||||||
<a title="微信" @click="onThirdLogin('wechat_open')"><WechatFilled /></a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</a-form>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-show="type === 'forgot'" :class="`${prefixCls}-form`">
|
<!-- <div v-show="type === 'forgot'" :class="`${prefixCls}-form`">
|
||||||
<MiniForgotpad ref="forgotRef" @go-back="goBack" @success="handleSuccess" />
|
<MiniForgotpad ref="forgotRef" @go-back="goBack" @success="handleSuccess" />
|
||||||
</div>
|
</div>
|
||||||
<div v-show="type === 'register'" :class="`${prefixCls}-form`">
|
<div v-show="type === 'register'" :class="`${prefixCls}-form`">
|
||||||
|
@ -143,348 +81,366 @@
|
||||||
<MiniCodelogin ref="codeRef" @go-back="goBack" @success="handleSuccess" />
|
<MiniCodelogin ref="codeRef" @go-back="goBack" @success="handleSuccess" />
|
||||||
</div>
|
</div>
|
||||||
<!-- 第三方登录相关弹框 -->
|
<!-- 第三方登录相关弹框 -->
|
||||||
<ThirdModal ref="thirdModalRef"></ThirdModal>
|
<ThirdModal ref="thirdModalRef"></ThirdModal> -->
|
||||||
|
|
||||||
<!-- 图片验证码弹窗 -->
|
<!-- 图片验证码弹窗 -->
|
||||||
<CaptchaModal @register="captchaRegisterModal" @ok="getLoginCode" />
|
<CaptchaModal @register="captchaRegisterModal" @ok="getLoginCode" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup name="login-mini">
|
<script lang="ts" setup name="login-mini">
|
||||||
import { getCaptcha, getCodeInfo } from '/@/api/sys/user';
|
import { getCaptcha, getCodeInfo } from '/@/api/sys/user';
|
||||||
import { computed, onMounted, reactive, ref, toRaw, unref } from 'vue';
|
import { computed, onMounted, reactive, ref, toRaw, unref } from 'vue';
|
||||||
import codeImg from '/@/assets/images/checkcode.png';
|
import codeImg from '/@/assets/images/checkcode.png';
|
||||||
import { Rule } from '/@/components/Form';
|
import { Rule } from '/@/components/Form';
|
||||||
import { useUserStore } from '/@/store/modules/user';
|
import { useUserStore } from '/@/store/modules/user';
|
||||||
import { useMessage } from '/@/hooks/web/useMessage';
|
import { useMessage } from '/@/hooks/web/useMessage';
|
||||||
import { useI18n } from '/@/hooks/web/useI18n';
|
import { useI18n } from '/@/hooks/web/useI18n';
|
||||||
import { SmsEnum } from '/@/views/sys/login/useLogin';
|
import { SmsEnum } from '/@/views/sys/login/useLogin';
|
||||||
import ThirdModal from '/@/views/sys/login/ThirdModal.vue';
|
import ThirdModal from '/@/views/sys/login/ThirdModal.vue';
|
||||||
import MiniForgotpad from './MiniForgotpad.vue';
|
import MiniForgotpad from './MiniForgotpad.vue';
|
||||||
import MiniRegister from './MiniRegister.vue';
|
import MiniRegister from './MiniRegister.vue';
|
||||||
import MiniCodelogin from './MiniCodelogin.vue';
|
import MiniCodelogin from './MiniCodelogin.vue';
|
||||||
import logoImg from '/@/assets/loginmini/icon/jeecg_logo.png';
|
import logoImg from '/@/assets/loginmini/icon/logo.png';
|
||||||
import adTextImg from '/@/assets/loginmini/icon/jeecg_ad_text.png';
|
import adTextImg from '/@/assets/loginmini/icon/jeecg_ad_text.png';
|
||||||
import { AppLocalePicker, AppDarkModeToggle } from '/@/components/Application';
|
import { AppLocalePicker, AppDarkModeToggle } from '/@/components/Application';
|
||||||
import { useLocaleStore } from '/@/store/modules/locale';
|
import { useLocaleStore } from '/@/store/modules/locale';
|
||||||
import { useDesign } from "/@/hooks/web/useDesign";
|
import { useDesign } from "/@/hooks/web/useDesign";
|
||||||
import { useAppInject } from "/@/hooks/web/useAppInject";
|
import { useAppInject } from "/@/hooks/web/useAppInject";
|
||||||
import { GithubFilled, WechatFilled, DingtalkCircleFilled, createFromIconfontCN } from '@ant-design/icons-vue';
|
import { GithubFilled, WechatFilled, DingtalkCircleFilled, createFromIconfontCN } from '@ant-design/icons-vue';
|
||||||
import CaptchaModal from '@/components/jeecg/captcha/CaptchaModal.vue';
|
import CaptchaModal from '@/components/jeecg/captcha/CaptchaModal.vue';
|
||||||
import { useModal } from "@/components/Modal";
|
import { useModal } from "@/components/Modal";
|
||||||
import { ExceptionEnum } from "@/enums/exceptionEnum";
|
import { ExceptionEnum } from "@/enums/exceptionEnum";
|
||||||
|
|
||||||
const IconFont = createFromIconfontCN({
|
const IconFont = createFromIconfontCN({
|
||||||
scriptUrl: '//at.alicdn.com/t/font_2316098_umqusozousr.js',
|
scriptUrl: '//at.alicdn.com/t/font_2316098_umqusozousr.js',
|
||||||
});
|
});
|
||||||
const { prefixCls } = useDesign('mini-login');
|
const { prefixCls } = useDesign('mini-login');
|
||||||
const { notification, createMessage } = useMessage();
|
const { notification, createMessage } = useMessage();
|
||||||
const userStore = useUserStore();
|
const userStore = useUserStore();
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const localeStore = useLocaleStore();
|
const localeStore = useLocaleStore();
|
||||||
const showLocale = localeStore.getShowPicker;
|
const showLocale = localeStore.getShowPicker;
|
||||||
const randCodeData = reactive<any>({
|
const randCodeData = reactive<any>({
|
||||||
randCodeImage: '',
|
randCodeImage: '',
|
||||||
requestCodeSuccess: false,
|
requestCodeSuccess: false,
|
||||||
checkKey: null,
|
checkKey: null,
|
||||||
});
|
});
|
||||||
const rememberMe = ref<string>('0');
|
const rememberMe = ref<string>('0');
|
||||||
//手机号登录还是账号登录
|
//手机号登录还是账号登录
|
||||||
const activeIndex = ref<string>('accountLogin');
|
// const activeIndex = ref<string>('accountLogin');
|
||||||
const type = ref<string>('login');
|
const type = ref<string>('login');
|
||||||
//账号登录表单字段
|
//账号登录表单字段
|
||||||
const formData = reactive<any>({
|
const formData = reactive<any>({
|
||||||
inputCode: '',
|
inputCode: '',
|
||||||
username: 'admin',
|
username: 'admin',
|
||||||
password: '123456',
|
password: '123456',
|
||||||
});
|
});
|
||||||
//手机登录表单字段
|
//手机登录表单字段
|
||||||
const phoneFormData = reactive<any>({
|
const phoneFormData = reactive<any>({
|
||||||
mobile: '',
|
mobile: '',
|
||||||
smscode: '',
|
smscode: '',
|
||||||
});
|
});
|
||||||
const loginRef = ref();
|
const loginRef = ref();
|
||||||
//第三方登录弹窗
|
//第三方登录弹窗
|
||||||
const thirdModalRef = ref();
|
const thirdModalRef = ref();
|
||||||
//扫码登录
|
//扫码登录
|
||||||
const codeRef = ref();
|
const codeRef = ref();
|
||||||
//是否显示获取验证码
|
//是否显示获取验证码
|
||||||
const showInterval = ref<boolean>(true);
|
const showInterval = ref<boolean>(true);
|
||||||
//60s
|
//60s
|
||||||
const timeRuning = ref<number>(60);
|
const timeRuning = ref<number>(60);
|
||||||
//定时器
|
//定时器
|
||||||
const timer = ref<any>(null);
|
const timer = ref<any>(null);
|
||||||
//忘记密码
|
//忘记密码
|
||||||
const forgotRef = ref();
|
const forgotRef = ref();
|
||||||
//注册
|
//注册
|
||||||
const registerRef = ref();
|
const registerRef = ref();
|
||||||
const loginLoading = ref<boolean>(false);
|
const loginLoading = ref<boolean>(false);
|
||||||
const { getIsMobile } = useAppInject();
|
const { getIsMobile } = useAppInject();
|
||||||
const [captchaRegisterModal, { openModal: openCaptchaModal }] = useModal();
|
const [captchaRegisterModal, { openModal: openCaptchaModal }] = useModal();
|
||||||
defineProps({
|
defineProps({
|
||||||
sessionTimeout: {
|
sessionTimeout: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取验证码
|
* 获取验证码
|
||||||
*/
|
*/
|
||||||
function handleChangeCheckCode() {
|
function handleChangeCheckCode() {
|
||||||
formData.inputCode = '';
|
formData.inputCode = '';
|
||||||
//update-begin---author:chenrui ---date:2025/1/7 for:[QQYUN-10775]验证码可以复用 #7674------------
|
//update-begin---author:chenrui ---date:2025/1/7 for:[QQYUN-10775]验证码可以复用 #7674------------
|
||||||
randCodeData.checkKey = new Date().getTime() + Math.random().toString(36).slice(-4); // 1629428467008;
|
randCodeData.checkKey = new Date().getTime() + Math.random().toString(36).slice(-4); // 1629428467008;
|
||||||
//update-end---author:chenrui ---date:2025/1/7 for:[QQYUN-10775]验证码可以复用 #7674------------
|
//update-end---author:chenrui ---date:2025/1/7 for:[QQYUN-10775]验证码可以复用 #7674------------
|
||||||
getCodeInfo(randCodeData.checkKey).then((res) => {
|
getCodeInfo(randCodeData.checkKey).then((res) => {
|
||||||
randCodeData.randCodeImage = res;
|
randCodeData.randCodeImage = res;
|
||||||
randCodeData.requestCodeSuccess = true;
|
randCodeData.requestCodeSuccess = true;
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 切换登录方式
|
||||||
|
*/
|
||||||
|
function loginClick(type) {
|
||||||
|
activeIndex.value = type;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 账号或者手机登录
|
||||||
|
*/
|
||||||
|
async function loginHandleClick() {
|
||||||
|
if (unref(activeIndex) === 'accountLogin') {
|
||||||
|
accountLogin();
|
||||||
|
} else {
|
||||||
|
//手机号登录
|
||||||
|
phoneLogin();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
async function accountLogin() {
|
||||||
* 切换登录方式
|
if (!formData.username) {
|
||||||
*/
|
createMessage.warn(t('sys.login.accountPlaceholder'));
|
||||||
function loginClick(type) {
|
return;
|
||||||
activeIndex.value = type;
|
|
||||||
}
|
}
|
||||||
|
if (!formData.password) {
|
||||||
/**
|
createMessage.warn(t('sys.login.passwordPlaceholder'));
|
||||||
* 账号或者手机登录
|
return;
|
||||||
*/
|
|
||||||
async function loginHandleClick() {
|
|
||||||
if (unref(activeIndex) === 'accountLogin') {
|
|
||||||
accountLogin();
|
|
||||||
} else {
|
|
||||||
//手机号登录
|
|
||||||
phoneLogin();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
async function accountLogin() {
|
loginLoading.value = true;
|
||||||
if (!formData.username) {
|
const { userInfo } = await userStore.login(
|
||||||
createMessage.warn(t('sys.login.accountPlaceholder'));
|
toRaw({
|
||||||
return;
|
password: formData.password,
|
||||||
}
|
username: formData.username,
|
||||||
if (!formData.password) {
|
captcha: formData.inputCode,
|
||||||
createMessage.warn(t('sys.login.passwordPlaceholder'));
|
checkKey: randCodeData.checkKey,
|
||||||
return;
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
loginLoading.value = true;
|
|
||||||
const { userInfo } = await userStore.login(
|
|
||||||
toRaw({
|
|
||||||
password: formData.password,
|
|
||||||
username: formData.username,
|
|
||||||
captcha: formData.inputCode,
|
|
||||||
checkKey: randCodeData.checkKey,
|
|
||||||
mode: 'none', //不要默认的错误提示
|
|
||||||
})
|
|
||||||
);
|
|
||||||
if (userInfo) {
|
|
||||||
notification.success({
|
|
||||||
message: t('sys.login.loginSuccessTitle'),
|
|
||||||
description: `${t('sys.login.loginSuccessDesc')}: ${userInfo.realname}`,
|
|
||||||
duration: 3,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
} catch (error) {
|
|
||||||
notification.error({
|
|
||||||
message: t('sys.api.errorTip'),
|
|
||||||
description: error.message || t('sys.login.networkExceptionMsg'),
|
|
||||||
duration: 3,
|
|
||||||
});
|
|
||||||
handleChangeCheckCode();
|
|
||||||
} finally {
|
|
||||||
loginLoading.value = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 手机号登录
|
|
||||||
*/
|
|
||||||
async function phoneLogin() {
|
|
||||||
if (!phoneFormData.mobile) {
|
|
||||||
createMessage.warn(t('sys.login.mobilePlaceholder'));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (!phoneFormData.smscode) {
|
|
||||||
createMessage.warn(t('sys.login.smsPlaceholder'));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
loginLoading.value = true;
|
|
||||||
const { userInfo }: any = await userStore.phoneLogin({
|
|
||||||
mobile: phoneFormData.mobile,
|
|
||||||
captcha: phoneFormData.smscode,
|
|
||||||
mode: 'none', //不要默认的错误提示
|
mode: 'none', //不要默认的错误提示
|
||||||
});
|
})
|
||||||
if (userInfo) {
|
);
|
||||||
notification.success({
|
if (userInfo) {
|
||||||
message: t('sys.login.loginSuccessTitle'),
|
notification.success({
|
||||||
description: `${t('sys.login.loginSuccessDesc')}: ${userInfo.realname}`,
|
message: t('sys.login.loginSuccessTitle'),
|
||||||
duration: 3,
|
description: `${t('sys.login.loginSuccessDesc')}: ${userInfo.realname}`,
|
||||||
});
|
|
||||||
}
|
|
||||||
} catch (error) {
|
|
||||||
notification.error({
|
|
||||||
message: t('sys.api.errorTip'),
|
|
||||||
description: error.message || t('sys.login.networkExceptionMsg'),
|
|
||||||
duration: 3,
|
duration: 3,
|
||||||
});
|
});
|
||||||
} finally {
|
|
||||||
loginLoading.value = false;
|
|
||||||
}
|
}
|
||||||
}
|
} catch (error) {
|
||||||
|
notification.error({
|
||||||
/**
|
message: t('sys.api.errorTip'),
|
||||||
* 获取手机验证码
|
description: error.message || t('sys.login.networkExceptionMsg'),
|
||||||
*/
|
duration: 3,
|
||||||
async function getLoginCode() {
|
|
||||||
if (!phoneFormData.mobile) {
|
|
||||||
createMessage.warn(t('sys.login.mobilePlaceholder'));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
//update-begin---author:wangshuai---date:2024-04-18---for:【QQYUN-9005】同一个IP,1分钟超过5次短信,则提示需要验证码---
|
|
||||||
const result = await getCaptcha({ mobile: phoneFormData.mobile, smsmode: SmsEnum.FORGET_PASSWORD }).catch((res) =>{
|
|
||||||
if(res.code === ExceptionEnum.PHONE_SMS_FAIL_CODE){
|
|
||||||
openCaptchaModal(true, {});
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
//update-end---author:wangshuai---date:2024-04-18---for:【QQYUN-9005】同一个IP,1分钟超过5次短信,则提示需要验证码---
|
handleChangeCheckCode();
|
||||||
if (result) {
|
} finally {
|
||||||
const TIME_COUNT = 60;
|
loginLoading.value = false;
|
||||||
if (!unref(timer)) {
|
}
|
||||||
timeRuning.value = TIME_COUNT;
|
}
|
||||||
showInterval.value = false;
|
|
||||||
timer.value = setInterval(() => {
|
/**
|
||||||
if (unref(timeRuning) > 0 && unref(timeRuning) <= TIME_COUNT) {
|
* 手机号登录
|
||||||
timeRuning.value = timeRuning.value - 1;
|
*/
|
||||||
} else {
|
async function phoneLogin() {
|
||||||
showInterval.value = true;
|
if (!phoneFormData.mobile) {
|
||||||
clearInterval(unref(timer));
|
createMessage.warn(t('sys.login.mobilePlaceholder'));
|
||||||
timer.value = null;
|
return;
|
||||||
}
|
}
|
||||||
}, 1000);
|
if (!phoneFormData.smscode) {
|
||||||
}
|
createMessage.warn(t('sys.login.smsPlaceholder'));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
loginLoading.value = true;
|
||||||
|
const { userInfo }: any = await userStore.phoneLogin({
|
||||||
|
mobile: phoneFormData.mobile,
|
||||||
|
captcha: phoneFormData.smscode,
|
||||||
|
mode: 'none', //不要默认的错误提示
|
||||||
|
});
|
||||||
|
if (userInfo) {
|
||||||
|
notification.success({
|
||||||
|
message: t('sys.login.loginSuccessTitle'),
|
||||||
|
description: `${t('sys.login.loginSuccessDesc')}: ${userInfo.realname}`,
|
||||||
|
duration: 3,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
notification.error({
|
||||||
|
message: t('sys.api.errorTip'),
|
||||||
|
description: error.message || t('sys.login.networkExceptionMsg'),
|
||||||
|
duration: 3,
|
||||||
|
});
|
||||||
|
} finally {
|
||||||
|
loginLoading.value = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取手机验证码
|
||||||
|
*/
|
||||||
|
async function getLoginCode() {
|
||||||
|
if (!phoneFormData.mobile) {
|
||||||
|
createMessage.warn(t('sys.login.mobilePlaceholder'));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
//update-begin---author:wangshuai---date:2024-04-18---for:【QQYUN-9005】同一个IP,1分钟超过5次短信,则提示需要验证码---
|
||||||
|
const result = await getCaptcha({ mobile: phoneFormData.mobile, smsmode: SmsEnum.FORGET_PASSWORD }).catch((res) => {
|
||||||
|
if (res.code === ExceptionEnum.PHONE_SMS_FAIL_CODE) {
|
||||||
|
openCaptchaModal(true, {});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
//update-end---author:wangshuai---date:2024-04-18---for:【QQYUN-9005】同一个IP,1分钟超过5次短信,则提示需要验证码---
|
||||||
|
if (result) {
|
||||||
|
const TIME_COUNT = 60;
|
||||||
|
if (!unref(timer)) {
|
||||||
|
timeRuning.value = TIME_COUNT;
|
||||||
|
showInterval.value = false;
|
||||||
|
timer.value = setInterval(() => {
|
||||||
|
if (unref(timeRuning) > 0 && unref(timeRuning) <= TIME_COUNT) {
|
||||||
|
timeRuning.value = timeRuning.value - 1;
|
||||||
|
} else {
|
||||||
|
showInterval.value = true;
|
||||||
|
clearInterval(unref(timer));
|
||||||
|
timer.value = null;
|
||||||
|
}
|
||||||
|
}, 1000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 第三方登录
|
* 第三方登录
|
||||||
* @param type
|
* @param type
|
||||||
*/
|
*/
|
||||||
function onThirdLogin(type) {
|
function onThirdLogin(type) {
|
||||||
thirdModalRef.value.onThirdLogin(type);
|
thirdModalRef.value.onThirdLogin(type);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 忘记密码
|
* 忘记密码
|
||||||
*/
|
*/
|
||||||
function forgetHandelClick() {
|
function forgetHandelClick() {
|
||||||
type.value = 'forgot';
|
type.value = 'forgot';
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
forgotRef.value.initForm();
|
forgotRef.value.initForm();
|
||||||
}, 300);
|
}, 300);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 返回登录页面
|
* 返回登录页面
|
||||||
*/
|
*/
|
||||||
function goBack() {
|
function goBack() {
|
||||||
activeIndex.value = 'accountLogin';
|
activeIndex.value = 'accountLogin';
|
||||||
type.value = 'login';
|
type.value = 'login';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 忘记密码/注册账号回调事件
|
* 忘记密码/注册账号回调事件
|
||||||
* @param value
|
* @param value
|
||||||
*/
|
*/
|
||||||
function handleSuccess(value) {
|
function handleSuccess(value) {
|
||||||
Object.assign(formData, value);
|
Object.assign(formData, value);
|
||||||
Object.assign(phoneFormData, { mobile: "", smscode: "" });
|
Object.assign(phoneFormData, { mobile: "", smscode: "" });
|
||||||
type.value = 'login';
|
type.value = 'login';
|
||||||
activeIndex.value = 'accountLogin';
|
activeIndex.value = 'accountLogin';
|
||||||
handleChangeCheckCode();
|
handleChangeCheckCode();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 注册
|
* 注册
|
||||||
*/
|
*/
|
||||||
function registerHandleClick() {
|
function registerHandleClick() {
|
||||||
type.value = 'register';
|
type.value = 'register';
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
registerRef.value.initForm();
|
registerRef.value.initForm();
|
||||||
}, 300);
|
}, 300);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 注册
|
* 注册
|
||||||
*/
|
*/
|
||||||
function codeHandleClick() {
|
function codeHandleClick() {
|
||||||
type.value = 'codeLogin';
|
type.value = 'codeLogin';
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
codeRef.value.initFrom();
|
codeRef.value.initFrom();
|
||||||
}, 300);
|
}, 300);
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
//加载验证码
|
//加载验证码
|
||||||
handleChangeCheckCode();
|
handleChangeCheckCode();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
@import '/@/assets/loginmini/style/home.less';
|
@import '/@/assets/loginmini/style/home.less';
|
||||||
@import '/@/assets/loginmini/style/base.less';
|
@import '/@/assets/loginmini/style/base.less';
|
||||||
|
|
||||||
:deep(.ant-input:focus) {
|
:deep(.ant-input:focus) {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
.aui-get-code {
|
|
||||||
float: right;
|
|
||||||
position: relative;
|
|
||||||
z-index: 3;
|
|
||||||
background: #ffffff;
|
|
||||||
color: #1573e9;
|
|
||||||
border-radius: 100px;
|
|
||||||
padding: 5px 16px;
|
|
||||||
margin: 7px;
|
|
||||||
border: 1px solid #1573e9;
|
|
||||||
top: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.aui-get-code:hover {
|
.aui-get-code {
|
||||||
color: #1573e9;
|
float: right;
|
||||||
}
|
position: relative;
|
||||||
|
z-index: 3;
|
||||||
|
background: #ffffff;
|
||||||
|
color: #1573e9;
|
||||||
|
border-radius: 100px;
|
||||||
|
padding: 5px 16px;
|
||||||
|
margin: 7px;
|
||||||
|
border: 1px solid #1573e9;
|
||||||
|
top: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
.code-shape {
|
.aui-get-code:hover {
|
||||||
border-color: #dadada !important;
|
color: #1573e9;
|
||||||
color: #aaa !important;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
:deep(.jeecg-dark-switch){
|
.code-shape {
|
||||||
position:absolute;
|
border-color: #dadada !important;
|
||||||
margin-right: 10px;
|
color: #aaa !important;
|
||||||
}
|
}
|
||||||
.aui-link-login{
|
|
||||||
height: 42px;
|
:deep(.jeecg-dark-switch) {
|
||||||
padding: 10px 15px;
|
position: absolute;
|
||||||
font-size: 14px;
|
margin-right: 10px;
|
||||||
border-radius: 8px;
|
}
|
||||||
margin-top: 15px;
|
|
||||||
margin-bottom: 8px;
|
.aui-link-login {
|
||||||
flex: 1;
|
width: 100%;
|
||||||
color: #fff;
|
height: 60px;
|
||||||
}
|
margin-top: 36px;
|
||||||
.aui-phone-logo{
|
font-family: MicrosoftYaHei;
|
||||||
position: absolute;
|
font-size: 30px;
|
||||||
margin-left: 10px;
|
font-weight: bold;
|
||||||
width: 60px;
|
font-stretch: normal;
|
||||||
top:2px;
|
line-height: 3px;
|
||||||
z-index: 4;
|
letter-spacing: 3px;
|
||||||
}
|
color: #ffffff !important;
|
||||||
.top-3{
|
background-color: transparent;
|
||||||
top: 0.45rem;
|
background-image: url(../../../assets/loginmini/icon/login-btn.png);
|
||||||
}
|
background-size: 100% 100%;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
}
|
||||||
|
.aui-link-login:hover{
|
||||||
|
color: #ffffff !important;
|
||||||
|
background-color: transparent;
|
||||||
|
box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.61);
|
||||||
|
background-image: url(../../../assets/loginmini/icon/login-btnHover.png);
|
||||||
|
background-size: 100% 100%;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
.aui-phone-logo {
|
||||||
|
position: absolute;
|
||||||
|
margin-left: 10px;
|
||||||
|
width: 60px;
|
||||||
|
top: 2px;
|
||||||
|
z-index: 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.top-3 {
|
||||||
|
top: 0.45rem;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
|
@ -499,9 +455,11 @@ html[data-theme='dark'] {
|
||||||
&::before {
|
&::before {
|
||||||
background-image: url(/@/assets/svg/login-bg-dark.svg);
|
background-image: url(/@/assets/svg/login-bg-dark.svg);
|
||||||
}
|
}
|
||||||
.aui-inputClear{
|
|
||||||
|
.aui-inputClear {
|
||||||
background-color: #232a3b !important;
|
background-color: #232a3b !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-input,
|
.ant-input,
|
||||||
.ant-input-password {
|
.ant-input-password {
|
||||||
background-color: #232a3b !important;
|
background-color: #232a3b !important;
|
||||||
|
@ -518,30 +476,39 @@ html[data-theme='dark'] {
|
||||||
.app-iconify {
|
.app-iconify {
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
}
|
}
|
||||||
.aui-inputClear input,.aui-input-line input,.aui-choice{
|
|
||||||
|
.aui-inputClear input,
|
||||||
|
.aui-input-line input,
|
||||||
|
.aui-choice {
|
||||||
color: #c9d1d9 !important;
|
color: #c9d1d9 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.aui-formBox{
|
.aui-formBox {
|
||||||
background-color: @dark-bg !important;
|
background-color: @dark-bg !important;
|
||||||
}
|
}
|
||||||
.aui-third-text span{
|
|
||||||
|
.aui-third-text span {
|
||||||
background-color: @dark-bg !important;
|
background-color: @dark-bg !important;
|
||||||
}
|
}
|
||||||
.aui-form-nav .aui-flex-box{
|
|
||||||
|
.aui-form-nav .aui-flex-box {
|
||||||
color: #c9d1d9 !important;
|
color: #c9d1d9 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.aui-formButton .aui-linek-code{
|
.aui-formButton .aui-linek-code {
|
||||||
background: @dark-bg !important;
|
background: @dark-bg !important;
|
||||||
color: white !important;
|
color: white !important;
|
||||||
}
|
}
|
||||||
.aui-code-line{
|
|
||||||
|
.aui-code-line {
|
||||||
border-left: none !important;
|
border-left: none !important;
|
||||||
}
|
}
|
||||||
.ant-checkbox-inner,.aui-success h3{
|
|
||||||
|
.ant-checkbox-inner,
|
||||||
|
.aui-success h3 {
|
||||||
border-color: #c9d1d9;
|
border-color: #c9d1d9;
|
||||||
}
|
}
|
||||||
|
|
||||||
//update-begin---author:wangshuai ---date:20230828 for:【QQYUN-6363】这个样式代码有问题,不在里面,导致表达式有问题------------
|
//update-begin---author:wangshuai ---date:20230828 for:【QQYUN-6363】这个样式代码有问题,不在里面,导致表达式有问题------------
|
||||||
&-sign-in-way {
|
&-sign-in-way {
|
||||||
.anticon {
|
.anticon {
|
||||||
|
@ -554,6 +521,7 @@ html[data-theme='dark'] {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//update-end---author:wangshuai ---date:20230828 for:【QQYUN-6363】这个样式代码有问题,不在里面,导致表达式有问题------------
|
//update-end---author:wangshuai ---date:20230828 for:【QQYUN-6363】这个样式代码有问题,不在里面,导致表达式有问题------------
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -562,12 +530,13 @@ html[data-theme='dark'] {
|
||||||
-webkit-text-fill-color: #c9d1d9 !important;
|
-webkit-text-fill-color: #c9d1d9 !important;
|
||||||
box-shadow: inherit !important;
|
box-shadow: inherit !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-divider-inner-text {
|
.ant-divider-inner-text {
|
||||||
font-size: 12px !important;
|
font-size: 12px !important;
|
||||||
color: @text-color-secondary !important;
|
color: @text-color-secondary !important;
|
||||||
}
|
}
|
||||||
.aui-third-login a{
|
|
||||||
|
.aui-third-login a {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|