mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-24 06:42:52 +08:00
监听问题件列表页返回按钮
This commit is contained in:
@@ -199,9 +199,25 @@ export default {
|
|||||||
this.processedList.splice(0)
|
this.processedList.splice(0)
|
||||||
}
|
}
|
||||||
this.loadMore()
|
this.loadMore()
|
||||||
|
},
|
||||||
|
appCallBack(data) {
|
||||||
|
if (data.trigger == 'left_button_click') {
|
||||||
|
this.$jump({
|
||||||
|
flag: 'service'
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
setTimeout(() => {
|
||||||
|
// eslint-disable-next-line no-undef
|
||||||
|
EWebBridge.webCallAppInJs('webview_left_button', {
|
||||||
|
// 是否拦截原生返回事件 1是 其他否
|
||||||
|
intercept: '1'
|
||||||
|
})
|
||||||
|
}, 100)
|
||||||
|
// 筛选按钮的点击事件
|
||||||
|
window.appCallBack = this.appCallBack
|
||||||
localStorage.removeItem('currentProblemItem')
|
localStorage.removeItem('currentProblemItem')
|
||||||
this.loadMore()
|
this.loadMore()
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user