Browse Source

fix:超级订阅购买活动await问题

yangfeng 3 years ago
parent
commit
fa5fd19fe1
2 changed files with 5 additions and 3 deletions
  1. 2 1
      src/components/common/SpecCard.vue
  2. 3 2
      src/views/vipsubscribe/Buy.vue

+ 2 - 1
src/components/common/SpecCard.vue

@@ -70,7 +70,8 @@ export default {
 
   .float-tip {
     position: absolute;
-    left: 0px;
+    // left: 0px;
+    left: -2px;
     top: 0px;
     padding: 0 8px;
     color: #fff;

+ 3 - 2
src/views/vipsubscribe/Buy.vue

@@ -108,7 +108,6 @@ import {
   getSelectPrice,
   getSVIPBuyInfo,
   getUserAccountInfo,
-  getUserPower,
   createCommonOrder,
   getGiftList,
   appointmentAdd,
@@ -319,7 +318,9 @@ export default {
     this.initAdjustTime()
     this.getType()
     await this.getUserBuyInfo()
-    await this.getAllGiftList()
+    try {
+      await this.getAllGiftList()
+    } catch (error) {}
     this.getGoodsPrice()
     if (!this.token) {
       // 有token时候可以不用请求getAccountInfo