Merge branch 'release/4.6' of git.yoho.cn:fe/yohobuy-node into release/4.6
Showing
1 changed file
with
8 additions
and
9 deletions
@@ -55,14 +55,14 @@ const discountSplit = (text) => { | @@ -55,14 +55,14 @@ const discountSplit = (text) => { | ||
55 | * @return {[type]} [description] | 55 | * @return {[type]} [description] |
56 | */ | 56 | */ |
57 | const handleOutletsGoodsMenuData = (origin, params) => { | 57 | const handleOutletsGoodsMenuData = (origin, params) => { |
58 | - let dest = {}; | 58 | + let dest = { |
59 | + title: '最新折扣', | ||
60 | + more: '/product/outlets/list', | ||
61 | + menuList: [] | ||
62 | + }; | ||
59 | 63 | ||
60 | var oldParam = _.cloneDeep(params); | 64 | var oldParam = _.cloneDeep(params); |
61 | 65 | ||
62 | - dest.title = '最新折扣'; | ||
63 | - dest.more = '/product/outlets/list'; | ||
64 | - dest.menuList = []; | ||
65 | - | ||
66 | _.forEach(origin, subValue => { | 66 | _.forEach(origin, subValue => { |
67 | let goodsmenu = {}; | 67 | let goodsmenu = {}; |
68 | 68 | ||
@@ -77,20 +77,19 @@ const handleOutletsGoodsMenuData = (origin, params) => { | @@ -77,20 +77,19 @@ const handleOutletsGoodsMenuData = (origin, params) => { | ||
77 | } | 77 | } |
78 | 78 | ||
79 | if (urlSuffix.msort) { | 79 | if (urlSuffix.msort) { |
80 | - Object.assign(params, {msort: urlSuffix.msort}); | 80 | + Object.assign(oldParam, {msort: urlSuffix.msort}); |
81 | } | 81 | } |
82 | if (urlSuffix.misort) { | 82 | if (urlSuffix.misort) { |
83 | - Object.assign(params, {misort: urlSuffix.misort}); | 83 | + Object.assign(oldParam, {misort: urlSuffix.misort}); |
84 | } | 84 | } |
85 | 85 | ||
86 | - goodsmenu.href = '?' + queryString.stringify(params); | 86 | + goodsmenu.href = '?' + queryString.stringify(oldParam); |
87 | 87 | ||
88 | dest.menuList.push(goodsmenu); | 88 | dest.menuList.push(goodsmenu); |
89 | }); | 89 | }); |
90 | return dest; | 90 | return dest; |
91 | }; | 91 | }; |
92 | 92 | ||
93 | - | ||
94 | /** | 93 | /** |
95 | * 分类导航 | 94 | * 分类导航 |
96 | */ | 95 | */ |
-
Please register or login to post a comment