浏览代码

邮箱地址判断是否登录

hangb 7 年之前
父节点
当前提交
8e2bbc34f8

+ 5 - 4
pages/reset/forgetPasswordValidationAccount.vue

@@ -67,11 +67,12 @@
     mounted () {
       if (this.$route.query.token) {
         this.step = 'security'
-        // this.$router.push('/reset/forgetPasswordValidationAccount?token=' + this.$route.query.token)
-      } else if (this.logged.isLogin) {
-        this.step = 'select'
       } else {
-        this.step = 'first'
+        if (this.logged.isLogin) {
+          this.step = 'select'
+        } else {
+          this.step = 'first'
+        }
       }
     },
     computed: {

+ 10 - 10
pages/validation/emailValidation.vue

@@ -57,25 +57,25 @@
       StepAppeal
     },
     mounted () {
-      if (!this.$route.query.token) {
+      if (this.$route.query.token) {
+        if (this.$route.query.step === '2') {
+          this.step = 'new'
+        }
+        if (this.$route.query.step === '3') {
+          this.step = 'last'
+          this.stepLast = 'last'
+        }
+      } else {
         if (this.logged.isLogin) {
           this.step = 'select'
         } else {
           this.$router.push('/')
         }
-      } else {
-        if (!this.logged.isLogin) {
-          if (this.$route.query.step === '2') {
-            this.step = 'new'
-          } else if (this.$route.query.step === '3') {
-            this.step = 'last'
-            this.stepLast = 'last'
-          }
-        }
       }
     },
     computed: {
       logged () {
+        console.log('12', this.$store.state.option.isLogin.data.content)
         return this.$store.state.option.isLogin.data.content
       },
       isMobile () {

+ 3 - 5
pages/validation/phoneValidation.vue

@@ -63,16 +63,14 @@
       }
     },
     mounted () {
-      if (!this.$route.query.token) {
+      if (this.$route.query.token) {
+        this.step = 'new'
+      } else {
         if (this.logged.isLogin) {
           this.step = 'select'
         } else {
           this.$router.push('/')
         }
-      } else {
-        if (!this.logged.isLogin) {
-          this.$route.query.token ? this.step = 'new' : this.step = 'select'
-        }
       }
     },
     methods: {