Browse Source

店铺产品添加类目字段

yangc 7 years ago
parent
commit
d74692c0b0
1 changed files with 3 additions and 1 deletions
  1. 3 1
      components/store/CommodityList.vue

+ 3 - 1
components/store/CommodityList.vue

@@ -35,7 +35,7 @@
           <thead>
           <tr style="height: 40px;">
             <!--<th width="90"></th>-->
-            <th width="150">品牌/型号</th>
+            <th width="150">品牌/型号/类目</th>
             <th width="100">包装/生产日期</th>
             <th width="90">库存</th>
             <th width="90">梯度/pcs</th>
@@ -60,6 +60,8 @@
               <div class="brand" v-if="!commodity.brandNameEn && !commodity.brandEn">—</div>
               <div class="code" v-if="commodity.code" v-text="commodity.code"></div>
               <div class="code" v-if="!commodity.code">—</div>
+              <a v-if="commodity.kindNameCn" @click="goBrandDetail('/product/kind/' + commodity.kindUuid, $event)" v-text="commodity.kindNameCn"></a>
+              <div class="brand" v-if="!commodity.kindNameCn">—</div>
             </td>
             <td>
               <div class="package" v-if="commodity.packaging" v-text="commodity.packaging"></div>