Explorar o código

云中心密保问题提示语更换,以及处理其他错误提示

hangb %!s(int64=7) %!d(string=hai) anos
pai
achega
4e446539fc

+ 2 - 2
components/appeal/AccountAppeal.vue

@@ -352,8 +352,8 @@
             }).catch(err => {
               this.$message.error(err.errMsg)
               this.isShowLoading = false
-              this.codeErrorChecked = true
-              this.codeChecked = false
+              // this.codeErrorChecked = true
+              // this.codeChecked = false
               this.account_time = 0
             })
         }

+ 20 - 18
components/appeal/ChangeManagerAppeal.vue

@@ -233,8 +233,8 @@
                     return Promise.reject(response.data)
                   }
                 }).catch(err => {
-                  // console.log(err)
-                  this.$message.error(err.errMsg)
+                  console.log(err)
+                  // this.$message.error(err.errMsg)
                 })
             }
           }
@@ -427,11 +427,6 @@
         }
       }
     },
-    computed: {
-      logged () {
-        return this.$store.state.option.isLogin.data.content
-      }
-    },
     mounted () {
 //      获取城市地址
       this.$http.get('/data/city.json').then(response => {
@@ -494,17 +489,23 @@
           this.$http.post('/api/userspace/upload', param, config)
             .then(response => {
               this.isShowLoading = false
-              let path = response.data.content
-              if (path.slice(path.lastIndexOf('.')).toLowerCase() === '.pdf') {
-                this.isPdf = true
+              if (response.data.success) {
+                let path = response.data.content
+                if (path.slice(path.lastIndexOf('.')).toLowerCase() === '.pdf') {
+                  this.isPdf = true
+                } else {
+                  this.isPdf = false
+                }
+                this.changeManager.businessCodeImage = response.data.content
+                this.uploadFileChecked = true
               } else {
-                this.isPdf = false
+                this.uploadFileChecked = false
+                return Promise.reject(response.data)
               }
-              this.changeManager.businessCodeImage = response.data.content
-              this.uploadFileChecked = true
-            }, err => {
-              this.isShowLoading = false
+            }).catch(err => {
               console.log(err)
+              // this.$message.error(err.errMsg)
+              this.isShowLoading = false
               this.uploadFileChecked = false
             })
         }
@@ -584,8 +585,9 @@
           let config = {
             headers: {'Content-Type': 'multipart/form-data'}
           }
-          this.$http.post('/appeal/resetPwd', param, config)
+          this.$http.post('/appeal/changeAdmin', param, config)
             .then(response => {
+              this.isShowLoading = false
               if (response.data.success) {
                 this.goNextStep = false
               } else {
@@ -595,8 +597,8 @@
             }).catch(err => {
               this.$message.error(err.errMsg)
               this.isShowLoading = false
-              this.codeErrorChecked = true
-              this.codeChecked = false
+              // this.codeErrorChecked = true
+              // this.codeChecked = false
               this.account_time = 0
             })
         }

+ 2 - 2
components/appeal/PasswordRestAppeal.vue

@@ -432,8 +432,8 @@
             }).catch(err => {
               this.$message.error(err.errMsg)
               this.isShowLoading = false
-              this.codeErrorChecked = true
-              this.codeChecked = false
+              // this.codeErrorChecked = true
+              // this.codeChecked = false
               this.account_time = 0
             })
         }

+ 1 - 0
components/change/ChangeManagerSecondStep.vue

@@ -56,6 +56,7 @@
     components: {
       Loading
     },
+    middleware: 'authenticated',
     data () {
 //      第二步验证手机
       var validateSecondMobile = (rule, value, callback) => {

+ 1 - 0
components/encrypted-setting/EncryptedSettingSecondStep.vue

@@ -55,6 +55,7 @@
     components: {
       Loading
     },
+    middleware: 'authenticated',
     data () {
 //      第二步验证手机
       var validateSecondAnswer1 = (rule, value, callback) => {

+ 6 - 3
components/login/Login.vue

@@ -150,7 +150,8 @@
                 }
               }).catch(err => {
                 this.isShowLoading = false
-                this.$message.error(err.errMsg)
+                console.log(err)
+                // this.$message.error(err.errMsg)
               })
           }
           callback()
@@ -271,9 +272,11 @@
 //      登录
       isLogin (flag) {
         this.isShowLoading = true
-        if (!this.checkUsername) {
+        if (!this.login.username) {
+          this.isShowLoading = false
           this.$message.error('请填写账号')
-        } else if (!this.checkPassword) {
+        } else if (!this.login.password) {
+          this.isShowLoading = false
           this.$message.error('请填写密码')
         } else {
           let param = new FormData()

+ 2 - 2
components/register/EnterpriseRegistration.vue

@@ -555,8 +555,8 @@
             }).catch(err => {
               this.$message.error(err.errMsg)
               this.isShowLoading = false
-              this.codeErrorChecked = true
-              this.codeChecked = false
+              // this.codeErrorChecked = true
+              // this.codeChecked = false
               this.enterprise_time = 0
             })
         }

+ 2 - 2
components/register/PersonalRegistration.vue

@@ -342,8 +342,8 @@
             }).catch(err => {
               this.$message.error(err.errMsg)
               this.isShowLoading = false
-              this.codeErrorChecked = true
-              this.codeChecked = false
+              // this.codeErrorChecked = true
+              // this.codeChecked = false
               this.personal_time = 0
             })
         }

+ 1 - 0
components/validation/PhoneValidationSecondStep.vue

@@ -49,6 +49,7 @@
     components: {
       Loading
     },
+    middleware: 'authenticated',
     data () {
 //      第二步验证手机
       var validateSecondMobile = (rule, value, callback) => {

+ 0 - 1
pages/cloudcenter/enterprise/index.vue

@@ -128,7 +128,6 @@
         return this.$store.state.option.userInfo.data.content
       },
       apple () {
-        console.log(this.$store.state.cloudCenter.apple.data.content)
         return this.$store.state.cloudCenter.apple.data.content
       },
       member () {

+ 1 - 1
pages/cloudcenter/index.vue

@@ -64,7 +64,7 @@
                   <img v-show="!user.user.hasQuestion" src="/images/all/questions.png" alt="">
                   <span>密保问题</span>
                 </div>
-                <div class="bind-tip">安全性高的密码可以使账号更安全,建议您定期更换密码,并且设置一个包含数字和字母,长度超过8位以上的密码。</div>
+                <div class="bind-tip">是您找回登录密码的方法之一。建议您设置一个容易记住,且最不容易被他人获取的问题及答案。</div>
                 <a href="/encrypted-setting/EncryptedSetting" class="bind-btn" v-show="user.user.hasQuestion">修改</a>
                 <a href="/encrypted-setting/EncryptedSetting" class="go-btn" v-show="!user.user.hasQuestion">设置</a>
               </div>