shaogen1995 3 年之前
父節點
當前提交
c5696260a4
共有 2 個文件被更改,包括 11 次插入7 次删除
  1. 0 1
      webM/src/App.vue
  2. 11 6
      webM/src/views/gui/component/antique.vue

+ 0 - 1
webM/src/App.vue

@@ -30,7 +30,6 @@ export default {
   position: fixed;
   top: 0;
   left: 0;
-  display: none !important;
   background-color: rgba(0, 0, 0, 0.8);
 
   > div {

+ 11 - 6
webM/src/views/gui/component/antique.vue

@@ -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;