{"id":19072916,"url":"https://github.com/one2r/donate-plugin","last_synced_at":"2025-04-28T18:57:04.931Z","repository":{"id":146592498,"uuid":"98983410","full_name":"One2r/donate-plugin","owner":"One2r","description":"支持微信、支付宝扫码支付的打赏插件","archived":false,"fork":false,"pushed_at":"2017-08-07T07:09:27.000Z","size":239,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-28T18:56:59.797Z","etag":null,"topics":["donate","js","js-plugin","webpack"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/One2r.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-08-01T09:21:27.000Z","updated_at":"2023-07-28T08:14:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"e73ad795-3916-4ae0-90bd-a0941957d985","html_url":"https://github.com/One2r/donate-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/One2r%2Fdonate-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/One2r%2Fdonate-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/One2r%2Fdonate-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/One2r%2Fdonate-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/One2r","download_url":"https://codeload.github.com/One2r/donate-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251372466,"owners_count":21578964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["donate","js","js-plugin","webpack"],"created_at":"2024-11-09T01:44:43.211Z","updated_at":"2025-04-28T18:57:04.926Z","avatar_url":"https://github.com/One2r.png","language":"CSS","readme":"# donate-plugin [![Build Status](https://travis-ci.org/One2r/donate-plugin.svg?branch=master)](https://travis-ci.org/One2r/donate-plugin)\n支持微信、支付宝扫码支付的打赏插件\n\n## 编译安装\n```\nnpm install \u0026\u0026 npm run build\n```\n在项目根目录dist/下编译出donate-plugin-x.y.z.min.js文件\n\n## 使用\n第一步：在页面中引入jquery和donate-plugin\n```\n\u003cscript src=\"path/to/jquery-3.2.1.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"path/to/donate-plugin-0.0.1.min.js\"\u003e\u003c/script\u003e\n```\n\n第二步：定义donate-plugin区域\n```\n\u003cdiv id=\"donate-plugin\"\u003e\u003c/div\u003e\n```\n\n第三：创建donate-plugin\n```\n\u003cscript\u003e\n    $.DonatePlugin({\n        \"id\":\"#donate-plugin\",  //通过id指定donate-plugin区域\n        \"wxpay\":true,   //微信打赏\n        \"alipay\":true,  //支付宝打赏\n        //\"wxpay_qrcode\":\"\",    //微信支付二维码\n        //\"alipay_qrcode\":\"\",   //支付宝支付二维码\n        \"strive_msg\":\"「真诚赞赏，手留余香」\", //争取打赏语\n        \"think_msg\":\"您的支持将鼓励我继续创作 :)\"   //感谢语\n    });\n\u003c/script\u003e\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fone2r%2Fdonate-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fone2r%2Fdonate-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fone2r%2Fdonate-plugin/lists"}