更新记录

1.0(2025-07-04) 下载此版本

正常运行版本


平台兼容性

uni-app(4.05)

Vue2 Vue3 Chrome Safari app-vue app-nvue Android iOS 鸿蒙
- - - -
微信小程序 支付宝小程序 抖音小程序 百度小程序 快手小程序 京东小程序 鸿蒙元服务 QQ小程序 飞书小程序 快应用-华为 快应用-联盟
- - - - - - - - - -

如何使用

js

import LotteryMachine from '@/components/LotteryMachine/LotteryMachine.vue'
components: {
        LotteryMachine
    },
    data() {
    return {
        lotteryOptions: {
            ballCount: 21, // 球数量
            minSpeed: 3, // 最小速度
            maxSpeed: 8, // 最大速度
            scatterDuration: 2000 // 散落时间
        }
    }
},
methods:{
    //开始抽奖
    startLottery() {
    this.$refs.lotteryMachine.startLottery();
    setTimeout(() => {
        //停止抽奖
        this.$refs.lotteryMachine.stopLottery();
    }, 3000)
},
}

HTML

<lottery-machine ref="lotteryMachine" :options="lotteryOptions" />

隐私、权限声明

1. 本插件需要申请的系统权限列表:

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

许可协议

MIT协议

暂无用户评论。

使用中有什么不明白的地方,就向插件作者提问吧~ 我要提问