Bladeren bron

更改移动端手机传参returnURL的大小写;更换账号安全等级判断方法

hangb 7 jaren geleden
bovenliggende
commit
def4003d36
2 gewijzigde bestanden met toevoegingen van 23 en 16 verwijderingen
  1. 1 1
      components/mobile/loginMobile.vue
  2. 22 15
      pages/cloudcenter/index.vue

+ 1 - 1
components/mobile/loginMobile.vue

@@ -77,7 +77,7 @@
       },
       getUrl () {
         this.appId = this.$store.state.option.appId
-        this.returnUrl = this.$store.state.option.returnURL
+        this.returnUrl = this.$store.state.option.returnUrl
         this.baseUrl = this.$store.state.option.baseUrl
       },
       getCode () {

+ 22 - 15
pages/cloudcenter/index.vue

@@ -221,21 +221,28 @@
         },
         showLevel () {
           var totle = !!(this.user.user.identityValidCode === 2) + !!(this.user.user.hasQuestion) + !!(this.user.user.mobileValidCode === 2) + !!(this.user.user.passwordLevel >= 2) + !!(this.user.user.emailValidCode === 2)
-          switch (totle) {
-            case 0:
-            case 1:
-            case 2:
-              // 低
-              this.accountLevel = 0
-              break
-            case 3:
-            case 4:
-              // 中
-              this.accountLevel = 1
-              break
-            default:
-              // 高
-              this.accountLevel = 2
+          // switch (totle) {
+          //   case 0:
+          //   case 1:
+          //   case 2:
+          //     // 低
+          //     this.accountLevel = 0
+          //     break
+          //   case 3:
+          //   case 4:
+          //     // 中
+          //     this.accountLevel = 1
+          //     break
+          //   default:
+          //     // 高
+          //     this.accountLevel = 2
+          // }
+          if (totle === 0 || totle === 1 || totle === 2) {
+            this.accountLevel = 0
+          } else if (totle === 3 || totle === 4) {
+            this.accountLevel = 1
+          } else {
+            this.accountLevel = 2
           }
         }
       }