[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 = ''
next()
},
// destroyed() {
// setTimeout(() => {
// // eslint-disable-next-line no-undef
// EWebBridge.webCallAppInJs('webview_left_button', {
// intercept: '1' //是否拦截原生返回事件 1是 其他否
// })
destroyed() {
setTimeout(() => {
// eslint-disable-next-line no-undef
EWebBridge.webCallAppInJs('webview_left_button', {
intercept: '0' //是否拦截原生返回事件 1是 其他否
})
// window.appCallBack = this.appCallBack
// }, 100)
// },
}, 100)
},
methods: {
appCallBack(data) {
if (data.trigger == 'left_button_click') {