|
@@ -50,7 +50,7 @@
|
|
|
</div>
|
|
|
<!-- 模型和图片 -->
|
|
|
<div class="model" v-if="modelShow">
|
|
|
- <div class="ifrCon" ref="ifrCon" :class="{ifrConFull:fullscreen}">
|
|
|
+ <div class="ifrCon" ref="ifrCon" :class="{ ifrConFull: fullscreen }">
|
|
|
<!-- 全屏显示的标题 -->
|
|
|
<div class="fullTitle" v-if="fullscreen">{{ txtInfo.name }}</div>
|
|
|
<img
|
|
@@ -119,8 +119,6 @@ export default {
|
|
|
if (val) {
|
|
|
setTimeout(() => {
|
|
|
this.$refs.myInput.focus();
|
|
|
- console.log(123456);
|
|
|
- document.activeElement.scrollIntoViewIfNeeded();
|
|
|
}, 100);
|
|
|
}
|
|
|
},
|
|
@@ -138,7 +136,7 @@ export default {
|
|
|
// const element = this.$refs.ifrCon; // 获取容器
|
|
|
// if (this.fullscreen) {
|
|
|
// // 如果已经全屏了就退出全屏
|
|
|
-
|
|
|
+
|
|
|
// } else {
|
|
|
|
|
|
// }
|
|
@@ -175,7 +173,12 @@ export default {
|
|
|
window.myKeyBlank = true;
|
|
|
},
|
|
|
//生命周期 - 挂载完成(可以访问DOM元素)
|
|
|
- mounted() {},
|
|
|
+ mounted() {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ let dom = document.querySelector(".orientation-tip");
|
|
|
+ dom.style.display = "none";
|
|
|
+ });
|
|
|
+ },
|
|
|
beforeCreate() {}, //生命周期 - 创建之前
|
|
|
beforeMount() {}, //生命周期 - 挂载之前
|
|
|
beforeUpdate() {}, //生命周期 - 更新之前
|
|
@@ -183,6 +186,8 @@ export default {
|
|
|
beforeDestroy() {}, //生命周期 - 销毁之前
|
|
|
destroyed() {
|
|
|
window.myKeyBlank = false;
|
|
|
+ let dom = document.querySelector(".orientation-tip");
|
|
|
+ dom.style.display = "";
|
|
|
}, //生命周期 - 销毁完成
|
|
|
activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
|
|
|
};
|
|
@@ -268,7 +273,7 @@ export default {
|
|
|
font-size: 20px;
|
|
|
}
|
|
|
}
|
|
|
- .ifrConFull{
|
|
|
+ .ifrConFull {
|
|
|
position: fixed;
|
|
|
top: 0;
|
|
|
left: 0;
|