From 19a03ab258695d62ec59485921eb3299fcd2f847 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Tue, 17 Nov 2020 16:55:05 +0800 Subject: [PATCH] =?UTF-8?q?=E7=95=99=E8=A8=80=E6=9D=BF=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/learn.js | 51 +++++ src/assets/delete.png | Bin 0 -> 2250 bytes src/assets/like.png | Bin 0 -> 1715 bytes src/assets/reply.png | Bin 0 -> 2192 bytes src/assets/unlike.png | Bin 0 -> 1734 bytes src/utils/baseUrl.js | 4 +- .../newMap/displayNew/demon/messageBoard.vue | 197 +++++++++++++++++- 7 files changed, 243 insertions(+), 9 deletions(-) create mode 100644 src/assets/delete.png create mode 100644 src/assets/like.png create mode 100644 src/assets/reply.png create mode 100644 src/assets/unlike.png 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 0000000000000000000000000000000000000000..a5d3f42fa5d320b9eafcb17503b63a772ea356bd GIT binary patch literal 2250 zcmbVO3v3f*96tz?H;yo5Ixxo}83V5OYHz)hI=8m4!dk`{umxszy}PcLwRiRIwyq>F z9GGo9<;@rf3<7QtKm-(r5F#_63`K{-jG<_lMj_w>ry%IpuB+2bB{sR<_xOFk|L_0! z{<-RG*R-L7o*D!}&`?LFEeE_Ofd?P(82GQsTDk?i1_m)IdNyeDte{N zg{nAvp(~ePSj;m5lJ*=trHlmxeo^P(GQUsO*fI+e;bp-%yo@1m1fmyPko2%YIM104 zTNPD=O$Hj}38M*4WefyO85w3WOyYzY!_62$p#;quah4?E=nnzbRKdgM*rrBpftdyI z>Ux01uwXD~2vP<`Ey4(fVKAJ;ND>7IR13*ESBA>kxNZiUsPU>4&?QBN!;G9;DbXzm zP}=2!KM{0|M@G)GVMD<0C3p^(JM87EO8o&}UY{0ANisn`R zfjYMR7Xu))PG`(UuUh>6m>paiv)9%n=wr;8SZ#7P__2$V?8#TnK}usAshH?uh2 z1$8Qd+FP>x9DQO;vzP%}=sQ6odq z6hW96GF1pyex#V#Oi2T24n^rclD2!%`REJs_$92|5JT5IJ}pWi$u_B zF(m8{7H&#isloo9wa8wN2G$J+T`@e2wPP@eHFQx1)GBD#ci%R>4nciO9k%pb?@PC8 z(yBfwOsp(dp4v8g*j<=0WuGtdSWDlIxy@N;jHTq{jv7KJ%T@3py9g#ZzrM^YO4Pzs`EH@!ZKD zq1FBG4uxjs{21#0X4|br4GnVtTbsoEX*1?eeI@5q27I95+v$f|+g$HY3{^HXyggbv zy|K0Si)nd7D&M_vv{26XTuWOu>**@*_*)OI9{IiR;PEpcc-cql%hlU#EXlcn>8lOQ8`6}a5v1e^{-FNrS zyY^`lZYDoW&Nrrbz^ns>Gf9s4df zJ{WtYy0zlx6Jq|pCCk2^OnshQH$Q#<@U>5Dt{u^SxXLmzSkRfj|MIJ`F?o@%4Ts%jJD5>e@du!SB+LK+ literal 0 HcmV?d00001 diff --git a/src/assets/like.png b/src/assets/like.png new file mode 100644 index 0000000000000000000000000000000000000000..d36ee6510bdb7da8c87b42fa44e494c3ed7a94c7 GIT binary patch literal 1715 zcmV;k22A;hP)?Z7018lzHOrk1dWZv${&!TXsAs|r9jdm;IEq6_vQ?~rho+@p&<|vLIUMiXf?K} zHJ}nr{1GLEYINzG+1K!^^5cOK1(blX{4kUsfk0@8iAVx8yL-qy-g|j_cW&?9eY^c} zcmCTu=bU@a=bo9JxpOYz5NOQ&RR9Z#XpyR(0$>4v*8#i%V2p@%Ip?12hpW^NqeX2F z4-cO(G&FQIfQt&~Y;QK3n`*V%GX-P|iySlnBO@crlO%Bf<`wo9_%DDCsR?VwaDh~qqLYIN8?iGZC0)Ux+3*f>ogAZ!Y*X#9VJ9qAUYZf*pR1Y`+W*!Cb zrwqsc31Bx7g;Zavs*3;|5tAjNA35i)IjjJTj*cGDXfz&C)srHQ|5`-W&Ae`{Jw{bG zW=)cnO64=vYW0QLKscZoV2s&BMAt?f-dnHNPs~bbYwa&pwFS;Z`Vw94oV)d~0Km+r z0eCdS+3$(S&$0qpxpL*l=gyrQhDA#wqKln#zd2k0gmE9nf4YrVDwVUV)oNRSQ-a2r z)kO5iw4$n>>AfF6qTTs zUVwT1eFZSN*1sRXG2KpJ*4nF8wJlI0TI!s8A}_$a{=NcW=Dz?~7I8vE#O65{`kDD2 z04q|m&xy$Ai|FUc^bG(rhm8(L9C&{+^>d$|we~Bj8k-=uh{*c9;EMG31%S2o$Etc& z%z?17^WJYL;v6&I4&d7n*~KFAbP*eQGCc>t%pqMv+O{=Sz1@3%ex6gIe|UKKi$g<0 zu`DS(e2UzsrvR+Atg0dPW9{WirLwqMt^TiwW7gVjs=78Zd0OY36tPi6re^?*F&l{J zrmUM1(UPLCwV3&v0Cq-f?GcgViv(6wX4U|VF$;)jYsQ2(;fJbT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