webview.vue
685 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<template>
<page-meta>
<navigation-bar :title="nbTitle" :front-color="nbFrontColor" :background-color="nbBackgroundColor" />
</page-meta>
<view>
<web-view :webview-styles="webviewStyles" :src="url"></web-view>
</view>
</template>
<script>
export default {
data() {
return {
nbTitle: '',
nbFrontColor: '#000000',
nbBackgroundColor: '#ffffff',
url: "",
webviewStyles: {
progress: {
color: '#FF3333'
}
}
}
},
onLoad(option) {
console.log(option);
this.url = option.url;
this.nbTitle = option.navtitle;
},
methods: {
}
}
</script>
<style lang="scss" scoped>
</style>