From f07beea68ce2abdd99eda4bf7375f62cf4a923bc Mon Sep 17 00:00:00 2001 From: ting Date: Tue, 3 Dec 2024 19:19:17 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=91=E9=81=93Api=EF=BC=8C=E9=A2=91?= =?UTF-8?q?=E9=81=93=E9=A1=B5=E9=9D=A2=E8=A7=86=E9=A2=91=E5=AF=BC=E8=88=AA?= =?UTF-8?q?=E6=A0=8F=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vueHomilyLink/src/api/ChannelApi.js | 22 ++++++ vueHomilyLink/src/views/ChannelView.vue | 126 ++++++++++++++++++++++++++++---- 2 files changed, 135 insertions(+), 13 deletions(-) create mode 100644 vueHomilyLink/src/api/ChannelApi.js diff --git a/vueHomilyLink/src/api/ChannelApi.js b/vueHomilyLink/src/api/ChannelApi.js new file mode 100644 index 0000000..01eb145 --- /dev/null +++ b/vueHomilyLink/src/api/ChannelApi.js @@ -0,0 +1,22 @@ +import service from "."; + +const ChannelApi = { + //获取频道列表 + getchannels(){ + return service.get('/list'); + }, + //获取shows列表 + getShows(Id,UserId,FlagType){ + return service.get('/channel',{Id,UserId,FlagType}); + }, + //订阅状态 + subscribe(Id,UserId){ + return service.post('/subscription',{Id,UserId}) + }, + //取消订阅 + unSubscribe(Id,UserId){ + return service.delete('/subscription',{Id,UserId}) + } + +} +export default ChannelApi; \ No newline at end of file diff --git a/vueHomilyLink/src/views/ChannelView.vue b/vueHomilyLink/src/views/ChannelView.vue index 4cceea3..bac02d0 100644 --- a/vueHomilyLink/src/views/ChannelView.vue +++ b/vueHomilyLink/src/views/ChannelView.vue @@ -1,12 +1,13 @@ @@ -400,9 +501,8 @@ function submit() { } .active { - color: red; + color: red; border-bottom: 2px solid red; - /* 修正了属性名中的空格 */ } .list-display {