From c36e88fba1655f5fb4b63bb92ca99b23f18fab85 Mon Sep 17 00:00:00 2001 From: WenShiJun Date: Wed, 28 Feb 2024 19:33:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E5=85=A8=E9=80=9A=E7=9F=A5=E8=83=BD?= =?UTF-8?q?=E8=83=BD=E4=BF=AE=E6=94=B9->=E4=BC=81=E4=B8=9A=E5=85=AC?= =?UTF-8?q?=E5=91=8A=EF=BC=8C=E9=80=9A=E7=9F=A5=E5=85=AC=E5=91=8A=E9=83=A8?= =?UTF-8?q?=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/misc.xml | 1 - common/tool.js | 2 +- pages/index/index.vue | 4 +- pages/my/news/home.vue | 2 +- pages/news/home.vue | 18 +-- pages/news/news-list-detail.vue | 227 +++++++++++++++++++++++--------- 6 files changed, 177 insertions(+), 77 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index e342c81..dfc709c 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,3 @@ - diff --git a/common/tool.js b/common/tool.js index a65ade1..ee1c0d6 100644 --- a/common/tool.js +++ b/common/tool.js @@ -1,5 +1,5 @@ // export var basePath = "http://192.168.0.42:8099/"; -export var basePath = "http://192.168.0.49:8091"; +export var basePath = "http://192.168.0.49:8093/"; // export var basePath = "https://gateway.qhdsafety.com/"; export const baseImgPath = "https://file.zcloudchina.com/YTHFile"; export const adminPath = "http://192.168.0.18:8085"; diff --git a/pages/index/index.vue b/pages/index/index.vue index 72b526f..25434c6 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -24,7 +24,6 @@ {{mesCount}} 通知 - @@ -166,7 +165,7 @@ title: '请稍候' }) uni.request({ - url: basePath + '/app/notice/getRedPoint', + url: basePath + '/app/trafficNotice/getRedPoint', method: 'POST', dataType: 'json', header: { @@ -177,7 +176,6 @@ USER_ID:loginUser.USER_ID, }, success: (res) => { - if("success" == res.data.result){ uni.hideLoading(); _this.mesCount = res.data.count; diff --git a/pages/my/news/home.vue b/pages/my/news/home.vue index ed365f1..e176ad2 100644 --- a/pages/my/news/home.vue +++ b/pages/my/news/home.vue @@ -189,7 +189,7 @@ title: '请稍候' }) uni.request({ - url: basePath + '/app/notice/listForCp', + url: basePath + '/app/trafficNotice/getRedPoint', method: 'POST', dataType: 'json', header: { diff --git a/pages/news/home.vue b/pages/news/home.vue index 98d2f2a..1843a5d 100644 --- a/pages/news/home.vue +++ b/pages/news/home.vue @@ -41,7 +41,7 @@ - + @@ -75,17 +75,17 @@ - - {{item.SYNOPSIS}} + + {{item.LEVEL}} - {{item.CREATTIME}} + {{item.CREATETIME}} - + @@ -232,7 +232,7 @@ title: '请稍候' }) uni.request({ - url: basePath + '/app/notice/listForCp', + url: basePath + '/app/trafficNotice/listForCp', method: 'POST', dataType: 'json', header: { @@ -241,7 +241,7 @@ data: { showCount : _this.showCount, currentPage : _this.currentPage, - KEYWORDS:_this.KEYWORDS, + KEYWORDS:_this.KEYWORDS, loginUserId :loginUserId, CORPINFO_ID:loginUser.CORPINFO_ID, USER_ID:loginUser.USER_ID, @@ -285,14 +285,14 @@ title: '处理中' }) uni.request({ - url: basePath+'/app/notice/delete', + url: basePath+'/app/trafficNotice/delete', method: 'POST', dataType: 'json', header: { 'Content-type':'application/x-www-form-urlencoded' }, data: { - NOTICECORPUSERID_ID: ID + NOTIFICATION_ID: ID }, success: (res) => { uni.hideLoading(); diff --git a/pages/news/news-list-detail.vue b/pages/news/news-list-detail.vue index 1e8246f..2788a5f 100644 --- a/pages/news/news-list-detail.vue +++ b/pages/news/news-list-detail.vue @@ -6,24 +6,38 @@ - - {{pd.SYNOPSIS}} - + + 通知标题: + - - {{pd.CREATTIME}} - - - - - - - - - 附件 - - + {{pd.TITLE}} + + 通知内容: + + + {{pd.NOTIFICATIONCONTENT}} + + + {{pd.CREATETIME}} + + + + + + + + + + 附件 + + + + + 回复内容 + + + @@ -32,68 +46,133 @@