fix:修复【C端】【立减金】微信登录C端,无法跳转到支付去领取立减金。
This commit is contained in:
parent
7820f932bb
commit
54aaffe148
|
@ -288,15 +288,6 @@
|
|||
},
|
||||
|
||||
|
||||
//支付宝H5跳转
|
||||
toLinkAliPay (res) {
|
||||
let banklink = encodeURIComponent(
|
||||
window.location.origin +
|
||||
"/alipay.html?orderNumber=" + res.alipay_order_number
|
||||
);
|
||||
let link = "http://openapi.1688sup.com/alipay/oauth?jump=" + banklink;
|
||||
window.location.href = link;
|
||||
},
|
||||
|
||||
//领取立减金
|
||||
receiveFn (res) {
|
||||
|
@ -304,12 +295,18 @@
|
|||
|
||||
/* 支付宝 */
|
||||
if (res.goods.entity.channel == 1) {
|
||||
let bankLink = encodeURIComponent(
|
||||
window.location.origin +
|
||||
"/alipay.html?orderNumber=" + res.alipay_order_number
|
||||
);
|
||||
let link = "http://openapi.1688sup.com/alipay/oauth?jump=" + bankLink;
|
||||
|
||||
if (ua.indexOf("weixin") > -1) {
|
||||
//在微信内置环境打开,不能唤起支付宝
|
||||
this.href = res.redirect_url
|
||||
this.href = link
|
||||
this.popFunction({ title: '温馨提示', text: `请在其他浏览器打开链接`, status: 2, b_text: '点击复制', show: true })
|
||||
} else {
|
||||
this.toLinkAliPay(res);
|
||||
window.location.href = link;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -317,11 +314,11 @@
|
|||
if (res.goods.entity.channel == 2) {
|
||||
if (ua.indexOf("dingtalk") > -1) {
|
||||
//在钉钉内置环境打开,不能唤起微信小程序
|
||||
this.href = res.redirect_url
|
||||
this.href = res.wechat_redirect_url
|
||||
this.popFunction({ title: '温馨提示', text: `请在其他浏览器打开链接`, status: 2, b_text: '点击复制', show: true })
|
||||
} else {
|
||||
//唤起微信福利官小程序
|
||||
window.location.replace(res.redirect_url);
|
||||
window.location.replace(res.wechat_redirect_url);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue