From 0943f7aaf66884d09457e2dbdaa7f15b68aba55f Mon Sep 17 00:00:00 2001 From: Kaviilee Date: Tue, 28 May 2024 15:36:12 +0800 Subject: [PATCH] perf: update homework --- package.json | 2 +- src/App.vue | 2 +- src/Comment.vue | 14 ++++++- src/assets/img/like4.png | Bin 0 -> 8660 bytes src/components/boxcoin-records.vue | 35 ++++++++++++++++ src/components/comment-and-reply.vue | 60 ++++++++++++++++++++++++++- src/service.js | 6 ++- vue.config.js | 6 +++ 8 files changed, 118 insertions(+), 7 deletions(-) create mode 100644 src/assets/img/like4.png create mode 100644 src/components/boxcoin-records.vue diff --git a/package.json b/package.json index c3c50b6..c4c2f12 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@jx3box/jx3box-comment-ui", - "version": "1.9.0", + "version": "1.9.1", "scripts": { "dev": "env DEV_SERVER=true vue-cli-service serve", "serve": "vue-cli-service serve", diff --git a/src/App.vue b/src/App.vue index fbdeba7..50aa90a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,5 @@ diff --git a/src/Comment.vue b/src/Comment.vue index 697672d..d1400c7 100644 --- a/src/Comment.vue +++ b/src/Comment.vue @@ -61,6 +61,7 @@ :user-href="item.userId | profileLink" :username="item.displayName" :homework="homework" + :post-type="postType" @deleteComment="deleteComment" @setTopComment="setTopComment" @setStarComment="setStarComment" @@ -93,6 +94,7 @@ + @@ -104,6 +106,7 @@ import CommentAndReply from "./components/comment-and-reply.vue"; import { GET, POST, DELETE, PUT } from "./service"; import { getOrderMode, setOrderMode } from "./options"; import Homework from "@jx3box/jx3box-common-ui/src/interact/Homework.vue"; +import boxcoinRecords from "./components/boxcoin-records.vue"; import {bus} from "./utils"; export default { name: "Comment", @@ -137,7 +140,8 @@ export default { CommentAvatar, CommentAndReply, CommentInputForm, - Homework + Homework, + boxcoinRecords }, data: function () { return { @@ -164,7 +168,8 @@ export default { postId: 0, userId: 0, client: location.href.includes("origin") ? "origin" : "std", - } + }, + showBoxCoin: false, }; }, computed: { @@ -340,6 +345,11 @@ export default { this.postData.userId = data.userId; this.showHomeWork = true; }) + + bus.on("boxcoin-click", data => { + this.postData.postId = data.id; + this.showBoxCoin = true; + }) }, }; diff --git a/src/assets/img/like4.png b/src/assets/img/like4.png new file mode 100644 index 0000000000000000000000000000000000000000..5bf9474134f78fb2d384ea52bc508e2afad468c6 GIT binary patch literal 8660 zcmV;_AuHaAP) zd3c?5weLT__uYFZJ3CV|v`NzhI;C?9R0?gWSPF`O6JX)M0WPP4coq7H_ZA<#ay(wq zN(-Hvwn;P3$sXQ!-9Og*X201@+N4Pb(e*q# z*?Yh9TI;ul?^?g#w)s09iNZh@U;y`cT)-TUlm3;H0g8czz=gnApbmH*coAp@WHc}K zcY+XbI&f|%6#7V2Rn>>jIOB}c1q&9Kl9Cb{8yk7?#TVuGzyEz*JRW}xxF2|r<1{M% zmM8?w1O7D}4!^cw!Gg}!t5>@lH*S=cmKJecS42cy*Oj`uI{EBpKP%yII0gIxm~?V) z{jZm@fw{ovb8~ZFoIQJX;*LA+kU#(V&yq+aq>r3lk?D`|i7a0qg|IMtW24cL`U zQ3N;(xG@%sEjj=E^QT^U<&~jj%a&15QGspSATG4;hW$??2cL%at(fk5j0jkw%=gtZ z-UJ=*LeWAhD=Vq2tYrK4?GfNy;4z^4Sa0D{$Z|1z>~E!3`qR68K5!w!fg7y}pqjF$lrKBO1YiMY09QvMk&EZgpFd^AiWSktix)F_@?^r{urj{02HCkrncn&qCe?vR zn(^2IVK7M`rSEm4Cxq5*;Km7sLR42*6AFb$rBao^1pWpE5C*D%i?g${ub(@2?))W7 zme|)^a}D$6&GWR~fzAU^vkBStC>+`V@pcG-vGgRyH#4@V7`p^X02Y{Bzz$roV-Lg| z2t_NIJ$p8>Sd6x|wj$tc;E%`pAb)KFuu-RaO(+z)Xu*O7b1uL9^5~~N^(iVVD^=SO zXx|Ha)*}1qDcsli+;(&1kqF}N?dO=cPY|@T6)d}5uAX-UPRTV`= zMYOfG8DLIe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wA2?| z25BJ1*P(0dT+A{46yRSw9nVO@Mi=k98aNL)9qo;%LGhVq(RPq#PGU{=WYdWV + + + + + + + + \ No newline at end of file diff --git a/src/components/comment-and-reply.vue b/src/components/comment-and-reply.vue index 0dd8058..b1bb980 100644 --- a/src/components/comment-and-reply.vue +++ b/src/components/comment-and-reply.vue @@ -8,6 +8,10 @@ :href="userHref" >{{ username || "人字榜800线无名小侠" }} + + + 卷面分:{{ total }} + 置顶 @@ -60,10 +64,10 @@