mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-08 05:56:44 +08:00
增加bus, 测试修改原生按钮
This commit is contained in:
@@ -8,9 +8,7 @@
|
||||
</van-tabs>
|
||||
</van-sticky>
|
||||
<div class="container">
|
||||
<keep-alive>
|
||||
<component :is="is" />
|
||||
</keep-alive>
|
||||
<component :is="is" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -42,6 +40,24 @@ export default {
|
||||
return 'Committed'
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
setTimeout(() => {
|
||||
// eslint-disable-next-line no-undef
|
||||
window.EWebBridge.webCallAppInJs('webview_left_button', {
|
||||
intercept: '1' //是否拦截原生返回事件 1是 其他否
|
||||
})
|
||||
}, 100)
|
||||
window.appCallBack = this.appCallBack
|
||||
},
|
||||
methods: {
|
||||
appCallBack(data) {
|
||||
if (data.trigger == 'left_button_click') {
|
||||
this.$jump({
|
||||
flag: 'service'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user