wangliang_wd

feat:优化频道选择

... ... @@ -4,7 +4,7 @@
export class TopNavDTO {
channelId: number = 0; //频道id
channelStyle: number = 0; //频道样式;1-沉浸式;2-信息流
channelType: number = 0; // 频道样式;1-沉浸式;2-信息流;3-特殊频道(跳转指定页面的,如版面)
channelType: number = 0; // // 频道类型:1:主频道 2:地方频道
defaultPermitted: number = 0; //允许设置为默认首页 0:否, 1:是;【首页设置频道】
delPermitted: number = 0; //允许删除 0:否, 1:是;【撤销属性】
fontCColor: string = ''; // 频道展示样式颜色(选中状态)
... ...
... ... @@ -80,11 +80,12 @@ struct ChannelSubscriptionLayout {
}
/*
删除的频道信息回到原栏目中去
*channelType 频道类型:1:主频道 2:地方频道
*/
if (item.moreChannel === '1') {
if (item.channelType === 1) {
this.moreChannelList.unshift(item)
}
if (item.localChannel === '1') {
if (item.channelType === 2) {
this.localChannelList.unshift(item)
}
... ...