增加webview
This commit is contained in:
parent
6e657afb1e
commit
3eed2f6b40
@ -164,6 +164,12 @@
|
|||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "账单明细"
|
"navigationBarTitleText": "账单明细"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/webview/index",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": ""
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|||||||
60
pages/webview/index.vue
Normal file
60
pages/webview/index.vue
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
<template>
|
||||||
|
<tpx-page>
|
||||||
|
<web-view :src="queryOption.url"></web-view>
|
||||||
|
</tpx-page>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
export default {
|
||||||
|
props: {
|
||||||
|
// hasLeftWin: {
|
||||||
|
// type: Boolean
|
||||||
|
// }
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
dicData() {
|
||||||
|
return this.$store.getters.dicData
|
||||||
|
},
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
queryOption: {
|
||||||
|
url: '',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onShareAppMessage() {
|
||||||
|
return {
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onLoad(option) {
|
||||||
|
this.queryOption = option
|
||||||
|
if(option.url) {
|
||||||
|
this.queryOption.url = decodeURIComponent(option.url)
|
||||||
|
}
|
||||||
|
this.initData();
|
||||||
|
},
|
||||||
|
onUnload() {
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
initData() {
|
||||||
|
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
@import '@/common/uni-nvue.scss';
|
||||||
|
|
||||||
|
page {
|
||||||
|
background-color: #F6F6F6;
|
||||||
|
height: 100% !important;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<style scoped lang="scss">
|
||||||
|
|
||||||
|
</style>
|
||||||
Loading…
Reference in New Issue
Block a user