...
|
...
|
@@ -17,14 +17,14 @@ const pager = require(`${global.utils}/pager`).setPager; |
|
|
* @returns {*[]}
|
|
|
* @private
|
|
|
*/
|
|
|
const _getNav = (id, menuData)=> {
|
|
|
const _getNav = (id, menuData, url)=> {
|
|
|
for (let i = 0; i < menuData.length; i++) {
|
|
|
if (menuData[i].subsets) {
|
|
|
for (let j = 0; j < menuData[i].subsets.length; j++) {
|
|
|
if (menuData[i].subsets[j].id === id) {
|
|
|
return [
|
|
|
{
|
|
|
href: ' ',
|
|
|
href: url,
|
|
|
name: menuData[i].categoryName
|
|
|
}, {
|
|
|
name: menuData[i].subsets[j].categoryName
|
...
|
...
|
@@ -98,7 +98,6 @@ const _processCountLength = (c) => { |
|
|
// 首页模块内容处理
|
|
|
const _processHomeCategoryFaq = (list) => {
|
|
|
let result = {
|
|
|
other: [],
|
|
|
menuData: []
|
|
|
};
|
|
|
|
...
|
...
|
@@ -268,7 +267,7 @@ const _processDetailData = (result, params) => { |
|
|
}
|
|
|
];
|
|
|
} else {
|
|
|
nav = _getNav(params.id, menuData);
|
|
|
nav = _getNav(params.id, menuData, params.url);
|
|
|
}
|
|
|
|
|
|
return {
|
...
|
...
|
|