|
@@ -15536,27 +15536,44 @@ window.Modernizr = function(n, e, t) {
|
|
|
hot.prototype.showPannel = function(o={}){
|
|
|
var hardware = this.infoAttribute.hardware
|
|
|
console.log(window.hotNeedUpdatePannel)
|
|
|
- if(hardware && hardware.id!=void 0){
|
|
|
- if(hardware.devTypeName == "温湿度"){
|
|
|
-
|
|
|
- }else/* if(hardware.devTypeName == "温湿度") */{
|
|
|
+ if(hardware && hardware.id!=void 0){
|
|
|
+
|
|
|
+ $.ajax({//获取设备状态
|
|
|
+ method: "GET",
|
|
|
+ headers: {
|
|
|
+ "Content-Type": "application/json",
|
|
|
+ },
|
|
|
+ dataType: "json",
|
|
|
+ contentType: "application/json",
|
|
|
+ url: url + `/api/device/getStatus/${hardware.deviceCode}`,
|
|
|
+ success: function (data) {
|
|
|
+ console.log(data)
|
|
|
+ if (data.code === 0) {
|
|
|
+ if(hardware.devTypeId == "温湿度"){
|
|
|
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- $("#hotPannel>div").css("display","block");
|
|
|
- $("#hotPannel .title").text(hardware.name);
|
|
|
- this.updatePannel()
|
|
|
- window.hotNeedUpdatePannel = this
|
|
|
-
|
|
|
- if(o.focus){
|
|
|
- if(player.mode == 'panorama'){
|
|
|
- this.examine(player)
|
|
|
- }else if(player.mode != 'transitioning'){
|
|
|
- player.focusPoint({/* modelSize: size, */aim: this.mesh.position})
|
|
|
- }
|
|
|
- }
|
|
|
- return true
|
|
|
+ }else if(hardware.devTypeId == "温湿度"){
|
|
|
+
|
|
|
+ }
|
|
|
+ $("#hotPannel>div").css("display","block");
|
|
|
+ $("#hotPannel .title").text(hardware.name);
|
|
|
+ this.updatePannel()
|
|
|
+ window.hotNeedUpdatePannel = this
|
|
|
+
|
|
|
+ if(o.focus){
|
|
|
+ if(player.mode == 'panorama'){
|
|
|
+ this.examine(player)
|
|
|
+ }else if(player.mode != 'transitioning'){
|
|
|
+ player.focusPoint({/* modelSize: size, */aim: this.mesh.position})
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+ return true
|
|
|
|
|
|
}else{
|
|
|
$("#hotPannel>div").css("display","");
|