Browse Source

3dModeling buildingCreate.js 韩正义 commit at 2021-03-17

韩正义 4 years ago
parent
commit
a9f11db1c6
1 changed files with 8 additions and 0 deletions
  1. 8 0
      3dModeling/hswc3/buildingCreate.js

+ 8 - 0
3dModeling/hswc3/buildingCreate.js

@@ -558,3 +558,11 @@ window.addEventListener('message', function (e) {
         type: "GET",
         url:'/uploads/wechat/163607/file/杨浦16/park.json',
         dataType: "json",
+        success: function (data) {
+            for(let i = 0; i < data.array.length; i++){
+                if(company_code === data.array[i].id){
+                    campusUrl = data.array[i]
+                    _this.changeScene(campusUrl);
+                    _this.createWidgets();
+                }
+            }