소스 검색

异常 处理

zkx 2 년 전
부모
커밋
cdabe8de0b
1개의 변경된 파일6개의 추가작업 그리고 4개의 파일을 삭제
  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);
+						
+						
 					}