1 Star 0 Fork 40

疯狂的辣白菜 / LuckDraw

forked from Rattenking / LuckDraw 
Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
readme.md

@file H5转盘抽奖插件

@author 梁亚军 1148063373@qq.com 2018.11.15

luckDraw.js 文件参数说明

DEMO地址

  1. 转盘抽奖指针旋转DEMO预览
  2. 转盘抽奖转盘旋转DEMO预览
  3. 九宫格抽奖DEMO预览

插件效果图

  1. 转盘抽奖

转盘抽奖

  1. 九宫格抽奖

转盘抽奖

插件传入参数说明

参数 类型 必填 默认值 说明
pointerId String 选填 luckPointer 指针对象id
turntableId String 选填 luckTurntable 转盘对象id
rotateId String 必填 luckTurntable 旋转对象id
activeClass String 九宫格抽奖必填 rui-active 九宫格抽奖选中是的效果
type String 必填 turntable 选择是九宫格抽奖还是转盘抽奖(turntable:转盘抽奖;prize:九宫格抽奖)
time Number 选填 2000 抽奖动作的时间
luckNumber Number 必填 4 中奖位置
typeNumber Number 必填 6 共有多少个中奖位置
circleNumber Number 必填 10 轮回圈数后中奖
success Funtion 选填 function(){} 抽中后返回的成功函数

插件demo动效图

插件demo动效图

Comments ( 0 )

Sign in for post a comment

About

使用原生JS实现的转盘抽奖和九宫格抽奖插件! spread retract
JavaScript
Cancel

Releases

No release

Contributors

All

Activities

load more
can not load any more
JavaScript
1
https://gitee.com/xianqijun/LuckDraw.git
git@gitee.com:xianqijun/LuckDraw.git
xianqijun
LuckDraw
LuckDraw
master

Search