xuqiang 4 лет назад
Родитель
Сommit
ec025875c3
1 измененных файлов с 23 добавлено и 23 удалено
  1. 23 23
      src/main/pc-space/src/views/Submit.vue

+ 23 - 23
src/main/pc-space/src/views/Submit.vue

@@ -294,29 +294,29 @@ export default {
             if (this.couponInfo) {
                 url += '&couponId=' + this.couponInfo.id;
             }
-            // this.$http
-            //     .post(url)
-            //     .then(res => {
-            //         // console.log(res)
-            //         if (this.money) {
-            //             // 没有代金券
-            //             this.initTime(res.id, res.createdAt);
-            //             this.status = res.status;
-            //             this.id = res.id;
-            //             this.payWatch();
-            //         } else {
-            //             // 有代金券
-            //             this.$message.success('支付成功');
-            //             setTimeout(() => {
-            //                 this.$router.replace('/collectionorder');
-            //             }, 1000);
-            //         }
-            //     })
-            //     .catch(e => {
-            //         if (e) {
-            //             this.$message.error(e.error);
-            //         }
-            //     });
+            this.$http
+                .post(url)
+                .then(res => {
+                    // console.log(res)
+                    if (this.money) {
+                        // 没有代金券
+                        this.initTime(res.id, res.createdAt);
+                        this.status = res.status;
+                        this.id = res.id;
+                        this.payWatch();
+                    } else {
+                        // 有代金券
+                        this.$message.success('支付成功');
+                        setTimeout(() => {
+                            this.$router.replace('/collectionorder');
+                        }, 1000);
+                    }
+                })
+                .catch(e => {
+                    if (e) {
+                        this.$message.error(e.error);
+                    }
+                });
         },
         init(info) {
             this.status = 'Unpaid';