|
@@ -647,7 +647,8 @@
|
|
carTempBl: false,
|
|
carTempBl: false,
|
|
maxlength: 8,
|
|
maxlength: 8,
|
|
chatShowId: "",
|
|
chatShowId: "",
|
|
- chatShow: false,
|
|
|
|
|
|
+ chatShow: false,
|
|
|
|
+ startCarChargingBl:false,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
@@ -1002,7 +1003,7 @@
|
|
stationId: this.detail.stationId
|
|
stationId: this.detail.stationId
|
|
}).then((res2) => {
|
|
}).then((res2) => {
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
-
|
|
|
|
|
|
+
|
|
this.userCard = res2.data.regUserCard
|
|
this.userCard = res2.data.regUserCard
|
|
//this.canUse=res2.data.canUse
|
|
//this.canUse=res2.data.canUse
|
|
//this.user = res.data
|
|
//this.user = res.data
|
|
@@ -1018,6 +1019,14 @@
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ }
|
|
|
|
+ //快捷充电
|
|
|
|
+ if (this.personInfo && this.personInfo.memberLevel == "3"&&!this.isback&&this.personInfo.quickCharging ) {
|
|
|
|
+ if(this.startCarChargingBl==false){
|
|
|
|
+ this.startCarChargingBl=true;
|
|
|
|
+ this.startCarCharging()
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
}).catch(error2 => {
|
|
}).catch(error2 => {
|
|
@@ -1399,7 +1408,37 @@
|
|
if (personInfo && personInfo.userType == "1") {
|
|
if (personInfo && personInfo.userType == "1") {
|
|
this.showVin = true
|
|
this.showVin = true
|
|
}
|
|
}
|
|
- },
|
|
|
|
|
|
+ },
|
|
|
|
+ startCarCharging(){
|
|
|
|
+
|
|
|
|
+ var submitForm={
|
|
|
|
+ deviceNo:this.detail.deviceNo,
|
|
|
|
+ gun:this.gun.channelNo,
|
|
|
|
+ carNumber:this.car ? this.car.carNum : '',
|
|
|
|
+ chargeStrategy:0,
|
|
|
|
+ amount:0,
|
|
|
|
+ payType:0,
|
|
|
|
+ }
|
|
|
|
+ if(this.userCardBool){
|
|
|
|
+ submitForm.userCardId=this.userCard.id
|
|
|
|
+ }
|
|
|
|
+ API.startCarCharging(submitForm).then((res) => {
|
|
|
|
+
|
|
|
|
+ this.gotoUrl("pages/searchPile/chargeProcess/dcCharging?id=" + res.data.recordId);
|
|
|
|
+
|
|
|
|
+ }).catch(error => {
|
|
|
|
+ uni.hideLoading()
|
|
|
|
+ if (error == '用户账户余额不足!') {
|
|
|
|
+
|
|
|
|
+ } else {
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: error
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+ }
|
|
},
|
|
},
|
|
|
|
|
|
onReady() {
|
|
onReady() {
|
|
@@ -1414,7 +1453,9 @@
|
|
// img="https://yktwechat.xiaoxinda.com/config/xxd2021.jpg"
|
|
// img="https://yktwechat.xiaoxinda.com/config/xxd2021.jpg"
|
|
if (carDetText) {
|
|
if (carDetText) {
|
|
this.carDetText = carDetText
|
|
this.carDetText = carDetText
|
|
- }
|
|
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
},
|
|
},
|
|
onLoad(op) {
|
|
onLoad(op) {
|
|
if (op.isback) {
|
|
if (op.isback) {
|
|
@@ -1437,20 +1478,7 @@
|
|
} else {
|
|
} else {
|
|
//this.getBannerInfoTop("home-top");
|
|
//this.getBannerInfoTop("home-top");
|
|
}
|
|
}
|
|
- //this.getBannerInfoTop("home-top");
|
|
|
|
- // var obj=this.carhelp.get("newyear_activity2023")
|
|
|
|
- // if(obj==null||obj==""||(obj&&obj.status==0)){
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- // //this.showNtStep=2
|
|
|
|
- // }else{
|
|
|
|
- // this.getBannerInfoTop("home-top");
|
|
|
|
- // }
|
|
|
|
-
|
|
|
|
- //this.getBannerInfo("charge-start")
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- //this.carhelp.setGunId(op.id)
|
|
|
|
|
|
+
|
|
this.getPile()
|
|
this.getPile()
|
|
|
|
|
|
} else {
|
|
} else {
|