Browse Source

Merge remote-tracking branch 'origin/release-201821-wangcz' into release-201821-wangcz

huangb 7 years ago
parent
commit
a8e707dd6a
1 changed files with 4 additions and 4 deletions
  1. 4 4
      components/store/home/RecommendPcb.vue

+ 4 - 4
components/store/home/RecommendPcb.vue

@@ -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"/>