|
@@ -12,8 +12,8 @@
|
|
|
<input type="password" @keyup.enter="login" v-model="password" placeholder="密码" />
|
|
|
</div>
|
|
|
<p class="sub">
|
|
|
- <span @click="$router.push({ path: '/register' })">注册账号</span>
|
|
|
- <span @click="$router.push({ path: '/forget' })">忘记密码</span>
|
|
|
+ <span class="register-account" @click="onClickRegisterAccount">注册账号</span>
|
|
|
+ <span class="forget-passcode" @click="onClickForgetPasscode">忘记密码</span>
|
|
|
</p>
|
|
|
<div class="button primarybtn" @click="login">登录</div>
|
|
|
</div>
|
|
@@ -49,6 +49,20 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
+ onClickRegisterAccount() {
|
|
|
+ if (this.$route.name === 'register') {
|
|
|
+ this.closeLogin()
|
|
|
+ } else {
|
|
|
+ this.$router.push({ name: 'register' })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ onClickForgetPasscode() {
|
|
|
+ if (this.$route.name === 'forget') {
|
|
|
+ this.closeLogin()
|
|
|
+ } else {
|
|
|
+ this.$router.push({ name: 'forget' })
|
|
|
+ }
|
|
|
+ },
|
|
|
handleKD(e){
|
|
|
if(this.$route.name!='scene'){
|
|
|
e.stopPropagation()
|
|
@@ -110,36 +124,45 @@ export default {
|
|
|
top: 0;
|
|
|
width: 310px;
|
|
|
background-color: rgba(255, 255, 255, 0.9);
|
|
|
- padding: 30px 20px;
|
|
|
+ padding: 28px 15px 25px;
|
|
|
.title {
|
|
|
- font-size: 20px;
|
|
|
+ font-size: 24px;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #333333;
|
|
|
+ margin-bottom: -9px;
|
|
|
}
|
|
|
.linput {
|
|
|
- height: 42px;
|
|
|
+ height: 50px;
|
|
|
+ border-radius: 5px;
|
|
|
+ margin-top: 30px;
|
|
|
+ padding-left: 11px;
|
|
|
background-color: #fff;
|
|
|
- border-radius: 4px;
|
|
|
- margin-top: 40px;
|
|
|
- width: 100%;
|
|
|
- padding-left: 20px;
|
|
|
+ background: rgba(255, 255, 255, 0.8);
|
|
|
+ border: 1px solid #999999;
|
|
|
> input {
|
|
|
border: none;
|
|
|
background: none;
|
|
|
- line-height: 42px;
|
|
|
- height: 42px;
|
|
|
+ height: 100%;
|
|
|
width: 100%;
|
|
|
}
|
|
|
}
|
|
|
.sub {
|
|
|
text-align: right;
|
|
|
- font-size: 14px;
|
|
|
- margin-top: 10px;
|
|
|
+ margin-top: 9px;
|
|
|
> span {
|
|
|
- margin-left: 30px;
|
|
|
+ font-size: 14px;
|
|
|
+ color: #999999;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
+ .register-account {
|
|
|
+ margin-right: 18px;
|
|
|
+ }
|
|
|
+ .forget-passcode {
|
|
|
+ margin-right: 6px;
|
|
|
+ }
|
|
|
}
|
|
|
.button {
|
|
|
- margin-top: 30px;
|
|
|
+ margin-top: 39px;
|
|
|
width: 100%;
|
|
|
}
|
|
|
}
|