Browse Source

修改店铺简介字段

gaoxm 7 years ago
parent
commit
7481f88a9d
2 changed files with 20 additions and 17 deletions
  1. 18 15
      components/store/home/CommodityList.vue
  2. 2 2
      components/store/home/EnterpriseInfo.vue

+ 18 - 15
components/store/home/CommodityList.vue

@@ -266,22 +266,26 @@
         }
         }
       }
       }
     },
     },
-    watch: {
-       kinds: {
-         handler: function (val) {
-           this.kinds.forEach((item) => {
-             this.KindsNameChange(item)
-           })
-         },
-         immediate: false
-       }
-  },
-//  mounted () {
-//      this.kinds.forEach((item) => {
-//        this.KindsNameChange(item)
+//    watch: {
+//       kinds: {
+//         handler: function (val) {
+//           this.kinds.forEach((item) => {
+//             this.KindsNameChange(item)
+//           })
+//         },
+//         immediate: false
+//       }
+//  },
+//    mounted () {
+//      this.$nextTick(() => {
 //      })
 //      })
-// //    alert(JSON.stringify(this.kinds))
 //    },
 //    },
+  mounted () {
+      this.kinds.forEach((item) => {
+        this.KindsNameChange(item)
+      })
+ //    alert(JSON.stringify(this.kinds))
+    },
     methods: {
     methods: {
       sendprove: function () {
       sendprove: function () {
         if (this.user.logged) {
         if (this.user.logged) {
@@ -301,7 +305,6 @@
         obj.nameCn += `  (${obj.count})`
         obj.nameCn += `  (${obj.count})`
         document.getElementsByClassName('el-tree-node__label').innerHTML = "<span style='color:#666;'>11</span>"
         document.getElementsByClassName('el-tree-node__label').innerHTML = "<span style='color:#666;'>11</span>"
         if (obj.children && obj.children.length) {
         if (obj.children && obj.children.length) {
-          console.log(obj.children)
           obj.children.forEach((item) => {
           obj.children.forEach((item) => {
             this.KindsNameChange(item)
             this.KindsNameChange(item)
           })
           })

+ 2 - 2
components/store/home/EnterpriseInfo.vue

@@ -9,7 +9,7 @@
               <div v-if="storeInfo.description" :title="storeInfo.description">{{storeInfo.description | introduceFilter}}</div>
               <div v-if="storeInfo.description" :title="storeInfo.description">{{storeInfo.description | introduceFilter}}</div>
               <div v-else>—</div>
               <div v-else>—</div>
             </div>
             </div>
-            <div class="information-list" :title="storeInfo.enterprise.enAddress">
+            <div class="information-list">
               <div>应用领域&nbsp;:</div>
               <div>应用领域&nbsp;:</div>
               <div v-if="storeInfo.storeApplication" :title="storeInfo.storeApplication">{{storeInfo.storeApplication | introduceFilter}}</div>
               <div v-if="storeInfo.storeApplication" :title="storeInfo.storeApplication">{{storeInfo.storeApplication | introduceFilter}}</div>
               <div v-else>—</div>
               <div v-else>—</div>
@@ -34,7 +34,7 @@
             </div>-->
             </div>-->
             <div class="introduce">
             <div class="introduce">
               <h4>企业简介</h4>
               <h4>企业简介</h4>
-              <p v-if="storeInfo.description">{{storeInfo.description}}</p>
+              <p v-if="storeInfo.enterprise.description">{{storeInfo.enterprise.description}}</p>
               <p v-else class="empty-introduce">暂无简介</p>
               <p v-else class="empty-introduce">暂无简介</p>
             </div>
             </div>
           </div>
           </div>