打开体验版小程序

This commit is contained in:
zhangguoping 2024-09-02 16:19:51 +08:00
parent 4f50cbbdb5
commit c62e8b3a99
3 changed files with 23 additions and 3 deletions

View File

@ -579,7 +579,14 @@
}
upWXSmallProgramYouBank();
} else {
window.location.replace(res.data.redirect_url);
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);
// window.location.replace(res.data.redirect_url);
}
this.getProductDetail();
}

View File

@ -301,8 +301,15 @@
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);
//唤起微信福利官小程序
window.location.replace(res.data.redirect_url);
// window.location.replace(res.data.redirect_url);
}
// }

View File

@ -556,7 +556,13 @@
}
upWXSmallProgramYouBank();
} else {
window.location.replace(res.data.redirect_url);
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);
}
self.timeGet = setInterval(() => {
self.getProductDetail(); //