tangning 2 rokov pred
rodič
commit
8bcd6b00d1
2 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  1. 2 2
      src/views/mobile/index.vue
  2. 1 1
      src/views/pc/index.vue

+ 2 - 2
src/views/mobile/index.vue

@@ -56,9 +56,9 @@ async function handelPay() {
   if (is_weixn.value) {
     //微信内支付
     onBridgeReady(res)
-  } else if (res.form || res.h5Url) {
+  } else if (res.form || res.h5Url || res.redirect) {
     console.log('payType', res.form || res.h5Url)
-    window.location.href = res.form || res.h5Url
+    window.location.href = res.form || res.h5Url || res.redirect
   } else {
     showConfirm({
       text: t('payInfo.userName'),

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

@@ -91,7 +91,7 @@ async function getCode() {
     payType: paysidtype[selectedPayType.value],
     openId: ''
   }).then((res) => {
-    qrCodeUrl.value = res.qrCodeUrl
+    qrCodeUrl.value = res.qrCodeUrl ||res.redirect
     inverRequest()
   })
 }