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' },