✨ feat: 新增公众号领取代码
This commit is contained in:
parent
f373ff3250
commit
920a406d6f
|
@ -174,9 +174,13 @@
|
|||
/* 支付宝官方领取 */
|
||||
this.toLinkAlipay();
|
||||
} else if (this.goods.group_info.channel == 2) {
|
||||
if (this.goods.group_info.is_webview == 1) {
|
||||
this.message = '领取成功';
|
||||
} else {
|
||||
/* 微信官方领取 */
|
||||
window.location.replace(res.data.redirect_url);
|
||||
}
|
||||
}
|
||||
this.getProductDetail();
|
||||
} else {
|
||||
this.axiosErrorFun(res.code, res.message);
|
||||
|
|
|
@ -229,8 +229,13 @@
|
|||
// //在钉钉内置环境打开,不能唤起微信小程序
|
||||
// self.openErrorDialog("请在其他浏览器打开!");
|
||||
// } else {
|
||||
if (this.goodInfo.entity.is_webview == 1) {
|
||||
self.openErrorDialog('领取成功');
|
||||
} else {
|
||||
//唤起微信福利官小程序
|
||||
window.location.replace(res.data.redirect_url);
|
||||
}
|
||||
|
||||
// }
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue