Browse Source

延迟支付宝支付时支付框的收回时间

liyangbin 2 years ago
parent
commit
d2efcd9ad8
3 changed files with 7 additions and 3 deletions
  1. 3 1
      components/BuyTicket.vue
  2. 3 1
      components/BuyVip.vue
  3. 1 1
      pages/members/me/vip.vue

+ 3 - 1
components/BuyTicket.vue

@@ -187,7 +187,9 @@ export default {
       this.$axios.post('subscription/create',params).then((res) => {
         if(res.code === 200) {
           location.href = res.result.order.pagePayUrl
-          this.$store.commit('OPEN_LOGIN',false)
+          setTimeout(() => {
+            this.$store.commit('OPEN_LOGIN',false)
+          }, 1500);
         }
       }) 
     },

+ 3 - 1
components/BuyVip.vue

@@ -192,7 +192,9 @@ export default {
       this.$axios.post('subscription/create',params).then((res) => {
         if(res.code === 200) {
           location.href = res.result.order.pagePayUrl
-          this.$store.commit('OPEN_LOGIN',false)
+          setTimeout(() => {
+            this.$store.commit('OPEN_LOGIN',false)
+          }, 1500);
         }
       }) 
     },

+ 1 - 1
pages/members/me/vip.vue

@@ -60,7 +60,7 @@ export default {
     getTableData() {
       this.$axios.get("/members/getMemberInfo").then((res) => {
         if (res.code === 200) {
-          console.log(res.result)
+          // console.log(res.result)
           const change = []
           res.result.setPricingList.forEach(item => {
             // console.log("数据",item)