From 0c8d8253e7b620bae117ca3d5669c0c923a3e229 Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Tue, 21 Oct 2025 19:07:31 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=96=B0=E7=BB=84=E4=BB=B6):=20=E5=BC=B9?= =?UTF-8?q?=E5=B9=95=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Lottery/Barrage.vue | 257 +++++++++++++++++++++++ src/views/Activities/Lottery/Lottery.vue | 13 +- 2 files changed, 268 insertions(+), 2 deletions(-) create mode 100644 src/components/Lottery/Barrage.vue diff --git a/src/components/Lottery/Barrage.vue b/src/components/Lottery/Barrage.vue new file mode 100644 index 0000000..03d94a6 --- /dev/null +++ b/src/components/Lottery/Barrage.vue @@ -0,0 +1,257 @@ + + + + + + diff --git a/src/views/Activities/Lottery/Lottery.vue b/src/views/Activities/Lottery/Lottery.vue index 154b5de..0e9a12c 100644 --- a/src/views/Activities/Lottery/Lottery.vue +++ b/src/views/Activities/Lottery/Lottery.vue @@ -7,7 +7,10 @@ - +
@@ -624,7 +627,7 @@ import maskLayer from '@/components/MaskLayer.vue' import { useDebounce, useThrottle } from '@/utils/useDebounce' import { getMemberProfile } from '@/api/wallet' import { useRouter } from 'vue-router' -// import Barrage from '@/components/Lottery/Barrage.vue' +import Barrage from '@/components/Lottery/Barrage.vue' const router = useRouter() @@ -640,6 +643,12 @@ const images = Object.fromEntries( }) ) +// 弹幕数据(示例) +const barrageList = ref([ + { text: 'Junge won the jackpot', type: 'gift' }, + { text: 'Junge withdrew $10', type: 'doller' }, +]) + // 奖品数据 (8个位置) const prizes = ref([ { value: '奖品1' },