修改登录页
This commit is contained in:
parent
46e743cb84
commit
40e6fcfc9e
BIN
src/main/resources/static/assets/images/headicon1.png
Normal file
BIN
src/main/resources/static/assets/images/headicon1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
@ -72,7 +72,6 @@
|
||||
height: 60px;
|
||||
line-height: 60px;
|
||||
text-align: center;
|
||||
/* padding: auto 20px auto 50px; */
|
||||
font-size: 36px;
|
||||
margin: auto 20px auto 50px;
|
||||
}
|
||||
@ -83,11 +82,19 @@
|
||||
line-height: 30px;
|
||||
font-size: 14px;
|
||||
margin: auto 0;
|
||||
/* height: 20px; */
|
||||
padding: 0 25px;
|
||||
border-left: 2px solid rgba(0, 0, 0, .2);
|
||||
}
|
||||
|
||||
.sign a {
|
||||
width: 260px;
|
||||
height: 46px;
|
||||
margin-left: 50px;
|
||||
margin-top: 17px;
|
||||
}
|
||||
.sign a img{
|
||||
width: 260px;
|
||||
height: 46px;
|
||||
}
|
||||
.go-page {
|
||||
display: flex;
|
||||
justify-content: end;
|
||||
@ -288,6 +295,7 @@
|
||||
}
|
||||
#loginBox .denglu .yzmtx1 {
|
||||
position: relative;
|
||||
display: none;
|
||||
margin-bottom: 20px;
|
||||
width: 100%;
|
||||
height: 38px;
|
||||
@ -305,6 +313,7 @@
|
||||
border: none;
|
||||
}
|
||||
#loginBox .denglu .yzmbox1 {
|
||||
display: none;
|
||||
width: 100%;
|
||||
height: 38px;
|
||||
line-height: 38px;
|
||||
@ -387,12 +396,15 @@
|
||||
<body>
|
||||
<div id="app">
|
||||
<div v-cloak th:if="${customLoginForm ne null}" th:utext="${customLoginForm.formHtml}"></div>
|
||||
<!-- <div v-cloak th:if="${customLoginForm eq null}">-->
|
||||
<!-- <div v-cloak th:if="${customLoginForm eq null}">-->
|
||||
<div v-cloak th:if="${customLoginForm eq null}">
|
||||
<div class="nav">
|
||||
<div class="sign">
|
||||
<h2>腾狮科技</h2>
|
||||
<p>AI人工智能软著申请</p>
|
||||
<!-- <h2>腾狮科技</h2>-->
|
||||
<!-- <p>AI人工智能软著申请</p>-->
|
||||
<a>
|
||||
<img src="assets/images/headicon1.png" alt="">
|
||||
</a>
|
||||
</div>
|
||||
<div class="go-page">
|
||||
<a id="register" th:href="${ HomeServerUrl + 'Register.html'}">注册</a>
|
||||
@ -402,11 +414,11 @@
|
||||
<div id="loginBox" class="layadmin-user-login-main">
|
||||
<div class="btnlist">
|
||||
<div>
|
||||
<button id="zhanghaomima" @click="loginTypeChange('zhanghaomima')">账号密码</button>
|
||||
<button id="zhanghaomima">账号密码</button>
|
||||
<span class="span1"></span>
|
||||
</div>
|
||||
<div>
|
||||
<button id="yzmlongin" @click="loginTypeChange('yanzhengma')">验证码登录</button>
|
||||
<button id="yzmlongin">验证码登录</button>
|
||||
<span class="span2"></span>
|
||||
</div>
|
||||
|
||||
@ -423,22 +435,22 @@
|
||||
</div>
|
||||
</div>
|
||||
<div id="loginFormBox" class="layadmin-user-login-box layadmin-user-login-body layui-form">
|
||||
<form id="loginForm" :action="activeAction" method="post" @submit.prevent="submitForm" class="denglu">
|
||||
<form id="loginForm" :action="pageParams.loginFormAction" method="post" @submit.prevent="submitForm" class="denglu">
|
||||
<input type="hidden" name="referToken" v-model="formData.referToken"/>
|
||||
<div class="layui-form-item">
|
||||
<label class="layadmin-user-login-icon layui-icon layui-icon-username" for="username"></label>
|
||||
<input type="text" v-model="formData.username" id="username" name="username" lay-verify="username" placeholder="用户名" class="layui-input">
|
||||
</div>
|
||||
<div class="layui-form-item mima" id="passwordBox" v-if="loginType === 'zhanghaomima'">
|
||||
<div class="layui-form-item mima" id="passwordBox" >
|
||||
<label class="layadmin-user-login-icon layui-icon layui-icon-password" for="password"></label>
|
||||
<input type="password" v-model="formData.password" id="password" name="password" lay-verify="password" placeholder="密码" class="layui-input">
|
||||
</div>
|
||||
<div class="yzmbox1" @click="getLoginVerificationCode" v-if="loginType === 'yanzhengma'">
|
||||
<div class="yzmbox1" @click="getLoginVerificationCode">
|
||||
<span id="yzm11">点击获取验证码</span>
|
||||
</div>
|
||||
<div class="yzmtx1" v-if="loginType === 'yanzhengma'">
|
||||
<label class="layadmin-user-login-icon layui-icon layui-icon-password" for="inputyzm11"></label>
|
||||
<input type="text" v-model="formData.code" name="code" placeholder="请输入验证码" lay-verify="code" id="inputyzm11">
|
||||
<div class="yzmtx1">
|
||||
<label class="layadmin-user-login-icon layui-icon layui-icon-password" for="password"></label>
|
||||
<input type="text" placeholder="请输入验证码" id="inputyzm11">
|
||||
</div>
|
||||
<div class="layui-form-item" id="verificationCodeBox" v-if="pageParams.verificationCode == 'true'" >
|
||||
<!-- 验证码 -->
|
||||
@ -523,8 +535,6 @@
|
||||
el: '#app',
|
||||
data: {
|
||||
pageParams: pageParams,
|
||||
loginType: 'zhanghaomima',
|
||||
activeAction: pageParams.loginFormAction,
|
||||
formData: {
|
||||
referToken: pageParams.referToken,
|
||||
verificationCode: '',
|
||||
@ -680,15 +690,7 @@
|
||||
$('#loginForm').submit();
|
||||
})
|
||||
},
|
||||
loginTypeChange: function(type) {
|
||||
if(type === 'zhanghaomima') {
|
||||
this.activeAction = this.pageParams.loginFormAction;
|
||||
}
|
||||
if(type === 'yanzhengma') {
|
||||
this.activeAction = this.pageParams.loginPhoneAction;
|
||||
}
|
||||
this.loginType = type;
|
||||
}
|
||||
|
||||
},
|
||||
mounted: function() {
|
||||
var self = this;
|
||||
@ -711,11 +713,6 @@
|
||||
return '密码不能为空';
|
||||
}
|
||||
},
|
||||
code: function(value, item) {
|
||||
if(!value) {
|
||||
return '验证码不能为空';
|
||||
}
|
||||
},
|
||||
verificationCode: function(value, item) {
|
||||
if(!value) {
|
||||
return '验证码不能为空';
|
||||
@ -726,7 +723,6 @@
|
||||
})
|
||||
|
||||
// 切换账号密码登录和验证码登录
|
||||
let loginForm = document.querySelector("#loginForm");
|
||||
let mima = document.querySelector(".mima")
|
||||
let yzmbox1 = document.querySelector('.yzmbox1')
|
||||
let yzmtx1 = document.querySelector(".yzmtx1")
|
||||
@ -745,7 +741,10 @@
|
||||
span2.style.display = 'none'
|
||||
yzmlongin.style.fontWeight = 400
|
||||
yzmlongin.style.borderBottom = '0'
|
||||
mima.style.display = 'block'
|
||||
bixuan.style.display = 'block'
|
||||
yzmtx1.style.display = 'none'
|
||||
yzmbox1.style.display = 'none'
|
||||
})
|
||||
// 验证码登录
|
||||
document.querySelector('#yzmlongin').addEventListener('click', function () {
|
||||
@ -755,7 +754,10 @@
|
||||
span2.style.display = 'block'
|
||||
zhanghaomima.style.fontWeight = 400
|
||||
zhanghaomima.style.borderBottom = '0'
|
||||
mima.style.display = 'none'
|
||||
bixuan.style.display = 'none'
|
||||
yzmtx1.style.display = 'block'
|
||||
yzmbox1.style.display = 'block'
|
||||
})
|
||||
|
||||
// 点击 忘记密码 去登录 切换div
|
||||
@ -769,10 +771,14 @@
|
||||
|
||||
// 忘记密码
|
||||
document.querySelector('#goChangePassword').addEventListener('click', function () {
|
||||
|
||||
btnList.style.display = 'none'
|
||||
change.style.display = 'block'
|
||||
dengLu.style.display = 'none'
|
||||
changePassword.style.display = 'block'
|
||||
|
||||
|
||||
|
||||
})
|
||||
|
||||
// 去登录
|
||||
|
Loading…
Reference in New Issue
Block a user