Authored by yyq

brand

... ... @@ -236,9 +236,8 @@ exports.getBrandData = (params, extra, channel) => {
// 获取左侧类目数据
if (result[1].code === 200) {
Object.assign(finalResult.brand, {
leftContent: searchHandler.handleSortData(result[1].data.sort, params),
pathNav: searchHandler.handlePathNavData(extra, params, 'brand')
});
leftContent: searchHandler.handleSortData(result[1].data.sort, params)
}, searchHandler.handlePathNavData(extra, params, 'brand'));
}
// 获取商品数据和顶部筛选条件
... ...
... ... @@ -1008,7 +1008,7 @@ exports.handlePagerData = (total, params) => {
* 处理分类介绍
* @type {[type]}
*/
exports.handleSortIntro = (data, params) => {
exports.handleSortIntro = (data) => {
let sortIntro = {
name: data.title,
enName: data.subtitle,
... ... @@ -1020,7 +1020,7 @@ exports.handleSortIntro = (data, params) => {
_.forEach(data.keyword, function(value) {
sortIntro.keyEntry.push({
name: value.word,
url: helpers.urlFormat(value.url, params)
url: value.url
});
});
... ...