Browse Source

开通卖家中心数据 bug2

wangdy 8 years ago
parent
commit
451aef1a52

+ 1 - 1
components/register-saler/Register.vue

@@ -85,7 +85,7 @@
         isSelf = true
       }
       if (!isSelf) {
-        this.$http.get('/basic/enterprise/' + tempEnterprise.uu + '/info')
+        this.$http.get('/basic/enterprise/' + tempEnterprise.uu + '/detailInfo')
           .then(response => {
             this.enterpriseData = response.data
           })

+ 10 - 3
components/register-saler/register/StepFirst.vue

@@ -325,7 +325,7 @@
             this.checkFullData()
             this.submitRegisterData()
           } else {
-            this.initEnterpriseData()
+            this.initEnterpriseData(val)
           }
         }
       },
@@ -363,7 +363,10 @@
         this.data.fax = val.fax || ''
         this.data.logoUrl = val.logoImage || ''
         this.data.profession = val.profession || ''
-        this.data.tagsData = val.tags || []
+//        this.data.tagsData = val.tags || []
+        if (typeof val.tags === 'string' || !val.tags) {
+          this.data.tagsData = val.tags.split(',') || []
+        }
       },
       initSelfData: function (val) {
         this.data.name = val.name || ''
@@ -378,7 +381,11 @@
         this.data.fax = val.fax || ''
         this.data.logoUrl = val.logoUrl || ''
         this.data.profession = val.profession || ''
-        this.data.tagsData = val.tagsData || []
+        if (typeof val.tagsData === 'string' || !val.tagsData) {
+          this.data.tagsData = val.tagsData.split(',') || []
+        } else {
+          this.data.tagsData = val.tagsData || []
+        }
       },
       sectionChange: function (type) {
         if (this.loginData.isSelf && !this.isValid) {