From 6452a407025ae58fdc8953c2fa2b2fd7b573c510 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=B2=A9?= Date: Mon, 10 Nov 2025 15:45:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=8F=91=E4=B8=AD=E6=96=AD2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/points-and-badge/badge.vue | 225 +++++++-------------- src/components/points-and-badge/points.vue | 16 +- src/enum.js | 3 +- src/pages/mascot/mascot_select_list.vue | 15 -- src/pages/me/index.vue | 24 ++- src/static/images/test/xz.png | Bin 0 -> 1784039 bytes 6 files changed, 105 insertions(+), 178 deletions(-) create mode 100644 src/static/images/test/xz.png diff --git a/src/components/points-and-badge/badge.vue b/src/components/points-and-badge/badge.vue index af0e637e..5e7e6f04 100644 --- a/src/components/points-and-badge/badge.vue +++ b/src/components/points-and-badge/badge.vue @@ -13,9 +13,39 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + { popup.value.close(); }; - + const open = (points = [], badges = []) => { + if (!Array.isArray(badges) || badges.length === 0) { + console.error('badges 不是有效的数组或为空'); + return; + } + badgesList.value = badges; + pointsList.value = points; - - - const open = (points) => { - // pointsBadgeImg - // pointsBadgeName - console.log(points); popup.value.open(); }; defineExpose({ open, close });