parent
828505c2dd
commit
dcae130b4a
|
@ -1,13 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<web-view class="web-view" :webview-styles="webviewStyles" :src="url" :style="{width: windowW + 'px', height: windowH + 'px'}"></web-view>
|
<web-view class="web-view" :webview-styles="webviewStyles" :src="url" :style="{width: windowW + 'px', height: windowH + 'px'}" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
|
||||||
mapGetters
|
|
||||||
} from "vuex";
|
|
||||||
export default {
|
export default {
|
||||||
//computed: mapGetters(['chatUrl']),
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
windowH: 0,
|
windowH: 0,
|
||||||
|
@ -21,7 +16,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
if(option.webUel) this.url = option.webUel;
|
if (option.webUel) {
|
||||||
|
this.url = option.webUel;
|
||||||
|
}
|
||||||
uni.setNavigationBarTitle({
|
uni.setNavigationBarTitle({
|
||||||
title: option.title
|
title: option.title
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue