|
@@ -116,13 +116,13 @@ export default class ChargingPage extends Component {
|
|
|
console.log("状态", res.data.status);
|
|
console.log("状态", res.data.status);
|
|
|
switch (res.data.status) {
|
|
switch (res.data.status) {
|
|
|
case 'Available': //可用的
|
|
case 'Available': //可用的
|
|
|
- if (this.waitAuthentic) {
|
|
|
|
|
- state.isAuthentic = true;
|
|
|
|
|
- this.refreshChargeData(3000);
|
|
|
|
|
- } else {
|
|
|
|
|
- state.isAuthentic = false;
|
|
|
|
|
- }
|
|
|
|
|
- break;
|
|
|
|
|
|
|
+ if (this.waitAuthentic) {
|
|
|
|
|
+ state.isAuthentic = true;
|
|
|
|
|
+ this.refreshChargeData(3000);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ state.isAuthentic = false;
|
|
|
|
|
+ }
|
|
|
|
|
+ break;
|
|
|
case 'Preparing': //已插入
|
|
case 'Preparing': //已插入
|
|
|
this.waitAuthentic = false;
|
|
this.waitAuthentic = false;
|
|
|
if (this.waitStartCharging) {
|
|
if (this.waitStartCharging) {
|