diff --git a/src/api/learn.js b/src/api/learn.js index ee6747731..209b7061d 100644 --- a/src/api/learn.js +++ b/src/api/learn.js @@ -16,3 +16,54 @@ export function answerPost(data) { data: data }); } +// 评论留言 +export function commentLevelMessage(messageId, data) { + return request({ + url: `/api/learn/${messageId}/comment`, + method: 'post', + data: data + }); +} +// 评论 留言的评论 +export function commentComents(messageId, commentId, data) { + return request({ + url: `/api/learn/${messageId}/${commentId}/comment`, + method: 'post', + data: data + }); +} +// 管理员删除留言 +export function deleteMessageByAdmin(messageId) { + return request({ + url: `/api/learn/${messageId}/delete/admin`, + method: 'delete' + }); +} +// 用户自己删除留言 +export function deleteMessageBySelf(messageId) { + return request({ + url: `/api/learn/${messageId}/delete/user`, + method: 'delete' + }); +} +// 查询留言的评论列表 +export function queryMessageCommentList(messageId) { + return request({ + url: `/api/learn/${messageId}/list`, + method: 'get' + }); +} +// 删除评论回复管理员 +export function deleteCommentByAdmin(commentId) { + return request({ + url: `/api/learn/${commentId}/delete/admin`, + method: 'delete' + }); +} +// 删除评论回复用户 +export function deleteCommentBySelf(commentId) { + return request({ + url: `/api/learn/${commentId}/delete/user`, + method: 'delete' + }); +} diff --git a/src/assets/delete.png b/src/assets/delete.png new file mode 100644 index 000000000..a5d3f42fa Binary files /dev/null and b/src/assets/delete.png differ diff --git a/src/assets/like.png b/src/assets/like.png new file mode 100644 index 000000000..d36ee6510 Binary files /dev/null and b/src/assets/like.png differ diff --git a/src/assets/reply.png b/src/assets/reply.png new file mode 100644 index 000000000..04215c4a0 Binary files /dev/null and b/src/assets/reply.png differ diff --git a/src/assets/unlike.png b/src/assets/unlike.png new file mode 100644 index 000000000..dddf99c85 Binary files /dev/null and b/src/assets/unlike.png differ diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js index 54719f53d..ef240edc3 100644 --- a/src/utils/baseUrl.js +++ b/src/utils/baseUrl.js @@ -1,11 +1,11 @@ export function getBaseUrl() { let BASE_API; if (process.env.NODE_ENV === 'development') { - BASE_API = 'https://joylink.club/jlcloud'; + // BASE_API = 'https://joylink.club/jlcloud'; // BASE_API = 'https://test.joylink.club/jlcloud'; // BASE_API = 'http://192.168.8.107:9000'; // 袁琪 // BASE_API = 'http://192.168.8.129:9000'; // 旭强 - // BASE_API = 'http://192.168.8.119:9000'; // 张赛 + BASE_API = 'http://192.168.8.119:9000'; // 张赛 // BASE_API = 'http://192.168.8.110:9000'; // 杜康 // BASE_API = 'http://b29z135112.zicp.vip'; // BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康 diff --git a/src/views/newMap/displayNew/demon/messageBoard.vue b/src/views/newMap/displayNew/demon/messageBoard.vue index 277ba34ab..739a2d39f 100644 --- a/src/views/newMap/displayNew/demon/messageBoard.vue +++ b/src/views/newMap/displayNew/demon/messageBoard.vue @@ -10,18 +10,58 @@
- 暂无评论 + 暂无留言
- + 清空 留言 返回 我要留言 -
+