|
@@ -109,8 +109,8 @@
|
|
|
<view class="text-1">
|
|
|
{{item.statusText}}
|
|
|
</view>
|
|
|
- <view v-if="item.status == '4'" class="text-2">
|
|
|
- 前方等待{{item.waitNum}}位
|
|
|
+ <view v-if="item.status == '0'" class="text-2">
|
|
|
+ 启动中
|
|
|
</view>
|
|
|
<view v-if="item.status == '1'" class="text-2">
|
|
|
已充{{item.dueFee != null ? item.dueFee : '0.00'}}元
|
|
@@ -118,14 +118,18 @@
|
|
|
<view v-if="item.status == '2'" class="text-2" style="color: red;">
|
|
|
超出时间将收取占位费
|
|
|
</view>
|
|
|
+ <view v-if="item.status == '4'" class="text-2">
|
|
|
+ 前方等待{{item.waitNum}}位
|
|
|
+ </view>
|
|
|
<view class="text-3">
|
|
|
{{item.deviceName}}/<br />{{item.deviceNo}}
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="img-box">
|
|
|
- <img v-if="item.status == '4'" src="static/img/等待中-缺省页.png">
|
|
|
+ <img v-if="item.status == '0'" src="static/img/等待中-缺省页.png">
|
|
|
<img v-if="item.status == '1'" src="static/img/充电中-缺省页.png">
|
|
|
<img v-if="item.status == '2'" src="static/img/已充满-缺省页.png">
|
|
|
+ <img v-if="item.status == '4'" src="static/img/等待中-缺省页.png">
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- <view class="state2 state">
|
|
@@ -283,14 +287,15 @@
|
|
|
|
|
|
API.findChargeData().then((res) => {
|
|
|
uni.hideLoading();
|
|
|
- var list1 = res.data.chargingRecordList;
|
|
|
- var list2 = [];
|
|
|
- for(var i=0;i<list1.length;i++) {
|
|
|
- if(list1[i].status != '0') {
|
|
|
- list2.push(list1[i]);
|
|
|
- }
|
|
|
- }
|
|
|
- this.chargeList = list2;
|
|
|
+ // var list1 = res.data.chargingRecordList;
|
|
|
+ // var list2 = [];
|
|
|
+ // for(var i=0;i<list1.length;i++) {
|
|
|
+ // if(list1[i].status != '0') {
|
|
|
+ // list2.push(list1[i]);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // this.chargeList = list2;
|
|
|
+ this.chargeList = res.data.chargingRecordList;
|
|
|
}).catch(error => {
|
|
|
uni.showToast({
|
|
|
title: error,
|