测试拦截原生按钮

This commit is contained in:
mengxiaolong
2020-08-03 10:22:19 +08:00
parent 889edfe289
commit 886f9024b5

View File

@@ -245,13 +245,16 @@ export default {
this.getQuestionDetail() this.getQuestionDetail()
}, },
mounted() { mounted() {
window.EWebBridge.webCallAppInJs('webview_right_button', { setTimeout(() => {
btns: [ // 右上角的显示
{ window.EWebBridge.webCallAppInJs('webview_right_button', {
img: this.$assetsUrl + 'images/share@3x.png' btns: [
} {
] img: this.$assetsUrl + 'images/share@3x.png'
}) }
]
})
}, 1000)
window['appCallBack'] = this.appCallBack window['appCallBack'] = this.appCallBack
} }
} }