1 Star 0 Fork 61

lineCode / LuckDraw

forked from Rattenking / LuckDraw 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README

@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动效图

Empty file

About

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

Releases

No release

Contributors

All

Activities

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

Search