h5年会抽奖之手机号及微信头像抽奖
截图
代码
// 手机号抽奖
app.lottery.phone.init({
phoneSlidesEl: '.lottery',
phoneAnimationEl: '.phone-animation',
userList: _this.lotteryData.userList, //参与抽奖人员数据
winUserList: _this.lotteryData.winUserList, //中奖人员数据
oneNum: _this.lotteryData.oneNum, //一次抽奖次数
});
// 微信头像抽奖
app.lottery.avatar.init({
avatarSlidesEl: '.lottery',
avatarAnimationEl: '.avatar-animation',
userList: _this.lotteryData.userList, //参与抽奖人员数据
winUserList: _this.lotteryData.winUserList, //中奖人员数据
oneNum: _this.lotteryData.oneNum, //一次抽奖次数
});