From 1776f43425eaffcd01d78398583c1e8c7144f6bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E8=89=AFking?= <2244255345@qq.com> Date: Tue, 11 Oct 2022 18:27:42 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=AB=99=E5=86=85=E4=BF=A1=20app=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/message.js | 18 ++++ pages.json | 6 ++ pages/tabbar/home/title.vue | 182 ++++++++++++++++++++++++++++++++++++ 3 files changed, 206 insertions(+) create mode 100644 pages/tabbar/home/title.vue 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 @@ + + + + From 6ee0abd150a3e235c86fd6a648a4dbcc75b6561c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E8=89=AFking?= <2244255345@qq.com> Date: Tue, 11 Oct 2022 19:09:22 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=AB=99=E5=86=85=E4=BF=A1=20=E5=85=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/tabbar/home/template/tpl_search.vue | 17 +++++++++++++++++ static/img/title.png | Bin 0 -> 7792 bytes 2 files changed, 17 insertions(+) create mode 100644 static/img/title.png diff --git a/pages/tabbar/home/template/tpl_search.vue b/pages/tabbar/home/template/tpl_search.vue index 2bbc598..4332785 100644 --- a/pages/tabbar/home/template/tpl_search.vue +++ b/pages/tabbar/home/template/tpl_search.vue @@ -4,6 +4,9 @@ {{ res.list[0].title }} +