shaogen1995 5 месяцев назад
Родитель
Сommit
0ab0696098
2 измененных файлов с 13 добавлено и 4 удалено
  1. 2 1
      packages/pc/public/index.html
  2. 11 3
      packages/pc/src/views/stair/index.vue

+ 2 - 1
packages/pc/public/index.html

@@ -14,10 +14,11 @@
 
   <style>
     #_ideConac {
+      display: block;
       position: fixed;
       z-index: 99999;
-      bottom: 20px;
       left: 5px;
+      bottom: 20px;
     }
 
     #_ideConac img {

+ 11 - 3
packages/pc/src/views/stair/index.vue

@@ -182,17 +182,24 @@ export default {
       },
       false
     );
+
+    // 隐藏机关图标
+    document.querySelector("#_ideConac").style.display = "none";
   },
   beforeCreate() {}, //生命周期 - 创建之前
   beforeMount() {}, //生命周期 - 挂载之前
   beforeUpdate() {}, //生命周期 - 更新之前
   updated() {}, //生命周期 - 更新之后
-  beforeDestroy() {}, //生命周期 - 销毁之前
+  beforeDestroy() {
+    // 隐藏机关图标
+    document.querySelector("#_ideConac").style.display = "block";
+  }, //生命周期 - 销毁之前
   destroyed() {}, //生命周期 - 销毁完成
   activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
 };
 </script>
-<style lang='less' scoped>
+
+<style lang="less" scoped>
 .stair {
   overflow: hidden;
   position: relative;
@@ -202,6 +209,7 @@ export default {
   height: 100%;
   // background: url("../../assets/img/bgs.jpg");
   // background-size: 100% 100%;
+
   .ifrBox {
     position: absolute;
     top: 0;
@@ -339,4 +347,4 @@ export default {
     }
   }
 }
-</style>
+</style>