aamin vor 2 Jahren
Ursprung
Commit
d9e3c1727c

+ 10 - 2
H5场景/src/views/gui/compomemt/floorSelect.vue

@@ -46,16 +46,24 @@ export default {
       }, 200);
     },
   },
-  created() {
+  created() {},
+  mounted() {
     const num = window.number;
     const arr = ["1194", "1195", "1196", "1197"];
     if (arr.includes(num)) {
+      // 隐藏原本的楼层选择
+      setTimeout(() => {
+        const dom = document.querySelector(".gui-floor");
+        if (dom) {
+          dom.style.display = "none";
+        }
+      }, 200);
+
       this.urlNum = num;
       this.numTxt =
         num == 1194 ? "1" : num == 1195 ? "2" : num == 1196 ? "3" : "4";
     }
   },
-  mounted() {},
   beforeCreate() {}, //生命周期 - 创建之前
   beforeMount() {}, //生命周期 - 挂载之前
   beforeUpdate() {}, //生命周期 - 更新之前

+ 6 - 0
H5场景/src/views/gui/menu.vue

@@ -301,9 +301,15 @@ export default {
 
 <style lang="less" scoped>
 // 隐藏原本的楼层选择
+<<<<<<< HEAD
 .gui-floor {
   display: none !important;
 }
+=======
+// .gui-floor{
+//   display: none !important;
+// }
+>>>>>>> f468469ef5990cd123ca81a9344aa30f41158681
 
 
 #hotList {

+ 8 - 0
H5场景本地化/src/views/gui/compomemt/floorSelect.vue

@@ -50,6 +50,14 @@ export default {
     const num = window.number;
     const arr = ["1194", "1195", "1196", "1197"];
     if (arr.includes(num)) {
+      // 隐藏原本的楼层选择
+      setTimeout(() => {
+        const dom = document.querySelector(".gui-floor");
+        if (dom) {
+          dom.style.display = "none";
+        }
+      }, 200);
+
       this.urlNum = num;
       this.numTxt =
         num == 1194 ? "1" : num == 1195 ? "2" : num == 1196 ? "3" : "4";

+ 3 - 3
H5场景本地化/src/views/gui/menu.vue

@@ -344,9 +344,9 @@ export default {
 
 <style lang="less" scoped>
 // 隐藏原本的楼层选择
-.gui-floor {
-  display: none !important;
-}
+// .gui-floor {
+//   display: none !important;
+// }
 
 
 #hotList {