🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

widget-turntable001

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

widget-turntable001

大转盘抽奖

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

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类型

FAQs

Package last updated on 25 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts