Authored by biao

update to fix the detail description style issue

@@ -48,18 +48,34 @@ @@ -48,18 +48,34 @@
48 // width: 100%; 48 // width: 100%;
49 // border-bottom:1px solid $borderC; 49 // border-bottom:1px solid $borderC;
50 img { 50 img {
51 - position:absolute;  
52 - top:0;  
53 - bottom:0;  
54 - left:0; 51 + position:absolute;
  52 + top:0;
  53 + bottom:0;
  54 + left:0;
55 margin:auto; 55 margin:auto;
56 - width: pxToRem(90px); 56 + //width: pxToRem(90px);
57 height: auto; 57 height: auto;
58 padding-right: pxToRem(20px); 58 padding-right: pxToRem(20px);
59 } 59 }
  60 + .material-image {
  61 + display: inline-block;
  62 + width: 23%;
  63 + min-height: pxToRem(136px);
  64 + float: left;
  65 + //background-size: 100%;
  66 + background-position-x: center;
  67 + background-repeat: no-repeat;
  68 + }
60 .material-desc { 69 .material-desc {
61 - padding-left:pxToRem(120px); 70 + //padding-left:pxToRem(120px);
62 font-size: pxToRem(24px); 71 font-size: pxToRem(24px);
  72 + text-align: left;
  73 + display: inline-block;
  74 + width: 75%;
  75 + padding-left: 2%;
  76 + height: auto;
  77 + line-height: pxToRem(40px);
  78 + color: #4b4b4b;
63 } 79 }
64 &:last-child{ 80 &:last-child{
65 border-bottom: none; 81 border-bottom: none;
@@ -68,13 +84,13 @@ @@ -68,13 +84,13 @@
68 } 84 }
69 } 85 }
70 .wash-tips{ 86 .wash-tips{
71 - padding-top:pxToRem(18px); 87 + padding-top:pxToRem(18px);
72 &.page-block{ 88 &.page-block{
73 // border-top: 0px; 89 // border-top: 0px;
74 padding-left: pxToRem(15px); 90 padding-left: pxToRem(15px);
75 padding-right: pxToRem(15px); 91 padding-right: pxToRem(15px);
76 } 92 }
77 - // padding-bottom:pxToRem(18px); 93 + // padding-bottom:pxToRem(18px);
78 .tip{ 94 .tip{
79 display: inline-block; 95 display: inline-block;
80 width: 16.6%; 96 width: 16.6%;
@@ -83,7 +99,7 @@ @@ -83,7 +99,7 @@
83 img{ 99 img{
84 width: pxToRem(48px); 100 width: pxToRem(48px);
85 height: pxToRem(48px); 101 height: pxToRem(48px);
86 - margin-bottom: pxToRem(10px); 102 + margin-bottom: pxToRem(10px);
87 } 103 }
88 .caption{ 104 .caption{
89 display: block; 105 display: block;
@@ -93,7 +109,7 @@ @@ -93,7 +109,7 @@
93 margin-bottom: pxToRem(18px); 109 margin-bottom: pxToRem(18px);
94 } 110 }
95 } 111 }
96 - 112 +
97 } 113 }
98 .product-detail { 114 .product-detail {
99 .detail { 115 .detail {
@@ -150,4 +166,4 @@ @@ -150,4 +166,4 @@
150 } 166 }
151 } 167 }
152 } 168 }
153 -}  
  169 +}
@@ -69,10 +69,10 @@ @@ -69,10 +69,10 @@
69 {{#list}} 69 {{#list}}
70 {{#if @first}} 70 {{#if @first}}
71 <div class="swiper-slide first-group" > 71 <div class="swiper-slide first-group" >
72 - {{#params}} 72 + {{#params}}
73 {{#if @first}} 73 {{#if @first}}
74 - {{else}}  
75 - <img class="avatar lazy" data-original="{{param}}" alt=""> 74 + {{else}}
  75 + <img class="avatar lazy" data-original="{{param}}" alt="">
76 {{/if}} 76 {{/if}}
77 {{/params}} 77 {{/params}}
78 </div> 78 </div>
@@ -101,10 +101,14 @@ @@ -101,10 +101,14 @@
101 <div class="detail"> 101 <div class="detail">
102 {{#list}} 102 {{#list}}
103 <div class="material-item"> 103 <div class="material-item">
104 - <img class="lazy" data-original="{{img}}" alt=""> 104 + <!-- <img class="lazy" data-original="{{img}}" alt="">
105 <p class="material-desc"> 105 <p class="material-desc">
106 {{desc}} 106 {{desc}}
107 - </p> 107 + </p>-->
  108 + <div class="material-image" style="background-image:url({{img}})"></div>
  109 + <div class="material-desc">
  110 + {{desc}}
  111 + </div>
108 </div> 112 </div>
109 {{/list}} 113 {{/list}}
110 </div> 114 </div>
@@ -137,4 +141,4 @@ @@ -137,4 +141,4 @@
137 {{/list}} 141 {{/list}}
138 </div> 142 </div>
139 </div> 143 </div>
140 -{{/productDetail}}  
  144 +{{/productDetail}}