fix:【C端】【订单】订单列表点击去兑换,没有跳转到微信/支付宝兑换。

This commit is contained in:
wangsongsole 2022-10-21 17:57:15 +08:00
parent 4cbc118cbb
commit 7a9ef0f09f
1 changed files with 2 additions and 2 deletions

View File

@ -319,7 +319,7 @@
let ua = navigator.userAgent.toLowerCase(); //判断用户打开链接环境
/* 支付宝 */
if (res.goods.entity.channel == 1) {
if (res.goods.channel == 1) {
let bankLink = encodeURIComponent(
window.location.origin +
"/alipay.html?orderNumber=" + res.alipay_order_number
@ -336,7 +336,7 @@
}
//微信
if (res.goods.entity.channel == 2) {
if (res.goods.channel == 2) {
if (ua.indexOf("dingtalk") > -1) {
//在钉钉内置环境打开,不能唤起微信小程序
this.href = res.wechat_redirect_url