|
|
@@ -239,7 +239,7 @@ export default {
|
|
|
})
|
|
|
.then(() => {
|
|
|
this.timerNum = 0;
|
|
|
- this.pay();
|
|
|
+ this.pay(false);
|
|
|
})
|
|
|
.catch(() => {
|
|
|
this.$router.back();
|
|
|
@@ -351,8 +351,8 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- pay() {
|
|
|
- this.paySubmit().then(() => {
|
|
|
+ pay(saveOrder = true) {
|
|
|
+ this.paySubmit(saveOrder).then(() => {
|
|
|
if (this.money) {
|
|
|
this.$nextTick(() => {
|
|
|
if (this.$store.state.review) {
|
|
|
@@ -412,9 +412,9 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- paySubmit() {
|
|
|
+ paySubmit(saveOrder = true) {
|
|
|
return new Promise((resolve, reject) => {
|
|
|
- if (this.money) {
|
|
|
+ if (this.money && saveOrder) {
|
|
|
this.$toast.clear();
|
|
|
this.$router.replace({ query: { ...this.$route.query, orderId: this.orderId } });
|
|
|
this.$nextTick(() => {
|