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