zkx il y a 2 ans
Parent
commit
69935b5c07
1 fichiers modifiés avec 6 ajouts et 4 suppressions
  1. 6 4
      pages/searchPile/searchPile.vue

+ 6 - 4
pages/searchPile/searchPile.vue

@@ -130,7 +130,7 @@
 			 
 			 
 				<view class="carNone" v-if="stationslist.length == 0">
 				<view class="carNone" v-if="stationslist.length == 0">
 					<img src="static/img/暂无数据-缺省页.png" alt="">
 					<img src="static/img/暂无数据-缺省页.png" alt="">
-					<p class="oldTextjp2" oldstyle="font-size: 18px;">暂无可用充电站</p>
+					<p class="oldTextjp2" oldstyle="font-size: 18px;">{{loading?'暂无可用充电站':'正在为你加载可用的充电站...'}}</p>
 					
 					
 				</view>
 				</view>
 				
 				
@@ -386,7 +386,8 @@ export default {
 	*/			
 	*/			
 			],
 			],
 			first:true,
 			first:true,
-			timer:null,
+			timer:null,
+			loading:false,
 			swipping:false,			
 			swipping:false,			
 			stationslist:[],
 			stationslist:[],
 			info: {
 			info: {
@@ -874,7 +875,7 @@ export default {
 					data1.openId=this.carhelp.getOpenId()
 					data1.openId=this.carhelp.getOpenId()
 			}
 			}
 			
 			
-			
+			_self.loading=false
 			api.getChargingStationData(data1).then(function(res){
 			api.getChargingStationData(data1).then(function(res){
 				uni.hideLoading()
 				uni.hideLoading()
 				_self.recordsTotal = res.data.recordsTotal;
 				_self.recordsTotal = res.data.recordsTotal;
@@ -1058,7 +1059,8 @@ export default {
 								obj.park = items[i].park;
 								obj.park = items[i].park;
 									//arr.push(obj);
 									//arr.push(obj);
 							_self.stationslist.push(obj);
 							_self.stationslist.push(obj);
-					}
+					}
+					_self.loading=true
 					_self.$refs.amap.calcDistances([_self.longitude, _self.latitude],_self.stationslist)
 					_self.$refs.amap.calcDistances([_self.longitude, _self.latitude],_self.stationslist)
 					
 					
 	//				//(' getChargingStationData stations'+JSON.stringify(_self.stationslist))
 	//				//(' getChargingStationData stations'+JSON.stringify(_self.stationslist))