@jx3box/jx3box-ui 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env +6 -0
- package/README.md +4 -0
- package/assets/css/bread/admin.less +131 -0
- package/assets/css/bread/breadcrumb.less +163 -0
- package/assets/css/bread/crumb.less +17 -0
- package/assets/css/comment/quick-reply.less +56 -0
- package/assets/css/common/bottom.less +21 -0
- package/assets/css/common/footer.less +78 -0
- package/assets/css/common/left-sidebar.less +137 -0
- package/assets/css/common/main.less +75 -0
- package/assets/css/common/right-sidebar.less +193 -0
- package/assets/css/common/suspend-common.less +343 -0
- package/assets/css/editor/article.less +36 -0
- package/assets/css/editor/combo.less +311 -0
- package/assets/css/editor/resource.less +335 -0
- package/assets/css/editor/tinymce.less +80 -0
- package/assets/css/editor/upload.less +111 -0
- package/assets/css/filters/client-by.less +33 -0
- package/assets/css/header/box.less +181 -0
- package/assets/css/interact/like2.less +20 -0
- package/assets/css/interact/share2.less +101 -0
- package/assets/css/mixin.less +64 -0
- package/assets/css/module/author.less +190 -0
- package/assets/css/module/buff.less +78 -0
- package/assets/css/module/directory.less +143 -0
- package/assets/css/module/icon.less +21 -0
- package/assets/css/module/item.less +229 -0
- package/assets/css/module/item_simple.less +51 -0
- package/assets/css/module/jx3_element.less +4 -0
- package/assets/css/module/macro.less +72 -0
- package/assets/css/module/npc.less +220 -0
- package/assets/css/module/resource.less +80 -0
- package/assets/css/module/skill.less +65 -0
- package/assets/css/module/talent.less +424 -0
- package/assets/css/single/author.less +101 -0
- package/assets/css/single/cms-single.less +55 -0
- package/assets/css/single/thx.less +230 -0
- package/assets/css/tinymce/_.less +28 -0
- package/assets/css/tinymce/a.less +29 -0
- package/assets/css/tinymce/code.less +159 -0
- package/assets/css/tinymce/combo.less +86 -0
- package/assets/css/tinymce/fold.less +70 -0
- package/assets/css/tinymce/h.less +58 -0
- package/assets/css/tinymce/hr.less +9 -0
- package/assets/css/tinymce/img.less +16 -0
- package/assets/css/tinymce/imgpreview.less +14 -0
- package/assets/css/tinymce/latex.less +43 -0
- package/assets/css/tinymce/list.less +65 -0
- package/assets/css/tinymce/macro.less +40 -0
- package/assets/css/tinymce/nextpage.less +65 -0
- package/assets/css/tinymce/p.less +8 -0
- package/assets/css/tinymce/plugin.less +3 -0
- package/assets/css/tinymce/pz.less +39 -0
- package/assets/css/tinymce/qixue.less +39 -0
- package/assets/css/tinymce/quote.less +12 -0
- package/assets/css/tinymce/table.less +59 -0
- package/assets/css/tinymce/video.less +61 -0
- package/assets/css/var.less +1 -0
- package/assets/data/box.json +184 -0
- package/assets/data/box2.json +606 -0
- package/assets/data/detach_type.json +29 -0
- package/assets/data/game_font.json +242 -0
- package/assets/data/nav.json +12 -0
- package/assets/data/panel.json +27 -0
- package/assets/data/reply_template.json +6 -0
- package/assets/data/weapon_type.json +20 -0
- package/assets/data/zlp.json +5 -0
- package/assets/img/author/bilibili.png +0 -0
- package/assets/img/author/bilibili.svg +1 -0
- package/assets/img/author/chat.png +0 -0
- package/assets/img/author/douyu.png +0 -0
- package/assets/img/author/douyu.svg +1 -0
- package/assets/img/author/github.svg +1 -0
- package/assets/img/author/huya.png +0 -0
- package/assets/img/author/huya.svg +1 -0
- package/assets/img/author/msg.svg +55 -0
- package/assets/img/author/tuilan.png +0 -0
- package/assets/img/author/weibo.svg +70 -0
- package/assets/img/bread/menu.svg +1 -0
- package/assets/img/comment/comment.svg +1 -0
- package/assets/img/comment/heart_1.svg +1 -0
- package/assets/img/comment/heart_2.svg +1 -0
- package/assets/img/comment/hide.svg +1 -0
- package/assets/img/common/add.svg +1 -0
- package/assets/img/common/android.svg +1 -0
- package/assets/img/common/bell.svg +1 -0
- package/assets/img/common/bilibili-black.svg +1 -0
- package/assets/img/common/bilibili.svg +1 -0
- package/assets/img/common/check.svg +1 -0
- package/assets/img/common/coin.svg +1 -0
- package/assets/img/common/coupon.svg +56 -0
- package/assets/img/common/douyin.svg +1 -0
- package/assets/img/common/edit.svg +1 -0
- package/assets/img/common/followus.svg +18 -0
- package/assets/img/common/gift.svg +1 -0
- package/assets/img/common/harmony.svg +1 -0
- package/assets/img/common/ios.svg +1 -0
- package/assets/img/common/jx3-origin.svg +15 -0
- package/assets/img/common/jx3-www.svg +9 -0
- package/assets/img/common/lang.svg +6 -0
- package/assets/img/common/logo.svg +5 -0
- package/assets/img/common/manage.svg +1 -0
- package/assets/img/common/miniprogram.jpg +0 -0
- package/assets/img/common/miniprogram.svg +1 -0
- package/assets/img/common/mp.jpg +0 -0
- package/assets/img/common/msg.svg +1 -0
- package/assets/img/common/news.svg +20 -0
- package/assets/img/common/qqbot.svg +7 -0
- package/assets/img/common/qrcode.svg +1 -0
- package/assets/img/common/search-key-slash.svg +5 -0
- package/assets/img/common/send.svg +56 -0
- package/assets/img/common/setting.svg +1 -0
- package/assets/img/common/vip.svg +1 -0
- package/assets/img/common/wechat.svg +48 -0
- package/assets/img/common/weibo.svg +70 -0
- package/assets/img/editor/buff.svg +1 -0
- package/assets/img/editor/file.svg +51 -0
- package/assets/img/editor/icons.svg +15 -0
- package/assets/img/editor/item.svg +46 -0
- package/assets/img/editor/jx3.svg +11 -0
- package/assets/img/editor/jx3box.svg +5 -0
- package/assets/img/editor/skill.svg +53 -0
- package/assets/img/editor/view.svg +1 -0
- package/assets/img/footer/android.svg +1 -0
- package/assets/img/footer/china.svg +1 -0
- package/assets/img/footer/harmony.svg +1 -0
- package/assets/img/footer/ios.svg +1 -0
- package/assets/img/footer/logo.svg +5 -0
- package/assets/img/footer/miniprogram.svg +1 -0
- package/assets/img/footer/qqbot.svg +7 -0
- package/assets/img/header/add.svg +1 -0
- package/assets/img/header/bell.svg +1 -0
- package/assets/img/header/check.svg +1 -0
- package/assets/img/header/coin.svg +1 -0
- package/assets/img/header/edit.svg +1 -0
- package/assets/img/header/gift.svg +1 -0
- package/assets/img/header/logo.svg +5 -0
- package/assets/img/header/manage.svg +1 -0
- package/assets/img/header/msg.svg +1 -0
- package/assets/img/header/search-key-slash.svg +5 -0
- package/assets/img/header/send.svg +56 -0
- package/assets/img/header/setting.svg +1 -0
- package/assets/img/header/translator.svg +1 -0
- package/assets/img/header/vip.svg +1 -0
- package/assets/img/leftsidebar/arrow.svg +64 -0
- package/assets/img/leftsidebar/close.svg +49 -0
- package/assets/img/leftsidebar/fans.svg +1 -0
- package/assets/img/leftsidebar/medal.svg +1 -0
- package/assets/img/leftsidebar/more.svg +50 -0
- package/assets/img/leftsidebar/open.svg +51 -0
- package/assets/img/leftsidebar/post.svg +46 -0
- package/assets/img/leftsidebar/team.svg +1 -0
- package/assets/img/leftsidebar/united.svg +1 -0
- package/assets/img/list/post.svg +1 -0
- package/assets/img/mobile/miniprogram.jpg +0 -0
- package/assets/img/mobile/mp.jpg +0 -0
- package/assets/img/npc/attack.svg +69 -0
- package/assets/img/npc/buff.svg +20 -0
- package/assets/img/npc/energy.svg +1 -0
- package/assets/img/npc/miss.svg +1 -0
- package/assets/img/npc/npc.svg +1 -0
- package/assets/img/npc/radar.svg +45 -0
- package/assets/img/npc/shield.svg +1 -0
- package/assets/img/npc/sight.svg +1 -0
- package/assets/img/npc/skull.svg +15 -0
- package/assets/img/npc/target.svg +55 -0
- package/assets/img/price/jin.png +0 -0
- package/assets/img/price/tong.png +0 -0
- package/assets/img/price/yin.png +0 -0
- package/assets/img/price/zhuan.png +0 -0
- package/assets/img/rightsidebar/ac.svg +1 -0
- package/assets/img/rightsidebar/github.svg +1 -0
- package/assets/img/rightsidebar/repo.svg +1 -0
- package/assets/img/rightsidebar/topic_bg.svg +1 -0
- package/assets/img/rightsidebar/topic_bg_bps.svg +113 -0
- package/assets/img/single/author.svg +1 -0
- package/assets/img/single/directory-header.svg +1 -0
- package/assets/img/single/lock.svg +1 -0
- package/assets/img/single/modate.svg +24 -0
- package/assets/img/single/podate.svg +23 -0
- package/assets/img/single/ticket.svg +1 -0
- package/assets/img/suspend/ArrowsLeftRight.svg +1 -0
- package/assets/img/suspend/circle.svg +7 -0
- package/assets/img/suspend/collect.svg +1 -0
- package/assets/img/suspend/collect_slash.svg +1 -0
- package/assets/img/suspend/collect_slash_touchbar.svg +1 -0
- package/assets/img/suspend/collect_slash_touchbar_100.svg +1 -0
- package/assets/img/suspend/collect_touchbar.svg +1 -0
- package/assets/img/suspend/collect_touchbar_100.svg +1 -0
- package/assets/img/suspend/lafter_touchbar.svg +1 -0
- package/assets/img/suspend/later-on.svg +1 -0
- package/assets/img/suspend/line.svg +3 -0
- package/assets/img/suspend/more.svg +1 -0
- package/assets/img/suspend/pin_slash_24.svg +1 -0
- package/assets/img/suspend/pin_slash_touchbar.svg +1 -0
- package/assets/img/suspend/pin_slash_touchbar_24.svg +1 -0
- package/assets/img/suspend/pin_slash_touchbar_40.svg +1 -0
- package/assets/img/suspend/pin_touchbar.svg +1 -0
- package/assets/img/suspend/pin_touchbar_100.svg +1 -0
- package/assets/img/suspend/pin_touchbar_24.svg +1 -0
- package/assets/img/suspend/report_100.svg +1 -0
- package/assets/img/suspend/rss_touchbar.svg +1 -0
- package/assets/img/suspend/rss_touchbar_100.svg +1 -0
- package/assets/img/suspend/search.svg +3 -0
- package/assets/img/suspend/search_touchbar.svg +1 -0
- package/assets/img/widget/admin_gift.svg +10 -0
- package/assets/img/widget/gift.svg +1 -0
- package/assets/img/widget/heart.svg +17 -0
- package/assets/img/widget/heart1.svg +1 -0
- package/assets/img/widget/heart2.svg +11 -0
- package/assets/img/widget/heart3.svg +37 -0
- package/assets/img/widget/like.svg +1 -0
- package/assets/img/widget/like2.svg +1 -0
- package/assets/img/widget/like3.svg +14 -0
- package/assets/img/widget/like4.png +0 -0
- package/assets/img/widget/like4ing.gif +0 -0
- package/assets/img/widget/qq.svg +1 -0
- package/assets/img/widget/qr-code.svg +1 -0
- package/assets/img/widget/qzone.svg +1 -0
- package/assets/img/widget/records.svg +1 -0
- package/assets/img/widget/share-link.png +0 -0
- package/assets/img/widget/share.svg +13 -0
- package/assets/img/widget/share2.svg +19 -0
- package/assets/img/widget/star.svg +9 -0
- package/assets/img/widget/tieba.svg +1 -0
- package/assets/img/widget/unstar.svg +21 -0
- package/assets/img/widget/web_heart_animation.png +0 -0
- package/assets/img/widget/weibo.svg +1 -0
- package/assets/img/widget/weixin.svg +1 -0
- package/assets/js/a.js +46 -0
- package/assets/js/app.js +7 -0
- package/assets/js/code.js +13 -0
- package/assets/js/combo.js +40 -0
- package/assets/js/directory.js +114 -0
- package/assets/js/filter2.js +186 -0
- package/assets/js/fold.js +11 -0
- package/assets/js/gallery.js +14 -0
- package/assets/js/hljs_languages.js +177 -0
- package/assets/js/iframe.js +38 -0
- package/assets/js/img.js +23 -0
- package/assets/js/item/attribute_percent.js +88 -0
- package/assets/js/item/bind.js +18 -0
- package/assets/js/item/border.js +19 -0
- package/assets/js/item/border_quest.js +12 -0
- package/assets/js/item/color.js +25 -0
- package/assets/js/item/hljs_languages.js +177 -0
- package/assets/js/item/icon_url.js +15 -0
- package/assets/js/item/second_format.js +19 -0
- package/assets/js/jx3_element.js +73 -0
- package/assets/js/katex.js +181 -0
- package/assets/js/macro.js +16 -0
- package/assets/js/nextpage.js +4 -0
- package/assets/js/pswp.js +67 -0
- package/assets/js/pswp_template.js +66 -0
- package/assets/js/pz_iframe.js +30 -0
- package/assets/js/qixue.js +28 -0
- package/assets/js/renderImgPreview.js +18 -0
- package/assets/js/script.js +6 -0
- package/assets/js/stat.js +107 -0
- package/assets/js/talent2.js +21 -0
- package/assets/js/tex-mml-chtml.js +36310 -0
- package/assets/js/voice.js +238 -0
- package/assets/js/xss.js +130 -0
- package/babel.config.js +3 -0
- package/docs/README.md +78 -0
- package/i18n/index.js +134 -0
- package/i18n/messages/en-US.js +124 -0
- package/i18n/messages/vi.js +124 -0
- package/i18n/messages/zh-CN.js +124 -0
- package/i18n/messages/zh-TW.js +124 -0
- package/i18n/mixin.js +23 -0
- package/index.js +73 -0
- package/package.json +97 -0
- package/postcss.config.js +3 -0
- package/service/admin.js +20 -0
- package/service/author.js +94 -0
- package/service/breadcrumb.js +13 -0
- package/service/cms.js +137 -0
- package/service/comment.js +187 -0
- package/service/database.js +115 -0
- package/service/design.js +13 -0
- package/service/enum/CollectionPublic.js +13 -0
- package/service/enum/EquipPosition.js +48 -0
- package/service/enum/EquipType.js +33 -0
- package/service/fav.js +27 -0
- package/service/follow.js +55 -0
- package/service/github.js +15 -0
- package/service/header.js +42 -0
- package/service/item.js +22 -0
- package/service/resource.js +31 -0
- package/service/suspend.js +81 -0
- package/service/thx.js +60 -0
- package/src/App.vue +212 -0
- package/src/Bottom.vue +23 -0
- package/src/Box.vue +149 -0
- package/src/Breadcrumb.vue +141 -0
- package/src/CommonFooter.vue +69 -0
- package/src/CommonHeader.vue +270 -0
- package/src/Footer.vue +45 -0
- package/src/LeftSideToggle.vue +64 -0
- package/src/LeftSidebar.vue +123 -0
- package/src/Main.vue +48 -0
- package/src/RightSidebar.vue +61 -0
- package/src/SuspendCommon.vue +705 -0
- package/src/author/AuthorFans.vue +170 -0
- package/src/author/AuthorFollow.vue +205 -0
- package/src/author/AuthorGift.vue +286 -0
- package/src/author/AuthorHonor.vue +128 -0
- package/src/author/AuthorInfo.vue +245 -0
- package/src/author/AuthorLink.vue +113 -0
- package/src/author/AuthorMedals.vue +87 -0
- package/src/author/AuthorMsg.vue +25 -0
- package/src/author/AuthorPosts.vue +114 -0
- package/src/author/AuthorRss.vue +160 -0
- package/src/author/AuthorTeams.vue +106 -0
- package/src/author/Avatar.vue +168 -0
- package/src/author/UserPop.vue +198 -0
- package/src/bread/Admin.vue +400 -0
- package/src/bread/AdminButton.vue +31 -0
- package/src/bread/AdminDirectMessage.vue +73 -0
- package/src/bread/AdminDrop.vue +155 -0
- package/src/bread/Crumb.vue +27 -0
- package/src/bread/DesignTask.vue +194 -0
- package/src/comment/Avatar.vue +124 -0
- package/src/comment/CommentContent.vue +486 -0
- package/src/comment/CommentContentSimple.vue +240 -0
- package/src/comment/CommentInputForm.vue +182 -0
- package/src/comment/CommentWithReply.vue +261 -0
- package/src/comment/QuickReply.vue +64 -0
- package/src/comment/ReplyForReply.vue +127 -0
- package/src/comment/ReplyItem.vue +92 -0
- package/src/comment/ReplyList.vue +126 -0
- package/src/comment/Upload.vue +108 -0
- package/src/editor/Article.vue +230 -0
- package/src/editor/BoxResource.vue +441 -0
- package/src/editor/Resource.vue +623 -0
- package/src/editor/Tinymce.vue +204 -0
- package/src/editor/Upload.vue +277 -0
- package/src/editor/UploadAlum.vue +176 -0
- package/src/editor/UploadBanner.vue +156 -0
- package/src/editor/components/Author.vue +322 -0
- package/src/editor/components/Avatar.vue +95 -0
- package/src/editor/components/Buff.vue +80 -0
- package/src/editor/components/Combo.vue +259 -0
- package/src/editor/components/Equip.vue +299 -0
- package/src/editor/components/GameText.vue +242 -0
- package/src/editor/components/Item.vue +325 -0
- package/src/editor/components/ItemSimple.vue +134 -0
- package/src/editor/components/Medal.vue +43 -0
- package/src/editor/components/Npc.vue +215 -0
- package/src/editor/components/PostAuthor.vue +102 -0
- package/src/editor/components/Skill.vue +71 -0
- package/src/filters/clientBy.vue +96 -0
- package/src/filters/markBy.vue +177 -0
- package/src/filters/menuBy.vue +63 -0
- package/src/filters/orderBy.vue +170 -0
- package/src/filters/tagBy.vue +171 -0
- package/src/filters/topicBy.vue +151 -0
- package/src/filters/versionBy.vue +49 -0
- package/src/filters/zlpBy.vue +70 -0
- package/src/footer/copyright.vue +59 -0
- package/src/footer/links.vue +79 -0
- package/src/footer/official.vue +142 -0
- package/src/footer/resource.vue +146 -0
- package/src/header/alternate.vue +299 -0
- package/src/header/asset.vue +180 -0
- package/src/header/box.vue +161 -0
- package/src/header/box2.vue +479 -0
- package/src/header/bus.js +9 -0
- package/src/header/client.vue +183 -0
- package/src/header/lang.vue +136 -0
- package/src/header/logo.vue +95 -0
- package/src/header/manage.vue +200 -0
- package/src/header/message.vue +93 -0
- package/src/header/nav.vue +356 -0
- package/src/header/publish.vue +38 -0
- package/src/header/search.vue +120 -0
- package/src/header/search_map.json +3 -0
- package/src/header/shop.vue +121 -0
- package/src/header/user.vue +250 -0
- package/src/header/userInfo.vue +621 -0
- package/src/header/utils.js +126 -0
- package/src/header/vip.vue +120 -0
- package/src/interact/BoxcoinAdmin.vue +185 -0
- package/src/interact/BoxcoinRecords.vue +153 -0
- package/src/interact/BoxcoinUser.vue +194 -0
- package/src/interact/Contributors.vue +111 -0
- package/src/interact/Fav.vue +95 -0
- package/src/interact/Like.vue +61 -0
- package/src/interact/Rss.vue +163 -0
- package/src/interact/Share.vue +166 -0
- package/src/interact/WatchLater.vue +108 -0
- package/src/main.js +72 -0
- package/src/single/Author.vue +72 -0
- package/src/single/Collection.vue +176 -0
- package/src/single/Comment.vue +454 -0
- package/src/single/Creators.vue +214 -0
- package/src/single/PostDirectory.vue +147 -0
- package/src/single/PostHeader.vue +397 -0
- package/src/single/PostTopic.vue +127 -0
- package/src/single/SimpleThx.vue +217 -0
- package/src/single/Thx.vue +260 -0
- package/src/single/cms-single.vue +235 -0
- package/tailwind.config.js +13 -0
- package/utils/bus.js +5 -0
- package/utils/emotion.js +21 -0
- package/utils/index.js +36 -0
- package/vue.config.js +158 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { ElNotification } from "element-plus";
|
|
2
|
+
import JX3BOX from "@jx3box/jx3box-common/data/jx3box.json";
|
|
3
|
+
import searchMap from "./search_map.json";
|
|
4
|
+
import { tGlobal } from "../../i18n";
|
|
5
|
+
|
|
6
|
+
const { __Root } = JX3BOX;
|
|
7
|
+
|
|
8
|
+
// 复制
|
|
9
|
+
export function copyText(text) {
|
|
10
|
+
if (window.navigator.clipboard) {
|
|
11
|
+
window.navigator.clipboard.writeText(text).then(
|
|
12
|
+
function () {
|
|
13
|
+
ElNotification.success({
|
|
14
|
+
title: tGlobal("jx3boxUi.common.copySuccess", null, "复制成功"),
|
|
15
|
+
});
|
|
16
|
+
console.log("Async: Copying to clipboard was successful!");
|
|
17
|
+
},
|
|
18
|
+
function (err) {
|
|
19
|
+
console.error("Async: Could not copy text: ", err);
|
|
20
|
+
ElNotification.error({
|
|
21
|
+
title: tGlobal("jx3boxUi.common.copyFailed", null, "复制失败"),
|
|
22
|
+
message: tGlobal("jx3boxUi.common.cannotCopyClipboard", null, "无法复制到剪贴板"),
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
} else {
|
|
27
|
+
const textArea = document.createElement("textarea");
|
|
28
|
+
textArea.value = text;
|
|
29
|
+
document.body.appendChild(textArea);
|
|
30
|
+
textArea.focus();
|
|
31
|
+
textArea.select();
|
|
32
|
+
|
|
33
|
+
try {
|
|
34
|
+
const successful = document.execCommand("copy");
|
|
35
|
+
const msg = successful ? "successful" : "unsuccessful";
|
|
36
|
+
console.log("Fallback: Copying text command was " + msg);
|
|
37
|
+
|
|
38
|
+
if (successful) {
|
|
39
|
+
ElNotification.success({
|
|
40
|
+
title: tGlobal("jx3boxUi.common.copySuccess", null, "复制成功"),
|
|
41
|
+
});
|
|
42
|
+
} else {
|
|
43
|
+
ElNotification.error({
|
|
44
|
+
title: tGlobal("jx3boxUi.common.copyFailed", null, "复制失败"),
|
|
45
|
+
message: tGlobal("jx3boxUi.common.browserCopyFailed", null, "浏览器复制失败"),
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
} catch (err) {
|
|
49
|
+
console.error("Fallback: Oops, unable to copy", err);
|
|
50
|
+
ElNotification.error({
|
|
51
|
+
title: tGlobal("jx3boxUi.common.copyFailed", null, "复制失败"),
|
|
52
|
+
message: tGlobal("jx3boxUi.common.browserNotSupportCopy", null, "浏览器不支持复制"),
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
document.body.removeChild(textArea);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// 去除最后的 /
|
|
61
|
+
export function trimSlash(str) {
|
|
62
|
+
return str.replace(/\/$/, "");
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// 监听 localStorage 的改变
|
|
66
|
+
export function dispatchEventStorage() {
|
|
67
|
+
const _setItem = localStorage.setItem;
|
|
68
|
+
|
|
69
|
+
localStorage.setItem = function (key, val) {
|
|
70
|
+
const setEvent = new Event("setItemEvent");
|
|
71
|
+
setEvent.key = key;
|
|
72
|
+
setEvent.newVal = val;
|
|
73
|
+
|
|
74
|
+
window.dispatchEvent(setEvent);
|
|
75
|
+
_setItem.apply(this, arguments);
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// search 跳转公共函数
|
|
80
|
+
export function searchJump({ searchValue, isPhone = false, client = "std", url }) {
|
|
81
|
+
searchValue = searchValue.trim().toLowerCase();
|
|
82
|
+
|
|
83
|
+
// 检查输入是否为纯数字
|
|
84
|
+
if (/^\d+$/.test(searchValue)) {
|
|
85
|
+
const target = isPhone ? "_self" : "_blank";
|
|
86
|
+
const targetUrl = __Root + `post/${searchValue}`;
|
|
87
|
+
|
|
88
|
+
if (target === "_blank") {
|
|
89
|
+
window.open(targetUrl, "_blank");
|
|
90
|
+
} else {
|
|
91
|
+
window.location.href = targetUrl;
|
|
92
|
+
}
|
|
93
|
+
} else if (searchMap[searchValue]) {
|
|
94
|
+
// 如果是 searchMap 中的关键词,跳转到对应的 URL
|
|
95
|
+
const target = isPhone ? "_self" : "_blank";
|
|
96
|
+
const targetUrl = searchMap[searchValue];
|
|
97
|
+
|
|
98
|
+
if (target === "_blank") {
|
|
99
|
+
window.open(targetUrl, "_blank");
|
|
100
|
+
} else {
|
|
101
|
+
window.location.href = targetUrl;
|
|
102
|
+
}
|
|
103
|
+
} else {
|
|
104
|
+
// 如果不是纯数字,使用原有搜索功能
|
|
105
|
+
const form = document.createElement("form");
|
|
106
|
+
form.method = "GET";
|
|
107
|
+
form.action = url;
|
|
108
|
+
form.target = isPhone ? "_self" : "_blank";
|
|
109
|
+
|
|
110
|
+
const searchInput = document.createElement("input");
|
|
111
|
+
searchInput.type = "hidden";
|
|
112
|
+
searchInput.name = "q";
|
|
113
|
+
searchInput.value = searchValue;
|
|
114
|
+
|
|
115
|
+
const clientInput = document.createElement("input");
|
|
116
|
+
clientInput.type = "hidden";
|
|
117
|
+
clientInput.name = "client";
|
|
118
|
+
clientInput.value = client;
|
|
119
|
+
|
|
120
|
+
form.appendChild(searchInput);
|
|
121
|
+
form.appendChild(clientInput);
|
|
122
|
+
document.body.appendChild(form);
|
|
123
|
+
form.submit();
|
|
124
|
+
document.body.removeChild(form);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="c-header-panel c-header-vip" id="c-header-vip">
|
|
3
|
+
<el-tooltip
|
|
4
|
+
effect="dark"
|
|
5
|
+
:content="$jx3boxT('jx3boxUi.header.vipCenter', '会员中心')"
|
|
6
|
+
placement="bottom"
|
|
7
|
+
popper-class="c-header-tooltip"
|
|
8
|
+
>
|
|
9
|
+
<a class="u-post u-vip" href="/vip/premium">
|
|
10
|
+
<i class="u-icon u-icon-msg">
|
|
11
|
+
<i class="u-pop" style="display: none" v-show="pop"></i>
|
|
12
|
+
<!-- <vipIcon class="u-add" /> -->
|
|
13
|
+
<img
|
|
14
|
+
class="u-add"
|
|
15
|
+
svg-inline
|
|
16
|
+
src="../../assets/img/common/vip.svg"
|
|
17
|
+
:alt="$jx3boxT('jx3boxUi.header.vipCenter', '会员中心')"
|
|
18
|
+
/>
|
|
19
|
+
</i>
|
|
20
|
+
</a>
|
|
21
|
+
</el-tooltip>
|
|
22
|
+
</div>
|
|
23
|
+
</template>
|
|
24
|
+
|
|
25
|
+
<script>
|
|
26
|
+
import { getConfig, getUserMeta, setUserMeta } from "../../service/cms";
|
|
27
|
+
import User from "@jx3box/jx3box-common/js/user";
|
|
28
|
+
import i18nMixin from "../../i18n/mixin";
|
|
29
|
+
// import vipIcon from "@/assets/img/components/common/header/vip.svg";
|
|
30
|
+
export default {
|
|
31
|
+
name: "vip",
|
|
32
|
+
mixins: [i18nMixin],
|
|
33
|
+
components: {
|
|
34
|
+
// vipIcon,
|
|
35
|
+
},
|
|
36
|
+
data: function () {
|
|
37
|
+
return {
|
|
38
|
+
pop: false,
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
mounted() {
|
|
42
|
+
this.init();
|
|
43
|
+
},
|
|
44
|
+
methods: {
|
|
45
|
+
async init() {
|
|
46
|
+
/**
|
|
47
|
+
* 1. 用户第一次进入页面时,没有记录,则显示,并记录到meta
|
|
48
|
+
* 2. 用户第二次进入页面,此时meta有记录,但是用户并未进入会员中心,则显示
|
|
49
|
+
*/
|
|
50
|
+
let meta = null;
|
|
51
|
+
if (User.isLogin()) {
|
|
52
|
+
meta = await getUserMeta({ key: "vip_pop" });
|
|
53
|
+
}
|
|
54
|
+
let config = await getConfig({ key: "vip" });
|
|
55
|
+
|
|
56
|
+
if (meta == null) {
|
|
57
|
+
const val = ~~config.val;
|
|
58
|
+
|
|
59
|
+
if (val) {
|
|
60
|
+
this.pop = true;
|
|
61
|
+
localStorage.setItem("vip_pop", config.val);
|
|
62
|
+
setUserMeta("vip_pop", { val: 1 });
|
|
63
|
+
}
|
|
64
|
+
} else {
|
|
65
|
+
if (meta == 1) {
|
|
66
|
+
this.pop = true;
|
|
67
|
+
|
|
68
|
+
localStorage.setItem("vip_pop", config.val);
|
|
69
|
+
} else {
|
|
70
|
+
const local = localStorage.getItem("vip_pop");
|
|
71
|
+
|
|
72
|
+
if (~~config.val > ~~local) {
|
|
73
|
+
this.pop = true;
|
|
74
|
+
|
|
75
|
+
localStorage.setItem("vip_pop", config.val);
|
|
76
|
+
|
|
77
|
+
// setUserMeta("vip_pop", { val: 1 });
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
</script>
|
|
85
|
+
|
|
86
|
+
<style lang="less">
|
|
87
|
+
.c-header-vip {
|
|
88
|
+
height: 100%;
|
|
89
|
+
|
|
90
|
+
.u-icon-msg {
|
|
91
|
+
.pr;
|
|
92
|
+
.size(18px);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.u-pop {
|
|
96
|
+
width: 10px;
|
|
97
|
+
height: 10px;
|
|
98
|
+
color: #fff;
|
|
99
|
+
background-image: linear-gradient(#fcd14f, #d7a20b);
|
|
100
|
+
background-clip: padding-box;
|
|
101
|
+
border: 2px solid #24292e;
|
|
102
|
+
border-radius: 50%;
|
|
103
|
+
position: absolute;
|
|
104
|
+
right: -5px;
|
|
105
|
+
top: -6px;
|
|
106
|
+
z-index: 1;
|
|
107
|
+
}
|
|
108
|
+
.u-vip {
|
|
109
|
+
padding: 0 10px;
|
|
110
|
+
height: 100%;
|
|
111
|
+
.flex;
|
|
112
|
+
align-items: center;
|
|
113
|
+
|
|
114
|
+
&:hover {
|
|
115
|
+
opacity: 0.7;
|
|
116
|
+
}
|
|
117
|
+
cursor: pointer;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
</style>
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="w-boxcoin-admin" v-if="allowBoxcoin">
|
|
3
|
+
<el-tooltip effect="dark" content="品鉴" placement="top-start">
|
|
4
|
+
<div class="w-boxcoin-block">
|
|
5
|
+
<img @click="openBoxcoinPop" class="u-icon" svg-inline :src="iconPath" />
|
|
6
|
+
</div>
|
|
7
|
+
</el-tooltip>
|
|
8
|
+
<el-dialog
|
|
9
|
+
title="品鉴评分"
|
|
10
|
+
v-model="visible"
|
|
11
|
+
class="w-boxcoin-pop"
|
|
12
|
+
:close-on-click-modal="false"
|
|
13
|
+
append-to-body
|
|
14
|
+
>
|
|
15
|
+
<div class="w-boxcoin-admin-content">
|
|
16
|
+
<div class="u-left">
|
|
17
|
+
<em class="u-label">本月状态</em>
|
|
18
|
+
已用<b>{{ this.used }}</b> 剩余<b>{{ this.left }}</b> 总计<b>{{ this.total }}</b>
|
|
19
|
+
<el-progress
|
|
20
|
+
:percentage="100 - (this.used * 100) / this.total"
|
|
21
|
+
:stroke-width="15"
|
|
22
|
+
:text-inside="true"
|
|
23
|
+
></el-progress>
|
|
24
|
+
</div>
|
|
25
|
+
<div class="u-list">
|
|
26
|
+
<em class="u-label">❤️ 品鉴</em>
|
|
27
|
+
<Contributors v-if="authors && authors.length" :authors="authors" @chosen="handleChosen" />
|
|
28
|
+
<div class="u-points">
|
|
29
|
+
<el-radio-group v-model="count">
|
|
30
|
+
<el-radio :label="item" v-for="item in fitPoints" :key="item" border>
|
|
31
|
+
<b>{{ item }}</b
|
|
32
|
+
>盒币
|
|
33
|
+
</el-radio>
|
|
34
|
+
<el-radio label="custom" border>自定义</el-radio>
|
|
35
|
+
<el-input
|
|
36
|
+
v-model="amount"
|
|
37
|
+
v-show="count === 'custom'"
|
|
38
|
+
placeholder="输入自定义数量"
|
|
39
|
+
></el-input>
|
|
40
|
+
</el-radio-group>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
<div class="u-msg">
|
|
44
|
+
<em class="u-label">📝 寄语</em>
|
|
45
|
+
<div class="u-input">
|
|
46
|
+
<el-input
|
|
47
|
+
v-model="remark"
|
|
48
|
+
placeholder="请输入寄语(必填)"
|
|
49
|
+
:minlength="2"
|
|
50
|
+
:maxlength="30"
|
|
51
|
+
show-word-limit
|
|
52
|
+
></el-input>
|
|
53
|
+
<el-button :disabled="fetchingCurrentRelease" @click="insertCurrentRelease"
|
|
54
|
+
>插入当前版本</el-button
|
|
55
|
+
>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
<template #footer>
|
|
60
|
+
<span class="dialog-footer">
|
|
61
|
+
<el-button @click="visible = false">取 消</el-button>
|
|
62
|
+
<el-button type="primary" @click="submit" :disabled="!ready || submitting">确 定</el-button>
|
|
63
|
+
</span>
|
|
64
|
+
</template>
|
|
65
|
+
</el-dialog>
|
|
66
|
+
</div>
|
|
67
|
+
</template>
|
|
68
|
+
|
|
69
|
+
<script>
|
|
70
|
+
import { grantBoxcoin } from "../../service/thx.js";
|
|
71
|
+
import { getBreadcrumb } from "../../service/breadcrumb.js";
|
|
72
|
+
import User from "@jx3box/jx3box-common/js/user";
|
|
73
|
+
import Contributors from "./Contributors.vue";
|
|
74
|
+
import JX3BOX from "@jx3box/jx3box-common/data/jx3box.json";
|
|
75
|
+
export default {
|
|
76
|
+
name: "BoxcoinAdmin",
|
|
77
|
+
props: ["postType", "postId", "userId", "own", "total", "points", "max", "min", "authors", "client"],
|
|
78
|
+
components: {
|
|
79
|
+
Contributors,
|
|
80
|
+
},
|
|
81
|
+
data: function () {
|
|
82
|
+
return {
|
|
83
|
+
visible: false,
|
|
84
|
+
count: 0,
|
|
85
|
+
|
|
86
|
+
remark: "辛苦,感谢!",
|
|
87
|
+
left: this.own,
|
|
88
|
+
chosen: "", // 被选中的人
|
|
89
|
+
amount: "",
|
|
90
|
+
|
|
91
|
+
submitting: false,
|
|
92
|
+
fetchingCurrentRelease: false,
|
|
93
|
+
};
|
|
94
|
+
},
|
|
95
|
+
computed: {
|
|
96
|
+
used: function () {
|
|
97
|
+
return this.total - this.left;
|
|
98
|
+
},
|
|
99
|
+
ready: function () {
|
|
100
|
+
const count = this.count === "custom" ? this.amount : this.count;
|
|
101
|
+
return this.isNotSelf && !this.targetIsSelf && this.isEnough && count && this.remark;
|
|
102
|
+
},
|
|
103
|
+
isNotSelf: function () {
|
|
104
|
+
return this.userId != User.getInfo().uid;
|
|
105
|
+
},
|
|
106
|
+
targetIsSelf: function () {
|
|
107
|
+
return this.chosen == User.getInfo().uid;
|
|
108
|
+
},
|
|
109
|
+
isEnough: function () {
|
|
110
|
+
const count = this.count === "custom" ? this.amount : this.count;
|
|
111
|
+
return this.left && this.left >= count;
|
|
112
|
+
},
|
|
113
|
+
allowBoxcoin: function () {
|
|
114
|
+
return this.postType && this.postId && (this.userId || (this.authors && this.authors.length));
|
|
115
|
+
},
|
|
116
|
+
hostClient: function () {
|
|
117
|
+
return location.href.includes("origin") ? "origin" : "std";
|
|
118
|
+
},
|
|
119
|
+
fitPoints: function () {
|
|
120
|
+
return this.points.filter((item) => item <= this.left);
|
|
121
|
+
},
|
|
122
|
+
iconPath() {
|
|
123
|
+
return JX3BOX.__cdn + "design/vector/icon/taste.svg"
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
watch: {
|
|
127
|
+
own: function (val) {
|
|
128
|
+
this.left = val;
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
methods: {
|
|
132
|
+
openBoxcoinPop: function () {
|
|
133
|
+
this.visible = true;
|
|
134
|
+
},
|
|
135
|
+
// 选择要打赏的对象
|
|
136
|
+
handleChosen(userId) {
|
|
137
|
+
this.chosen = userId;
|
|
138
|
+
},
|
|
139
|
+
submit: function () {
|
|
140
|
+
this.submitting = true;
|
|
141
|
+
const count = this.count === "custom" ? this.amount : this.count;
|
|
142
|
+
grantBoxcoin(this.postType, this.postId, this.chosen || this.userId, count, {
|
|
143
|
+
remark: this.remark,
|
|
144
|
+
client: this.client || this.hostClient,
|
|
145
|
+
})
|
|
146
|
+
.then((res) => {
|
|
147
|
+
this.$message({
|
|
148
|
+
message: "操作成功",
|
|
149
|
+
type: "success",
|
|
150
|
+
});
|
|
151
|
+
return res.data.data;
|
|
152
|
+
})
|
|
153
|
+
.then((data) => {
|
|
154
|
+
// 1.扣除额度
|
|
155
|
+
this.left -= this.count;
|
|
156
|
+
// 2.将修改emit出去
|
|
157
|
+
this.$emit("updateRecord", data);
|
|
158
|
+
})
|
|
159
|
+
.finally(() => {
|
|
160
|
+
this.submitting = false;
|
|
161
|
+
this.visible = false;
|
|
162
|
+
});
|
|
163
|
+
},
|
|
164
|
+
insertCurrentRelease: function () {
|
|
165
|
+
this.fetchingCurrentRelease = true;
|
|
166
|
+
getBreadcrumb(`current-release-${this.hostClient}`)
|
|
167
|
+
.then((res) => {
|
|
168
|
+
this.remark += res.data.data.html;
|
|
169
|
+
})
|
|
170
|
+
.catch(() => {
|
|
171
|
+
this.$message({
|
|
172
|
+
message: "获取失败",
|
|
173
|
+
type: "error",
|
|
174
|
+
});
|
|
175
|
+
})
|
|
176
|
+
.finally(() => {
|
|
177
|
+
this.fetchingCurrentRelease = false;
|
|
178
|
+
});
|
|
179
|
+
},
|
|
180
|
+
init: function () {},
|
|
181
|
+
},
|
|
182
|
+
created: function () {},
|
|
183
|
+
mounted: function () {},
|
|
184
|
+
};
|
|
185
|
+
</script>
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="w-boxcoin-records" v-loading="loading">
|
|
3
|
+
<div class="w-boxcoin-records-list" v-if="list && list.length">
|
|
4
|
+
<ul class="u-list">
|
|
5
|
+
<li class="u-item u-head">
|
|
6
|
+
<span class="u-meta u-action">
|
|
7
|
+
<el-icon><Trophy /></el-icon>
|
|
8
|
+
</span>
|
|
9
|
+
<span class="u-meta u-user">参与打赏</span>
|
|
10
|
+
<span class="u-meta u-user">收益作者</span>
|
|
11
|
+
<span class="u-meta u-count">盒币</span>
|
|
12
|
+
<span class="u-meta u-remark">寄语</span>
|
|
13
|
+
<time class="u-meta u-time"></time>
|
|
14
|
+
</li>
|
|
15
|
+
<li v-for="(item, i) in list" :key="i" class="u-item u-body">
|
|
16
|
+
<span class="u-meta u-action">
|
|
17
|
+
<template v-if="item.is_user_gift">
|
|
18
|
+
<i title="打赏"><img class svg-inline src="../../assets/img/widget/gift.svg" /></i>
|
|
19
|
+
</template>
|
|
20
|
+
<template v-else>
|
|
21
|
+
<i title="品鉴"><img class svg-inline src="../../assets/img/widget/admin_gift.svg" /></i>
|
|
22
|
+
</template>
|
|
23
|
+
</span>
|
|
24
|
+
<template v-if="item.ext_operate_user_info?.id == 1">
|
|
25
|
+
<span class="u-meta u-user u-default">
|
|
26
|
+
<img class="u-user-avatar" :src="showAvatar(item.ext_operate_user_info.avatar)" alt />
|
|
27
|
+
<span>系统</span>
|
|
28
|
+
</span>
|
|
29
|
+
</template>
|
|
30
|
+
<a v-else class="u-meta u-user" :href="authorLink(item.operate_user_id)" target="_blank">
|
|
31
|
+
<img class="u-user-avatar" :src="showAvatar(item.ext_operate_user_info.avatar)" alt />
|
|
32
|
+
<span>{{ item.ext_operate_user_info.display_name }}</span>
|
|
33
|
+
</a>
|
|
34
|
+
<a class="u-meta u-user" :href="authorLink(item.user_id)" target="_blank">
|
|
35
|
+
<img class="u-user-avatar" :src="showAvatar(item.ext_user_info.avatar)" alt />
|
|
36
|
+
<span>{{ item.ext_user_info.display_name }}</span>
|
|
37
|
+
</a>
|
|
38
|
+
<span class="u-meta u-count">
|
|
39
|
+
+
|
|
40
|
+
<b>{{ item.count + item.ext_take_off_count + ~~item.ext2_take_off_count }}</b>
|
|
41
|
+
</span>
|
|
42
|
+
<span class="u-meta u-remark">{{ item.remark }}</span>
|
|
43
|
+
<time class="u-meta u-time">{{ showTime(item.created_at) }}</time>
|
|
44
|
+
<span class="u-client" v-if="isSuperAdmin">{{ item.client }}</span>
|
|
45
|
+
<span class="u-delete" v-if="isSuperAdmin" @click="recovery(item, i)">
|
|
46
|
+
<i class="Delete"></i>撤销
|
|
47
|
+
</span>
|
|
48
|
+
</li>
|
|
49
|
+
</ul>
|
|
50
|
+
</div>
|
|
51
|
+
<el-pagination
|
|
52
|
+
class="w-boxcoin-records-pages"
|
|
53
|
+
size="small"
|
|
54
|
+
layout="prev, pager, next"
|
|
55
|
+
:hide-on-single-page="true"
|
|
56
|
+
:page-size="per"
|
|
57
|
+
:total="total"
|
|
58
|
+
v-model="page"
|
|
59
|
+
></el-pagination>
|
|
60
|
+
</div>
|
|
61
|
+
</template>
|
|
62
|
+
|
|
63
|
+
<script>
|
|
64
|
+
import { getPostBoxcoinRecords, recoveryBoxcoin } from "../../service/thx";
|
|
65
|
+
import User from "@jx3box/jx3box-common/js/user";
|
|
66
|
+
import { showAvatar, authorLink } from "@jx3box/jx3box-common/js/utils";
|
|
67
|
+
import { showTime } from "@jx3box/jx3box-common/js/moment";
|
|
68
|
+
export default {
|
|
69
|
+
name: "BoxcoinRecords",
|
|
70
|
+
props: ["postType", "postId", "cacheRecord", "postClient", "mode"],
|
|
71
|
+
components: {},
|
|
72
|
+
data: function () {
|
|
73
|
+
return {
|
|
74
|
+
list: [],
|
|
75
|
+
per: 12,
|
|
76
|
+
page: 1,
|
|
77
|
+
total: 1,
|
|
78
|
+
loading: false,
|
|
79
|
+
boxcoin: 0,
|
|
80
|
+
isSuperAdmin: User.isSuperAdmin(),
|
|
81
|
+
};
|
|
82
|
+
},
|
|
83
|
+
emits: ["update:boxcoin"],
|
|
84
|
+
computed: {
|
|
85
|
+
post_keys: function () {
|
|
86
|
+
return [this.postType, this.postId];
|
|
87
|
+
},
|
|
88
|
+
params: function () {
|
|
89
|
+
return {
|
|
90
|
+
pageSize: this.per,
|
|
91
|
+
pageIndex: this.page,
|
|
92
|
+
//client : this.postClient,
|
|
93
|
+
};
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
watch: {
|
|
97
|
+
post_keys: {
|
|
98
|
+
immediate: true,
|
|
99
|
+
deep: true,
|
|
100
|
+
handler: function () {
|
|
101
|
+
this.postType && this.postId && this.loadData();
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
params: {
|
|
105
|
+
deep: true,
|
|
106
|
+
handler: function () {
|
|
107
|
+
this.loadData();
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
cacheRecord: {
|
|
111
|
+
deep: true,
|
|
112
|
+
handler: function (data) {
|
|
113
|
+
if (data) {
|
|
114
|
+
this.list.push(data);
|
|
115
|
+
// 清空父组件的cache
|
|
116
|
+
this.$parent.cacheRecord = null;
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
methods: {
|
|
122
|
+
loadData: function () {
|
|
123
|
+
getPostBoxcoinRecords(this.postType, this.postId, this.params).then((res) => {
|
|
124
|
+
this.list = res.data.data?.list || [];
|
|
125
|
+
this.total = res.data.data.page.total;
|
|
126
|
+
this.boxcoin = res.data.data.fromManager + res.data.data.fromUser;
|
|
127
|
+
this.$emit("update:boxcoin", this.boxcoin);
|
|
128
|
+
});
|
|
129
|
+
},
|
|
130
|
+
recovery: function (item, i) {
|
|
131
|
+
this.$alert("是否确定撤销该评分?", "确认", {
|
|
132
|
+
confirmButtonText: "确定",
|
|
133
|
+
callback: (action) => {
|
|
134
|
+
if (action == "confirm") {
|
|
135
|
+
recoveryBoxcoin(item.id).then(() => {
|
|
136
|
+
this.$message({
|
|
137
|
+
message: "撤销成功",
|
|
138
|
+
type: "success",
|
|
139
|
+
});
|
|
140
|
+
this.list.splice(i, 1);
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
});
|
|
145
|
+
},
|
|
146
|
+
authorLink,
|
|
147
|
+
showTime,
|
|
148
|
+
showAvatar: function (val) {
|
|
149
|
+
return showAvatar(val, 72);
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
};
|
|
153
|
+
</script>
|