aircraft-pilot/aircraft/index/webview.vue

31 lines
655 B
Vue
Raw Normal View History

2025-07-02 14:58:38 +08:00
<template>
<view v-if="src">
<!-- #ifdef H5 -->
<!-- <iframe style="width: 100%;min-height: 100vh;" :src="src" :title="title" /> -->
<web-view :src="src" />
<!-- #endif -->
<!-- #ifndef H5 -->
<web-view :webview-styles="wbStyles" :src="src" :fullscreen="false" />
<!-- #endif -->
</view>
</template>
<script>
export default {
data() {
return {
title: '',
src: '',
wbStyles: {
width: '100%',
height: '100%',
},
}
},
onLoad(option) {
this.title = option?.title
this.src = option.src ? decodeURI(option.src) : '';
console.log('this.src',this.src);
},
}
</script>