|
@@ -461,7 +461,7 @@
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
- confirm() {
|
|
|
+ confirm(bl) {
|
|
|
uni.showLoading({
|
|
|
title: "加载中",
|
|
|
mask: true,
|
|
@@ -485,15 +485,21 @@
|
|
|
API.startCharging(submitForm).then((res) => {
|
|
|
|
|
|
if(res.data.status=="5"){
|
|
|
- uni.hideLoading()
|
|
|
- this.showmodal2=true;
|
|
|
+ uni.hideLoading()
|
|
|
+
|
|
|
+
|
|
|
this.recordId=res.data.recordId;
|
|
|
|
|
|
var fee=res.data.fee;
|
|
|
|
|
|
|
|
|
this.fee=(fee-this.user.availableBalance).toFixed(2);
|
|
|
- //this.otherNum_f=this.fee;
|
|
|
+ //this.otherNum_f=this.fee;
|
|
|
+ if(bl){
|
|
|
+ this.wxpay();
|
|
|
+ }else{
|
|
|
+ this.showmodal2=true;
|
|
|
+ }
|
|
|
}else{
|
|
|
this.gotoUrl("pages/index/index");
|
|
|
}
|
|
@@ -576,8 +582,12 @@
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
-
|
|
|
- this.showmodel = true;
|
|
|
+ if( this.listTypeIndex==0){
|
|
|
+ this.showmodel = true;
|
|
|
+ }else{
|
|
|
+ this.confirm(true)
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|