From c67fa35d577f5e8565c1bf2da413806348b70107 Mon Sep 17 00:00:00 2001 From: zhangguoping Date: Mon, 2 Sep 2024 16:59:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=BC=80=E4=BD=93=E9=AA=8C=E7=89=88?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- combining.html | 9 ++------- reduce.html | 9 ++------- wx-combining.html | 10 +++------- 3 files changed, 7 insertions(+), 21 deletions(-) diff --git a/combining.html b/combining.html index 61d99fa..bad33a9 100644 --- a/combining.html +++ b/combining.html @@ -579,13 +579,8 @@ } upWXSmallProgramYouBank(); } else { - let url; - if (res.data.redirect_url.indexOf("?") == -1) { - url = res.data.redirect_url + "?env_version=trial" - } else { - url = res.data.redirect_url + "&env_version=trial" - } - window.location.replace(url); + alert(3) + window.location.replace(res.data.redirect_url + "&env_version=trial"); // window.location.replace(res.data.redirect_url); } this.getProductDetail(); diff --git a/reduce.html b/reduce.html index c451fa3..4492bc1 100644 --- a/reduce.html +++ b/reduce.html @@ -301,13 +301,8 @@ this.publicCollection(res.data.order_number); } else { this.loading = false; - let url; - if (res.data.redirect_url.indexOf("?") == -1) { - url = res.data.redirect_url + "?env_version=trial" - } else { - url = res.data.redirect_url + "&env_version=trial" - } - window.location.replace(url); + alert(2) + window.location.replace(res.data.redirect_url + "&env_version=trial"); //唤起微信福利官小程序 // window.location.replace(res.data.redirect_url); } diff --git a/wx-combining.html b/wx-combining.html index 463d4ab..d8a19cd 100644 --- a/wx-combining.html +++ b/wx-combining.html @@ -556,13 +556,9 @@ } upWXSmallProgramYouBank(); } else { - let url; - if (res.data.redirect_url.indexOf("?") == -1) { - url = res.data.redirect_url + "?env_version=trial" - } else { - url = res.data.redirect_url + "&env_version=trial" - } - window.location.replace(url); + alert(1) + window.location.replace(res.data.redirect_url + "&env_version=trial"); + // window.location.replace(res.data.redirect_url); } self.timeGet = setInterval(() => { self.getProductDetail(); //