Bläddra i källkod

异常 处理

zkx 2 år sedan
förälder
incheckning
cdabe8de0b
1 ändrade filer med 6 tillägg och 4 borttagningar
  1. 6 4
      pages/searchPile/chargeProcess/charge.vue

+ 6 - 4
pages/searchPile/chargeProcess/charge.vue

@@ -583,10 +583,7 @@
 				API.startCarCharging(this.submitForm).then((res) => {
 					//(JSON.stringify(this.res))
 					
-					if(res.data.status=="1"){
-						this.gotoUrl("pages/searchPile/chargeProcess/dcCharging?id=" + res.data.recordId);
-					
-					}else if(res.data.status=="5"){
+					if(res.data.status=="5"){
 						uni.hideLoading()
 						this.showmodal=true;
 						this.recordId=res.data.recordId;
@@ -596,6 +593,11 @@
 						
 						this.fee=(fee-this.user.balance).toFixed(2);
 						this.otherNum_f=this.fee;
+					}else{
+						
+						this.gotoUrl("pages/searchPile/chargeProcess/dcCharging?id=" + res.data.recordId);
+						
+						
 					}