Browse Source

搜索 跳转链接先跳到批次详情页

wangdy 8 years ago
parent
commit
6d8142f3da
1 changed files with 1 additions and 1 deletions
  1. 1 1
      components/search/GoodList.vue

+ 1 - 1
components/search/GoodList.vue

@@ -55,7 +55,7 @@
           <tbody id="productList-content">
           <tr v-for="item in good_list.components">
             <td>
-              <nuxt-link class="component-img-box" :to="`/product/component/${item.uuid}`">
+              <nuxt-link class="component-img-box" :to="item.batchCode?`/store/${item.storeId}/${item.batchCode}`:`/product/component/${item.uuid}`">
                 <img :src="item.img?item.img:item.brand.logoUrl?item.brand.logoUrl:'/images/component/default.png'">
               </nuxt-link>
             </td>