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..0b82af7f 100644 --- a/buyer/src/pages/home/memberCenter/memberMsg/MsgList.vue +++ b/buyer/src/pages/home/memberCenter/memberMsg/MsgList.vue @@ -1,6 +1,22 @@ \ No newline at end of file + +