|
|
@@ -30,24 +30,26 @@
|
|
|
<table class="goodslist" style="width: 970px">
|
|
|
<thead>
|
|
|
<tr style="height: 40px;">
|
|
|
- <th width="90"></th>
|
|
|
+ <!--<th width="90"></th>-->
|
|
|
<th width="150">品牌/型号</th>
|
|
|
<th width="100">包装/生产日期</th>
|
|
|
<th width="90">库存</th>
|
|
|
<th width="90">数量</th>
|
|
|
- <th width="90">香港交货<span style="font-size: 12px;">($)</span></th>
|
|
|
- <th width="100">大陆交货<span style="font-size: 12px;">(¥)</span></th>
|
|
|
+ <!--<th width="90">香港交货<span style="font-size: 12px;">($)</span></th>-->
|
|
|
+ <!--<th width="100">大陆交货<span style="font-size: 12px;">(¥)</span></th>-->
|
|
|
+ <th width="100">单价</th>
|
|
|
<th width="100">交期(天)</th>
|
|
|
+ <th width="100">规格书</th>
|
|
|
<th width="100">操作</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody id="goodslist-content">
|
|
|
<tr v-for="commodity in commodities.content">
|
|
|
- <td class="commodity-icon">
|
|
|
- <a :href="'/store/' + commodity.storeid + '/' + commodity.batchCode" target="_blank">
|
|
|
- <div class="img"><img :src="commodity.img || '/images/store/common/default.png'"/></div>
|
|
|
- </a>
|
|
|
- </td>
|
|
|
+ <!--<td class="commodity-icon">-->
|
|
|
+ <!--<a :href="'/store/' + commodity.storeid + '/' + commodity.batchCode" target="_blank">-->
|
|
|
+ <!--<div class="img"><img :src="commodity.img || '/images/store/common/default.png'"/></div>-->
|
|
|
+ <!--</a>-->
|
|
|
+ <!--</td>-->
|
|
|
<td class="brand-code">
|
|
|
<div class="brand" v-if="commodity.brandNameEn" v-text="commodity.brandNameEn"></div>
|
|
|
<div class="brand" v-if="!commodity.brandNameEn">—</div>
|
|
|
@@ -75,17 +77,21 @@
|
|
|
<td>
|
|
|
<div v-for="price in commodity.prices" v-text="price.start + '+'"></div>
|
|
|
</td>
|
|
|
+ <!--<td>-->
|
|
|
+ <!--<div v-show="commodity.currencyName.indexOf('USD')==-1 || !commodity.prices">-->
|
|
|
+ <!--<span>—</span>-->
|
|
|
+ <!--</div>-->
|
|
|
+ <!--<div v-for="price in commodity.prices">{{price.uSDPrice | currency}}</div>-->
|
|
|
+ <!--</td>-->
|
|
|
+ <!--<td>-->
|
|
|
+ <!--<div v-show="commodity.currencyName.indexOf('RMB')==-1 || !commodity.prices">-->
|
|
|
+ <!--<span>—</span>-->
|
|
|
+ <!--</div>-->
|
|
|
+ <!--<div v-for="price in commodity.prices" >{{price.rMBPrice | currency}}</div>-->
|
|
|
+ <!--</td>-->
|
|
|
<td>
|
|
|
- <div v-show="commodity.currencyName.indexOf('USD')==-1 || !commodity.prices">
|
|
|
- <span>—</span>
|
|
|
- </div>
|
|
|
- <div v-for="price in commodity.prices">{{price.uSDPrice | currency}}</div>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <div v-show="commodity.currencyName.indexOf('RMB')==-1 || !commodity.prices">
|
|
|
- <span>—</span>
|
|
|
- </div>
|
|
|
- <div v-for="price in commodity.prices" >{{price.rMBPrice | currency}}</div>
|
|
|
+ <div v-for="price in commodity.prices">{{commodity.currencyName.indexOf('USD')!=-1?'$':'¥'}}{{commodity.currencyName.indexOf('USD')!=-1?price.uSDPrice:price.rMBPrice | currency}}</div>
|
|
|
+ <div v-if="commodity.currencyName.indexOf('RMB')==-1 || !commodity.prices && commodity.currencyName.indexOf('USD')==-1 || !commodity.prices"></div>
|
|
|
</td>
|
|
|
<td>
|
|
|
<div v-if="commodity.b2cMinDelivery">交期:
|
|
|
@@ -95,6 +101,12 @@
|
|
|
</div>
|
|
|
<div v-if="!commodity.b2cMinDelivery"><span>—</span></div>
|
|
|
</td>
|
|
|
+ <td>
|
|
|
+ <div v-if="commodity.attach">
|
|
|
+ <a :href="commodity.attach && commodity.attach !== 1" target="_blank"><img src="/images/store/common/pdf.png" alt=""/></a>
|
|
|
+ </div>
|
|
|
+ <div v-show="!commodity.attach">—</div>
|
|
|
+ </td>
|
|
|
<td>
|
|
|
<buy :item="commodity"></buy>
|
|
|
</td>
|
|
|
@@ -192,6 +204,7 @@ export default {
|
|
|
},
|
|
|
computed: {
|
|
|
commodities () {
|
|
|
+// console.log(this.$store.state.shop.storeInfo.storeCommodity)
|
|
|
return this.$store.state.shop.storeInfo.storeCommodity.data
|
|
|
}
|
|
|
},
|
|
|
@@ -428,7 +441,11 @@ export default {
|
|
|
|
|
|
#goods-list-fragment .goodslist tbody>tr {
|
|
|
border: 1px solid #e8e8e8;
|
|
|
+ cursor: pointer;
|
|
|
}
|
|
|
+#goods-list-fragment .goodslist tbody>tr:hover{
|
|
|
+ background: #ecf2fd;
|
|
|
+}
|
|
|
#goods-list-fragment .goodslist tbody>tr td.commodity-icon .img{
|
|
|
border: 1px solid #e8e8e8;
|
|
|
margin: 10px;
|
|
|
@@ -453,6 +470,7 @@ export default {
|
|
|
|
|
|
/* 物品列表按钮 */
|
|
|
#goods-list-fragment .btn-buy-now {
|
|
|
+ margin: 5px 0;
|
|
|
background-color: #5078CB;
|
|
|
color: #fff;
|
|
|
width: 80px;
|
|
|
@@ -462,7 +480,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
#goods-list-fragment .btn-add-cart {
|
|
|
- margin-top: 10px;
|
|
|
+ margin: 10px 0 5px 0;
|
|
|
color: #214797;
|
|
|
width: 80px;
|
|
|
height: 30px;
|