zhengkaixin 1 年之前
父节点
当前提交
761c7ae254
共有 1 个文件被更改,包括 7 次插入2 次删除
  1. 7 2
      pages/user/member/member.vue

+ 7 - 2
pages/user/member/member.vue

@@ -254,8 +254,13 @@
 			if (monthN2 >= 1 && monthN2 <= 9) {
 				monthN2 = "0" + monthN2;
 			}
-			this.carImg3span1 =parseInt( this.personInfo.curMonthKwh)
-			this.carImg3span3 =parseInt(this.personInfo.prevMonthKwh)
+			if(this.personInfo.curMonthKwh){
+				this.carImg3span1 =parseInt( this.personInfo.curMonthKwh)
+			}
+			if(this.personInfo.prevMonthKwh){
+				this.carImg3span3 =parseInt( this.personInfo.prevMonthKwh)
+			}
+			//this.carImg3span3 =parseInt(this.personInfo.prevMonthKwh)
 			this.startDate= year2 + '-' + monthN2 + '-01' 
 			
 		},