diff --git a/api/message.js b/api/message.js index c6e7dd8..9b8a4f2 100644 --- a/api/message.js +++ b/api/message.js @@ -48,6 +48,24 @@ export function messageMarkAsRead(ids) { }); } +//读取站内消息 +export function editMessages(message_id,params){ + return http.request({ + url:`/message/member/${message_id}`, + method:Method.PUT, + needToken:true, + params + }) +} +//获取站内消息 +export function messages(params) { + return http.request({ + url: "/message/member", + method: Method.GET, + needToken: true, + params, + }); +} /** * 获取物流消息列表 diff --git a/pages.json b/pages.json index 6838480..9458b7b 100644 --- a/pages.json +++ b/pages.json @@ -26,6 +26,12 @@ } } }, + { + "path": "pages/tabbar/home/title", + "style": { + "navigationBarTitleText": "消息" + } + }, { "path": "pages/tabbar/cart/cartList", "style": { diff --git a/pages/tabbar/home/title.vue b/pages/tabbar/home/title.vue new file mode 100644 index 0000000..a007339 --- /dev/null +++ b/pages/tabbar/home/title.vue @@ -0,0 +1,182 @@ + + + +