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 @@ +