35 lines
509 B
Vue
35 lines
509 B
Vue
<template>
|
|
<web-view :src="linkUrl"></web-view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
linkUrl: "",
|
|
};
|
|
},
|
|
onLoad(opt) {
|
|
if(opt.url){
|
|
this.linkUrl = opt.url;
|
|
}
|
|
},
|
|
onReady() {
|
|
// #ifdef APP-PLUS
|
|
setTimeout(() => {
|
|
this.$scope
|
|
.$getAppWebview()
|
|
.children()[0]
|
|
.setStyle({
|
|
top: uni.getWindowInfo().statusBarHeight,
|
|
height: uni.getWindowInfo().safeArea.height,
|
|
});
|
|
});
|
|
// #endif
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<style>
|
|
|
|
</style> |