From 995b0d65fb0180347a13df5218847a4a3ce072e4 Mon Sep 17 00:00:00 2001
From: pikachu <1321288662@qq.com>
Date: Tue, 29 Jun 2021 08:25:02 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E4=BC=9A=E5=91=98=E6=B6=88?=
=?UTF-8?q?=E6=81=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
buyer/src/api/member.js | 14 +-
.../home/memberCenter/memberMsg/MsgList.vue | 155 +++++++++++++++++-
2 files changed, 153 insertions(+), 16 deletions(-)
diff --git a/buyer/src/api/member.js b/buyer/src/api/member.js
index efa6255a..9ecdbb50 100644
--- a/buyer/src/api/member.js
+++ b/buyer/src/api/member.js
@@ -457,23 +457,21 @@ export function memberMsgList (params) {
* 设置消息为已读
* @param {String} messageId 消息id
*/
- export function readMemberMsg (params) {
+ export function readMemberMsg (id) {
return request({
- url: `/buyer/member/message`,
+ url: `/buyer/member/message/${id}`,
method: Method.PUT,
- needToken: true,
- params
+ needToken: true
});
}
/**
* 删除会员消息
* @param {String} messageId 消息id
*/
- export function delMemberMsg (params) {
+ export function delMemberMsg (id) {
return request({
- url: `/buyer/member/message`,
+ url: `/buyer/member/message/${id}`,
method: Method.DELETE,
- needToken: true,
- params
+ needToken: true
});
}
diff --git a/buyer/src/pages/home/memberCenter/memberMsg/MsgList.vue b/buyer/src/pages/home/memberCenter/memberMsg/MsgList.vue
index d36c6927..555196f5 100644
--- a/buyer/src/pages/home/memberCenter/memberMsg/MsgList.vue
+++ b/buyer/src/pages/home/memberCenter/memberMsg/MsgList.vue
@@ -1,6 +1,21 @@
\ No newline at end of file
+
+