mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-22 02:26:43 +08:00
提交
This commit is contained in:
32
src/components/common/Jump.vue
Normal file
32
src/components/common/Jump.vue
Normal file
@@ -0,0 +1,32 @@
|
||||
<template>
|
||||
<div class="jump-container" @click="jump">
|
||||
<slot></slot>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name: 'jump',
|
||||
props: {
|
||||
flag: {
|
||||
type: String,
|
||||
default: 'h5'
|
||||
},
|
||||
routerInfo: Object,
|
||||
extra: Object
|
||||
},
|
||||
methods: {
|
||||
jump() {
|
||||
// eslint-disable-next-line
|
||||
if (window.WebViewJavascriptBridge) {
|
||||
// eslint-disable-next-line
|
||||
EWebBridge.webCallAppInJs('bridge', {
|
||||
flag: this.flag,
|
||||
extra: this.extra
|
||||
})
|
||||
} else {
|
||||
this.$router.push(this.routerInfo)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user