https://github.com/one2r/donate-plugin
支持微信、支付宝扫码支付的打赏插件
https://github.com/one2r/donate-plugin
donate js js-plugin webpack
Last synced: 12 months ago
JSON representation
支持微信、支付宝扫码支付的打赏插件
- Host: GitHub
- URL: https://github.com/one2r/donate-plugin
- Owner: One2r
- License: mit
- Created: 2017-08-01T09:21:27.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-07T07:09:27.000Z (over 8 years ago)
- Last Synced: 2025-04-28T18:56:59.797Z (12 months ago)
- Topics: donate, js, js-plugin, webpack
- Language: CSS
- Homepage:
- Size: 233 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# donate-plugin [](https://travis-ci.org/One2r/donate-plugin)
支持微信、支付宝扫码支付的打赏插件
## 编译安装
```
npm install && npm run build
```
在项目根目录dist/下编译出donate-plugin-x.y.z.min.js文件
## 使用
第一步:在页面中引入jquery和donate-plugin
```
```
第二步:定义donate-plugin区域
```
```
第三:创建donate-plugin
```
$.DonatePlugin({
"id":"#donate-plugin", //通过id指定donate-plugin区域
"wxpay":true, //微信打赏
"alipay":true, //支付宝打赏
//"wxpay_qrcode":"", //微信支付二维码
//"alipay_qrcode":"", //支付宝支付二维码
"strive_msg":"「真诚赞赏,手留余香」", //争取打赏语
"think_msg":"您的支持将鼓励我继续创作 :)" //感谢语
});
```