yuany 3 lat temu
rodzic
commit
96cbc891d9
1 zmienionych plików z 6 dodań i 4 usunięć
  1. 6 4
      src/views/Givesubmit.vue

+ 6 - 4
src/views/Givesubmit.vue

@@ -267,6 +267,7 @@ export default {
                                                 .get('/payOrder/gift/alipay_wx?id=' + res.id)
                                                 .then(res => {
                                                     this.$toast.success('转赠成功');
+                                                    this.getOrder(true);
                                                     setTimeout(() => {
                                                         // this.$router.push({
                                                         //     path: '/orderDetail',
@@ -274,10 +275,10 @@ export default {
                                                         //         id: res.id,
                                                         //     }
                                                         // });
-                                                        document.location.replace("https://www.adcs.vip/9th/giftOrder/223639");
+                                                        this.$router.replace('/orders');
+                                                        // document.location.replace("https://www.adcs.vip/9th/giftOrder/223639");
                                                         // this.$router.replace('/giftOrder/' + order.getId());
                                                     }, 1000);
-                                                    this.getOrder(true);
                                                 })
                                                 .catch(e => {
                                                     if (e.error) {
@@ -300,6 +301,7 @@ export default {
                                                 )
                                                 .then(res => {
                                                     this.$toast.success('转赠成功');
+                                                    this.getOrder(true);
                                                     setTimeout(() => {
                                                         // this.$router.push({
                                                         //     path: '/orderDetail',
@@ -308,9 +310,9 @@ export default {
                                                         //     }
                                                         // });
                                                         // this.$router.replace('/giftOrder/' + order.getId());
-                                                        document.location.replace("https://www.adcs.vip/9th/giftOrder/223639");
+                                                        this.$router.replace('/orders');
+                                                        // document.location.replace("https://www.adcs.vip/9th/giftOrder/223639");
                                                     }, 1000);
-                                                    this.getOrder(true);
                                                 })
                                                 .catch(e => {
                                                     if (e.error) {