Authored by Lynnic

page optimization

@@ -6,8 +6,11 @@ @@ -6,8 +6,11 @@
6 var $ = require('jquery'), 6 var $ = require('jquery'),
7 Swiper = require('yoho.iswiper'), 7 Swiper = require('yoho.iswiper'),
8 lazyLoad = require('yoho.lazyload'), 8 lazyLoad = require('yoho.lazyload'),
9 - Handlebars = require('yoho.handlebars'),  
10 - goodsSwiper, 9 + Handlebars = require('yoho.handlebars');
  10 +
  11 +var goodsSwiper,
  12 +
  13 + // winH = $(window).height(),
11 sizeSwiper, 14 sizeSwiper,
12 refSwiper, 15 refSwiper,
13 handleHelper; 16 handleHelper;
@@ -57,7 +60,9 @@ handleHelper = Handlebars.registerHelper('addOne', function(index) { @@ -57,7 +60,9 @@ handleHelper = Handlebars.registerHelper('addOne', function(index) {
57 return index + 1; 60 return index + 1;
58 }); 61 });
59 62
60 -// $('#iframe').load(function() {  
61 -// var mainheight = $(this).contents().find('body').height() + 30;  
62 -// $(this).height(mainheight); 63 +
  64 +//srcoll to load more
  65 +// $(window).scroll(function () {
  66 +// if ($(window).scrollTop() + winH >= $(document).height() - 50) {
  67 +// }
63 // }); 68 // });
@@ -5,7 +5,7 @@ $tableCellC:#eee; @@ -5,7 +5,7 @@ $tableCellC:#eee;
5 $basicBtnC:#eb0313; 5 $basicBtnC:#eb0313;
6 6
7 .good-detail-page { 7 .good-detail-page {
8 - 8 +overflow: hidden;
9 /* basic component */ 9 /* basic component */
10 .page-block{ 10 .page-block{
11 box-sizing:border-box; 11 box-sizing:border-box;
@@ -14,7 +14,6 @@ $basicBtnC:#eb0313; @@ -14,7 +14,6 @@ $basicBtnC:#eb0313;
14 border-top: 1px solid $borderC; 14 border-top: 1px solid $borderC;
15 padding: 0 pxToRem(28px); 15 padding: 0 pxToRem(28px);
16 >.title{ 16 >.title{
17 - min-height: pxToRem(88px);  
18 line-height: pxToRem(88px); 17 line-height: pxToRem(88px);
19 color: $mainFontC; 18 color: $mainFontC;
20 font-size : pxToRem(28px); 19 font-size : pxToRem(28px);
@@ -23,7 +22,6 @@ $basicBtnC:#eb0313; @@ -23,7 +22,6 @@ $basicBtnC:#eb0313;
23 span{ 22 span{
24 color:#a0a0a0; 23 color:#a0a0a0;
25 font-size:pxToRem(18px); 24 font-size:pxToRem(18px);
26 - // vertical-align: baseline;  
27 } 25 }
28 } 26 }
29 .detail{ 27 .detail{
@@ -40,24 +38,15 @@ $basicBtnC:#eb0313; @@ -40,24 +38,15 @@ $basicBtnC:#eb0313;
40 .column{ 38 .column{
41 display: table-cell; 39 display: table-cell;
42 padding: 0.4em 0.8em; 40 padding: 0.4em 0.8em;
43 - border:1px solid white; 41 + border:1px solid #fff;
44 font-size: pxToRem(24px); 42 font-size: pxToRem(24px);
45 background-color: $tableCellC; 43 background-color: $tableCellC;
46 } 44 }
47 } 45 }
48 } 46 }
49 -  
50 - // table {  
51 - // width: 100%;  
52 - // tbody td{  
53 - // padding: 0.4em 0.8em;  
54 - // border:3px solid white;  
55 - // font-size: pxToRem(24px);  
56 - // background-color: $tableCellC;  
57 - // }  
58 - // }  
59 } 47 }
60 } 48 }
  49 +
