GitHub仓库下载教程,或者关注公众号『君王羔羊』获取源代码
插件地址 https://mp.weixin.qq.com/wxopen/pluginbasicprofile?action=intro&appid=wx92c68dae5a8bb046 Github项目地址:https://github.com/czcaiwj/calendar
1、在微信小程序管理后台——设置——第三方服务,按 AppID(wx92c68dae5a8bb046)搜索到该插件并申请授权。
添加插件
2、在要使用该插件的小程序 app.json 文件中引入插件声明。
"plugins": { "calendar": { "version": "1.1.3", "provider": "wx92c68dae5a8bb046" } }3、在需要使用到该插件的小程序页面的 JSON 配置文件中,做以下配置:
{ "usingComponents": { "calendar": "plugin://calendar/calendar" } }4、在相应的 HTML 页面中添加以下语句即可完成插件的嵌入。
<calendar />