LottoRoll 摇奖机

三列奖品按列向上滚动,三列相同即可获得对应中奖产品。

演示

9:41

代码示例

<re-lotto-roll ref="lottoRollRef" :prizeList="prizeList" :resultIndexes="resultIndexes" @endTurns="handleEndTurns"></re-lotto-roll>

引入

推荐使用 easycom 模式,配置后无需手动 import 即可直接使用 <re-lotto-roll />。

API

LottoRoll Props

名称类型默认值描述必传
visiblebooleantrue-N
symbolsArray<string>'🍒', '⭐', '🎁', '🎧', '💎', '🍀'-N
prizeListArray<UTSJSONObject> as Array<UTSJSONObject>-N
resultIndexesArray<number>2, 4, 1-N
durationnumber1400-N
customStylestring''自定义样式N

LottoRoll Events

名称参数描述
startTurns--
endTurnsresult: string-

LottoRoll Slots

名称描述
--