Authored by 王水玲

sale bug 修改

@@ -41,7 +41,7 @@ const typeCont = { @@ -41,7 +41,7 @@ const typeCont = {
41 price: ['s_p_desc', 's_p_asc'], 41 price: ['s_p_desc', 's_p_asc'],
42 discount: ['p_d_desc', 'p_d_asc'], 42 discount: ['p_d_desc', 'p_d_asc'],
43 sale: ['s_n_desc', 's_n_asc'], 43 sale: ['s_n_desc', 's_n_asc'],
44 - newest: ['s_t_desc', 's_t_asc'], 44 + newest: ['s_t_desc,s_s_desc', 's_t_asc,s_s_asc'],
45 stock: ['s_s_desc', 's_s_asc'] 45 stock: ['s_s_desc', 's_s_asc']
46 }; 46 };
47 47
@@ -109,7 +109,7 @@ const discount = (params) => { @@ -109,7 +109,7 @@ const discount = (params) => {
109 return api.get('', sign.apiSign(Object.assign({ 109 return api.get('', sign.apiSign(Object.assign({
110 method: 'app.activity.get', 110 method: 'app.activity.get',
111 sort: 2, 111 sort: 2,
112 - plateform: 3 112 + plateform: 2
113 }, params))); 113 }, params)));
114 }; 114 };
115 115
@@ -72,6 +72,8 @@ lazyLoad($('img.lazy')); @@ -72,6 +72,8 @@ lazyLoad($('img.lazy'));
72 72
73 if ($('.banner-swiper .swiper-slide').length > 1) { 73 if ($('.banner-swiper .swiper-slide').length > 1) {
74 new Swiper('.swiper-container', { 74 new Swiper('.swiper-container', {
  75 + observer: true,
  76 + observeParents: true,
75 lazyLoading: true, 77 lazyLoading: true,
76 lazyLoadingInPrevNext: true, 78 lazyLoadingInPrevNext: true,
77 loop: true, 79 loop: true,
@@ -122,8 +124,6 @@ function search(opt) { @@ -122,8 +124,6 @@ function search(opt) {
122 page, 124 page,
123 i; 125 i;
124 126
125 - delete defaultOpt.size;  
126 -  
127 if (searching) { 127 if (searching) {
128 return; 128 return;
129 } 129 }
@@ -185,9 +185,9 @@ function search(opt) { @@ -185,9 +185,9 @@ function search(opt) {
185 default: 185 default:
186 break; 186 break;
187 } 187 }
188 - }  
189 188
190 - $.extend(defaultOpt, ext); // 扩展筛选项 189 + $.extend(defaultOpt, ext); // 扩展筛选项
  190 + }
191 } 191 }
192 192
193 // 导航类别 193 // 导航类别
@@ -398,7 +398,7 @@ $listNav.on('touchend touchcancel', function(e) { @@ -398,7 +398,7 @@ $listNav.on('touchend touchcancel', function(e) {
398 e.stopPropagation(); 398 e.stopPropagation();
399 }); 399 });
400 400
401 -$swiperSize.on('touchend touchcancel', function(e) { 401 +$swiperSize.on('click', function(e) {
402 var $this = $(e.target).closest('li'), 402 var $this = $(e.target).closest('li'),
403 index = $this.parents('.swiper-size').index(), 403 index = $this.parents('.swiper-size').index(),
404 $parentType = $listNav.find('li').eq(index), 404 $parentType = $listNav.find('li').eq(index),
@@ -46,7 +46,7 @@ var $listNav = $('#list-nav'), @@ -46,7 +46,7 @@ var $listNav = $('#list-nav'),
46 end: false 46 end: false
47 }, 47 },
48 discount: { 48 discount: {
49 - order: 0, 49 + order: 1,
50 reload: true, 50 reload: true,
51 page: 0, 51 page: 0,
52 end: false 52 end: false
@@ -12,10 +12,15 @@ @@ -12,10 +12,15 @@
12 } 12 }
13 } 13 }
14 14
15 - #size-swiper-0,  
16 - #size-swiper-1,  
17 - #size-swiper-2,  
18 - #size-swiper-3 { 15 + .banner-swiper {
  16 + height: 200px;
  17 +
  18 + ul {
  19 + height: 200px;
  20 + }
  21 + }
  22 +
  23 + .swiper-size {
19 display: none; 24 display: none;
20 box-sizing: border-box; 25 box-sizing: border-box;
21 padding: 0 22px; 26 padding: 0 22px;
@@ -45,4 +45,12 @@ @@ -45,4 +45,12 @@
45 .good-detail-text .price { 45 .good-detail-text .price {
46 white-space: nowrap; 46 white-space: nowrap;
47 } 47 }
  48 +
  49 + .banner-swiper {
  50 + height: 200px;
  51 +
  52 + ul {
  53 + height: 200px;
  54 + }
  55 + }
48 } 56 }