瀏覽代碼

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

韩正义 4 年之前
父節點
當前提交
a9f11db1c6
共有 1 個文件被更改,包括 8 次插入0 次删除
  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();
+                }
+            }