Commit 0beec99c authored by 吴冠's avatar 吴冠

登录样式更改

parent 6e5d3a3b
...@@ -73,7 +73,6 @@ ...@@ -73,7 +73,6 @@
left:980px; left:980px;
cursor:pointer; cursor:pointer;
font-size: 10px; font-size: 10px;
background: #bfa;
} }
.bg {} .bg {}
......
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
<div class="user"> <div class="user">
<div class="user-login"> <div class="user-login">
<div class="login-type flex"> <div class="login-type flex">
<div class="pos">{{message}}</div> <!-- <div class="pos">{{message}}</div> -->
<div @click="change" :class='[type==0?"active":""]' >密码登录</div>
<div @click="change" :class='[type==2?"active":""]' >手机验证码登录</div>
</div> </div>
<div class="el-form"> <div class="el-form">
<!-- 密码登录 --> <!-- 密码登录 -->
...@@ -38,7 +40,7 @@ ...@@ -38,7 +40,7 @@
<div @click="forget" class="handle">忘记密码</div> <div @click="forget" class="handle">忘记密码</div>
<div @click="examine" class="handle">我要注册</div> <div @click="examine" class="handle">我要注册</div>
</div> </div>
<div class="code-login handle" @click="changephone">{{changemessage}}</div> <!-- <div class="code-login handle" @click="changephone">{{changemessage}}</div> -->
</div> </div>
</div> </div>
</div> </div>
...@@ -89,6 +91,9 @@ ...@@ -89,6 +91,9 @@
created() { created() {
}, },
methods: { methods: {
handleClick(tab, event) {
console.log(tab, event);
},
//发送短信验证码 //发送短信验证码
async getPhoneCode(){ async getPhoneCode(){
let message = {} let message = {}
...@@ -164,23 +169,23 @@ ...@@ -164,23 +169,23 @@
console.log(err); console.log(err);
} }
}, },
changephone() { /* changephone() {
let type = this.type; let type = this.type;
if (type == '0' || type == '1') { if (type == '0' || type == '2') {
this.type = 2; this.type = 2;
this.changemessage = "密码登录"
this.message = "手机验证码登录"
} else if (type == '2') {
this.type = 0;
this.changemessage = "手机验证码登录" this.changemessage = "手机验证码登录"
this.message = "密码登录" this.message = "密码登录"
} else if (type == '2') {
this.type = 0;
this.changemessage = "密码登录"
this.message = "手机验证码登录"
} }
}, }, */
change() { change() {
let type = this.type; let type = this.type;
if (type == '0') { if (type == '0') {
this.type = 1 this.type = 2
} else if (type == '1') { } else if (type == '2') {
this.type = 0 this.type = 0
} }
}, },
...@@ -247,15 +252,19 @@ ...@@ -247,15 +252,19 @@
.login-type { .login-type {
width: 100%; width: 100%;
height: .77rem; height: .77rem;
border-bottom: 2px solid rgba(4, 134, 254, 1);
} }
.login-type .active{
border-bottom: 2px solid rgba(4, 134, 254, 1);
color: rgba(4, 134, 254, 1);
}
.login-type>div { .login-type>div {
height: 0.77rem; height: 0.77rem;
width: 1.9rem; width: 1.9rem;
text-align: center; text-align: center;
line-height: 0.77rem; line-height: 0.77rem;
color: rgba(4, 134, 254, 1); color: gray;
font-size: .2rem; font-size: .2rem;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment