Authored by yyq

Merge branch 'hotfix/brandSaleBug' into release/4.6

@@ -229,10 +229,6 @@ exports.handleOutletsActivityData = (origin, name) => { @@ -229,10 +229,6 @@ exports.handleOutletsActivityData = (origin, name) => {
229 dest.topic.push(activity); 229 dest.topic.push(activity);
230 }); 230 });
231 231
232 - if (!dest.length) {  
233 - return false;  
234 - }  
235 -  
236 return dest; 232 return dest;
237 }; 233 };
238 234
@@ -172,7 +172,7 @@ exports.getOutletsChannelData = (params, channel) => { @@ -172,7 +172,7 @@ exports.getOutletsChannelData = (params, channel) => {
172 } 172 }
173 173
174 // 限时嗨购 174 // 限时嗨购
175 - if (result[2].code === 200) { 175 + if (result[2].code === 200 && !_.isEmpty(result[2].data)) {
176 channelData.nearOver = outletsProcess.handleOutletsActivityData(result[2].data, '限时嗨购'); 176 channelData.nearOver = outletsProcess.handleOutletsActivityData(result[2].data, '限时嗨购');
177 } 177 }
178 178
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 * @Author: Targaryen 2 * @Author: Targaryen
3 * @Date: 2016-06-02 15:50:47 3 * @Date: 2016-06-02 15:50:47
4 * @Last Modified by: Targaryen 4 * @Last Modified by: Targaryen
5 - * @Last Modified time: 2016-06-22 17:32:39 5 + * @Last Modified time: 2016-06-22 18:36:26
6 */ 6 */
7 7
8 'use strict'; 8 'use strict';
@@ -498,6 +498,9 @@ exports.handleSaleFilterData = (origin, params) => { @@ -498,6 +498,9 @@ exports.handleSaleFilterData = (origin, params) => {
498 498
499 if (!_.isEmpty(origin.priceRange)) { 499 if (!_.isEmpty(origin.priceRange)) {
500 _.forEach(origin.priceRange, (value, key) => { 500 _.forEach(origin.priceRange, (value, key) => {
  501 + if (params.price === key) {
  502 + priceRangechecked = true;
  503 + }
501 let price = { 504 let price = {
502 checked: params.price === key, 505 checked: params.price === key,
503 href: handleFilterUrl(params, { price: key }), 506 href: handleFilterUrl(params, { price: key }),