chore:VR正常

This commit is contained in:
2026-07-24 08:49:31 +08:00
parent 3debab7291
commit 18dad6c112

View File

@@ -1,6 +1,6 @@
<template> <template>
<view :style="themeColor"> <view :style="themeColor" class="vr-page">
<web-view :src="src"></web-view> <web-view :src="src" class="vr-webview"></web-view>
</view> </view>
</template> </template>
@@ -12,10 +12,18 @@ export default {
}; };
}, },
onLoad(option) { onLoad(option) {
// 确保导航栏标题显示
uni.setNavigationBarTitle({
title: '工厂展示'
});
this.$api.sendRequest({ this.$api.sendRequest({
url: '/api/config/defaultvr', url: '/api/config/defaultvr',
success: res => { success: res => {
if (res.code == 0) { if (res.code == 0) {
uni.setNavigationBarTitle({
title: res.data.title || '工厂展示'
});
this.src = res.data.url this.src = res.data.url
} }
}, },
@@ -27,4 +35,14 @@ export default {
</script> </script>
<style lang="scss"> <style lang="scss">
.vr-page {
height: 100vh;
width: 100%;
background: #fff;
}
.vr-webview {
width: 100%;
height: 100%;
}
</style> </style>