61 .gap-block{ 50 .gap-block{
62 min-height: 30rem/$pxConvertRem; 51 min-height: 30rem/$pxConvertRem;
63 background-color: #f0f0f0; 52 background-color: #f0f0f0;
@@ -167,7 +156,7 @@ $basicBtnC:#eb0313; @@ -167,7 +156,7 @@ $basicBtnC:#eb0313;
167 h1{ 156 h1{
168 display: inline-block; 157 display: inline-block;
169 line-height: pxToRem(88px); 158 line-height: pxToRem(88px);
170 -} 159 + }
171 } 160 }
172 .goodsName, 161 .goodsName,
173 .goodsSubtitle{ 162 .goodsSubtitle{
@@ -179,6 +168,8 @@ $basicBtnC:#eb0313; @@ -179,6 +168,8 @@ $basicBtnC:#eb0313;
179 } 168 }
180 } 169 }
181 .vipLevel { 170 .vipLevel {
  171 + width: 100%;
  172 + box-sizing:border-box;
182 display: table; 173 display: table;
183 min-height: pxToRem(88px); 174 min-height: pxToRem(88px);
184 padding-left:pxToRem(28px); 175 padding-left:pxToRem(28px);
@@ -213,17 +204,21 @@ $basicBtnC:#eb0313; @@ -213,17 +204,21 @@ $basicBtnC:#eb0313;
213 color: $mainFontC; 204 color: $mainFontC;
214 line-height: pxToRem(88px); 205 line-height: pxToRem(88px);
215 206
216 - border-bottom: 2px solid $borderC; 207 + border-bottom: 1px solid $borderC;
217 208
218 .iconfont{ 209 .iconfont{
219 - // padding-right:28rem/$pxConvertRem;  
220 - font-size: inherit; 210 + display: inline-block;
  211 + width: pxToRem(35px);
  212 + font-size: pxToRem(45px);
221 float: right; 213 float: right;
222 color:#e0e0e0; 214 color:#e0e0e0;
223 - text-align: right; 215 + // padding-left:pxToRem(50px);
224 } 216 }
225 } 217 }
226 - 218 +.goodsSubtitle,
  219 +.goodsDiscount{
  220 + text-indent: pxToRem(-14px);
  221 +}
