This commit is contained in:
lf 2024-07-24 09:46:25 +08:00
parent 80db8d0950
commit 9df51b4476
1 changed files with 3 additions and 2 deletions

View File

@ -252,14 +252,15 @@
if (res.code == 200) { if (res.code == 200) {
sessionStorage.setItem("lastid", self.goodInfo.product_id); sessionStorage.setItem("lastid", self.goodInfo.product_id);
this.orderId = res.data.order_number; this.orderId = res.data.order_number;
let ua = navigator.userAgent; //判断用户打开链接环境
if (self.plaflam == 1) { if (self.plaflam == 1) {
//支付宝-微信环境中不能唤起支付宝 //支付宝-微信环境中不能唤起支付宝
self.toLinkAlipay(); self.toLinkAlipay();
} }
if (self.plaflam == 2) { if (self.plaflam == 2) {
// 邮储-唤起微信小程序 // 邮储-唤起微信小程序
alert(ua.indexOf("CreditCardAppNew UnionPay/1.0")) let ua = navigator.userAgent; //判断用户打开链接环境
console.log(ua,ua.indexOf("CreditCardAppNew UnionPay/1.0"))
alert(ua,ua.indexOf("CreditCardAppNew UnionPay/1.0"))
return Fw.device.api.openWXMiniProgram({ return Fw.device.api.openWXMiniProgram({
programID: "wx9ed74283ad25bca1", programID: "wx9ed74283ad25bca1",
path: "pages/index/index", path: "pages/index/index",