...
|
...
|
@@ -174,18 +174,20 @@ const getChannelList = () => { |
|
|
if (result && result.code === 200) {
|
|
|
const list = {};
|
|
|
|
|
|
list.channelList = [];
|
|
|
list.yohood = {};
|
|
|
result.data.list = camelCase(result.data.list || []);
|
|
|
|
|
|
_.forEach(result.data.list, function(item) {
|
|
|
const channel = channelList[item.channelId];
|
|
|
const channel = channelList[item.yhChannel];
|
|
|
|
|
|
if (channel) {
|
|
|
list[item.channelId] = channelList[item.channelId];
|
|
|
list.channelList.push(channelList[item.yhChannel]);
|
|
|
}
|
|
|
|
|
|
if (_.toNumber(item.channelId) === 5) {
|
|
|
list.showYohood = true;
|
|
|
list.yohoodHref = 'http://yohood.cn';
|
|
|
if (_.toNumber(item.yhChannel) !== 5) {
|
|
|
list.yohood.showYohood = true;
|
|
|
list.yohood.yohoodHref = 'http://yohood.cn';
|
|
|
}
|
|
|
});
|
|
|
return Object.keys(list).length ? list : channelList;
|
...
|
...
|
|