widget-turntable001
v0.2.0
Published
大转盘抽奖
Downloads
36
Readme
lottery-react-taro-npm
简介
使用Taro封装转盘抽奖插件,在taro项目中使用此插件,可进行抽奖。
本地测试
cd turntable
npm install
[sudo] npm link
会生成npm包 /usr/local/lib/node_modules/@aimcheap/turntable
cd example
npm install
npm link @aimcheap/turntable
生产使用
- 安装插件
yarn add @aimcheap/turntable
- 引入插件
import WidgetTurntable from '@aimcheap/turntable'
- taro页面添加标签
<WidgetTurntable api='your-server-api' phoneNumber='手机号' userInfo={用户信息}/>
api: String类型
phoneNumber: String类型
userInfo: Object类型