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