Browse Source

搜索 图片展示问题修改

wangdy 8 years ago
parent
commit
10aac887df
1 changed files with 1 additions and 0 deletions
  1. 1 0
      components/search/GoodList.vue

+ 1 - 0
components/search/GoodList.vue

@@ -57,6 +57,7 @@
             <td>
             <td>
               <nuxt-link class="component-img-box" :to="item.batchCode?`/store/${item.storeId}/${item.batchCode}`:`/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&&item.brand.logoUrl?item.brand.logoUrl:'/images/component/default.png'">
                 <img :src="item.img?item.img:item.brand&&item.brand.logoUrl?item.brand.logoUrl:'/images/component/default.png'">
+                <img :src="item.batchCode?item.img?item.img:'/images/component/default.png':item.brand&&item.brand.logoUrl?item.brand.logoUrl:'/images/component/default.png'">
               </nuxt-link>
               </nuxt-link>
             </td>
             </td>
             <td class="brand-code">
             <td class="brand-code">