panhui 4 лет назад
Родитель
Сommit
75021d9294
1 измененных файлов с 15 добавлено и 3 удалено
  1. 15 3
      src/views/Submit.vue

+ 15 - 3
src/views/Submit.vue

@@ -216,7 +216,7 @@ export default {
                             title: '提示',
                             message: '订单是否已经支付',
                             confirmButtonText: '已经支付',
-                            cancelButtonText: '支付,立即支付'
+                            cancelButtonText: '未支付'
                         })
                         .then(() => {
                             this.$dialog
@@ -230,8 +230,20 @@ export default {
                                 });
                         })
                         .catch(e => {
-                            this.timerNum = 0;
-                            this.pay();
+                            this.$dialog
+                                .confirm({
+                                    title: '提示',
+                                    message: '订单未支付是否重新支付?',
+                                    confirmButtonText: '重新支付',
+                                    cancelButtonText: '取消订单'
+                                })
+                                .then(() => {
+                                    this.timerNum = 0;
+                                    this.pay();
+                                })
+                                .catch(() => {
+                                    this.$router.back();
+                                });
                         });
                 } else if (res.status === 'PROCESSING' || res.status === 'FINISH' || res.status === 'CANCELLED') {
                     this.$toast.clear();