【fix】 尝试通过 不监听原生返回。 修改 建议书 和 电子投保的 错误返回

This commit is contained in:
tian.guangyuan
2020-06-01 11:31:43 +08:00
parent 4e5ef8ea50
commit 51a8a0d89b
2 changed files with 28 additions and 28 deletions

View File

@@ -111,26 +111,26 @@ export default {
},
created() {
// document.body.style.backgroundColor = '#F5F5F5'
setTimeout(() => {
// eslint-disable-next-line no-undef
EWebBridge.webCallAppInJs('webview_left_button', {
intercept: '1' //是否拦截原生返回事件 1是 其他否
})
}, 100)
window.appCallBack = this.appCallBack
// setTimeout(() => {
// // eslint-disable-next-line no-undef
// EWebBridge.webCallAppInJs('webview_left_button', {
// intercept: '1' //是否拦截原生返回事件 1是 其他否
// })
// }, 100)
// window.appCallBack = this.appCallBack
},
mounted() {
this.loadMore()
},
methods: {
appCallBack(data) {
if (data.trigger == 'left_button_click') {
this.$jump({
flag: 'home',
extra: {}
})
}
},
// appCallBack(data) {
// if (data.trigger == 'left_button_click') {
// this.$jump({
// flag: 'home',
// extra: {}
// })
// }
// },
//获取建议书列表
getProposalList(tabType, pageInfo) {
let status = '0' + tabType

View File

@@ -192,22 +192,22 @@ export default {
}
},
mounted() {
setTimeout(() => {
EWebBridge.webCallAppInJs('webview_left_button', {
intercept: '1' //是否拦截原生返回事件 1是 其他否
})
}, 100)
window.appCallBack = this.appCallBack
// setTimeout(() => {
// EWebBridge.webCallAppInJs('webview_left_button', {
// intercept: '1' //是否拦截原生返回事件 1是 其他否
// })
// }, 100)
// window.appCallBack = this.appCallBack
this.loadMore()
},
methods: {
appCallBack(data) {
if (data.trigger == 'left_button_click') {
this.$jump({
flag: 'home'
})
}
},
// appCallBack(data) {
// if (data.trigger == 'left_button_click') {
// this.$jump({
// flag: 'home'
// })
// }
// },
//分页用
loadMore() {
let pageInfo = {