adultDeviceApp/pageTwo/web/web.vue

40 lines
604 B
Vue
Raw Normal View History

2025-08-04 10:52:58 +08:00
<template>
<web-view :src="url"></web-view>
</template>
<script>
import {
mapState
} from "vuex";
export default {
data() {
return {
content: "",
url: null
}
},
computed: {
...mapState(["user", "appTheme"]),
},
onLoad(option) {
// 导航栏颜色
uni.setNavigationBarColor({
frontColor: '#ffffff',
backgroundColor: this.appTheme,
})
if (option.url) {
this.url = option.url
} else {
this.url = null
}
},
methods: {
}
}
</script>
<style scoped>
</style>