Browse Source

站点详情长者模式布局问题。

zhupeng 3 năm trước cách đây
mục cha
commit
51ebbe78c3
1 tập tin đã thay đổi với 4 bổ sung3 xóa
  1. 4 3
      pages/searchPile/stationAndPile/stationDetails.vue

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

@@ -126,7 +126,7 @@
 						充电枪{{item1.channelNo<10?'0'+item1.channelNo.toString():item1.channelNo.toString()}}
 					</view>
 					<view :class="item1.workStatus==0?'free-state':'recharge-state'">
- 						{{item1.workStatus != 2 ?item1.workStatusText: item1.workStatusText + ' SOC ' + item1.soc.toFixed(1)+'%'}}
+ 						{{item1.workStatus != 2 ?item1.workStatusText: (item1.soc!=null? (item1.workStatusText + ' SOC ' + item1.soc.toFixed(1)+'%'):item1.workStatusText)}}
 					</view>
 				</view>			
 			</view> 
@@ -669,14 +669,15 @@
 			text-align: center;
 		}
 		.text2{
-			width: 40px;
-/*			line-height: 19px;*/
+/*			width: 40px;
+			line-height: 19px;*/
 			margin-left: 8px;
 			color: rgba(255, 98, 0, 100);
 /*			font-size: 20px;*/
 			@include themeify{
 				font-size: themed('font-size5');
 				line-height: themed('font-size5');
+				width:themed('font-size15')
 			}
 			text-align: left;
 		}