监听问题件列表页返回按钮

This commit is contained in:
mengxiaolong
2020-08-04 14:14:54 +08:00
parent b337b3e90c
commit 58074ebea7

View File

@@ -199,9 +199,25 @@ export default {
this.processedList.splice(0)
}
this.loadMore()
},
appCallBack(data) {
if (data.trigger == 'left_button_click') {
this.$jump({
flag: 'service'
})
}
}
},
created() {
setTimeout(() => {
// eslint-disable-next-line no-undef
EWebBridge.webCallAppInJs('webview_left_button', {
// 是否拦截原生返回事件 1是 其他否
intercept: '1'
})
}, 100)
// 筛选按钮的点击事件
window.appCallBack = this.appCallBack
localStorage.removeItem('currentProblemItem')
this.loadMore()
},