|
@@ -34,6 +34,7 @@
|
|
|
<div class="login-footer">
|
|
|
<el-button class="login-btn" @click="login">登录</el-button>
|
|
|
</div>
|
|
|
+ <div class="forget" @click="forget">忘记密码?</div>
|
|
|
</div>
|
|
|
<!--</div>-->
|
|
|
</div>
|
|
@@ -45,6 +46,11 @@
|
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
|
}
|
|
|
+.forget {
|
|
|
+ color: rgb(30, 71, 184);
|
|
|
+ text-align: right;
|
|
|
+ line-height: 5px;
|
|
|
+}
|
|
|
</style>
|
|
|
|
|
|
<script>
|
|
@@ -75,7 +81,7 @@ export default {
|
|
|
},
|
|
|
mounted () {},
|
|
|
methods: {
|
|
|
- // 登陆
|
|
|
+ // 登录
|
|
|
login () {
|
|
|
this.$refs['pwdLogin'].validate(res => {
|
|
|
if (res) {
|
|
@@ -91,7 +97,7 @@ export default {
|
|
|
}).then(res => {
|
|
|
console.log(res)
|
|
|
this.$message.success({
|
|
|
- message: '登陆成功'
|
|
|
+ message: '登录成功'
|
|
|
})
|
|
|
// this.$cookies.setCookies(res)
|
|
|
sessionStorage.setItem('info', JSON.stringify(res.object))
|
|
@@ -106,6 +112,13 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
+ },
|
|
|
+ forget () {
|
|
|
+ this.$alert('请联系联系yc1min客服重置密码!', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ callback: action => {
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|