Browse Source

refactor(BuyTicket.vue;BuyVip.vue):支付弹框消失时间统一

liyangbin 2 years ago
parent
commit
b89e664753
2 changed files with 3 additions and 2 deletions
  1. 2 1
      components/BuyTicket.vue
  2. 1 1
      components/BuyVip.vue

+ 2 - 1
components/BuyTicket.vue

@@ -188,8 +188,9 @@ export default {
         if(res.code === 200) {
           location.href = res.result.order.pagePayUrl
           setTimeout(() => {
-            this.$store.commit('OPEN_LOGIN',false)
+            this.$emit('close')
           }, 600);
+          // this.$store.commit('OPEN_LOGIN',false)
         }
       }) 
     },

+ 1 - 1
components/BuyVip.vue

@@ -193,7 +193,7 @@ export default {
         if(res.code === 200) {
           location.href = res.result.order.pagePayUrl
           setTimeout(() => {
-            this.$store.commit('OPEN_LOGIN',false)
+            this.$emit('close')
           }, 600);
         }
       })