From 0902d12dbfb55c2c7dfb500e7cc6c6501ccc2f34 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期三, 22 十二月 2021 09:12:33 +0800
Subject: [PATCH] #
---
static/js/app.js | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/static/js/app.js b/static/js/app.js
index 04ed3c5..79b5599 100644
--- a/static/js/app.js
+++ b/static/js/app.js
@@ -158,7 +158,7 @@
this.scene.background = new THREE.Color( 0xf0f0f0 );
} else {
const cubeTextureLoader = new THREE.CubeTextureLoader();
- cubeTextureLoader.setPath( '../static/img/skybox/' );
+ cubeTextureLoader.setPath( '../static/img/skybox0/' );
this.scene.background = cubeTextureLoader.load([
"px.jpg", "nx.jpg",
"py.jpg", "ny.jpg",
@@ -253,6 +253,8 @@
this.controls.addEventListener( 'unlock', function () {
console.log("涓婂笣瑙嗚");
object.initCamera();
+ addClass(document.getElementById("ship-info-btn"), "show");
+ document.getElementById("ship-type-ul").style.transform = 'translateY(-40px)';
} );
document.addEventListener( 'keydown', onKeyDown );
document.addEventListener( 'keyup', onKeyUp );
@@ -290,14 +292,6 @@
}
this.prevTime = time;
}
- this.lockControl = function () {
- this.camera.position.y = 100;
- this.camera.lookAt(0,100,0);
- this.controls.getObject().position.x =0;
- this.controls.getObject().position.y =100;
- this.controls.getObject().position.z =580;
- this.controls.lock();
- }
this.removeObject = function (nameorid) {
for (let i = 0; i < this.objects.length; i++) {
let tmpObject = this.objects[i];
@@ -332,7 +326,6 @@
}
this.initStoreObjects = function (object) {
if (this.firstTime === 1) {
- // initStore();
if (Store3DData !== undefined && Store3DData !== null) {
for(var group of Store3DData.data.store.groups) {
new StoreCrn(group.crn, object);
@@ -360,7 +353,7 @@
}
}
this.queryCrn = function () {
- if (CrnDatas !== null) {
+ if (CrnDatas !== null && this.firstTime === 0) {
for (let crnData of CrnDatas) {
let crnTask = getArrVal(this.crnTasks, "crnNo", crnData.crnNo);
if (null == crnTask) {
@@ -401,7 +394,14 @@
this.backgroundType = !this.backgroundType;
this.initBackground();
}
-
+ this.lockControl = function () {
+ this.camera.position.y = 100;
+ this.camera.lookAt(0,100,0);
+ this.controls.getObject().position.x =0;
+ this.controls.getObject().position.y =100;
+ this.controls.getObject().position.z =580;
+ this.controls.lock();
+ }
},
};
--
Gitblit v1.9.1