|
|
@@ -375,6 +375,8 @@
|
|
|
var WX_GET_CONFIG_SIGN_URL = H5_PAGE_BASE_FALLBACK + "shareAiConsult.html";
|
|
|
var WECHAT_JS_SAFE_HOSTS = ["uat.ailien.shop", "prod.ailien.shop"];
|
|
|
var APP_ANDROID_PACKAGE = "com.alien.Udianzaizhe";
|
|
|
+ var APP_DOWNLOAD_URL =
|
|
|
+ "https://a.app.qq.com/o/simple.jsp?pkgname=com.alien.Udianzaina";
|
|
|
var APP_IOS_URL_SCHEME = "shopro://";
|
|
|
var APP_UNI_AI_PATH = "pages/aiSearchResult/index";
|
|
|
var AI_LEGAL_CONVERSATION_API =
|
|
|
@@ -1304,7 +1306,7 @@
|
|
|
// }
|
|
|
|
|
|
if (/launch:fail/i.test(errMsg) && !getWxShareEntryFrom()) {
|
|
|
- showAppOpenFailTip("请前往应用商店下载U店在哪app");
|
|
|
+ showDownloadTip();
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
@@ -1383,12 +1385,7 @@
|
|
|
}
|
|
|
|
|
|
function showDownloadTip() {
|
|
|
- var msg = "请到应用商店下载「U店在哪」";
|
|
|
- if (typeof uni !== "undefined" && typeof uni.showToast === "function") {
|
|
|
- uni.showToast({ title: msg, icon: "none", duration: 2500 });
|
|
|
- } else {
|
|
|
- window.alert(msg);
|
|
|
- }
|
|
|
+ window.location.href = APP_DOWNLOAD_URL;
|
|
|
}
|
|
|
|
|
|
function showAppOpenFailTip(msg) {
|
|
|
@@ -1469,7 +1466,9 @@
|
|
|
}
|
|
|
|
|
|
window.setTimeout(function () {
|
|
|
+ if (done) return;
|
|
|
finish();
|
|
|
+ showDownloadTip();
|
|
|
}, 3200);
|
|
|
}
|
|
|
|