Authored by Lynnic

修改商品详情数据结构

@@ -1195,6 +1195,7 @@ @@ -1195,6 +1195,7 @@
1195 "caption":"不可干洗", 1195 "caption":"不可干洗",
1196 "img":"http://static.yohobuy.com/images/wash_5.png" 1196 "img":"http://static.yohobuy.com/images/wash_5.png"
1197 } 1197 }
  1198 + ...
1198 ] 1199 ]
1199 } 1200 }
1200 1201
@@ -1203,7 +1204,12 @@ @@ -1203,7 +1204,12 @@
1203 'title' : '商品详情', 1204 'title' : '商品详情',
1204 'enTitle' : '', 1205 'enTitle' : '',
1205 'desc' : 'Married to the MOB是由Leah McSweeney创立的女装品牌,一向标榜不羁、大胆的女性streetwear设计', 1206 'desc' : 'Married to the MOB是由Leah McSweeney创立的女装品牌,一向标榜不羁、大胆的女性streetwear设计',
1206 - 'img' : '' 1207 + 'list' : [
  1208 + {
  1209 + 'img':''
  1210 + }
  1211 + ...
  1212 + ]
1207 }, 1213 },
1208 1214
1209 'cartInfo' : { 1215 'cartInfo' : {
@@ -84,11 +84,8 @@ @@ -84,11 +84,8 @@
84 .measurement-method { 84 .measurement-method {
85 .detail { 85 .detail {
86 width: 100%; 86 width: 100%;
87 - height: pxToRem(260px);  
88 img { 87 img {
89 - float: left;  
90 width: 100%; 88 width: 100%;
91 - height: pxToRem(239px);  
92 margin-top: pxToRem(18px); 89 margin-top: pxToRem(18px);
93 margin-right: pxToRem(28px); 90 margin-right: pxToRem(28px);
94 } 91 }
@@ -74,14 +74,14 @@ @@ -74,14 +74,14 @@
74 {{#list}} 74 {{#list}}
75 {{#if @first}} 75 {{#if @first}}
76 <div class="swiper-slide first-group" > 76 <div class="swiper-slide first-group" >
77 - {{#params}}  
78 - {{#if @first}} 77 + <!-- {{#params}}
  78 + {{#if @first}
79 {{else}} 79 {{else}}
80 - <img class="lazy avatar" data-original="{{param}}" /> 80 + <img class="lazy avatar" data-original="{{param}}" alt="">
81 {{/if}} 81 {{/if}}
82 - {{/params}} 82 + {{/params}} -->
83 </div> 83 </div>
84 - {{^}} 84 + {{else}}
85 <div class="swiper-slide" > 85 <div class="swiper-slide" >
86 {{#params}} 86 {{#params}}
87 <div class=" cell">{{param}}</div> 87 <div class=" cell">{{param}}</div>
@@ -135,7 +135,9 @@ @@ -135,7 +135,9 @@
135 </h1> 135 </h1>
136 <div class="detail"> 136 <div class="detail">
137 <p>{{desc}}</p> 137 <p>{{desc}}</p>
  138 + {{#list}}
138 <img class="lazy" data-original="{{img}}" alt=""> 139 <img class="lazy" data-original="{{img}}" alt="">
  140 + {{/list}}
139 </div> 141 </div>
140 </div> 142 </div>
141 {{/productDetail}} 143 {{/productDetail}}