...
|
...
|
@@ -79,6 +79,7 @@ const handlePathNavData = (data, params, page, channel, baseUrl) => { |
|
|
break;
|
|
|
default: // eslint-disable-line
|
|
|
let navList = [];
|
|
|
const cateUrl = handleFilterUrl(baseUrl, {category_id: '{categoryId}'});
|
|
|
|
|
|
_.forEach(data, sort => {
|
|
|
let sortName = sort.category_name,
|
...
|
...
|
@@ -87,6 +88,7 @@ const handlePathNavData = (data, params, page, channel, baseUrl) => { |
|
|
if (`${params.category_id}` === sortCategoryId) {
|
|
|
navList = [{
|
|
|
name: sortName,
|
|
|
href: cateUrl.replace('{categoryId}', sortCategoryId),
|
|
|
pathTitle: sortName
|
|
|
}];
|
|
|
return false;
|
...
|
...
|
@@ -97,10 +99,11 @@ const handlePathNavData = (data, params, page, channel, baseUrl) => { |
|
|
if (`${params.category_id}` === `${misort.category_id}`) {
|
|
|
navList = [{
|
|
|
name: sortName,
|
|
|
href: handleFilterUrl(baseUrl, {category_id: sortCategoryId}),
|
|
|
href: cateUrl.replace('{categoryId}', sortCategoryId),
|
|
|
pathTitle: sortName
|
|
|
}, {
|
|
|
name: misortName,
|
|
|
href: cateUrl.replace('{categoryId}', misort.category_id),
|
|
|
pathTitle: misortName
|
|
|
}];
|
|
|
return false;
|
...
|
...
|
|