Authored by ccbikai

频道页 修改

... ... @@ -42,28 +42,25 @@ const bottomBannerCode = contentCodeConfig.bottom;
* 频道选择页 默认数据
* @type {Object}
*/
const channelList = {
1: {
const channelList = [
{
href: '/boys',
title: '男生',
entitle: 'BOYS'
},
2: {
}, {
href: '/girls',
title: '女生',
entitle: 'GIRLS'
},
3: {
}, {
href: '/kids',
title: '潮童',
entitle: 'KIDS'
},
4: {
}, {
href: '/lifestyle',
title: '创意生活',
entitle: 'LIFESTYLE'
}
};
];
/**
* 获取二级菜单顶部颜色
... ... @@ -179,10 +176,10 @@ const getChannelList = () => {
result.data.list = camelCase(result.data.list || []);
_.forEach(result.data.list, function(item) {
const channel = channelList[item.yhChannel];
const channel = channelList[item.yhChannel - 1];
if (channel) {
list.channelList.push(channelList[item.yhChannel]);
list.channelList.push(channel);
}
if (_.toNumber(item.yhChannel) !== 5) {
... ...