根据官方提供的文档,我接入支付宝小程序插件不成功
mainfest.json文件中添加如下代码:
"mp-alipay": {
"usingComponents": true,
"appid": "我的小程序ID",
"uniStatistics": {
"enable": true
},
"myPlugin": {
"version": "*",
"provider": "2021001157622718"
}
}
pages.json文件中添加如下代码:
"pages": [{
"path": "pages/index/index",
"style": {
"mp-alipay": {
"usingComponents": {
"alipay-fuli": "plugin://myPlugin/alipay-fuli"
}
}
}
}]
页面中直接使用
<alipay-fuli :options="fuliOptions"></alipay-fuli>
运行到小程序模拟器时,提示没有该插件
控制台输出:
can not find plugin myPlugin
plugin myPlugin does not exists!
can not find plugin myPlugin
plugin myPlugin does not exists!
Can not find Component plugin://myPlugin/alipay-fuli in Page: pages/index/index
can not find plugin myPlugin
插件 myPlugin 不存在!
Error: Can not find Component plugin://myPlugin/alipay-fuli in Page: pages/index/index
请问下是哪里有问题
彭博瑞
怎么解决的的?求一个完整的代码,拜托
2021-06-17 16:44
1***@qq.com
回复 彭博瑞: 在 manifest.json 'mp-alipay' 下面加 plugins
2021-07-14 16:17