|
@@ -35,6 +35,7 @@ export default {
|
|
|
resetPswTip:'',
|
|
|
regEmail,
|
|
|
regPhone,
|
|
|
+ loginError: false
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -55,6 +56,7 @@ export default {
|
|
|
...mapActions(['login']),
|
|
|
handlerLogin() {
|
|
|
this.logging = true
|
|
|
+ this.loginError = false
|
|
|
this.$axios.post('login',qs.stringify(this.form)).then((res)=> {
|
|
|
if(res.code === 200) {
|
|
|
this.$store.dispatch('login',res.result).then((token)=> {
|
|
@@ -72,6 +74,8 @@ export default {
|
|
|
this.handlerClose()
|
|
|
this.getUserInfo()
|
|
|
})
|
|
|
+ } else {
|
|
|
+ this.loginError = true
|
|
|
}
|
|
|
})
|
|
|
.finally(()=> {this.logging = false})
|
|
@@ -232,9 +236,9 @@ export default {
|
|
|
<a class="forgotpwd cursor-pointer" @click="handlerForgetPsw">忘记密码?</a>
|
|
|
</span>
|
|
|
</div>
|
|
|
- <!-- <div class="error-mess" >
|
|
|
+ <div v-show="loginError" class="error-mess">
|
|
|
<span id="error-message error-tip">账号或密码错误</span>
|
|
|
- </div> -->
|
|
|
+ </div>
|
|
|
<div class="tips">
|
|
|
<span>只有QQ/微信账号,如何进行网页登录</span>
|
|
|
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|