zhengkaixin 2 år sedan
förälder
incheckning
8da8b4aa67
2 ändrade filer med 6 tillägg och 3 borttagningar
  1. 1 1
      pages/record/index.vue
  2. 5 2
      pages/searchPile/stationAndPile/stationDetails.vue

+ 1 - 1
pages/record/index.vue

@@ -19,7 +19,7 @@
 						<span class="state1" :style="{color : textColor(item),fontSize: textFontSize()}">{{item.statusText}}</span>
 					</view>
 					<view class="recordList-row">
-						<p :style="elderStatus ? 'font-size: 14px' : ''">开始时间:{{item.status == '0' ? '暂未开始' : item.createTime}}</p>
+						<p :style="elderStatus ? 'font-size: 14px' : ''">结束时间:{{item.status == '0' ? '暂未开始' : item.endTime}}</p>
 					</view>
 					<view class="recordList-row">
 						<p :style="elderStatus ? 'font-size: 14px' : ''">充电电量:{{item.electricQuantity != null ? item.electricQuantity/10000 : '0.000'}}度</p>

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

@@ -212,7 +212,7 @@
 								<view class="tag-item" @click="book2(item,item.enableShare&&item.enableShareWithinTime)"
 									:class="item.enableShare&&item.enableShareWithinTime?'':'not-open-tag'">
 									
-									{{item.haveLock?'解锁':'充电' }}
+									{{item.haveLock&&item.lockStatus==1?'解锁':'充电' }}
 								</view>
 							</view>
 
@@ -536,7 +536,10 @@
 		},
 		methods: {
 			getChargingStationDetail(bl) {
-				
+				if(!this.stationId){
+					
+					return false
+				}
 				var _self = this;
 				if(!bl){
 					uni.showLoading({