diff --git a/pages/recharge.vue b/pages/recharge.vue
index f7690e6..b422e72 100644
--- a/pages/recharge.vue
+++ b/pages/recharge.vue
@@ -236,6 +236,17 @@
+
+
+
+
+
+
+
+
@@ -362,6 +373,10 @@ export default {
},
_bankPollTimer: null,
_bankCountdownTimer: null,
+ alinPay: {
+ visible: false,
+ url: "",
+ },
};
},
computed: {
@@ -510,13 +525,8 @@ export default {
.then((res) => {
const d = res.Data || {};
if (d.status == 1 && d.url) {
- const o = navigator.userAgent;
- const isiOS = !!o.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
- if (isiOS) {
- window.location.href = d.url;
- } else {
- window.open(d.url, "_blank");
- }
+ this.alinPay.url = d.url;
+ this.alinPay.visible = true;
} else {
this.$toast({
message: d.message || '充值失败',
@@ -643,6 +653,10 @@ export default {
},
});
},
+ closeAlinPay() {
+ this.alinPay.visible = false;
+ this.alinPay.url = "";
+ },
closeEpayQr() {
this.epayQr.visible = false;
this.stopEpayTimers();
@@ -956,4 +970,39 @@ export default {
margin-top: 14rpx;
opacity: 0.85;
}
+.alin-overlay {
+ position: fixed;
+ top: 0; left: 0; right: 0; bottom: 0;
+ z-index: 9999;
+ background: rgba(0,0,0,0.6);
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+.alin-pay-box {
+ width: 92vw;
+ height: 85vh;
+ background: #fff;
+ border-radius: 10px;
+ overflow: hidden;
+ display: flex;
+ flex-direction: column;
+}
+.alin-pay-header {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 10px 15px;
+ background: #1a1a2e;
+}
+.alin-pay-title {
+ color: #f4c46f;
+ font-size: 16px;
+ font-weight: bold;
+}
+.alin-iframe {
+ flex: 1;
+ width: 100%;
+ border: none;
+}