...
|
...
|
@@ -176,8 +176,8 @@ const getSubNav = (data, type) => { |
|
|
* @param {String} 指定页面类型为boys,girls,kids,lifestyle
|
|
|
* @return {object} 头部数据
|
|
|
*/
|
|
|
const setHeaderData = (resData, type) => {
|
|
|
let data = {
|
|
|
const setHeaderData = (resData, type) => (
|
|
|
{
|
|
|
headerData: {
|
|
|
header: true,
|
|
|
headType: type,
|
...
|
...
|
@@ -185,9 +185,8 @@ const setHeaderData = (resData, type) => { |
|
|
navbars: resData ? getNavBar(resData, type) : [],
|
|
|
subNav: resData ? getSubNav(resData, type) : []
|
|
|
}
|
|
|
};
|
|
|
return data;
|
|
|
};
|
|
|
}
|
|
|
);
|
|
|
|
|
|
|
|
|
|
...
|
...
|
|