From 0cf7c63cb64a88e8eb2931eddf1400999b907f7c Mon Sep 17 00:00:00 2001 From: 13405411873 <1994398261@qq.com> Date: Mon, 7 Apr 2025 15:14:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E5=90=8D=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/business/notice.js | 20 ++- pages/components/notice-index.vue | 9 +- pages/components/subscribe.vue | 118 +++++++++++++- pages/notice/detail.vue | 68 +++++--- pages/notice/subscribe-set.vue | 249 +++++++++++++++--------------- 5 files changed, 314 insertions(+), 150 deletions(-) diff --git a/api/business/notice.js b/api/business/notice.js index 5c33a36..655feb5 100644 --- a/api/business/notice.js +++ b/api/business/notice.js @@ -10,6 +10,24 @@ export function getNoticeList(params) { }) } + +// 订阅查询通告列表 +export function getSubscribeList(params) { + return request({ + url: '/busi/notice/subscribeList', + method: 'get', + params: params + }) +} +// 关注查询通告列表 +export function getLoveList(params) { + return request({ + url: '/busi/notice/loveList', + method: 'get', + params: params + }) +} + // 查通告详情 export function getNoticeDetail(params) { return request({ @@ -35,4 +53,4 @@ export function closeNotice(params) { method: 'post', params: params }) -} \ No newline at end of file +} diff --git a/pages/components/notice-index.vue b/pages/components/notice-index.vue index 6914a20..d386b68 100644 --- a/pages/components/notice-index.vue +++ b/pages/components/notice-index.vue @@ -70,10 +70,6 @@ - - - - @@ -189,7 +185,7 @@ pageSize: 10, //排序方式:new-最新;money-高奖励; sortBy: "", - //品牌置换--只要有值代表查品牌置换 + //品牌置换--只要有值代表查品牌置换 gift: "", platformCode: "", platformName: "平台", @@ -427,6 +423,7 @@ } else { this.dataList = this.dataList.concat(res.data.records) } + this.total = res.data.total } }).catch((e) => { this.isTriggered = false @@ -712,4 +709,4 @@ margin: 10rpx; } } - \ No newline at end of file + diff --git a/pages/components/subscribe.vue b/pages/components/subscribe.vue index af9fc23..f0631b5 100644 --- a/pages/components/subscribe.vue +++ b/pages/components/subscribe.vue @@ -32,6 +32,18 @@