deepsea 1 year ago
parent
commit
85a34a1fb9
2 changed files with 15 additions and 17 deletions
  1. 2 2
      src/uwb-sample.js
  2. 13 15
      src/views/ordinaryPage/index.vue

+ 2 - 2
src/uwb-sample.js

@@ -479,8 +479,8 @@ export function uwbMain(domId, modelWidth, modelHeight, finalMode, callback) {
           playersmall.appendChild(element)
           setTimeout(() => {
             window.sdkInstance.changeMode('floorplan');
-          }, 1500)
-        }, 500)
+          }, 500)
+        }, 1500)
       }
       
       sdkInstance.on("endLoading", (mode) => {

+ 13 - 15
src/views/ordinaryPage/index.vue

@@ -2496,21 +2496,6 @@ export default {
           this.getImgList(objRBLReverse);
         }, 300);
       }
-    },
-    isOpen3d(newValue, oldValue) {
-      // if (!newValue) {
-      //   this.$nextTick(() => {
-      //     let mapDom = document.getElementsByClassName("ordinary-map")[0];
-      //     let style = getComputedStyle(mapDom);
-      //     let width = parseFloat(style.width);
-      //     let height = parseFloat(style.height);
-      //     uwbMain('playersmall', width, height, "floorplan");
-      //   })
-      // } else {
-      //   uwbMain('player', window.innerWidth, window.innerHeight, "panorama");
-      // }
-    },
-    benchList(newValue, oldValue) {
       var readyCount = 0;
       var occupiedCount = 0;
       var offlineCount = 0;
@@ -2537,6 +2522,19 @@ export default {
       this.offlineCount = offlineCount;
       this.occupiedCount = occupiedCount;
     },
+    isOpen3d(newValue, oldValue) {
+      // if (!newValue) {
+      //   this.$nextTick(() => {
+      //     let mapDom = document.getElementsByClassName("ordinary-map")[0];
+      //     let style = getComputedStyle(mapDom);
+      //     let width = parseFloat(style.width);
+      //     let height = parseFloat(style.height);
+      //     uwbMain('playersmall', width, height, "floorplan");
+      //   })
+      // } else {
+      //   uwbMain('player', window.innerWidth, window.innerHeight, "panorama");
+      // }
+    },
     autoPlanList() {
       this.autoPlanList.forEach(m => {
         this.$store.dispatch('caseList/getAllAutoPlanStatus', {