Browse Source

不在线不显示SOC

zhupeng 3 years ago
parent
commit
b3fb0b96a2

+ 1 - 1
pages/searchPile/stationAndPile/chargePriceDetails.vue

@@ -19,7 +19,7 @@
 						</view>
 					</view>
 					<view class="unitPrice-serviceCharge">
-						充电单价:¥{{item.single_price.toFixed(4)}} | 服务费:¥{{item.service_price.toFixed(4)}}
+						充电单价:¥{{item.single_price.toFixed(2)}}元 | 服务费:¥{{item.service_price.toFixed(2)}}元
 					</view>
 				</view> 
 			</view>

+ 7 - 4
pages/searchPile/stationAndPile/stationDetails.vue

@@ -123,7 +123,7 @@
 						充电枪{{item1.channelNo<10?'0'+item1.channelNo.toString():item1.channelNo.toString()}}
 					</view>
 					<view :class="item1.workStatus==0?'free-state':'recharge-state'">
- 						{{item1.workStatus == 0?item1.workStatusText: item1.workStatusText + ' SOC ' + item1.soc.toFixed(1)+'%'}}
+ 						{{item1.workStatus != 2 ?item1.workStatusText: item1.workStatusText + ' SOC ' + item1.soc.toFixed(1)+'%'}}
 					</view>
 				</view>			
 			</view> 
@@ -405,6 +405,7 @@
 				for(let i = 0;i <_self.stationDetail.devices.length;i++){
 					if(!_self.stationDetail.devices[i].online)
 					{
+						_self.stationDetail.devices[i].workStatus = 99;
 						_self.stationDetail.devices[i].workStatusText ='不在线';
 						continue;
 					}
@@ -857,13 +858,14 @@
 		}
 	}
 	.tag-recharge{
-		width: 38px;
-/*		height: 16px;		
+	/*	width: 38px;
+		height: 16px;		
 		line-height: 15px;*/
 		@include themeify{
 			font-size: themed('font-size0'); 
 			line-height: themed('font-size2'); 
 			height: themed('font-size3'); 
+			width: themed('font-size14');
 		}
 		border-radius: 2px;
 		color: rgba(255, 98, 0, 100);
@@ -875,11 +877,12 @@
 		
 	}
 	.tag-free{
-		width: 28px;
+/*		width: 28px;*/
 		@include themeify{
 			font-size: themed('font-size0'); 
 			line-height: themed('font-size2'); 
 			height: themed('font-size3'); 
+			width: themed('font-size9');
 		}		
 /*		height: 16px;
 		line-height: 15px;*/