浏览代码

个人账户跳转至开店页面

yangc 7 年之前
父节点
当前提交
690e5dabdb
共有 1 个文件被更改,包括 14 次插入10 次删除
  1. 14 10
      plugins/mixin.js

+ 14 - 10
plugins/mixin.js

@@ -95,16 +95,20 @@ Vue.mixin({
     },
     },
     goStoreApply: function () {
     goStoreApply: function () {
       if (this.user.logged) {
       if (this.user.logged) {
-        this.$http.get('/basic/vendor/transactionInfo').then(response => {
-          if (response.data.isOpenStore) {
-            window.location.href = '/vendor#/store/maintain'
-          } else {
-            window.location.href = '/vendor#/store-apply'
-          }
-        }, err => {
-          this.$message.error('该账户未开通卖家中心')
-          console.log(err)
-        })
+        if (this.user.data.enterprise.uu) {
+          this.$http.get('/basic/vendor/transactionInfo').then(response => {
+            if (response.data.isOpenStore) {
+              window.location.href = '/vendor#/store/maintain'
+            } else {
+              window.location.href = '/vendor#/store-apply'
+            }
+          }, err => {
+            this.$message.error('该账户未开通卖家中心')
+            console.log(err)
+          })
+        } else {
+          this.$router.push('/personalMaterial')
+        }
       } else {
       } else {
         this.login()
         this.login()
       }
       }