[FIX]电投优化-电投告知页-拦截原生返回事件

This commit is contained in:
yuweiqi
2020-03-20 17:12:28 +08:00
parent ea2a671174
commit c984a6545f

View File

@@ -2,7 +2,7 @@
<div class="notifyingMessage-container">
<div class="pb50">
<div class=" allFalse">
<div style="background-color: rgb(245, 245, 245);padding-bottom:10px">
<div style="background-color: rgb(245, 245, 245);padding-bottom:5px">
<index-bar></index-bar>
</div>
<div class="pt20 pb20 pr10 bg-white flex justify-content-s align-items-c">
@@ -12,7 +12,7 @@
</div>
</div>
</div>
<div class="pt80">
<div style="padding-top:120px">
<div v-for="(im, indx) in impartDTOS" :key="indx">
<van-collapse v-model="activeNames">
<van-collapse-item :name="indx + 1">
@@ -229,10 +229,13 @@ export default {
//this.information()
},
mounted() {
EWebBridge.webCallAppInJs('webview_left_button', {
img: this.$assetsUrl + 'images/del-close@3x.png',
intercept: '1' //是否拦截原生返回事件 1是 其他否
})
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 = '#F5F5F5'
if (!this.$route.query.edit) {
//如果不是编辑/导航条跳转进来的