Browse Source

开通卖家中心 开通完成跳转问题2

wangdy 8 years ago
parent
commit
4d35ac81b8
1 changed files with 14 additions and 15 deletions
  1. 14 15
      components/register-saler/register/StepThird.vue

+ 14 - 15
components/register-saler/register/StepThird.vue

@@ -488,23 +488,22 @@
               if (response.data.success) {
                 this.btnDisabled = true
                 this.$message.success('感谢您对优软商城的支持,我们会尽快对您提交的信息进行审核,预计审核时间为3个工作日,审核结果将以站内消息及邮件形式通知您!')
-                this.$http.post('/basic/enterprise/openVendor/' + enuu)
-                  .then(() => {
-                    this.$http.get('/user/authentication/reflash')
-                      .then(() => {
-                        this.$http.get(`/user/authentication/` + enuu).then(() => {
-                          this.$store.dispatch('loadUserInfo')
-                        })
-                      }
-                      )
-                  })
-                window.setTimeout(function () {
-                  window.location.href = '/vendor#/store-apply/wait'
-                }, 3000)
               } else {
-                this.$http.post('/basic/enterprise/openVendorSetRead/' + enuu)
-                this.$message.error('开通店铺失败')
+                this.btnDisabled = true
+                this.$message.error('开通店铺异常,请前往我的店铺查看店铺开通进度')
               }
+              this.$http.post('/basic/enterprise/openVendor/' + enuu)
+                .then(() => {
+                  this.$http.get('/user/authentication/reflash')
+                    .then(() => {
+                      this.$http.get(`/user/authentication/` + enuu).then(() => {
+                        this.$store.dispatch('loadUserInfo')
+                      })
+                    })
+                })
+              window.setTimeout(function () {
+                window.location.href = '/vendor#/store-apply/wait'
+              }, 3000)
             }, err => {
               console.log(err)
               this.$http.post('/basic/enterprise/openVendorSetRead/' + enuu)