diff --git a/src/views/ebiz/common/SelectedProduct.vue b/src/views/ebiz/common/SelectedProduct.vue index 80774eb3c..68ff707a8 100644 --- a/src/views/ebiz/common/SelectedProduct.vue +++ b/src/views/ebiz/common/SelectedProduct.vue @@ -72,12 +72,14 @@ export default { [IndexBar.name]: IndexBar }, mounted() { - setTimeout(() => { - EWebBridge.webCallAppInJs('webview_left_button', { - img: this.$assetsUrl + 'images/del-close@3x.png', - intercept: '1' //是否拦截原生返回事件 1是 其他否 - }) - }, 100) + if (localStorage.isFrom == 'sale') { + setTimeout(() => { + EWebBridge.webCallAppInJs('webview_left_button', { + img: this.$assetsUrl + 'images/del-close@3x.png', + intercept: '1' //是否拦截原生返回事件 1是 其他否 + }) + }, 100) + } window.appCallBack = this.appCallBack document.body.style.backgroundColor = '#fff' this.getProductList() @@ -112,7 +114,7 @@ export default { }, methods: { appCallBack(data) { - if (data.trigger == 'left_button_click') { + if (data.trigger == 'left_button_click' && localStorage.isFrom == 'sale') { return this.$dialog .confirm({ className: 'dialog-delete', @@ -126,6 +128,7 @@ export default { flag: 'h5', extra: { title: '电子投保单列表', + forbidSwipeBack: 1, //当前页面禁止右滑返回 url: location.origin + `/#/sale/list` }, routerInfo: {