修改三维设备切换模型bug
This commit is contained in:
parent
6ff8019898
commit
faa57eb3c9
@ -219,7 +219,9 @@ export function Jl3ddeviceNew(dom,group,token,skinCode) {
|
||||
scope.scene.remove(scope.showmodel);
|
||||
scope.showmodel = null
|
||||
scope.nowcode = data.code;
|
||||
|
||||
if(scope.nowobject){
|
||||
scope.resetmodel();
|
||||
}
|
||||
if (data._type == "Switch") {
|
||||
// scope.modelmanager.switchmodel.locateType = data.body.locateType;
|
||||
scope.modelmanager.switchmodel.code = data.code;
|
||||
@ -230,8 +232,9 @@ export function Jl3ddeviceNew(dom,group,token,skinCode) {
|
||||
updatemenulist(scope.devicetext.devicelist);
|
||||
scope.raycasterstatus = true;
|
||||
}else{
|
||||
|
||||
scope.raycasterstatus = false;
|
||||
scope.nowobject = "";
|
||||
scope.nowobject = null;
|
||||
updatemenulist();
|
||||
}
|
||||
if (data._type == "Signal") {
|
||||
@ -306,7 +309,7 @@ export function Jl3ddeviceNew(dom,group,token,skinCode) {
|
||||
|
||||
//设备分解、归位动画按钮
|
||||
this.disperdevice1 = function(){
|
||||
if(scope.nowobject.animacode){
|
||||
if(scope.nowobject){
|
||||
if(moveanima.status == true){
|
||||
if(scope.animastats == false){
|
||||
scope.animastats = true;
|
||||
@ -322,7 +325,7 @@ export function Jl3ddeviceNew(dom,group,token,skinCode) {
|
||||
};
|
||||
|
||||
this.disperdevice2 = function(){
|
||||
if(scope.nowobject.animacode){
|
||||
if(scope.nowobject){
|
||||
if(moveanima.status == true){
|
||||
if(scope.animastats == false){
|
||||
scope.animastats = true;
|
||||
@ -337,7 +340,7 @@ export function Jl3ddeviceNew(dom,group,token,skinCode) {
|
||||
};
|
||||
|
||||
this.resetmodel = function(){
|
||||
if(scope.nowobject.animacode){
|
||||
if(scope.nowobject){
|
||||
scope.animastats = false;
|
||||
moveanima.setplaylist(moveanima.animatelist[scope.nowobject.animacode+"fuwei"],true);
|
||||
}
|
||||
|
@ -2,9 +2,9 @@ export function getBaseUrl() {
|
||||
let BASE_API;
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
// BASE_API = 'https://joylink.club/jlcloud';
|
||||
// BASE_API = 'https://test.joylink.club/jlcloud';
|
||||
BASE_API = 'https://test.joylink.club/jlcloud';
|
||||
// BASE_API = 'http://192.168.3.5:9000'; // 袁琪
|
||||
BASE_API = 'http://192.168.3.6:9000'; // 旭强
|
||||
// BASE_API = 'http://192.168.3.6:9000'; // 旭强
|
||||
// BASE_API = 'http://192.168.3.41:9000'; // 张赛
|
||||
// BASE_API = 'http://192.168.3.82:9000'; // 杜康
|
||||
// BASE_API = 'http://b29z135112.zicp.vip';
|
||||
|
Loading…
Reference in New Issue
Block a user