瀏覽代碼

充电圆点样式删除

常志远 3 年之前
父節點
當前提交
b3b2d6133f
共有 2 個文件被更改,包括 15 次插入15 次删除
  1. 12 14
      pages/searchPile/chargeProcess/dcCharging.vue
  2. 3 1
      pages/searchPile/chargeProcess/exChanging.vue

+ 12 - 14
pages/searchPile/chargeProcess/dcCharging.vue

@@ -55,7 +55,7 @@
 			</view>
 		</view>
 
-		<view style="background-color: #fff; padding-bottom: 60px;" v-else>
+		<view style="background-color: #fff; padding-bottom: 40px;" v-else>
 			<u-navbar title="充电详情">
 			</u-navbar>
 			<view class="iconfont tittle-font" @click="show = true">
@@ -70,11 +70,11 @@
 						<text class='u-progress-info'>前方等待{{waitNum}}位</text>
 					</view>
 					<view class="u-progress-content" v-else-if="chargingGun.gunType==1">
-						<view class="u-progress-dot"></view>
+						<!-- <view class="u-progress-dot"></view> -->
 						<text class='u-progress-info'>{{percent}}%</text>
 					</view>
 					<view class="u-progress-content" v-else-if="chargingGun.gunType==2">
-						<view class="u-progress-dot"></view>
+						<!-- <view class="u-progress-dot"></view> -->
 						<text class='u-progress-info'>{{chargingRecord.statusText}}...</text>
 					</view>
 					<view class="bot"></view>
@@ -123,7 +123,7 @@
 				<view class="line"></view>
 				<view>
 					<view class="power-num">
-						{{chargingRecord.chargingPower?chargingRecord.chargingPower/1000:0}}kW
+						{{chargingGun.power?chargingGun.power:0}}kW
 					</view>
 					<view class="power-text">
 						功率
@@ -163,7 +163,7 @@
 					停止充电后30分钟即开始收取占位费用,1元/分钟
 				</view>
 			</view>
-			<view class="bottom2" style="    margin-bottom: 20px;">
+			<view class="bottom2">
 				<u-button type="primary"  @click="submit"
 				 :style="chargingRecord.status==1?'background-color: #00b962':'background-color: #9be6c2;'"
 				 shape="circle" >结束充电</u-button>
@@ -339,7 +339,7 @@
 							this.getInfo();
 						},time)
 					}
-					uni.hideLoading()
+					//uni.hideLoading()
 
 				}).catch(error => {
 					uni.showToast({
@@ -376,9 +376,7 @@
 				})
 			
 				//this.submitForm.deviceNo = this.detail.deviceNo;
-				API.stopCarCharging({
-					chargingRecordId:this.chargingRecord.id
-				}).then((res) => {
+				API.stopCarCharging(this.submitForm).then((res) => {
 					this.getInfo()
 				}).catch(error => {
 					
@@ -429,8 +427,8 @@
 		/deep/.u-circle-progress {
 			margin-left: 23.3% !important;
 			position: relative;
-			// min-width:220px;
-			// min-height: 220px;
+			min-width:220px;
+			min-height: 220px;
 		}
 
 		.u-progress-content {
@@ -564,7 +562,7 @@
 	}
 
 	.bottom2 {
-		width: 91.4%;
+		width: 343px;
 		position: fixed;
 		bottom: 0;
 		left: 0;
@@ -645,7 +643,7 @@
 
 	.bottom {
 		display: flex;
-		width: 91.4%;
+		width: 343px;
 		padding: 12px 16px;
 		position: fixed;
 		bottom: 0;
@@ -655,7 +653,7 @@
 
 		.u-size-default {
 			border: 1px solid rgba(0, 185, 98, 100);
-			color: #00b962;	
+			color: #00b962;
 			width: 44%;
 		}
 	}

+ 3 - 1
pages/searchPile/chargeProcess/exChanging.vue

@@ -259,7 +259,9 @@
 }
 
 .bottom{
-	  width: 343px;
+	padding: 12px 20px;
+	background-color: #fff;
+	  width: 91.4%;
 	  position: fixed;
 	  bottom: 0;
 	  left: 0;