Browse Source

refactor(buyTicket;buyVip.vue):支付遇见问题页面跳转

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

+ 2 - 2
components/BuyTicket.vue

@@ -25,7 +25,7 @@
         <div class="pay-method" :style="{'border': paymethod === 'alipay' ? '2px solid #3fa9e7' : '1px solid #f0f0f0'}" @click="choosePayMethod('alipay')">
           <img class="inline-block" src="http://cn-file.17pdf.com/website/pricings/alipay_logo.png"> 支付宝
         </div>
-          <div class="inline-block ml-90px text-[14px] underline cursor-pointer buyQuestion" @click="goToQuestion">支付遇到问题?</div>
+          <div class="inline-block ml-90px text-[14px] underline cursor-pointer buyQuestion" @click="goToQuestion"><a href="/question#payment" target="_blank">支付遇到问题?</a></div>
       </div>
       <button v-if="paymethod === 'alipay'" class="play-now" style="margin-left: 68px" @click="handlePlayNow">立即支付</button>
       <div v-else class="text-center">
@@ -206,7 +206,7 @@ export default {
     //跳转至question页面
     goToQuestion(){
       this.$emit('close')
-      this.$router.push({path: '/question#payment'})
+      // this.$router.push({path: '/question#payment'})
     }
   }
 }

+ 2 - 2
components/BuyVip.vue

@@ -27,7 +27,7 @@
         <div class="pay-method" :style="{'border': paymethod === 'alipay' ? '2px solid #FF4F4F' : '1px solid #b3b3b3'}" @click="choosePayMethod('alipay')">
           <img src="http://cn-file.17pdf.com/website/member_v2/members_ic_pay_zhifubao.png">
         </div>
-        <div class="inline-block ml-0px text-[14px] underline cursor-pointer buyQuestion" @click="goToQuestion">支付遇到问题?</div>
+        <div class="inline-block ml-0px text-[14px] underline cursor-pointer buyQuestion" @click="goToQuestion"><a href="/question#payment" target="_blank">支付遇到问题?</a> </div>
       </div>
       <button v-if="paymethod === 'alipay'" class="play-now" @click="handlePlayNow">立即支付</button>
       <div v-else class="text-center">
@@ -202,7 +202,7 @@ export default {
     //跳转至question页面
     goToQuestion(){
       this.$emit('close')
-      this.$router.push({path: '/question#payment'})
+      // this.$router.resolve({path: '/question#payment'})
     }
   }
 }