...
|
...
|
@@ -177,8 +177,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,
|
...
|
...
|
@@ -186,10 +186,8 @@ const setHeaderData = (resData, type) => { |
|
|
navbars: resData ? getNavBar(resData, type) : [],
|
|
|
subNav: resData ? getSubNav(resData, type) : []
|
|
|
}
|
|
|
};
|
|
|
|
|
|
return data;
|
|
|
};
|
|
|
}
|
|
|
);
|
|
|
|
|
|
|
|
|
|
...
|
...
|
|