Authored by yyq

fix special sale

... ... @@ -564,10 +564,7 @@ exports.getSaleSpecialData = (id, params, channel) => {
if (!_.isEmpty(result[1])) {
resData.leftContent = searchHandler.handleSortData(_.get(result[1],
'data', []), Object.assign({
msort: params.msort || '',
misort: params.misort || ''
}, defaultParam));
'data', []), defaultParam, params);
}
if (!_.isEmpty(result[2])) {
... ...
... ... @@ -510,6 +510,7 @@ exports.handleSortData = (origin, params, originParams, baseUrl) => {
href: `${baseUrl}${handleFilterUrl(params, {}, {msort: true, misort: true, sort: true})}`
}];
originParams = originParams || {};
baseUrl = baseUrl || '';
_.forEach(origin, value => {
... ...