...
|
...
|
@@ -55,14 +55,14 @@ const discountSplit = (text) => { |
|
|
* @return {[type]} [description]
|
|
|
*/
|
|
|
const handleOutletsGoodsMenuData = (origin, params) => {
|
|
|
let dest = {};
|
|
|
let dest = {
|
|
|
title: '最新折扣',
|
|
|
more: '/product/outlets/list',
|
|
|
menuList: []
|
|
|
};
|
|
|
|
|
|
var oldParam = _.cloneDeep(params);
|
|
|
|
|
|
dest.title = '最新折扣';
|
|
|
dest.more = '/product/outlets/list';
|
|
|
dest.menuList = [];
|
|
|
|
|
|
_.forEach(origin, subValue => {
|
|
|
let goodsmenu = {};
|
|
|
|
...
|
...
|
@@ -77,20 +77,19 @@ const handleOutletsGoodsMenuData = (origin, params) => { |
|
|
}
|
|
|
|
|
|
if (urlSuffix.msort) {
|
|
|
Object.assign(params, {msort: urlSuffix.msort});
|
|
|
Object.assign(oldParam, {msort: urlSuffix.msort});
|
|
|
}
|
|
|
if (urlSuffix.misort) {
|
|
|
Object.assign(params, {misort: urlSuffix.misort});
|
|
|
Object.assign(oldParam, {misort: urlSuffix.misort});
|
|
|
}
|
|
|
|
|
|
goodsmenu.href = '?' + queryString.stringify(params);
|
|
|
goodsmenu.href = '?' + queryString.stringify(oldParam);
|
|
|
|
|
|
dest.menuList.push(goodsmenu);
|
|
|
});
|
|
|
return dest;
|
|
|
};
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 分类导航
|
|
|
*/
|
...
|
...
|
|