浏览代码

移动端修改密码和重置密码区分

hangb 7 年之前
父节点
当前提交
d8328c43f4
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. 2 2
      components/mobile/reset/stepSelect.vue
  2. 2 0
      pages/validation/emailValidationSecondStep.vue

+ 2 - 2
components/mobile/reset/stepSelect.vue

@@ -5,7 +5,7 @@
     </div>
     <div>
       <ul class="select-item">
-        <li class="item" @click="jump('before')" v-if="$store.state.option.isLogin.logged">
+        <li class="item" @click="jump('before')" v-if="$store.state.option.isLogin.data.content.isLogin">
           <img src="/images/all/icon03.png">
           <span>通过登录密码</span>
           <i class="fa fa-angle-right second"></i>
@@ -56,7 +56,7 @@
       },
       // 获取验证方式
       getVerifyWay () {
-        this.$http.get('/sso/resetPwd/checkType/' + (this.$store.state.option.isLogin.logged ? 'update' : 'reset'))
+        this.$http.get('/sso/resetPwd/checkType/' + (this.$store.state.option.isLogin.data.content.isLogin ? 'update' : 'reset'))
           .then(response => {
             if (response.data.success) {
               this.mobile = response.data.content.mobile

+ 2 - 0
pages/validation/emailValidationSecondStep.vue

@@ -16,6 +16,8 @@
     mounted () {
       if (this.$store.state.option.isMobile) {
         this.$router.push('/validation/emailValidation?token=' + this.$route.query.token + '&step=' + this.$route.query.step)
+      } else {
+        this.$router.push('/validation/emailValidation?token=' + this.$route.query.token)
       }
     }
   }