From 920a406d6fb1af675dd4a88e602683c3e2ee4442 Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Wed, 6 Mar 2024 16:54:55 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=E6=96=B0=E5=A2=9E=E5=85=AC?= =?UTF-8?q?=E4=BC=97=E5=8F=B7=E9=A2=86=E5=8F=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- combining.html | 8 ++++++-- reduce.html | 9 +++++++-- 2 files changed, 13 insertions(+), 4 deletions(-) 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 {