tangning %!s(int64=2) %!d(string=hai) anos
pai
achega
5e955c75ac
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      src/views/pc/index.vue

+ 4 - 1
src/views/pc/index.vue

@@ -75,6 +75,9 @@ function getDetial() {
     orderDetal.value = res
   })
 }
+function handlePay() {
+  window.open(qrCodeUrl.value)
+}
 async function getCode() {
   qrCodeUrl.value = ''
   let paysidtype = {
@@ -181,7 +184,7 @@ async function getCode() {
                 }}
               </p>
             </div>
-            <div class="payment" @click="window.open(qrCodeUrl.value)">{{ $t('payInfo.payOrder') }}</div>
+            <div v-else class="payment" @click="handlePay">{{ $t('payInfo.payOrder') }}</div>
             <div v-show="!isEur" :class="`pay-scan-tip ${language === 'zh' ? '' : 'isEn'}`"></div>
           </div>
         </div>