fix:修复【C端】【兼容】百度浏览器,无法跳转支付宝去领取立减金。
This commit is contained in:
parent
e8741cfb7d
commit
e75be86dfd
|
@ -3,14 +3,18 @@
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=0,viewport-fit=cover" />
|
<meta name="viewport"
|
||||||
|
content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=0,viewport-fit=cover" />
|
||||||
<title>支付成功</title>
|
<title>支付成功</title>
|
||||||
<script src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/common/vue.min.js?v=1367936144322" type="text/javascript" charset="utf-8"></script>
|
<script src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/common/vue.min.js?v=1367936144322" type="text/javascript"
|
||||||
<script type="text/javascript" src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/common/axios.js?v=1367936144322"></script>
|
charset="utf-8"></script>
|
||||||
|
<script type="text/javascript"
|
||||||
|
src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/common/axios.js?v=1367936144322"></script>
|
||||||
<script src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/js/api2_0.js"></script>
|
<script src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/js/api2_0.js"></script>
|
||||||
<script src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/common/modelPop.js?v=3"></script>
|
<script src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/common/modelPop.js?v=3"></script>
|
||||||
<link rel="stylesheet" href="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/css/loading.css">
|
<link rel="stylesheet" href="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/css/loading.css">
|
||||||
<link rel="stylesheet" href="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/css/paySuccess.css?v=12" />
|
<link rel="stylesheet"
|
||||||
|
href="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/css/paySuccess.css?v=12" />
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
@ -58,7 +62,7 @@
|
||||||
plaflam: 1,
|
plaflam: 1,
|
||||||
payResult: false,
|
payResult: false,
|
||||||
copyLink: '',
|
copyLink: '',
|
||||||
orderId:'',
|
orderId: '',
|
||||||
redirect_url: '' //微信小程序链接
|
redirect_url: '' //微信小程序链接
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
@ -115,7 +119,7 @@
|
||||||
this.plaflam = res.data.product.entity.channel;//只有立减金商品才有channel字段
|
this.plaflam = res.data.product.entity.channel;//只有立减金商品才有channel字段
|
||||||
this.redirect_url = res.data.wechat_redirect_url;
|
this.redirect_url = res.data.wechat_redirect_url;
|
||||||
this.payStatus = res.data.pay_status;
|
this.payStatus = res.data.pay_status;
|
||||||
this.orderId=res.data.alipay_order_number;
|
this.orderId = res.data.alipay_order_number;
|
||||||
} else {
|
} else {
|
||||||
this.countdownFn();
|
this.countdownFn();
|
||||||
}
|
}
|
||||||
|
@ -157,7 +161,8 @@
|
||||||
);
|
);
|
||||||
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") {
|
/* 判断如果是微信浏览器或者百度浏览器 则无法拉起支付宝 */
|
||||||
|
if (ua.match(/MicroMessenger/i) == "micromessenger" || ua.indexOf("baiduboxapp") > -1) {
|
||||||
//复制链接地址,提醒去浏览器打开
|
//复制链接地址,提醒去浏览器打开
|
||||||
this.copyLink = link;
|
this.copyLink = link;
|
||||||
this.openErrorDialog(`请复制链接,在其他浏览器打开`, '点击复制')
|
this.openErrorDialog(`请复制链接,在其他浏览器打开`, '点击复制')
|
||||||
|
|
Loading…
Reference in New Issue