增加webview

This commit is contained in:
aihe 2024-10-30 22:44:26 +08:00
parent 6e657afb1e
commit 3eed2f6b40
2 changed files with 66 additions and 0 deletions

View File

@ -164,6 +164,12 @@
"style": {
"navigationBarTitleText": "账单明细"
}
},
{
"path": "pages/webview/index",
"style": {
"navigationBarTitleText": ""
}
}
],

60
pages/webview/index.vue Normal file
View 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>