feat: 新增公众号领取代码

This commit is contained in:
wangsongsole 2024-03-06 16:54:55 +08:00
parent f373ff3250
commit 920a406d6f
2 changed files with 13 additions and 4 deletions

View File

@ -174,8 +174,12 @@
/* 支付宝官方领取 */
this.toLinkAlipay();
} else if (this.goods.group_info.channel == 2) {
/* 微信官方领取 */
window.location.replace(res.data.redirect_url);
if (this.goods.group_info.is_webview == 1) {
this.message = '领取成功';
} else {
/* 微信官方领取 */
window.location.replace(res.data.redirect_url);
}
}
this.getProductDetail();
} else {

View File

@ -229,8 +229,13 @@
// //在钉钉内置环境打开,不能唤起微信小程序
// self.openErrorDialog("请在其他浏览器打开!");
// } else {
//唤起微信福利官小程序
window.location.replace(res.data.redirect_url);
if (this.goodInfo.entity.is_webview == 1) {
self.openErrorDialog('领取成功');
} else {
//唤起微信福利官小程序
window.location.replace(res.data.redirect_url);
}
// }
}
} else {