From 52fc033ce0a7b88b671a13e7399cff7318337c87 Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Mon, 14 Nov 2022 18:29:12 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E6=B4=BB?= =?UTF-8?q?=E8=B7=AF=E6=B5=8F=E8=A7=88=E5=99=A8=E6=97=A0=E6=B3=95=E5=87=BA?= =?UTF-8?q?=E5=8F=91=E6=8B=89=E8=B5=B7=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- coupon/myOrder.html | 5 +---- paysuccess.html | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/coupon/myOrder.html b/coupon/myOrder.html index 3cedfb1..6089775 100644 --- a/coupon/myOrder.html +++ b/coupon/myOrder.html @@ -317,8 +317,6 @@ let ua = navigator.userAgent.toLowerCase(); //判断用户打开链接环境 - - /* 支付宝 */ if (res.goods.channel == 1) { let bankLink = encodeURIComponent( @@ -326,8 +324,7 @@ "/alipay.html?orderNumber=" + res.alipay_order_number ); let link = "http://openapi.1688sup.com/alipay/oauth?jump=" + bankLink; - - if (ua.indexOf("micromessenger") > -1 || ua.indexOf("baiduboxapp") > -1 || ua.indexOf("Firefox") > -1) { + if (ua.indexOf("micromessenger") > -1 || ua.indexOf("baiduboxapp") > -1 || ua.indexOf("firefox") > -1) { //在微信内置环境、百度app打开,不能唤起支付宝 this.href = link; this.popFunction({ title: '温馨提示', text: `请复制链接,在其他浏览器打开`, status: 2, b_text: '点击复制', show: true }); diff --git a/paysuccess.html b/paysuccess.html index b102c29..4fc174d 100644 --- a/paysuccess.html +++ b/paysuccess.html @@ -162,7 +162,7 @@ let link = "http://openapi.1688sup.com/alipay/oauth?jump=" + banklink; let ua = navigator.userAgent.toLowerCase(); //判断用户打开链接环境 /* 判断如果是微信浏览器或者百度浏览器 则无法拉起支付宝 */ - if (ua.match(/MicroMessenger/i) == "micromessenger" || ua.indexOf("baiduboxapp") > -1 || ua.indexOf("Firefox") > -1) { + if (ua.match(/MicroMessenger/i) == "micromessenger" || ua.indexOf("baiduboxapp") > -1 || ua.indexOf("firefox") > -1) { //复制链接地址,提醒去浏览器打开 this.copyLink = link; this.openErrorDialog(`请复制链接,在其他浏览器打开`, '点击复制');