|
|
@ -48,9 +48,10 @@ function toLink(channelId) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function changeTab(channelId, flagType) { |
|
|
|
currentTab.value = flagType; |
|
|
|
loadShows(channelId,flagType); |
|
|
|
function changeTab(channelId, type) { |
|
|
|
currentTab.value = type; |
|
|
|
flagType.value = type; |
|
|
|
loadShows(channelId,type); |
|
|
|
} |
|
|
|
|
|
|
|
// 展示列表1 |
|
|
@ -72,7 +73,7 @@ function submit(channelId) { |
|
|
|
ChannelApi.subscribe(channelId,90000000).then((result)=>{ |
|
|
|
if(result.code ==200){ |
|
|
|
ElMessage.success('订阅成功!'); |
|
|
|
loadShows(channelId,null); |
|
|
|
loadShows(channelId,flagType.value); |
|
|
|
}else{ |
|
|
|
ElMessage.error(result.messsage); |
|
|
|
} |
|
|
@ -87,7 +88,7 @@ function unsubmit(channelId){ |
|
|
|
if(result.code ==200){ |
|
|
|
console.log("取消频道id+++++++",channelId); |
|
|
|
ElMessage.success('取消订阅成功!'); |
|
|
|
loadShows(channelId,null); |
|
|
|
loadShows(channelId,flagType.value); |
|
|
|
}else{ |
|
|
|
ElMessage.error(result.messsage); |
|
|
|
} |
|
|
|