Commit 1bf90e43 by 赖慧粮

合并分支 'test' 到 'dev'

Publisher 自动合并请求 [8wkDL14v9huVvOa-feUGe]

## fix(main): 修复抽奖mini版九宫格组件实例取值错误的问题


------



查看合并请求 !8
parents 7750058b 293d1317
......@@ -54,7 +54,7 @@
<div class="lottery-instant__content-wheel">
<CountdownBar class="lottery-instant__countdown"></CountdownBar>
<div class="lottery-instant__wheel" :class="{'lottery-instant__wheel--no-lightning': !isLottering}">
<PrizeWheel :list="formatedPrizeList" :light-num="16" :container-border="24" @onEnd="runEnd">
<PrizeWheel ref="prizeWhell" :list="formatedPrizeList" :light-num="16" :container-border="24" @onEnd="runEnd">
<template #item="{ rows }">
<div class="lottery-instant__prize">
<div class="lottery-instant__prize-text">
......@@ -237,7 +237,8 @@ export default {
times--
this.updateInfo({ userTimes: times })
/* 执行动画 */
this.$refs.prizeGrid.start(+data?.id || 0)
this.$refs?.prizeGrid && this.$refs.prizeGrid.start(+data?.id || 0)
this.$refs?.prizeWhell && this.$refs.prizeWhell.start(+data?.id || 0)
this.isLottering = true
this.isLoading = false
/* 开奖信息 */
......
......@@ -219,7 +219,7 @@ export default {
return
}
// ===== test start =====
// this.$refs.prizeWhell.start(0)
// this.$refs.prizeGrid.start(0)
// if(this.isLogin){
// return
// }
......@@ -241,7 +241,8 @@ export default {
times--
this.updateInfo({ userTimes: times })
/* 执行动画 */
this.$refs.prizeWhell.start(+data?.id || 0)
this.$refs?.prizeGrid && this.$refs.prizeGrid.start(+data?.id || 0)
this.$refs?.prizeWhell && this.$refs.prizeWhell.start(+data?.id || 0)
this.isLottering = true
this.isLoading = false
/* 开奖信息 */
......
......@@ -74,6 +74,7 @@ export default {
}, 1000)
}
},
connectionListener() {},
// 页面进入初始化
dataInit() {
const { id, sessionId: playId, uin } = this.$route.query
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment