Browse Source

车位号显示

zhengkaixin 4 days ago
parent
commit
813efedb10

+ 13 - 1
components/GroupItem.vue

@@ -1,5 +1,5 @@
 <template>
-	<view>
+	<view class="elseMain">
 		<view class="else" @click="setOpen(item)">
 					<view class="gun-type" :class="{
 			colorCA9DFF:item.device.chargingType=='超充',
@@ -29,6 +29,8 @@
 							size="12"></u-icon>
 					</view>
 				</view>
+				<view  class="parkingNo" v-if="item.parkingNo&&item.device.groupName">车位号:{{item.parkingNo}}
+				</view>
 	</view>
 </template>
 
@@ -56,6 +58,16 @@
 </script>
 
 <style>
+	.elseMain{
+		    display: flex;
+		    justify-content: space-between;
+		    align-items: center;
+			
+	}
+	.parkingNo{
+		color: #03A9F4;
+		font-weight: bold;
+	}
 .else {
 								display: flex;
 								align-items: center;

+ 12 - 2
pages/searchPile/stationAndPile/charging/chargingPileDetails.vue

@@ -92,8 +92,8 @@
 		 -->
 			<view class="main">
 				<view class="main-head">
-
-
+					
+					
 					<view class="text" v-if="haveLock&&lockStatus==1">
 						<view class="text-1">
 							请下降地锁
@@ -596,6 +596,16 @@
 			
 		 
 			<view  class="cost-explainMain" >
+				<view   class="cost-explain"  v-if="gun.parkingNo" >
+					<view class="text" 
+					style=" font-size: 32rpx; color: #009ED7; font-weight: bold;">
+					
+						车位号:{{gun.parkingNo}}
+					</view>
+								
+					
+				</view>	
+				
 				<view   class="cost-explain"  >
 					<view class="text">
 					

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

@@ -329,7 +329,7 @@
 								</view>
 								
 								
-										 
+								<view> 
 								<template
 									v-if="!item.isRed&&item.enableShare&&item.enableShareWithinTime&&item.device.online">
 									<!-- 充电按钮 -->
@@ -361,7 +361,10 @@
 										充电中
 									</view>
 								</view>
-						
+								<view  class="parkingNo" v-if="item.parkingNo&&!item.device.groupName" >
+									车位号:{{item.parkingNo}}
+								</view>
+								</view>	
 							</view>
 							<view  class="item-tip" v-if="item.device.groupName">
 								<groupItem :item="item" :openlist="openlist" @setOpen="setOpen"  ></groupItem>
@@ -1015,9 +1018,10 @@
 					for (var j in item.gunList) {
 						var gun = item.gunList[j]
 						gun.device = item;
-
+						//gun.parkingNo="123"
 						sz.push(gun);
 					}
+					
 				}
 				sz = sz.sort(function(it1, it2) {
 					if (!it2.device.online) {
@@ -1420,6 +1424,7 @@
 				////('book'+JSON.stringify(item))
 			},
 			test(item) {
+				return 
 				if (process.env.NODE_ENV === "development") {
 					uni.navigateTo({
 						url: '/pages/searchPile/stationAndPile/chargingPileDetails?isback=1&id=' + item.gunNo,
@@ -2631,4 +2636,8 @@
 	.deviceAddressShow2 {
 		color: #ff8b00;
 	}
+	.parkingNo{
+		color: #03A9F4;
+		font-weight: bold;
+	}
 </style>