fix:修复活路浏览器无法出发拉起条件

This commit is contained in:
wangsongsole 2022-11-14 18:29:12 +08:00
parent 05c0a1d46b
commit 52fc033ce0
2 changed files with 2 additions and 5 deletions

View File

@ -317,8 +317,6 @@
let ua = navigator.userAgent.toLowerCase(); //判断用户打开链接环境 let ua = navigator.userAgent.toLowerCase(); //判断用户打开链接环境
/* 支付宝 */ /* 支付宝 */
if (res.goods.channel == 1) { if (res.goods.channel == 1) {
let bankLink = encodeURIComponent( let bankLink = encodeURIComponent(
@ -326,8 +324,7 @@
"/alipay.html?orderNumber=" + res.alipay_order_number "/alipay.html?orderNumber=" + res.alipay_order_number
); );
let link = "http://openapi.1688sup.com/alipay/oauth?jump=" + bankLink; 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打开不能唤起支付宝 //在微信内置环境、百度app打开不能唤起支付宝
this.href = link; this.href = link;
this.popFunction({ title: '温馨提示', text: `请复制链接,在其他浏览器打开`, status: 2, b_text: '点击复制', show: true }); this.popFunction({ title: '温馨提示', text: `请复制链接,在其他浏览器打开`, status: 2, b_text: '点击复制', show: true });

View File

@ -162,7 +162,7 @@
let link = "http://openapi.1688sup.com/alipay/oauth?jump=" + banklink; let link = "http://openapi.1688sup.com/alipay/oauth?jump=" + banklink;
let ua = navigator.userAgent.toLowerCase(); //判断用户打开链接环境 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.copyLink = link;
this.openErrorDialog(`请复制链接,在其他浏览器打开`, '点击复制'); this.openErrorDialog(`请复制链接,在其他浏览器打开`, '点击复制');