From 08d0c4ca9064c27be7b3e488bec497e87a05cc18 Mon Sep 17 00:00:00 2001 From: surprise <15810472099@163.com> Date: 星期三, 27 三月 2024 09:56:01 +0800 Subject: [PATCH] 代码更新 --- src/assets/js/menuTool.js | 33 +++++++++++++++++++++++---------- 1 files changed, 23 insertions(+), 10 deletions(-) diff --git a/src/assets/js/menuTool.js b/src/assets/js/menuTool.js index bfa9b3a..5d32daa 100644 --- a/src/assets/js/menuTool.js +++ b/src/assets/js/menuTool.js @@ -43,7 +43,15 @@ heading: -90, }); break; - + case "b4": //姹℃煋鐗╂墿鏁h秼鍔� + window.sgworld.Core.postMessage({ TypeG1: "Start" }); + window.sgworld.Navigate.flyToPosition(115.95108, 39.7411754, 7200, { + heading: -90, + }); + break; + case "b5": //鑷畾涔� + debugger + break; case "c2": //棰勮淇℃伅 break; case "c3": //鎶ヨ淇℃伅 @@ -122,6 +130,8 @@ window.sgworld.Core.postMessage({ TypeG1: "Delete" }); this.delLine(); store.commit("getWGobj", null); + window.sgworld.Core.postMessage({ TypeG1: "End" }); + break; case "b2": //瓒呮爣鐐归娴嬫竻闄� window.sgworld.Core.postMessage({ TypeG1: "Delete" }); @@ -130,6 +140,10 @@ break; case "b3": //姹℃煋鐗╂墿鏁h秼鍔挎竻闄� window.sgworld.Core.postMessage({ TypeG1: "Delete" }); + break; + case "b4": //姹℃煋鐗╂墿鏁h秼鍔挎竻闄� + window.sgworld.Core.postMessage({ TypeG1: "End" }); + break; case "c1": //棰勮淇℃伅娓呴櫎鎶ヨ淇℃伅娓呴櫎 this.closePoi(); @@ -168,6 +182,7 @@ break; case "d3": //姹℃煋鐗╂ā鎷熸竻闄� this.delWRW(); + break; case "d4": //鐩戞帶鐐逛綅娓呴櫎 this.closePoi(); @@ -230,7 +245,7 @@ this.closePoi(); this.YJlist.forEach((e) => { let ids = window.sgworld.Core.createRandomId(); - this.createPoi(e, "img/yjd.png", ids, "locationName", "WY", -25); + this.createPoi(e, "img/yjd.png", ids, "name", "WY", -25); this.YJpoi.push(ids); }); }, @@ -239,7 +254,7 @@ this.closePoi(); this.BJlist.forEach((e) => { let ids = window.sgworld.Core.createRandomId(); - this.createPoi(e, "img/bjd.png", ids, "locationName", "WY", -25); + this.createPoi(e, "img/bjd.png", ids, "name", "WY", -25); this.BJpoi.push(ids); }); }, @@ -372,6 +387,9 @@ sgworld.Core.postMessage( `Type=wuranwu;Bool=true;Type2=zidingyi;Yearstart=${day[0]};Mouthstart=${day[1]};Daystart=${day[2]};Hourend=${Hour};Alpha=0.03;Speed=0.5;` ); + // console.log( + // `Type=wuranwu;Bool=true;Type2=zidingyi;Yearstart=${day[0]};Mouthstart=${day[1]};Daystart=${day[2]};Hourend=${Hour};Alpha=0.03;Speed=0.5;` + // ); } }, async bjthis(time) { @@ -381,9 +399,7 @@ var obj = {}; this.BJlist = dt.result.reduce(function (item, next) { - obj[next.locationName] - ? "" - : (obj[next.locationName] = true && item.push(next)); + obj[next.name] ? "" : (obj[next.name] = true && item.push(next)); return item; }, []); @@ -402,12 +418,9 @@ // }); var obj = {}; this.YJlist = dt1.result.reduce(function (item, next) { - obj[next.locationName] - ? "" - : (obj[next.locationName] = true && item.push(next)); + obj[next.name] ? "" : (obj[next.name] = true && item.push(next)); return item; }, []); - // this.YJtext = `${this.YJlist.length}鏉¢璀︿俊鎭痐; store.commit("getYJtext", this.YJlist); this.createYJpoi(); -- Gitblit v1.9.3