From 1305931e3b9b1f62bfa597e68e751b13d83eeb40 Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Fri, 28 Aug 2020 14:51:35 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E7=9F=A5=E5=92=8C=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/http.api.js | 11 +++++- pages.json | 12 ++++-- pages/messages/info.vue | 70 +++++++++++++++++++++++++++++++++ pages/messages/list.vue | 27 ++++++++++--- pages/messages/messagesList.vue | 15 +++++-- pages/release/index.vue | 8 +++- pages/release/video.vue | 8 +++- 7 files changed, 134 insertions(+), 17 deletions(-) create mode 100644 pages/messages/info.vue diff --git a/common/http.api.js b/common/http.api.js index 4618888..c257473 100644 --- a/common/http.api.js +++ b/common/http.api.js @@ -132,9 +132,18 @@ const install = (Vue, vm) => { // 试穿 agreetest({goods_try_id,type,takeawayer_id}){ return vm.$u.post("/order/goodsTryAgree",{goods_try_id,type,takeawayer_id}) + }, + + messageList({page = 1}){ + return vm.$u.post("/message/messageList",{page}) + }, + isread(){ + return vm.$u.post("/message/isread") + }, + messageInfo(){ + return vm.$u.post("/message/messageInfo") } - } // 将各个定义的接口名称,统一放进对象挂载到vm.$u.api(因为vm就是this,也即this.$u.api)下 vm.$u.api = api; diff --git a/pages.json b/pages.json index fea89ea..9986ce6 100644 --- a/pages.json +++ b/pages.json @@ -262,10 +262,14 @@ "style": { "navigationBarTitleText": "活动列表", "app-plus": { - "titleNView": { - "backgroundColor": "#2D2D2D", - "titleColor": "#FFFFFF" - } + } + } + }, + { + "path": "pages/messages/info", + "style": { + "navigationBarTitleText": "活动详情", + "app-plus": { } } } diff --git a/pages/messages/info.vue b/pages/messages/info.vue new file mode 100644 index 0000000..07fd8f7 --- /dev/null +++ b/pages/messages/info.vue @@ -0,0 +1,70 @@ + + + + + diff --git a/pages/messages/list.vue b/pages/messages/list.vue index e0857a3..a50deea 100644 --- a/pages/messages/list.vue +++ b/pages/messages/list.vue @@ -1,10 +1,10 @@