Browse Source

品牌中心-器件详情,类目与品牌显示错误

yangc 8 years ago
parent
commit
14640b976a

+ 0 - 8
components/product/CategoryProperty.vue

@@ -109,14 +109,6 @@
         JSONObj: {}
       }
     },
-    mounted () {
-//      var list = document.getElementsByClassName('list-menu')
-//      var container = document.getElementsByClassName('div-table')
-//      list.onmouseover = function () {
-//        var id = list[0].getAttribute['split-dropdown-trigger']
-//        console.log(id)
-//      }
-    },
     computed: {
       kind () {
         return this.$store.state.product.kind.kindsParentWithBother.data[this.$store.state.product.kind.kindsParentWithBother.data.length - 1]

+ 4 - 4
components/product/component/ComponentDetail.vue

@@ -14,15 +14,15 @@
           </div>
           <div class="hr-grey"></div>
           <div class="row">
-            <div class="form-group row" v-if="list.brand">
+            <div class="form-group row" v-if="list.kind">
               <div class="message-item">类目</div>
               <div class="colon">:</div>
-              <div><a class="message-body blue" target="_blank" :href="`/product/kind/${list.brand.id}`">{{list.brand.nameCn}}</a></div>
+              <div><a class="message-body blue" target="_blank" :href="`/product/kind/${list.brand.id}`">{{list.kind.nameCn}}</a></div>
             </div>
-            <div class="form-group row" v-if="list.kind">
+            <div class="form-group row" v-if="list.brand">
               <div class="message-item">品牌</div>
               <div class="colon">:</div>
-              <div><a class="message-body blue" target="_blank" :href="`/product/brand/${list.brand.uuid}`">{{list.kind.nameCn}}</a></div>
+              <div><a class="message-body blue" target="_blank" :href="`/product/brand/${list.brand.uuid}`">{{list.brand.nameCn}}</a></div>
             </div>
             <div class="form-group row">
               <div class="message-item">总库存量</div>

+ 1 - 1
nuxt.config.js

@@ -1,6 +1,6 @@
 const path = require('path')
 const isProdMode = Object.is(process.env.NODE_ENV, 'production')
-const baseUrl = process.env.BASE_URL || (isProdMode ? 'http://www.usoftmall.com/' : 'http://192.168.253.119:8080/platform-b2c/')
+const baseUrl = process.env.BASE_URL || (isProdMode ? 'http://www.usoftmall.com/' : 'http://192.168.253.60:8080/platform-b2c/')
 
 module.exports = {
   router: {