[FIX]【卡单】支付页-销毁时拦截原生返回事件

This commit is contained in:
yuweiqi
2020-04-26 17:35:24 +08:00
parent ef6d63abad
commit 25908e5cf8

View File

@@ -226,15 +226,15 @@ export default {
document.body.style.backgroundColor = '' document.body.style.backgroundColor = ''
next() next()
}, },
// destroyed() { destroyed() {
// setTimeout(() => { setTimeout(() => {
// // eslint-disable-next-line no-undef // eslint-disable-next-line no-undef
// EWebBridge.webCallAppInJs('webview_left_button', { EWebBridge.webCallAppInJs('webview_left_button', {
// intercept: '1' //是否拦截原生返回事件 1是 其他否 intercept: '0' //是否拦截原生返回事件 1是 其他否
// }) })
// window.appCallBack = this.appCallBack // window.appCallBack = this.appCallBack
// }, 100) }, 100)
// }, },
methods: { methods: {
appCallBack(data) { appCallBack(data) {
if (data.trigger == 'left_button_click') { if (data.trigger == 'left_button_click') {