From b22e8f05ded532da7676bd7b5beed679fa538d7d Mon Sep 17 00:00:00 2001 From: "3321822538@qq.com" <3321822538@qq.com> Date: Sat, 8 Nov 2025 09:36:04 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=BF=E5=B0=8F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- page_user/upload.vue | 6 +++++- pages/index/index.vue | 9 +++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/page_user/upload.vue b/page_user/upload.vue index 4432505..7cc1481 100644 --- a/page_user/upload.vue +++ b/page_user/upload.vue @@ -455,7 +455,11 @@ } }) console.log(showObject,'showObjectshowObject'); - this.xinpin = showObject.showArray[showObject.showArray.length - 1] + if(this.ver == 'ver290' || this.ver == 'ver290'){ + this.xinpin = showObject.showArray[showObject.showArray.length - 1] + }else{ + this.xinpin = showObject.showArray[showObject.showArray.length - 2] + } } break; case xBlufi.XBLUFI_TYPE.TYPE_GET_DEVICE_LISTS_START: diff --git a/pages/index/index.vue b/pages/index/index.vue index 34c1245..78079f7 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1950,8 +1950,13 @@ nextTimeDiff: this.xctime, prevTime: this.sctimejs }); - this.xinp = this.showobj.showArray[this.showobj.showArray.length - 2] - this.dianya = this.showobj.showArray[this.showobj.showArray.length - 1] + if(this.ver == 'ver290' || this.ver == 'ver280'){ + this.xinp = this.showobj.showArray[this.showobj.showArray.length - 2] + 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); this.getdianliang()