Explorar o código

公众号支付

xiongzhu %!s(int64=4) %!d(string=hai) anos
pai
achega
4e7ab8d1cb
Modificáronse 1 ficheiros con 14 adicións e 14 borrados
  1. 14 14
      src/main/nine-space/src/views/Submit.vue

+ 14 - 14
src/main/nine-space/src/views/Submit.vue

@@ -181,20 +181,20 @@ export default {
                     clearTimeout(this.timer);
                 }
                 if (res.status === 'PROCESSING' || res.status === 'CANCELLED') {
-                    // this.$dialog
-                    //     .alert({
-                    //         title: '提示',
-                    //         message:
-                    //             res.status === 'CANCELLED' ? '订单支付失败,点击重新下单' : '订单已支付,点击查看订单详情'
-                    //     })
-                    //     .then(() => {
-                    //         if (res.status === 'CANCELLED') {
-                    //             this.$router.back();
-                    //         } else {
-                    //             this.$router.replace('/orderDetail?id=' + res.id);
-                    //         }
-                    //         // on close
-                    //     });
+                    this.$dialog
+                        .alert({
+                            title: '提示',
+                            message:
+                                res.status === 'CANCELLED' ? '订单支付失败,点击重新下单' : '订单已支付,点击查看订单详情'
+                        })
+                        .then(() => {
+                            if (res.status === 'CANCELLED') {
+                                this.$router.back();
+                            } else {
+                                this.$router.replace('/orderDetail?id=' + res.id);
+                            }
+                            // on close
+                        });
                 } else if (next) {
                     this.timer = setTimeout(() => {
                         this.getOrder(next);