32 lines
462 B
Vue
32 lines
462 B
Vue
<template>
|
|
<div class="main">
|
|
<web-view
|
|
ref="myWebView"
|
|
:src="webViewSrc"
|
|
></web-view>
|
|
</div>
|
|
</template>
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
webViewSrc: "",
|
|
};
|
|
},
|
|
onLoad(query) {
|
|
console.log("query", query);
|
|
this.webViewSrc = query.url;
|
|
uni.setNavigationBarTitle({
|
|
title: query.title,
|
|
});
|
|
},
|
|
};
|
|
</script>
|
|
<style scoped lang="less">
|
|
.main {
|
|
width: 100vw;
|
|
height: 100vh;
|
|
}
|
|
</style>
|
|
|