|
@@ -246,8 +246,6 @@ export default {
|
|
}
|
|
}
|
|
this.kerryPayment(res.sessionId);
|
|
this.kerryPayment(res.sessionId);
|
|
} catch (err) {
|
|
} catch (err) {
|
|
- this.btnLoading = false
|
|
|
|
- this.isPay = false
|
|
|
|
if(err ==='ERR_NETWORK') {
|
|
if(err ==='ERR_NETWORK') {
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.$router.replace({
|
|
this.$router.replace({
|
|
@@ -255,6 +253,9 @@ export default {
|
|
path: 'home',
|
|
path: 'home',
|
|
});
|
|
});
|
|
}, 2900)
|
|
}, 2900)
|
|
|
|
+ } else {
|
|
|
|
+ this.btnLoading = false
|
|
|
|
+ this.isPay = false
|
|
}
|
|
}
|
|
console.log(err);
|
|
console.log(err);
|
|
}
|
|
}
|
|
@@ -280,8 +281,7 @@ export default {
|
|
// console.log(1854, params);
|
|
// console.log(1854, params);
|
|
this.$md(params);
|
|
this.$md(params);
|
|
// let path = `/profileApi/payment/v1/services/session/${session}/transactions`;
|
|
// let path = `/profileApi/payment/v1/services/session/${session}/transactions`;
|
|
- // let path = `${window.profileApi}/payment/v1/services/session/${session}/transactions`;
|
|
|
|
- let path = `https://11111111111/payment/v1/services/session/${session}/transactions`;
|
|
|
|
|
|
+ let path = `${window.profileApi}/payment/v1/services/session/${session}/transactions`;
|
|
this.$request({
|
|
this.$request({
|
|
url: path,
|
|
url: path,
|
|
data: params,
|
|
data: params,
|
|
@@ -348,7 +348,17 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
.catch((err) => {
|
|
.catch((err) => {
|
|
- console.log(1854, err);
|
|
|
|
|
|
+ if(err.code === "ERR_NETWORK") {
|
|
|
|
+ this.btnLoading = true;
|
|
|
|
+ uni.showToast({ title: '网络连接失败,请重试', duration: 3000, icon: 'fail' });
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.$router.replace({
|
|
|
|
+ // path: 'parkingFeeSuccess?carno=' + this.parkInfo.carno,
|
|
|
|
+ path: 'home',
|
|
|
|
+ });
|
|
|
|
+ }, 2900)
|
|
|
|
+ return
|
|
|
|
+ }
|
|
this.reCreateParkOrder();
|
|
this.reCreateParkOrder();
|
|
});
|
|
});
|
|
},
|
|
},
|