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