Authored by 郭成尧

'cate跳转'

... ... @@ -101,11 +101,11 @@ const getCateListData = params => {
sub: []
};
if (_.isEmpty(cate.sub)) {
item.url = helpers.urlFormat('/', {
item.url = helpers.urlFormat('/product/search', {
sort: item.sort,
sort_name: item.name,
gender: genderArr[categorykey]
}, 'list');
});
oneClass.ca.push(item);
return true;// equal continue;
}
... ... @@ -115,11 +115,11 @@ const getCateListData = params => {
id: item.id,
name: '全部' + item.name,
sort: item.sort,
url: helpers.urlFormat('/', {
url: helpers.urlFormat('/product/search', {
sort: item.sort,
sort_name: item.name,
gender: genderArr[categorykey]
}, 'list'),
}),
sub: []
});
... ... @@ -130,11 +130,11 @@ const getCateListData = params => {
sort: sub.relation_parameter.sort,
url: ''
};
subitem.url = helpers.urlFormat('/', {
subitem.url = helpers.urlFormat('/product/search', {
sort: subitem.sort,
sort_name: subitem.name,
gender: genderArr[categorykey]
}, 'list');
});
item.sub.push(subitem);
});
... ...