Authored by Lynnic

update

@@ -17,7 +17,10 @@ var introUrl = $('#introUrl').val(), @@ -17,7 +17,10 @@ var introUrl = $('#introUrl').val(),
17 end = false; 17 end = false;
18 18
19 var sizeSwiper, 19 var sizeSwiper,
20 - refSwiper; 20 + refSwiper,
  21 + recommendSwiper;
  22 +
  23 +require('../recommend-for-you.js');
21 24
22 function search() { 25 function search() {
23 if (searching || end) { 26 if (searching || end) {
@@ -46,6 +49,15 @@ function search() { @@ -46,6 +49,15 @@ function search() {
46 slidesPerView: 'auto' 49 slidesPerView: 'auto'
47 }); 50 });
48 51
  52 + //优选
  53 + recommendSwiper = new Swiper('#swiper-recommend', {
  54 + slidesPerView: 'auto',
  55 + grabCursor: true,
  56 + slideElement: 'li',
  57 + lazyLoading: true,
  58 + watchSlidesVisibility: true
  59 + });
  60 +
49 searching = false; 61 searching = false;
50 end = true; 62 end = true;
51 loading.hideLoadingMask(); 63 loading.hideLoadingMask();
@@ -12,6 +12,8 @@ var goodsSwiper; @@ -12,6 +12,8 @@ var goodsSwiper;
12 require('./desc'); 12 require('./desc');
13 require('./comments-consults'); 13 require('./comments-consults');
14 14
  15 +// require('../recommend-for-you.js');
  16 +
15 lazyLoad($('img.lazy')); 17 lazyLoad($('img.lazy'));
16 18
17 //顶部swiper 19 //顶部swiper
@@ -6,6 +6,7 @@ @@ -6,6 +6,7 @@
6 margin-top: pxToRem(22px); 6 margin-top: pxToRem(22px);
7 } 7 }
8 .detail{ 8 .detail{
  9 + background-color: $tableCellC;
9 &.table .inner-container{ 10 &.table .inner-container{
10 background-color: $tableCellC; 11 background-color: $tableCellC;
11 } 12 }
@@ -2,8 +2,6 @@ @@ -2,8 +2,6 @@
2 <div class="good-detail-page yoho-page"> 2 <div class="good-detail-page yoho-page">
3 <div class="banner-container"> 3 <div class="banner-container">
4 <div class="tag-container"> 4 <div class="tag-container">
5 - <p class="good-tag new-tag">NEW</p>  
6 - <p class="good-tag renew-tag">再到着</p>  
7 {{# tags}} 5 {{# tags}}
8 {{# is_new}} 6 {{# is_new}}
9 <p class="good-tag new-tag">NEW</p> 7 <p class="good-tag new-tag">NEW</p>
@@ -103,9 +101,7 @@ @@ -103,9 +101,7 @@
103 {{/ enterStore}} 101 {{/ enterStore}}
104 102
105 <div id="productDesc"></div> 103 <div id="productDesc"></div>
106 -  
107 - <!-- {{>product/product-description}} -->  
108 - 104 +
109 {{#cartInfo}} 105 {{#cartInfo}}
110 <div class="cart-bar"> 106 <div class="cart-bar">
111 {{#if numInCart}} 107 {{#if numInCart}}
@@ -130,4 +130,6 @@ @@ -130,4 +130,6 @@
130 {{/list}} 130 {{/list}}
131 </div> 131 </div>
132 </div> 132 </div>
133 -{{/productDetail}}  
  133 +{{/productDetail}}
  134 +
  135 +{{> product/recommend-for-you}}