mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 13:56:44 +08:00
[FIX]【卡单】支付页-销毁时拦截原生返回事件
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user