Browse Source

停车说明

zhengkaixin 2 years ago
parent
commit
f996cb11cc

+ 2 - 2
pages/index/index.vue

@@ -170,9 +170,9 @@
 					</view>
 					
 					<view class="park">
-						<view class="flex">
+						<view class="flex" v-if="stationData.parkingDescription">
 							<view class="park-p">p</view>
-							<view class="park-text oldTextjp2" oldstyle="font-size: 14px;">2小时停车免费</view>
+							<view class="park-text oldTextjp2" oldstyle="font-size: 14px;" >{{stationData.parkingDescription}}</view>
 						</view>
 						<view class="count-right oldTextjp" oldstyle="font-size: 16px;">
 							<text class="iconfont" style="color: #00B962;">&#xe615;</text>

+ 24 - 2
pages/searchPile/chargeProcess/dcCharging.vue

@@ -273,12 +273,31 @@
 				</view>
 				<!-- 其他信息 -->
 				<view class="else-infos">
+					
+					<u-modal v-model="parkingTips"
+					 title="停车费说明"
+					confirm-text="知道了" confirm-color="#53b56b"     >
+						<view style="padding: 15px;"
+						v-html="chargingStation.parkingSimpleDescription"
+						></view>
+					</u-modal>
+					<view class="item" v-if="chargingStation.parkingSimpleDescription">
+						
+						<view class="title" style="
+						width: 100%;
+					"  @click="parkingTips=true">
+							停车费说明 <u-icon name="arrow-right" style="
+									float: right;" size="28"></u-icon>
+						</view>
+					
+								
+					</view>
 					<view class="item">
 						<view class="title">
 							充电车辆
 						</view>
 						<view class="detail">
-							{{chargingRecord.carNumber}}
+							{{chargingRecord.carNumber?chargingRecord.carNumber:'未绑定'}}
 						</view>
 			
 					</view>
@@ -544,6 +563,7 @@
 				
 			</view>
 			
+			
 			
 		 
 			<view class="bottom2" >
@@ -617,6 +637,8 @@
 				userCard:null,
 				price:{},
 				prices:[],
+				chargingStation:{},
+				parkingTips:false,
 				showVin:false,
 				showVinBl:false,
 			}
@@ -722,7 +744,7 @@
 					stationId:id
 				}).then((res)=>{
 					this.prices=res.data.prices
-					
+					this.chargingStation=res.data.chargingStation;
 					this.forPrice()
 					
 					

+ 10 - 4
pages/searchPile/searchPile.vue

@@ -151,9 +151,9 @@
 								 元/度 起
 							</view>
 						</view>
-						<view class="park">
+						<view class="park" v-if="item.parkingDescription">
 							<text class="park-p" style="color: #FFFFFF;">p</text>
-							<text class="park-text">2小时免费停车</text>
+							<text class="park-text">{{item.parkingDescription}}</text>
 						</view>	
 					</view>
 					<view class="img-box">
@@ -221,11 +221,11 @@
 									</view>
 								</view>
 								<view class="card_item" style="border-bottom: #F1F4F3; border-bottom-width: 2rpx;border-style: solid;border-top-width: 0rpx;border-left-width: 0rpx;border-right-width:0rpx; padding-bottom:20rpx">
-									<view style="display: flex;flex-direction: row;">
+									<view style="display: flex;flex-direction: row;" v-if="item.parkingDescription">
 										<view style="background-color: #7DB1FF;padding-left: 10rpx;padding-right: 10rpx;color: #FFFFFF;">
 											P
 										</view>
-										<label>{{item.park}}</label>
+										<label>{{item.parkingDescription}}</label>
 									</view>
 									<view style="display: flex;flex-direction: row;">
 										<view style="color: #00B962;" class="font-weight2">
@@ -885,6 +885,9 @@ export default {
 						if(items[i].image != null){
 							obj.image = items[i].image;
 						}
+						if(items[i].parkingDescription != null){
+							obj.parkingDescription = items[i].parkingDescription;
+						}
 						if(items[i].park != null)
 							obj.park = items[i].park;
 						/*
@@ -968,6 +971,9 @@ export default {
 							if(items[i].time != null){
 								obj.time = items[i].time;
 							}
+							if(items[i].parkingDescription != null){
+								obj.parkingDescription = items[i].parkingDescription;
+							}
 							if(items[i].image != null){
 								obj.image = items[i].image;
 							}