From 47aa866d860e7c9314db8bb9a1a83efff929b739 Mon Sep 17 00:00:00 2001 From: zhangdongxue Date: Wed, 13 Jul 2022 15:52:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=84=8F=E8=A7=81=E5=8F=8D=E9=A6=88=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E5=88=97=E8=A1=A8=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/interfaces/news.js | 40 + pages.json | 44 + pages/news/detail.vue | 316 ++ pages/news/index.vue | 174 + pages/user/index.vue | 55 +- static/news/news.png | Bin 0 -> 5300 bytes .../dist/dev/app-plus/app-config-service.js | 4 +- unpackage/dist/dev/app-plus/app-service.js | 3651 ++++++++++------- unpackage/dist/dev/app-plus/app-view.js | 2909 ++++++++----- 9 files changed, 4679 insertions(+), 2514 deletions(-) create mode 100644 apis/interfaces/news.js create mode 100644 pages/news/detail.vue create mode 100644 pages/news/index.vue create mode 100644 static/news/news.png diff --git a/apis/interfaces/news.js b/apis/interfaces/news.js new file mode 100644 index 0000000..4e49eab --- /dev/null +++ b/apis/interfaces/news.js @@ -0,0 +1,40 @@ + +/** + * Web-zdx + * moduleName: 消息中心 + */ + +import { + request +} from '../index' + + + +// 意见反馈通知列表 +const list = (type,data) => { + return request({ + url: 'notifications/'+type+'/list', + data:data, + }) +} +// 意见反馈 详情 +const detail = (notification_id) => { + return request({ + url: 'notifications/'+notification_id, + }) +} + +// 全部已读 +const readAll = (type) => { + return request({ + url: 'notifications/'+type, + method:'PUT', + }) +} + + +export { + list, + detail, + readAll, +} diff --git a/pages.json b/pages.json index acd2cc6..7da2c4b 100644 --- a/pages.json +++ b/pages.json @@ -464,6 +464,50 @@ } } + ,{ + "path" : "pages/news/index", + "name": "newsIndex", + "style" : + { + "navigationBarTitleText": "消息中心", + "enablePullDownRefresh": false, + "app-plus": { + "titleNView": { + "type": "default", + "buttons": [{ + "float": "right", + "text": " 全部已读", + "width": "80px", + "fontSize": "14px", + "color": "#34CE98" + }] + } + } + } + + } + ,{ + "path" : "pages/news/detail", + "name": "newsDetail", + "style" : + { + "navigationBarTitleText": "反馈详情", + "enablePullDownRefresh": false, + "app-plus": { + "titleNView": { + "type": "default", + "buttons": [{ + "float": "right", + "text": "微信客服", + "width": "80px", + "fontSize": "14px", + "color": "#34CE98" + }] + } + } + } + + } ], "tabBar": { "borderStyle": "white", diff --git a/pages/news/detail.vue b/pages/news/detail.vue new file mode 100644 index 0000000..1418cf1 --- /dev/null +++ b/pages/news/detail.vue @@ -0,0 +1,316 @@ +