From a942282eb07c2009fb31db306e0c6e82baa35fbf Mon Sep 17 00:00:00 2001 From: Fox-33 <1466778434@qq.com> Date: Thu, 27 Mar 2025 11:05:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/model/center.js | 8 ++++++++ api/model/sharing.js | 10 ++++++++++ config.js | 2 +- pages/index/center.vue | 9 ++++----- pages/index/record.vue | 23 +++++++++++++++++++---- pages_order/mine/news.vue | 8 ++++---- pages_order/mine/sharing.vue | 8 +------- pages_order/record/videoSharing.vue | 16 ++++++++-------- pages_order/sharing/article.vue | 22 +++++++++++----------- pages_order/sharing/group.vue | 24 ++++++++++++------------ pages_order/sharing/personal.vue | 23 +++++++++++------------ pages_order/sharing/video.vue | 23 +++++++++++------------ 12 files changed, 100 insertions(+), 76 deletions(-) diff --git a/api/model/center.js b/api/model/center.js index 692f3b6..36ef105 100644 --- a/api/model/center.js +++ b/api/model/center.js @@ -16,6 +16,14 @@ const api = { method: 'GET', auth: true, }, + /** + * 获取新闻动态详情的接口 + */ + getNewsById: { + url: '/all_login/getNewsById', + method: 'GET', + auth: true, + }, } export default api \ No newline at end of file diff --git a/api/model/sharing.js b/api/model/sharing.js index c3f326b..59ad432 100644 --- a/api/model/sharing.js +++ b/api/model/sharing.js @@ -7,6 +7,16 @@ const api = { method: 'GET', auth: true, }, + /** + * 删除分享记录 + */ + deleteLog: { + url: '/fen/deleteLog', + method: 'POST', + auth: true, + limit : 500, + showLoading : true, + }, /** * 增加或者修改个人分享 */ diff --git a/config.js b/config.js index 6ccb044..c322bec 100644 --- a/config.js +++ b/config.js @@ -8,7 +8,7 @@ import uvUI from '@/uni_modules/uv-ui-tools' Vue.use(uvUI); // 当前环境 -const type = 'prod' +const type = 'dev' // 环境配置 diff --git a/pages/index/center.vue b/pages/index/center.vue index 44923f9..1e7f5b5 100644 --- a/pages/index/center.vue +++ b/pages/index/center.vue @@ -113,9 +113,9 @@ @@ -193,10 +193,9 @@ return str.replace(/<.*?>/g, '') }, - goToNewsDetail(id, index) { - // todo: check + goToNewsDetail(id) { uni.navigateTo({ - url: `/pages_order/mine/news?id=${id}&index=${index}` + url: `/pages_order/mine/news?id=${id}` }) }, } diff --git a/pages/index/record.vue b/pages/index/record.vue index 89a0ebc..97547de 100644 --- a/pages/index/record.vue +++ b/pages/index/record.vue @@ -28,7 +28,7 @@ >