Authored by yyq

fix product scroll

@@ -115,6 +115,7 @@ export default { @@ -115,6 +115,7 @@ export default {
115 115
116 &.single { 116 &.single {
117 width: 690px; 117 width: 690px;
  118 + margin-right: 0;
118 } 119 }
119 } 120 }
120 121
1 <template> 1 <template>
2 <div class="product-group"> 2 <div class="product-group">
3 - <ProductGroupItem  
4 - v-for="(product, inx) in data"  
5 - :share="share"  
6 - :thumb="thumb"  
7 - :single="single"  
8 - :product="product"  
9 - :article-id="articleId"  
10 - :pos-id="posId"  
11 - :lazy="lazy"  
12 - :index="index"  
13 - :key="inx">  
14 - </ProductGroupItem> 3 + <div class="product-group-scroll">
  4 + <ProductGroupItem
  5 + v-for="(product, inx) in data"
  6 + :share="share"
  7 + :thumb="thumb"
  8 + :single="single"
  9 + :product="product"
  10 + :article-id="articleId"
  11 + :pos-id="posId"
  12 + :lazy="lazy"
  13 + :index="index"
  14 + :key="inx">
  15 + </ProductGroupItem>
  16 + </div>
15 </div> 17 </div>
16 </template> 18 </template>
17 19
@@ -51,11 +53,16 @@ export default { @@ -51,11 +53,16 @@ export default {
51 53
52 <style lang="scss" scoped> 54 <style lang="scss" scoped>
53 .product-group { 55 .product-group {
  56 + height: 182px;
  57 + margin: 40px 0;
  58 + overflow-y: hidden;
  59 +}
  60 +
  61 +.product-group-scroll {
54 width: 100%; 62 width: 100%;
55 overflow-x: auto; 63 overflow-x: auto;
56 overflow-y: hidden; 64 overflow-y: hidden;
57 - height: 180px;  
58 - margin: 40px 0; 65 + height: 220px;
59 white-space: nowrap; 66 white-space: nowrap;
60 -webkit-overflow-scrolling: touch; 67 -webkit-overflow-scrolling: touch;
61 } 68 }