
浙里办项目中所有要调用ZWJSBridge方法之前必须先执行onReady初始化。
//ZWJSBridge初始化
ZWJSBridge.onReady(() => {
console.log("初始化完成后,执行bridge方法");
});
//老年版和常规版判断
ZWJSBridge.getUiStyle({}).then(result => {
console.log(result);
})
.catch(error => {
console.log(error);
});
//自动拨打电话
ZWJSBridge.phoneCall({
corpId: this.mobile
})
.then(result => {
console.log("#### ZWJSBridge.phoneCall() log. ####");
console.log(result);
})
.catch(error => {
console.log("#### ZWJSBridge.phoneCall() error. ####");
console.log(error);
});
},
//关闭页面
ZWJSBridge.close()
浙里办小程序window.open失效解决方法(ios系统)
标签: ZWJSBridge, 浙里办
上面是“浙里办调用ZWJSBridge方法须知”的全面内容,想了解更多关于 前端知识 内容,请继续关注web建站教程。
当前网址:https://m.ipkd.cn/webs_1456.html
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

帝国CMS7.0多值字段在内容页模板的调用方法
泡泡加速器
环球巴士是什么,环球巴士官方合租操作流程