Authored by hf

Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop

@@ -247,6 +247,9 @@ class ListProcess @@ -247,6 +247,9 @@ class ListProcess
247 247
248 private static function priceRange($data) 248 private static function priceRange($data)
249 { 249 {
  250 + // 首先对价格进行排序
  251 + ksort($data, SORT_NUMERIC);
  252 +
250 $result = array( 253 $result = array(
251 'title' => '价格', 254 'title' => '价格',
252 'name' => '所有价格', 255 'name' => '所有价格',
@@ -112,7 +112,6 @@ function loadData($parent, url, page) { @@ -112,7 +112,6 @@ function loadData($parent, url, page) {
112 } else { 112 } else {
113 return; 113 return;
114 } 114 }
115 - window.rePosFooter();  
116 115
117 //},1000); 116 //},1000);
118 } 117 }
@@ -18,6 +18,8 @@ var introUrl = $('#introUrl').val(), @@ -18,6 +18,8 @@ var introUrl = $('#introUrl').val(),
18 var sizeSwiper, 18 var sizeSwiper,
19 refSwiper; 19 refSwiper;
20 20
  21 +var UA = navigator.userAgent.toLowerCase().toString();
  22 +
21 //判断是否要显示向左滑动提示 23 //判断是否要显示向左滑动提示
22 function hiddenTips($ele) { 24 function hiddenTips($ele) {
23 var offsetContainer, 25 var offsetContainer,
@@ -69,7 +71,9 @@ function search() { @@ -69,7 +71,9 @@ function search() {
69 71
70 hiddenTips($('#size-swiper-container')); 72 hiddenTips($('#size-swiper-container'));
71 hiddenTips($('#reference-swiper-container')); 73 hiddenTips($('#reference-swiper-container'));
72 - 74 + if (UA.indexOf('mqqbrowser') > 0) {
  75 + $('.detail > div').removeClass('column').addClass('oldbox');
  76 + }
73 searching = false; 77 searching = false;
74 end = true; 78 end = true;
75 loading.hideLoadingMask(); 79 loading.hideLoadingMask();
@@ -16,7 +16,7 @@ var goodsDiscountEl = document.getElementById('goodsDiscount'), @@ -16,7 +16,7 @@ var goodsDiscountEl = document.getElementById('goodsDiscount'),
16 goodsDiscountHammer = goodsDiscountEl && new Hammer(goodsDiscountEl); 16 goodsDiscountHammer = goodsDiscountEl && new Hammer(goodsDiscountEl);
17 17
18 var $cart = $('.cart-bar'); 18 var $cart = $('.cart-bar');
19 -var UA = navigator.userAgent.toLowerCase().toString(); 19 +
20 20
21 require('./desc'); 21 require('./desc');
22 require('./comments-consults'); 22 require('./comments-consults');
@@ -82,7 +82,6 @@ $.ajax({ @@ -82,7 +82,6 @@ $.ajax({
82 } 82 }
83 }); 83 });
84 84
85 -if (UA.indexOf('mqqbrowser') > -1) {  
86 - $('.detail > div').removeClass('column').addClass('oldbox');  
87 -} 85 +
  86 +
88 require('./like'); 87 require('./like');
@@ -177,7 +177,7 @@ class NewsaleController extends AbstractAction @@ -177,7 +177,7 @@ class NewsaleController extends AbstractAction
177 $color = $this->get('color', null); 177 $color = $this->get('color', null);
178 $size = $this->get('size', null); 178 $size = $this->get('size', null);
179 $price = $this->get('price', null); 179 $price = $this->get('price', null);
180 - $p_d = $this->get('discount', null); 180 + $p_d = '0.1,0.3';
181 $dayLimit = $this->get('dayLimit', null); 181 $dayLimit = $this->get('dayLimit', null);
182 $limit = $this->get('limit', 60); 182 $limit = $this->get('limit', 60);
183 $page = $this->get('page', 1); 183 $page = $this->get('page', 1);