Bläddra i källkod

充电枪详情修改

常志远 3 år sedan
förälder
incheckning
9c022c28c2

+ 62 - 1
pages/searchPile/stationAndPile/chargingGunDetail.vue

@@ -5,6 +5,8 @@
 				
 			</view>
 		</u-navbar>
+		<!-- 未插枪提示 -->
+		<u-alert-tips type="warning"  :description="description" :show-icon="true"></u-alert-tips>
 		<view class="main">
 			<view class="text-1">
 				请下地解锁
@@ -34,18 +36,57 @@
 			</view>
 			
 		</view>
+		<!-- 入场车辆 -->
+		<view class="car">
+			<view class="car-name">
+				入场车辆
+			</view>
+			<view class="car-number">
+				鄂DA00001
+				<img src="../../../static/img/riLine-edit-box-line Copy.svg" alt="">
+			</view>
+		</view>
 		<view class="bottom">
 			<u-button shape="circle" type="success">下降地锁</u-button>
+			<!-- 解锁中 -->
+<!-- 						<u-button shape="circle" type="success" style="opacity: 0.4;">
+							解锁中<img style="margin-left: 4px;" src="../../../static/img/riLine-refresh-line.svg" alt="">
+						</u-button> -->
+						<!-- 刷新充电枪状态 -->
+						<!-- <u-button shape="circle" type="success">刷新充电枪状态</u-button> -->
+						<!-- 开始充电 -->
+						<!-- <u-button shape="circle" type="success">下降地锁</u-button> -->
+		</view>
+	<!-- 弹窗 -->
+		<view>
+			<u-modal v-model="show" :content="content" show-cancel-button="true"></u-modal>
+			
 		</view>
 	</view>
 </template>
 
 <script>
+	export default {
+			data() {
+				return {
+					description: '温馨提示:充电前请确保您的车辆已与充电桩连接!并关闭车内电源。',
+					show: true,
+									content: '余额不足5,请先充值。'
+				}
+			},
+				methods: {
+						
+					},
+					onLoad() {
+						
+					}
+		}
 </script>
 
 <style lang="scss">
 	page{
 		background-color: #F6F8F8;
+		padding-bottom: 300px;
 	}
 	.service{
 		font-size: 24px;
@@ -116,7 +157,7 @@
 	
 	.tips{
 		background-color: #fff;
-		margin: 0 28px ;
+		margin: 0 20px ;
 		border-radius: 12px;
 		padding: 20px;
 		.p{
@@ -143,4 +184,24 @@
 			width: 91.4%
 		}
 	}
+	/deep/.u-alert-desc{
+		color: rgba(255, 115, 0, 100);
+		font-size: 16px
+	}
+	
+	// 入场车辆
+	.car{
+		background-color: #fff;
+		margin: 20px;
+		border-radius: 12px;
+		padding: 20px;
+		display: flex;
+		justify-content: space-between;
+		font-size: 18px;
+		
+		img{
+			
+			vertical-align:middle;
+		}
+	}
 </style>

+ 6 - 0
static/img/riLine-edit-box-line Copy.svg

@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="24" height="24" style="border-color: rgba(0,0,0,0);border-width: bpx;border-style: undefined" filter="none">
+    
+    <g>
+    <path d="M22.343 4l-2.667 2.667h-13.009v18.667h18.667v-13.009l2.667-2.667v17.009c0 0.736-0.597 1.333-1.333 1.333v0h-21.333c-0.736 0-1.333-0.597-1.333-1.333v0-21.333c0-0.736 0.597-1.333 1.333-1.333v0h17.009zM27.313 2.8l1.887 1.888-12.256 12.256-1.883 0.004-0.003-1.889 12.255-12.259z" fill="rgba(179.01,179.01,179.01,1)"></path>
+    </g>
+  </svg>

+ 6 - 0
static/img/riLine-refresh-line.svg

@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="24" height="24" style="border-color: rgba(0,0,0,0);border-width: bpx;border-style: undefined" filter="none">
+    
+    <g>
+    <path d="M7.284 5.911c2.316-2.015 5.363-3.244 8.697-3.244 0.007 0 0.013 0 0.020 0h-0.001c7.364 0 13.333 5.969 13.333 13.333 0 2.848-0.893 5.488-2.413 7.653l-4.253-7.653h4c0-0 0-0.001 0-0.001 0-5.891-4.776-10.667-10.667-10.667-2.869 0-5.473 1.133-7.39 2.975l0.004-0.003-1.329-2.393zM24.716 26.089c-2.316 2.015-5.363 3.244-8.697 3.244-0.006 0-0.013 0-0.020 0h0.001c-7.364 0-13.333-5.969-13.333-13.333 0-2.848 0.893-5.488 2.413-7.653l4.253 7.653h-4c0 0 0 0.001 0 0.001 0 5.891 4.776 10.667 10.667 10.667 2.869 0 5.473-1.133 7.39-2.975l-0.004 0.003 1.329 2.393z" fill="rgba(255,255,255,1)"></path>
+    </g>
+  </svg>