diff --git a/combining.html b/combining.html index c09e457..46acc97 100644 --- a/combining.html +++ b/combining.html @@ -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 { diff --git a/reduce.html b/reduce.html index 60d17cf..8850481 100644 --- a/reduce.html +++ b/reduce.html @@ -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 {