Kaynağa Gözat

签约流程拦截企业用户

ccf 3 yıl önce
ebeveyn
işleme
1227edc8dc

+ 4 - 0
pages/frontend/name_cert/success.vue

@@ -120,6 +120,10 @@ export default {
             {
               location.href = "/sign/new_v2?step=2"
             }
+            else if(this.from=="company")
+            {
+              location.href = "/otherpage/companyComplete/add"
+            }
             else
             {
               location.href = "/sign/new"

+ 5 - 1
pages/otherpage/companyComplete/add.vue

@@ -52,7 +52,11 @@
       ...mapState(["deviceType"]),
     },
     mounted () {
-      this.needLogin();
+      this.userInfo=this.needLogin();
+      if(this.userInfo.realname_verify_status!=2)
+      {
+        this.$router.push(`/frontend/name_cert?from=company`)
+      }
       this.get_last_order();
     },
     methods: {

+ 11 - 0
pages/sign/new.vue

@@ -79,6 +79,17 @@
       this.needLogin();
       // realname_re, 1是待审核,2已签约,3是拒绝
       this.userInfo = await this.getUserInfo();
+      if(this.userInfo.user_type==2)
+      {
+        if(this.userInfo.realname_verify_status!=2)
+        {
+          this.$router.push(`/frontend/name_cert?from=sign`)
+        }
+        else
+        {
+          this.$router.push(`/otherpage/companyComplete/add`)
+        }
+      }
     },
     methods: {
       async signNow() {

+ 15 - 2
pages/sign/new_v2.vue

@@ -60,7 +60,7 @@ export default {
       isShowToast: false,
       userInfo: {},
       target: 0,
-      curStep: 1,
+      curStep: 0,
       curStep_show:false,
       stepState: {
         "1": {
@@ -78,10 +78,23 @@ export default {
       }
     };
   },
-  computed: {},
+  async created() {
+
+  },
   async mounted() {
     this.setFrom();
     this.userInfo=await this.needLogin();
+    if(this.userInfo.user_type==2)
+    {
+      if(this.userInfo.realname_verify_status!=2)
+      {
+        this.$router.push(`/frontend/name_cert?from=sign`)
+      }
+      else
+      {
+        this.$router.push(`/otherpage/companyComplete/add`)
+      }
+    }
     if(this.userInfo.realname_verify_status==2 && this.curStep==1)
     {
       this.curStep=2;