|
|
@@ -17,7 +17,7 @@
|
|
|
<div v-if="commodities.length>0">
|
|
|
<div v-if="commodities.length<=4">
|
|
|
<ul class="recommend-list clearfix">
|
|
|
- <li v-for="commodity in commodities.slice(0,4)" class="big">
|
|
|
+ <li v-for="commodity in commodities.slice(0,3)" class="big">
|
|
|
<a :href="commodity.batchCode ? '/store/productDetail/'+ commodity.batchCode : '#'" class="href">
|
|
|
<div class="img">
|
|
|
<img :src="commodity.comImg.startsWith('static')?'/'+commodity.comImg:commodity.comImg"/>
|
|
|
@@ -54,7 +54,7 @@
|
|
|
</div>
|
|
|
<div class="swiper-slide" v-if="commodities.length>4">
|
|
|
<ul class="recommend-list clearfix">
|
|
|
- <li v-for="commodity in commodities.slice(4,7)" class="big">
|
|
|
+ <li v-for="commodity in commodities.slice(4,8)" class="big">
|
|
|
<a :href="commodity.batchCode ? '/store/productDetail/'+ commodity.batchCode : '#'" class="href">
|
|
|
<div class="img">
|
|
|
<img :src="commodity.comImg.startsWith('static')?'/'+commodity.comImg:commodity.comImg"/>
|
|
|
@@ -71,7 +71,7 @@
|
|
|
</div>
|
|
|
<div class="swiper-slide" v-if="commodities.length>8">
|
|
|
<ul class="recommend-list clearfix">
|
|
|
- <li v-for="commodity in commodities.slice(8,11)" class="big">
|
|
|
+ <li v-for="commodity in commodities.slice(8,12)" class="big">
|
|
|
<a :href="commodity.batchCode ? '/store/productDetail/'+ commodity.batchCode : '#'" class="href">
|
|
|
<div class="img">
|
|
|
<img :src="commodity.comImg.startsWith('static')?'/'+commodity.comImg:commodity.comImg"/>
|
|
|
@@ -88,7 +88,7 @@
|
|
|
</div>
|
|
|
<div class="swiper-slide" v-if="commodities.length>12">
|
|
|
<ul class="recommend-list clearfix">
|
|
|
- <li v-for="commodity in commodities.slice(12,15)" class="big">
|
|
|
+ <li v-for="commodity in commodities.slice(12,16)" class="big">
|
|
|
<a :href="commodity.batchCode ? '/store/productDetail/'+ commodity.batchCode : '#'" class="href">
|
|
|
<div class="img">
|
|
|
<img :src="commodity.comImg.startsWith('static')?'/'+commodity.comImg:commodity.comImg"/>
|