227 .feedback-list-page { 222 .feedback-list-page {
228 padding-top: pxToRem(30px); 223 padding-top: pxToRem(30px);
229 background-color: #f0f0f0; 224 background-color: #f0f0f0;
@@ -254,30 +249,28 @@ $basicBtnC:#eb0313; @@ -254,30 +249,28 @@ $basicBtnC:#eb0313;
254 color: #000; 249 color: #000;
255 } 250 }
256 } 251 }
257 -  
258 .comment-nav { 252 .comment-nav {
259 border-right: 1px solid #ccc; 253 border-right: 1px solid #ccc;
260 } 254 }
261 -  
262 .comment-content{ 255 .comment-content{
263 .comment-content-main{ 256 .comment-content-main{
264 background-color: #fff; 257 background-color: #fff;
265 border-bottom: 1px solid $borderC; 258 border-bottom: 1px solid $borderC;
266 .user-name{ 259 .user-name{
267 - font-size: px2rem(24);  
268 - line-height: px2rem(62); 260 + font-size: pxToRem(24px);
  261 + line-height: pxToRem(62px);
269 color:$mainFontC; 262 color:$mainFontC;
270 - padding-left: px2rem(28);  
271 - padding-right: px2rem(18); 263 + padding-left: pxToRem(28px);
  264 + padding-right: pxToRem(18px);
272 } 265 }
273 .goods-spec, 266 .goods-spec,
274 .comment-time{ 267 .comment-time{
275 - font-size: px2rem(24);  
276 - line-height: px2rem(62); 268 + font-size: pxToRem(24px);
  269 + line-height: pxToRem(62px);
277 } 270 }
278 .detail-content{ 271 .detail-content{
279 - font-size: px2rem(28);  
280 - line-height: px2rem(36); 272 + font-size: pxToRem(28px);
  273 + line-height: pxToRem(36px);
281 font-size: pxToRem(24px); 274 font-size: pxToRem(24px);
282 line-height: pxToRem(62px); 275 line-height: pxToRem(62px);
283 color:$mainFontC; 276 color:$mainFontC;
@@ -299,17 +292,15 @@ $basicBtnC:#eb0313; @@ -299,17 +292,15 @@ $basicBtnC:#eb0313;
299 } 292 }
300 .detail-content, 293 .detail-content,
301 .comment-time{ 294 .comment-time{
302 - padding-left: px2rem(28); 295 + padding-left: pxToRem(28px);
303 296
304 } 297 }
305 .detail-content{ 298 .detail-content{
306 - padding-right: px2rem(28); 299 + padding-right: pxToRem(28px);
307 padding-left: pxToRem(28px); 300 padding-left: pxToRem(28px);
308 -  
309 } 301 }
310 .detail-content{ 302 .detail-content{
311 padding-right: pxToRem(28px); 303 padding-right: pxToRem(28px);
312 -  
313 } 304 }
314 .comment-time{ 305 .comment-time{
315 color:#c1c1c1; 306 color:#c1c1c1;
@@ -322,7 +313,7 @@ $basicBtnC:#eb0313; @@ -322,7 +313,7 @@ $basicBtnC:#eb0313;
322 text-align: center; 313 text-align: center;
323 background-color: #fff; 314 background-color: #fff;
324 315
325 - border-bottom: 2px solid $borderC; 316 + border-bottom: 1px solid $borderC;
326 line-height: pxToRem(88px); 317 line-height: pxToRem(88px);
327 font-size: pxToRem(28px); 318 font-size: pxToRem(28px);
328 319
@@ -332,7 +323,7 @@ $basicBtnC:#eb0313; @@ -332,7 +323,7 @@ $basicBtnC:#eb0313;
332 font-size: inherit; 323 font-size: inherit;
333 } 324 }
334 } 325 }
335 - } 326 +}
336 327
337 328
338 } 329 }
@@ -353,10 +344,8 @@ $basicBtnC:#eb0313; @@ -353,10 +344,8 @@ $basicBtnC:#eb0313;
353 .store-logo{ 344 .store-logo{
354 // padding-right: 35rem/$pxConvertRem; 345 // padding-right: 35rem/$pxConvertRem;
355 img{ 346 img{
356 -  
357 width: pxToRem(109px); 347 width: pxToRem(109px);
358 height: pxToRem(68px); 348 height: pxToRem(68px);
359 -  
360 margin-left: 0; 349 margin-left: 0;
361 margin-right: pxToRem(-25px); 350 margin-right: pxToRem(-25px);
362 } 351 }
@@ -374,17 +363,19 @@ $basicBtnC:#eb0313; @@ -374,17 +363,19 @@ $basicBtnC:#eb0313;
374 } 363 }
375 } 364 }
376 } 365 }
377 - .goods-desc{ 366 +.goods-desc{
378 .service{ 367 .service{
  368 + width: pxToRem(489px);
  369 + height: pxToRem(28px);
379 margin-top: pxToRem(22px); 370 margin-top: pxToRem(22px);
380 } 371 }
381 - }  
382 - .tips{ 372 +}
  373 +.tips{
383 color:$subFontC; 374 color:$subFontC;
384 font-size: pxToRem(18px); 375 font-size: pxToRem(18px);
385 margin-top: pxToRem(20px); 376 margin-top: pxToRem(20px);
386 - }  
387 - .materials{ 377 +}
  378 +.materials{
388 .detail{ 379 .detail{
389 img{ 380 img{
390 display: block; 381 display: block;
@@ -395,12 +386,14 @@ $basicBtnC:#eb0313; @@ -395,12 +386,14 @@ $basicBtnC:#eb0313;
395 float: left; 386 float: left;
396 } 387 }
397 .material-desc{ 388 .material-desc{
398 - // float: left;  
399 font-size: pxToRem(24px); 389 font-size: pxToRem(24px);
  390 + overflow: hidden;
400 391
401 } 392 }
402 } 393 }
403 .material-type{ 394 .material-type{
  395 + width: pxToRem(581px);
  396 + height: pxToRem(99px);
404 border-top: 1px solid $borderC; 397 border-top: 1px solid $borderC;
405 padding: pxToRem(17px) 0; 398 padding: pxToRem(17px) 0;
406 } 399 }
@@ -435,10 +428,15 @@ $basicBtnC:#eb0313; @@ -435,10 +428,15 @@ $basicBtnC:#eb0313;
435 } 428 }
436 429
437 #reference-swiper-container{ 430 #reference-swiper-container{
  431 +
