fix:修复活路浏览器无法出发拉起条件
This commit is contained in:
parent
05c0a1d46b
commit
52fc033ce0
|
@ -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 });
|
||||
|
|
|
@ -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(`请复制链接,在其他浏览器打开`, '点击复制');
|
||||
|
|
Loading…
Reference in New Issue