小程序
小游戏
企业微信
微信支付
扫描小程序码分享
- 需求的场景描述(希望解决的问题)
在开发有需要验证码的插件页面 (A) 时,避免用户恶意频繁操作,需要使用三方的验证插件(极验),我们有很多小程序,我们需要把 A 页面插件化
- 希望提供的能力
插件中申明使用插件
2 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
如果一个小程序同时使用插件 A 和插件 B ,那么插件 A 可以像小程序那样使用插件 B ,包括 requirePlugin 、组件、页面。
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
好的,我测试下 ~
VM6411:1 jsEnginScriptError
Component is not found in path "plugin://captchaPlugin/captcha" (using by "plugin-private://wxd721e1971de3f697/pages/bindPhone/index");onAppRoute
Error: Component is not found in path "plugin://captchaPlugin/captcha" (using by "plugin-private://wxd721e1971de3f697/pages/bindPhone/index")
at e (http://127.0.0.1:59656/appservice/__dev__/WAService.js:1:844197)
at e (http://127.0.0.1:59656/appservice/__dev__/WAService.js:1:844383)
at http://127.0.0.1:59656/appservice/__dev__/WAService.js:1:859578
at Object.t.addView (http://127.0.0.1:59656/appservice/__dev__/WAService.js:1:860124)
at Function.value (http://127.0.0.1:59656/appservice/__dev__/WAService.js:1:938528)
at Ct (http://127.0.0.1:59656/appservice/__dev__/WAService.js:1:954268)
at It (http://127.0.0.1:59656/appservice/__dev__/WAService.js:1:956388)
at Function.<
anonymous
> (http://127.0.0.1:59656/appservice/__dev__/WAService.js:1:958295)
at Nt.<
> (http://127.0.0.1:59656/appservice/__dev__/WAService.js:1:931964)
at Nt.emit (http://127.0.0.1:59656/appservice/__dev__/WAService.js:1:315230)
app.json 中设置
"plugins"
: {
"paPlugin"
"version"
:
"dev"
,
"provider"
"wxd721e1971de3f697"
},
"captchaPlugin"
"1.1.1"
"wxefa63d84fe9f64a2"
}
paPlugin 中提供了一个 bindPhone 页面,在 bindPhone/index.json 配置如下:
"usingComponents"
"captcha"
"plugin://captchaPlugin/captcha"
事实表明并不能那么用 ~~ @LastLeaf
查了下,plugin 协议有 bug ,麻烦改用 plugin-private 协议试试。
依旧不行,错误和上面的一样
跳转代码
<
navigator
url
=
"plugin-private://wxd721e1971de3f697/pages/bindPhone/index"
>跳转到 Plugin Demo Page</
>
app.json 中配置
插件页面配置
{
错误:
jsEnginScriptError
at e (http://127.0.0.1:45303/appservice/__dev__/WAService.js:1:844197)
at e (http://127.0.0.1:45303/appservice/__dev__/WAService.js:1:844383)
at http://127.0.0.1:45303/appservice/__dev__/WAService.js:1:859578
at Object.t.addView (http://127.0.0.1:45303/appservice/__dev__/WAService.js:1:860124)
at Function.value (http://127.0.0.1:45303/appservice/__dev__/WAService.js:1:938528)
at Ct (http://127.0.0.1:45303/appservice/__dev__/WAService.js:1:954268)
at It (http://127.0.0.1:45303/appservice/__dev__/WAService.js:1:956388)
> (http://127.0.0.1:45303/appservice/__dev__/WAService.js:1:958295)
> (http://127.0.0.1:45303/appservice/__dev__/WAService.js:1:931964)
at Nt.emit (http://127.0.0.1:45303/appservice/__dev__/WAService.js:1:315230)
三方的验证插件(极验),我在官方文档看到极验支持web端,ios和安卓端,它也有小程序插件提供??如果有,费用如何计算?
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
如果一个小程序同时使用插件 A 和插件 B ,那么插件 A 可以像小程序那样使用插件 B ,包括 requirePlugin 、组件、页面。
好的,我测试下 ~
VM6411:1 jsEnginScriptError
Component is not found in path "plugin://captchaPlugin/captcha" (using by "plugin-private://wxd721e1971de3f697/pages/bindPhone/index");onAppRoute
Error: Component is not found in path "plugin://captchaPlugin/captcha" (using by "plugin-private://wxd721e1971de3f697/pages/bindPhone/index")
at e (http://127.0.0.1:59656/appservice/__dev__/WAService.js:1:844197)
at e (http://127.0.0.1:59656/appservice/__dev__/WAService.js:1:844383)
at http://127.0.0.1:59656/appservice/__dev__/WAService.js:1:859578
at Object.t.addView (http://127.0.0.1:59656/appservice/__dev__/WAService.js:1:860124)
at Function.value (http://127.0.0.1:59656/appservice/__dev__/WAService.js:1:938528)
at Ct (http://127.0.0.1:59656/appservice/__dev__/WAService.js:1:954268)
at It (http://127.0.0.1:59656/appservice/__dev__/WAService.js:1:956388)
at Function.<
anonymous
> (http://127.0.0.1:59656/appservice/__dev__/WAService.js:1:958295)
at Nt.<
anonymous
> (http://127.0.0.1:59656/appservice/__dev__/WAService.js:1:931964)
at Nt.emit (http://127.0.0.1:59656/appservice/__dev__/WAService.js:1:315230)
app.json 中设置
"plugins"
: {
"paPlugin"
: {
"version"
:
"dev"
,
"provider"
:
"wxd721e1971de3f697"
},
"captchaPlugin"
: {
"version"
:
"1.1.1"
,
"provider"
:
"wxefa63d84fe9f64a2"
}
}
paPlugin 中提供了一个 bindPhone 页面,在 bindPhone/index.json 配置如下:
"usingComponents"
: {
"captcha"
:
"plugin://captchaPlugin/captcha"
}
事实表明并不能那么用 ~~ @LastLeaf
查了下,plugin 协议有 bug ,麻烦改用 plugin-private 协议试试。
依旧不行,错误和上面的一样
跳转代码
<
navigator
url
=
"plugin-private://wxd721e1971de3f697/pages/bindPhone/index"
>跳转到 Plugin Demo Page</
navigator
>
app.json 中配置
"plugins"
: {
"paPlugin"
: {
"version"
:
"dev"
,
"provider"
:
"wxd721e1971de3f697"
},
"captchaPlugin"
: {
"version"
:
"1.1.1"
,
"provider"
:
"wxefa63d84fe9f64a2"
}
}
插件页面配置
{
"usingComponents"
: {
"captcha"
:
"plugin://captchaPlugin/captcha"
}
}
错误:
jsEnginScriptError
Component is not found in path "plugin://captchaPlugin/captcha" (using by "plugin-private://wxd721e1971de3f697/pages/bindPhone/index");onAppRoute
Error: Component is not found in path "plugin://captchaPlugin/captcha" (using by "plugin-private://wxd721e1971de3f697/pages/bindPhone/index")
at e (http://127.0.0.1:45303/appservice/__dev__/WAService.js:1:844197)
at e (http://127.0.0.1:45303/appservice/__dev__/WAService.js:1:844383)
at http://127.0.0.1:45303/appservice/__dev__/WAService.js:1:859578
at Object.t.addView (http://127.0.0.1:45303/appservice/__dev__/WAService.js:1:860124)
at Function.value (http://127.0.0.1:45303/appservice/__dev__/WAService.js:1:938528)
at Ct (http://127.0.0.1:45303/appservice/__dev__/WAService.js:1:954268)
at It (http://127.0.0.1:45303/appservice/__dev__/WAService.js:1:956388)
at Function.<
anonymous
> (http://127.0.0.1:45303/appservice/__dev__/WAService.js:1:958295)
at Nt.<
anonymous
> (http://127.0.0.1:45303/appservice/__dev__/WAService.js:1:931964)
at Nt.emit (http://127.0.0.1:45303/appservice/__dev__/WAService.js:1:315230)
三方的验证插件(极验),我在官方文档看到极验支持web端,ios和安卓端,它也有小程序插件提供??如果有,费用如何计算?