From 7e3311ad642ac19f99785ed81be2fb504e624805 Mon Sep 17 00:00:00 2001 From: huangdeliang Date: Mon, 31 May 2021 10:52:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stdiet-ui/src/api/custom/message.js | 33 ++++++++++++++ .../components/RecipesPlanDrawer/index.vue | 7 ++- stdiet-ui/src/layout/components/Navbar.vue | 2 +- stdiet-ui/src/router/index.js | 7 +++ stdiet-ui/src/store/index.js | 4 +- stdiet-ui/src/store/modules/message.js | 45 +++++++++++++++++++ stdiet-ui/src/views/custom/message/index.vue | 41 +++++++++++++++++ .../views/custom/message/messageBrowser.vue | 45 +++++++++++++++++++ .../src/views/custom/recipesPlan/index.vue | 25 ++--------- 9 files changed, 184 insertions(+), 25 deletions(-) create mode 100644 stdiet-ui/src/api/custom/message.js create mode 100644 stdiet-ui/src/store/modules/message.js create mode 100644 stdiet-ui/src/views/custom/message/index.vue create mode 100644 stdiet-ui/src/views/custom/message/messageBrowser.vue diff --git a/stdiet-ui/src/api/custom/message.js b/stdiet-ui/src/api/custom/message.js new file mode 100644 index 000000000..f453c905f --- /dev/null +++ b/stdiet-ui/src/api/custom/message.js @@ -0,0 +1,33 @@ +import request from "@/utils/request"; + +export function fetchTopicList(query) { + return request({ + url: "/services/topic/list", + method: "get", + params: query + }); +} + +export function fetchTopicDetail(query) { + return request({ + url: "/services/topic/detail", + method: "get", + params: query + }); +} + +export function postTopicReply(data) { + return request({ + url: "/services/topic/reply", + method: "post", + body: data + }); +} + +export function postTopicComment(data) { + return request({ + url: "/services/topic/comment", + method: "post", + body: data + }); +} diff --git a/stdiet-ui/src/components/RecipesPlanDrawer/index.vue b/stdiet-ui/src/components/RecipesPlanDrawer/index.vue index 45498bca8..66535901b 100644 --- a/stdiet-ui/src/components/RecipesPlanDrawer/index.vue +++ b/stdiet-ui/src/components/RecipesPlanDrawer/index.vue @@ -151,8 +151,11 @@ + diff --git a/stdiet-ui/src/views/custom/message/messageBrowser.vue b/stdiet-ui/src/views/custom/message/messageBrowser.vue new file mode 100644 index 000000000..bd861a855 --- /dev/null +++ b/stdiet-ui/src/views/custom/message/messageBrowser.vue @@ -0,0 +1,45 @@ + + + diff --git a/stdiet-ui/src/views/custom/recipesPlan/index.vue b/stdiet-ui/src/views/custom/recipesPlan/index.vue index 0e8e94dcd..e21c723a4 100644 --- a/stdiet-ui/src/views/custom/recipesPlan/index.vue +++ b/stdiet-ui/src/views/custom/recipesPlan/index.vue @@ -115,30 +115,14 @@ - - - + + + - +