438 .first-group{ 432 .first-group{
439 - width: pxToRem(58px);  
440 - >div{  
441 - height: pxToRem(67px); 433 + width: pxToRem(70px);
  434 + margin-top: pxToRem(66px);
  435 + .avatar{
  436 + line-height: pxToRem(40px);
  437 + width: pxToRem(40px);
  438 + height: pxToRem(40px);
  439 + margin: pxToRem(18px) 0;
442 } 440 }
443 } 441 }
444 } 442 }
@@ -446,7 +444,7 @@ $basicBtnC:#eb0313; @@ -446,7 +444,7 @@ $basicBtnC:#eb0313;
446 .measurement-method{ 444 .measurement-method{
447 .detail{ 445 .detail{
448 width: 100%; 446 width: 100%;
449 - height: pxToRem(300px); 447 + // height: pxToRem(300px);
450 img{ 448 img{
451 float:left; 449 float:left;
452 width: pxToRem(270px); 450 width: pxToRem(270px);
@@ -455,7 +453,7 @@ $basicBtnC:#eb0313; @@ -455,7 +453,7 @@ $basicBtnC:#eb0313;
455 margin-right: pxToRem(28px); 453 margin-right: pxToRem(28px);
456 } 454 }
457 .right-part{ 455 .right-part{
458 - float:left; 456 + overflow: hidden;
459 .title{ 457 .title{
460 >h1{ 458 >h1{
461 margin-top: pxToRem(10px); 459 margin-top: pxToRem(10px);
@@ -480,7 +478,7 @@ $basicBtnC:#eb0313; @@ -480,7 +478,7 @@ $basicBtnC:#eb0313;
480 height: pxToRem(15px); 478 height: pxToRem(15px);
481 background-color: $basicBtnC; 479 background-color: $basicBtnC;
482 border-radius: 50%; 480 border-radius: 50%;
483 - color:white; 481 + color:#fff;
484 text-align: center; 482 text-align: center;
485 line-height: pxToRem(15px); 483 line-height: pxToRem(15px);
486 font-size: pxToRem(13px); 484 font-size: pxToRem(13px);
@@ -491,37 +489,33 @@ $basicBtnC:#eb0313; @@ -491,37 +489,33 @@ $basicBtnC:#eb0313;
491 } 489 }
492 } 490 }
493 clear:both; 491 clear:both;
494 - }  
495 - }  
496 - .cart-bar{ 492 +}
  493 +}
  494 +.cart-bar{
497 position: relative; 495 position: relative;
498 box-sizing:border-box; 496 box-sizing:border-box;
499 width: 100%; 497 width: 100%;
500 height: pxToRem(120px); 498 height: pxToRem(120px);
501 position:fixed; 499 position:fixed;
502 bottom: 0; 500 bottom: 0;
503 - background-color: white; 501 + background-color: #fff;
504 z-index: 64; 502 z-index: 64;
505 padding:pxToRem(20px) pxToRem(28px); 503 padding:pxToRem(20px) pxToRem(28px);
506 text-align: center; 504 text-align: center;
507 -  
508 -  
509 a{ 505 a{
510 display: inline-block; 506 display: inline-block;
511 &.num-incart{ 507 &.num-incart{
512 - width: pxToRem(45px);  
513 - height: pxToRem(45px);  
514 - background: url(../img/product/cart.png) no-repeat; 508 + font-size: pxToRem(47px);
  509 + color:#444;
515 } 510 }
516 &.favorite{ 511 &.favorite{
517 - width: pxToRem(34px);  
518 - height: pxToRem(32px);  
519 - background:url(../img/product/favorite.png) no-repeat; 512 + font-size: pxToRem(34px);
  513 + color:$basicBtnC;
520 } 514 }
521 &.addto-cart{ 515 &.addto-cart{
522 height: pxToRem(80px); 516 height: pxToRem(80px);
523 width: pxToRem(260px); 517 width: pxToRem(260px);
524 - margin:0 pxToRem(100px) 0 pxToRem(128px); 518 + margin:0 pxToRem(100px) 0 pxToRem(115px);
525 color: #fff; 519 color: #fff;
526 background-color: $basicBtnC; 520 background-color: $basicBtnC;
527 font-size: pxToRem(40px); 521 font-size: pxToRem(40px);
@@ -538,11 +532,8 @@ $basicBtnC:#eb0313; @@ -538,11 +532,8 @@ $basicBtnC:#eb0313;
538 height: pxToRem(36px); 532 height: pxToRem(36px);
539 background-color: $basicBtnC; 533 background-color: $basicBtnC;
540 border-radius: 50%; 534 border-radius: 50%;
541 - color:white; 535 + color:#fff;
542 font-size: pxToRem(24px); 536 font-size: pxToRem(24px);
543 } 537 }
544 -  
545 - }  
546 -  
547 - 538 +}
548 } 539 }
1 -  
2 {{> layout/header}} 1 {{> layout/header}}
3 <div class="good-detail-page yoho-page"> 2 <div class="good-detail-page yoho-page">
4 -  
5 <div class="banner-container"> 3 <div class="banner-container">
6 -  
7 <h1 class="is-new-lable">NEW</h1> 4 <h1 class="is-new-lable">NEW</h1>
8 {{# bannerTop}} 5 {{# bannerTop}}
9 {{> product/banner_swiper_arrow}} 6 {{> product/banner_swiper_arrow}}
10 {{/ bannerTop}} 7 {{/ bannerTop}}
11 </div> 8 </div>
12 9
13 -  
14 -  
15 -  
16 {{# goodsName}} 10 {{# goodsName}}
17 <h2 class="goodsName"><span>{{.}}</span></h2> 11 <h2 class="goodsName"><span>{{.}}</span></h2>
18 {{/ goodsName}} 12 {{/ goodsName}}
@@ -21,10 +15,6 @@ @@ -21,10 +15,6 @@
21 <h1 class="goodsSubtitle"><span>{{.}}</span></h1> 15 <h1 class="goodsSubtitle"><span>{{.}}</span></h1>
22 {{/ goodsSubtitle}} 16 {{/ goodsSubtitle}}
23 17
24 - <!-- {{# goodsTitle}}  
25 - <h1 class="goodsTitle">{{.}}</h1>  
26 - {{/ goodsTitle}} -->  
27 -  
28 <div class="price-date"> 18 <div class="price-date">
29 {{#goodsPrice}} 19 {{#goodsPrice}}
30 <div class="goodsPrice"> 20 <div class="goodsPrice">
@@ -32,44 +22,32 @@ @@ -32,44 +22,32 @@
32 <h1 class="previousPrice">{{previousPrice}}</h1> 22 <h1 class="previousPrice">{{previousPrice}}</h1>
33 </div> 23 </div>
34 {{/goodsPrice}} 24 {{/goodsPrice}}
35 -  
36 {{#periodOfMarket}} 25 {{#periodOfMarket}}
37 <div class="periodOfMarket"> 26 <div class="periodOfMarket">
38 <h1>上市期:</h1> 27 <h1>上市期:</h1>
39 <h1 >{{.}}</h1> 28 <h1 >{{.}}</h1>
40 </div> 29 </div>
41 {{/periodOfMarket}} 30 {{/periodOfMarket}}
42 - </div>  
43 -  
44 - <!-- {{# vipLevel}}  
45 - <div class="vipLevel">  
46 - {{# list}}  
47 - {{#if @last}}  
48 - <span>{{text}}</span>  
49 - {{^}}  
50 - <span>{{text}}</span> |  
51 - {{/if}}  
52 - {{/ list}}  
53 - </div>  
54 - {{/ vipLevel}} --> 31 +</div>
55 32
56 - {{# vipLevel}}  
57 - <div class="vipLevel"> 33 +{{# vipLevel}}
  34 +<div class="vipLevel">
58 {{# list}} 35 {{# list}}
59 - <span class="vip-img"><img src="{{img}}" alt=""></span> 36 +<span class="vip-img">
  37 + <img class="lazy" data-original="{{img}}" alt="">
  38 +</span>
60 <span class="vip-price">{{text}}</span> 39 <span class="vip-price">{{text}}</span>
61 {{/ list}} 40 {{/ list}}
62 - </div>  
63 - {{/ vipLevel}} 41 +</div>
  42 +{{/ vipLevel}}
64 43
65 - {{#goodsDiscount}}  
66 - <div class="goodsDiscount"> 44 +{{#goodsDiscount}}
  45 +<div class="goodsDiscount">
67 <h1>{{.}}<span class="iconfont">&#xe609;</span></h1> 46 <h1>{{.}}<span class="iconfont">&#xe609;</span></h1>
68 - </div>  
69 - {{/goodsDiscount}}  
70 - 47 +</div>
  48 +{{/goodsDiscount}}
71 49
72 - <div class="feedback-list-page "> 50 +<div class="feedback-list-page ">
73 {{# feedbacks}} 51 {{# feedbacks}}
74 <ul id="nav-tab" class="nav-tab clearfix"> 52 <ul id="nav-tab" class="nav-tab clearfix">
75 <li class="comment-nav focus">{{commentName}}</li> 53 <li class="comment-nav focus">{{commentName}}</li>
@@ -104,30 +82,31 @@ @@ -104,30 +82,31 @@
104 </div> 82 </div>
105 </div> 83 </div>
106 {{/ feedbacks}} 84 {{/ feedbacks}}
107 - </div>  
108 - <div class="gap-block"></div> 85 +</div>
  86 +
  87 +<div class="gap-block"></div>
109 88
110 - {{# enterStore}}  
111 - <div class="enter-store page-block"> 89 +{{# enterStore}}
  90 +<div class="enter-store page-block">
112 <a class="store-logo" href="{{url}}" style=""> 91 <a class="store-logo" href="{{url}}" style="">
113 - <img src="{{img}}" alt="{{storeName}}"> 92 + <img class="lazy" data-original="{{img}}" alt="{{storeName}}">
114 </a> 93 </a>
115 <a class="store-name" href="{{url}}">{{storeName}}</a> 94 <a class="store-name" href="{{url}}">{{storeName}}</a>
116 <a class="store-link" href="{{url}}">进入店铺<span class="iconfont">&#xe604;</span></a> 95 <a class="store-link" href="{{url}}">进入店铺<span class="iconfont">&#xe604;</span></a>
117 - </div>  
118 - {{/ enterStore}}  
119 - <div class="gap-block"></div>  
120 - <!-- <iframe src="http://www.baidu.com" id="main" width="320" height="300" frameborder="0" scrolling="auto"></iframe> --> 96 +</div>
  97 +{{/ enterStore}}
  98 +
  99 +<div class="gap-block"></div>
121 100
122 - {{#goodsDescription}}  
123 - <div class="goods-desc page-block">  
124 - <img class="service" src="http://static.dev.yohobuy.com/img/product/service.png" alt=""> 101 +{{#goodsDescription}}
  102 +<div class="goods-desc page-block">
  103 + <img class="service lazy" data-original="http://static.dev.yohobuy.com/img/product/service.png" alt="">
125 <h1 class="title"> 104 <h1 class="title">
126 {{title}} 105 {{title}}
127 <span class="en-title">{{enTitle}}</span> 106 <span class="en-title">{{enTitle}}</span>
128 - </h1>  
129 - {{#detail}}  
130 - <div class="detail table"> 107 +</h1>
  108 +{{#detail}}
  109 +<div class="detail table">
131 <div class="row"> 110 <div class="row">
132 <div class="column">编号:{{nubmer}}</div> 111 <div class="column">编号:{{nubmer}}</div>
133 <div class="column">帽型:{{hatType}}</div> 112 <div class="column">帽型:{{hatType}}</div>
@@ -144,21 +123,21 @@ @@ -144,21 +123,21 @@
144 <div class="column">性别:{{gender}}</div> 123 <div class="column">性别:{{gender}}</div>
145 <div class="column">风格:{{style}}</div> 124 <div class="column">风格:{{style}}</div>
146 </div> 125 </div>
147 - </div>  
148 - {{/detail}}  
149 - </div>  
150 - {{/goodsDescription}} 126 +</div>
  127 +{{/detail}}
  128 +</div>
  129 +{{/goodsDescription}}
151 130
152 - <div class="gap-block"></div> 131 +<div class="gap-block"></div>
153 132
154 - {{#sizeInfo}}  
155 - <div class="size-info page-block"> 133 +{{#sizeInfo}}
  134 +<div class="size-info page-block">
156 <h1 class="title"> 135 <h1 class="title">
157 {{title}} 136 {{title}}
158 <span class="en-title">{{enTitle}}</span> 137 <span class="en-title">{{enTitle}}</span>
159 - </h1>  
160 - {{#detail}}  
161 - <div class="detail"> 138 +</h1>
  139 +{{#detail}}
  140 +<div class="detail">
162 <div class="swiper-container detail-swiper" id="size-swiper-container"> 141 <div class="swiper-container detail-swiper" id="size-swiper-container">
163 <div class="swiper-wrapper"> 142 <div class="swiper-wrapper">
164 {{#list}} 143 {{#list}}
@@ -169,24 +148,24 @@ @@ -169,24 +148,24 @@
169 </div> 148 </div>
170 {{/list}} 149 {{/list}}
171 </div> 150 </div>
172 - </div>  
173 - <p class="tips">提示:左滑查看完整表格信息</p>  
174 - </div>  
175 - {{/detail}}  
176 - </div>  
177 - {{/sizeInfo}} 151 +</div>
  152 +<p class="tips">提示:左滑查看完整表格信息</p>
  153 +</div>
  154 +{{/detail}}
  155 +</div>
  156 +{{/sizeInfo}}
178 157
179 - <div class="gap-block"></div> 158 +<div class="gap-block"></div>
180 159
181 - {{#measurementMethod}}  
182 - <div class="measurement-method page-block"> 160 +{{#measurementMethod}}
  161 +<div class="measurement-method page-block">
183 <h1 class="title"> 162 <h1 class="title">
184 {{title}} 163 {{title}}
185 <span class="en-title">{{enTitle}}</span> 164 <span class="en-title">{{enTitle}}</span>
186 </h1> 165 </h1>
187 {{#detail}} 166 {{#detail}}
188 <div class="detail" style="width:100%"> 167 <div class="detail" style="width:100%">
189 - <img src="{{img}}" alt=""> 168 + <img class="lazy" data-original="{{img}}" alt="">
190 <div class="right-part"> 169 <div class="right-part">
191 <div class="title"> 170 <div class="title">
192 <h1 >{{sort}}</h1> 171 <h1 >{{sort}}</h1>
@@ -220,13 +199,8 @@ @@ -220,13 +199,8 @@
220 {{#list}} 199 {{#list}}
221 {{#if @first}} 200 {{#if @first}}
222 <div class="swiper-slide first-group" > 201 <div class="swiper-slide first-group" >
223 - <div class="model-field" >{{fieldName}}</div>  
224 - <div class="first-model">  
225 - <img src="{{firstModel}}" alt="">  
226 - </div>  
227 - <div class="second-model">  
228 - <img src="{{secondModel}}" alt="">  
229 - </div> 202 + <img class="lazy avatar" data-original="{{firstModel}}" alt="">
  203 + <img class="lazy avatar" data-original="{{secondModel}}" alt="">
230 </div> 204 </div>
231 {{^}} 205 {{^}}
232 <div class="swiper-slide" > 206 <div class="swiper-slide" >
@@ -241,52 +215,49 @@ @@ -241,52 +215,49 @@
241 <p class="tips">提示:左滑查看完整表格信息</p> 215 <p class="tips">提示:左滑查看完整表格信息</p>
242 </div> 216 </div>
243 {{/detail}} 217 {{/detail}}
244 - </div>  
245 - {{/reference}} 218 +</div>
  219 +{{/reference}}
246 220
247 - <div class="gap-block"></div> 221 +<div class="gap-block"></div>
248 222
249 - {{#materials}}  
250 - <div class="materials page-block"> 223 +{{#materials}}
  224 +<div class="materials page-block">
251 <h1 class="title"> 225 <h1 class="title">
252 {{title}} 226 {{title}}
253 <span class="en-title">{{enTitle}}</span> 227 <span class="en-title">{{enTitle}}</span>
254 - </h1>  
255 - <div class="detail">  
256 - <img src="{{img}}" alt=""> 228 +</h1>
  229 +<div class="detail">
  230 + <img class="lazy" data-original="{{img}}" alt="">
257 <p class="material-desc"> 231 <p class="material-desc">
258 -  
259 {{desc}} 232 {{desc}}
260 </p> 233 </p>
  234 +</div>
  235 +<img class="lazy material-type" data-original="{{materialType}}" alt="" >
  236 +</div>
  237 +{{/materials}}
261 238
262 - </div>  
263 - <img src="{{materialType}}" alt="" class="material-type">  
264 - </div>  
265 - {{/materials}}  
266 -  
267 - <div class="gap-block"></div> 239 +<div class="gap-block"></div>
268 240
269 - {{#productDetail}}  
270 - <div class="product-detail page-block"> 241 +{{#productDetail}}
  242 +<div class="product-detail page-block">
271 <h1 class="title"> 243 <h1 class="title">
272 {{title}} 244 {{title}}
273 <span class="en-title">{{enTitle}}</span> 245 <span class="en-title">{{enTitle}}</span>
274 - </h1>  
275 - <div class="detail"> 246 +</h1>
  247 +<div class="detail">
276 <p>{{desc}}</p> 248 <p>{{desc}}</p>
277 - <img src="{{img}}" alt="">  
278 - </div>  
279 - </div>  
280 - {{/productDetail}}  
281 - 249 + <img class="lazy" data-original="{{img}}" alt="">
  250 +</div>
  251 +</div>
  252 +{{/productDetail}}
282 253
283 - {{#cartInfo}}  
284 - <div class="cart-bar"> 254 +{{#cartInfo}}
  255 +<div class="cart-bar">
285 <span class="num-tag">{{numInCart}}</span> 256 <span class="num-tag">{{numInCart}}</span>
286 - <a href="" class="num-incart"></a>  
287 - <a href="" class="addto-cart">加入购物车</a>  
288 - <a href="" class="favorite"></a>  
289 - </div>  
290 - {{/cartInfo}} 257 + <a href="" class="num-incart iconfont">&#xe62c;</a>
  258 + <a href="" class="addto-cart ">加入购物车</a>
  259 + <a href="" class="favorite iconfont">&#xe605;</a>
  260 +</div>
  261 +{{/cartInfo}}
291 </div> 262 </div>
292 {{> layout/footer}} 263 {{> layout/footer}}
@@ -105,7 +105,7 @@ SHOE BQT KEN BLOCK', @@ -105,7 +105,7 @@ SHOE BQT KEN BLOCK',
105 105
106 'sizeInfo'=>array( 106 'sizeInfo'=>array(
107 'title' => '尺码信息', 107 'title' => '尺码信息',
108 - 'enTitle' =>'SIZE INFO', 108 + 'enTitle' =>'xSIZE INFO',
109 109
110 'detail' =>array( 110 'detail' =>array(
111 'list'=>array( 111 'list'=>array(
@@ -169,7 +169,7 @@ SHOE BQT KEN BLOCK', @@ -169,7 +169,7 @@ SHOE BQT KEN BLOCK',
169 'detail' =>array( 169 'detail' =>array(
170 'list'=>array( 170 'list'=>array(
171 array( 171 array(
172 - 'fieldName'=>' ', 172 + 'fieldName'=>'1 ',
173 'firstModel'=>'http://static.dev.yohobuy.com/img/product/avatar1.png', 173 'firstModel'=>'http://static.dev.yohobuy.com/img/product/avatar1.png',
174 'secondModel' =>'http://static.dev.yohobuy.com/img/product/avatar2.png' 174 'secondModel' =>'http://static.dev.yohobuy.com/img/product/avatar2.png'
175 ), 175 ),