fix:修复【C端】【兼容】百度浏览器,无法跳转支付宝去领取立减金。
This commit is contained in:
parent
ffd6e2c5cc
commit
e8741cfb7d
|
@ -317,6 +317,8 @@
|
|||
|
||||
let ua = navigator.userAgent.toLowerCase(); //判断用户打开链接环境
|
||||
|
||||
|
||||
|
||||
/* 支付宝 */
|
||||
if (res.goods.channel == 1) {
|
||||
let bankLink = encodeURIComponent(
|
||||
|
@ -325,8 +327,8 @@
|
|||
);
|
||||
let link = "http://openapi.1688sup.com/alipay/oauth?jump=" + bankLink;
|
||||
|
||||
if (ua.indexOf("micromessenger") > -1) {
|
||||
//在微信内置环境打开,不能唤起支付宝
|
||||
if (ua.indexOf("micromessenger") > -1 || ua.indexOf("baiduboxapp") > -1) {
|
||||
//在微信内置环境、百度app打开,不能唤起支付宝
|
||||
this.href = link
|
||||
this.popFunction({ title: '温馨提示', text: `请复制链接,在其他浏览器打开`, status: 2, b_text: '点击复制', show: true })
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue