浏览代码

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

liyangbin 2 年之前
父节点
当前提交
b89e664753
共有 2 个文件被更改,包括 3 次插入2 次删除
  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);
         }
       })