Bladeren bron

30天免登陆

huangb 7 jaren geleden
bovenliggende
commit
692de30e23
2 gewijzigde bestanden met toevoegingen van 13 en 13 verwijderingen
  1. 9 9
      components/login/Login.vue
  2. 4 4
      components/mobile/loginMobile.vue

+ 9 - 9
components/login/Login.vue

@@ -76,7 +76,7 @@
                 </el-form-item>
                 <el-form-item class="text-position">
                   <div class="page-part" v-if="loginStyle.needRememberPwd">
-                    <el-checkbox v-model="checked">30天免登</el-checkbox>
+                    <el-checkbox v-model="checked">30天免登</el-checkbox>
                   </div>
                   <a class="forget" id='forget' @click="goForgetPassword">忘记密码?</a>
                 </el-form-item>
@@ -227,7 +227,7 @@
                   this.showCheckCode = false
                   let getPasswordErrorCount = response.data.content || ''
                   if (getPasswordErrorCount >= 5) {
-                    this.$message.error('密码错误次数已达上限,今日无法登')
+                    this.$message.error('密码错误次数已达上限,今日无法登')
                     this.isLoginDisabled = true
                     this.showCheckCode = false
                   } else if (getPasswordErrorCount < 3) {
@@ -236,10 +236,10 @@
                     this.showCheckCode = false
                   } else if (getPasswordErrorCount >= 3 && getPasswordErrorCount < 5) {
                     if (getPasswordErrorCount === 3) {
-                      this.$message.error('当前已输错密码3次,若达到5次今日将无法登')
+                      this.$message.error('当前已输错密码3次,若达到5次今日将无法登')
                     }
                     if (getPasswordErrorCount === 4) {
-                      this.$message.error('当前已输错密码4次,若达到5次今日将无法登')
+                      this.$message.error('当前已输错密码4次,若达到5次今日将无法登')
                     }
                     this.isLoginDisabled = false
                     this.checkUsername = true
@@ -406,7 +406,7 @@
               if (response.data.success) {
                 let getPasswordErrorCount = response.data.content || ''
                 if (getPasswordErrorCount >= 5) {
-                  this.$message.error('密码错误次数已达上限,今日无法登')
+                  this.$message.error('密码错误次数已达上限,今日无法登')
                   this.isLoginDisabled = true
                   this.showCheckCode = false
                 } else if (getPasswordErrorCount < 3) {
@@ -415,10 +415,10 @@
                   this.showCheckCode = false
                 } else if (getPasswordErrorCount >= 3 && getPasswordErrorCount < 5) {
                   if (getPasswordErrorCount === 3) {
-                    this.$message.error('当前已输错密码3次,若达到5次今日将无法登')
+                    this.$message.error('当前已输错密码3次,若达到5次今日将无法登')
                   }
                   if (getPasswordErrorCount === 4) {
-                    this.$message.error('当前已输错密码4次,若达到5次今日将无法登')
+                    this.$message.error('当前已输错密码4次,若达到5次今日将无法登')
                   }
                   this.isLoginDisabled = false
                   this.checkUsername = true
@@ -544,13 +544,13 @@
                   this.showCheckCode = false
                   this.isLoginDisabled = false
                 } else if (count >= 5) {
-                  this.$message.error('密码错误次数已达上限,今日无法登')
+                  this.$message.error('密码错误次数已达上限,今日无法登')
                   this.isLoginDisabled = true
                   this.showCheckCode = false
                 } else if (count >= 3 && count < 5) {
                   this.getCode()
                   if (count === 3) {
-                    this.$message.error('当前已输错密码3次,若达到5次今日将无法登')
+                    this.$message.error('当前已输错密码3次,若达到5次今日将无法登')
                   }
                   this.showCheckCode = true
                   this.isLoginDisabled = false

+ 4 - 4
components/mobile/loginMobile.vue

@@ -238,12 +238,12 @@
                 this.showCheckCode = true
                 this.getCode()
                 this.$toast({
-                  message: '当前已输错密码' + count + '次,若达到5次今日将无法登',
+                  message: '当前已输错密码' + count + '次,若达到5次今日将无法登',
                   iconClass: 'el-icon-warning'
                 })
               } else if (count === 5) {
                 this.$toast({
-                  message: '密码错误次数已达上限,今日无法登',
+                  message: '密码错误次数已达上限,今日无法登',
                   iconClass: 'el-icon-warning'
                 })
               }
@@ -326,7 +326,7 @@
                   _this.getCode()
                 }, 100)
                 this.$toast({
-                  message: '当前已输错密码' + count + '次,若达到5次今日将无法登',
+                  message: '当前已输错密码' + count + '次,若达到5次今日将无法登',
                   iconClass: 'el-icon-warning'
                 })
               }
@@ -623,7 +623,7 @@
                     _this.getCode()
                   }, 100)
                   this.$toast({
-                    message: '当前已输错密码' + count + '次,若达到5次今日将无法登',
+                    message: '当前已输错密码' + count + '次,若达到5次今日将无法登',
                     iconClass: 'el-icon-warning'
                   })
                 }