Selaa lähdekoodia

地锁长期未使用, 优化

zhengkaixin 4 päivää sitten
vanhempi
commit
294fe35c55

+ 10 - 3
pages/searchPile/stationAndPile/charging/chargingPileDetails.vue

@@ -99,7 +99,7 @@
 							请下降地锁
 						</view>
 						<view class="text-2">
-							请在<span style="color:red">{{lockSafeStopTime}}</span>内停车入位,以免地锁抬升对您的爱车造成损伤。
+							请在<span style="color:red">{{lockSafeStopTime}}分钟</span>内停车入位,以免地锁抬升对您的爱车造成损伤。
 						</view>
 					</view>
 
@@ -541,7 +541,9 @@
 			
 				</view>
 			</u-modal>
-			<view class="bottom">
+			<view class="bottom" :class="{
+				haveLock:haveLock
+			}" >
 
 				<!-- 解锁中 -->
 				<!-- 						<u-button shape="circle" type="success" style="opacity: 0.4;">
@@ -2673,7 +2675,12 @@
 			font-size: 40rpx
 		}
 	}
-
+	.haveLock{
+		::v-deep .u-btn {
+			background-color:#009ED7
+		}
+		
+	}
 	::v-deep .u-alert-desc {
 		color: rgba(255, 115, 0, 100);
 		font-size: 16px

+ 2 - 2
pages/searchPile/stationAndPile/stationDetails.vue

@@ -340,12 +340,12 @@
 									</view>
 									<!-- 充电按钮 -->
 									<view class="charge"
-										:style="item.haveLock&&item.lockStatus==1?'background-color:#009ED7':''"
+										:style="item.haveLock?'background-color:#009ED7;':''"
 										@click="book2(item,item.enableShare&&item.enableShareWithinTime)" :class="{
 									'not-open-tag':!(item.enableShare&&item.enableShareWithinTime),
 									'not-enable-Appointment':enableAppointmentBl(item)
 								}">
-										充电
+										 {{item.haveLock&&item.lockStatus==1?'下降地锁':'充电'}}
 									</view>
 								</template>
 								<!-- 电量 -->