绿小能

This commit is contained in:
吴鹏 2025-11-08 09:36:04 +08:00
parent a08bf3321e
commit b22e8f05de
2 changed files with 12 additions and 3 deletions

View File

@ -455,7 +455,11 @@
} }
}) })
console.log(showObject,'showObjectshowObject'); console.log(showObject,'showObjectshowObject');
if(this.ver == 'ver290' || this.ver == 'ver290'){
this.xinpin = showObject.showArray[showObject.showArray.length - 1] this.xinpin = showObject.showArray[showObject.showArray.length - 1]
}else{
this.xinpin = showObject.showArray[showObject.showArray.length - 2]
}
} }
break; break;
case xBlufi.XBLUFI_TYPE.TYPE_GET_DEVICE_LISTS_START: case xBlufi.XBLUFI_TYPE.TYPE_GET_DEVICE_LISTS_START:

View File

@ -1950,8 +1950,13 @@
nextTimeDiff: this.xctime, nextTimeDiff: this.xctime,
prevTime: this.sctimejs prevTime: this.sctimejs
}); });
if(this.ver == 'ver290' || this.ver == 'ver280'){
this.xinp = this.showobj.showArray[this.showobj.showArray.length - 2] this.xinp = this.showobj.showArray[this.showobj.showArray.length - 2]
this.dianya = this.showobj.showArray[this.showobj.showArray.length - 1] this.dianya = this.showobj.showArray[this.showobj.showArray.length - 1]
}else{
this.xinp = this.showobj.showArray[this.showobj.showArray.length - 1]
this.dianya = 0
}
console.log('息屏',this.xinp,'电压',this.dianya); console.log('息屏',this.xinp,'电压',this.dianya);
this.getdianliang() this.getdianliang()