Files
im/pages/common/webview.vue
T

35 lines
509 B
Vue
Raw Normal View History

2025-11-25 05:36:02 +08:00
<template>
<web-view :src="linkUrl"></web-view>
</template>
<script>
export default {
data() {
return {
linkUrl: "",
};
},
2025-12-08 18:10:51 +08:00
onLoad(opt) {
if(opt.url){
this.linkUrl = opt.url;
}
2025-11-25 05:36:02 +08:00
},
onReady() {
// #ifdef APP-PLUS
setTimeout(() => {
this.$scope
.$getAppWebview()
.children()[0]
.setStyle({
top: uni.getWindowInfo().statusBarHeight,
height: uni.getWindowInfo().safeArea.height,
});
});
// #endif
},
};
</script>
<style>
</style>