|
|
@@ -190,6 +190,8 @@
|
|
|
box-shadow: 0 4px 16px rgba(255, 107, 62, 0.32);
|
|
|
touch-action: manipulation;
|
|
|
-webkit-tap-highlight-color: transparent;
|
|
|
+ position: relative;
|
|
|
+ z-index: 1;
|
|
|
}
|
|
|
|
|
|
.continue-btn__label {
|
|
|
@@ -220,7 +222,6 @@
|
|
|
}
|
|
|
|
|
|
body.is-wechat.wx-jssdk-ready #btnContinue {
|
|
|
- visibility: hidden;
|
|
|
pointer-events: none;
|
|
|
}
|
|
|
|
|
|
@@ -785,7 +786,6 @@
|
|
|
wx.config(wxConfigParams);
|
|
|
wx.ready(function () {
|
|
|
weChatJssdkConfigured = true;
|
|
|
- document.body.classList.add("wx-jssdk-ready");
|
|
|
refreshWxLaunchTagAttrs();
|
|
|
console.log("[wx.config] ready, htmlUrl=", htmlUrl);
|
|
|
resolve(true);
|
|
|
@@ -815,6 +815,16 @@
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+ function resetWxLaunchOverlay() {
|
|
|
+ document.body.classList.remove("wx-jssdk-ready");
|
|
|
+ }
|
|
|
+
|
|
|
+ function enableWxLaunchOverlay() {
|
|
|
+ if (weChatJssdkConfigured) {
|
|
|
+ document.body.classList.add("wx-jssdk-ready");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
function refreshWxLaunchTagAttrs() {
|
|
|
var tag = document.getElementById("launch-btn");
|
|
|
if (!tag) return;
|
|
|
@@ -842,17 +852,20 @@
|
|
|
: "";
|
|
|
console.warn("[wx-open-launch-app]", detail, "extinfo=", tag.getAttribute("extinfo"));
|
|
|
if (/launch:fail_check/i.test(errMsg)) {
|
|
|
+ resetWxLaunchOverlay();
|
|
|
showAppOpenFailTip(
|
|
|
"微信唤起 App 校验失败,请确认开放标签域名与 App 关联配置正确"
|
|
|
);
|
|
|
return;
|
|
|
}
|
|
|
if (/launch:fail/i.test(errMsg)) {
|
|
|
+ resetWxLaunchOverlay();
|
|
|
showAppOpenFailTip(
|
|
|
"未能打开 App,请确认已安装最新版「U店在哪」,或从 App 内分享到微信后再打开"
|
|
|
);
|
|
|
return;
|
|
|
}
|
|
|
+ resetWxLaunchOverlay();
|
|
|
showAppOpenFailTip(
|
|
|
errMsg
|
|
|
? "未能打开 App:" + errMsg
|
|
|
@@ -1020,9 +1033,13 @@
|
|
|
initWeChatOpenLaunchApp(true).then(function (ok) {
|
|
|
if (!ok) {
|
|
|
showAppOpenFailTip(wxInitLastError || "微信唤起 App 初始化失败");
|
|
|
+ return;
|
|
|
}
|
|
|
+ enableWxLaunchOverlay();
|
|
|
});
|
|
|
+ return;
|
|
|
}
|
|
|
+ enableWxLaunchOverlay();
|
|
|
return;
|
|
|
}
|
|
|
tryOpenHBuilderAppViaScheme();
|