|
|
@@ -141,6 +141,7 @@
|
|
|
}
|
|
|
|
|
|
.footer__btn-slot {
|
|
|
+ position: relative;
|
|
|
width: 50%;
|
|
|
height: 48px;
|
|
|
}
|
|
|
@@ -159,6 +160,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 {
|
|
|
@@ -172,22 +175,23 @@
|
|
|
|
|
|
#launch-btn {
|
|
|
display: none;
|
|
|
+ position: absolute;
|
|
|
+ left: 0;
|
|
|
+ top: 0;
|
|
|
width: 100%;
|
|
|
- height: 48px;
|
|
|
+ height: 100%;
|
|
|
min-height: 48px;
|
|
|
border-radius: 999px;
|
|
|
overflow: hidden;
|
|
|
+ z-index: 2;
|
|
|
}
|
|
|
|
|
|
+ /* 微信 SDK 就绪:开放标签叠在 continue 按钮之上,底层按钮始终可见作兜底 */
|
|
|
body.is-wechat.wx-jssdk-ready #launch-btn {
|
|
|
display: block;
|
|
|
pointer-events: auto;
|
|
|
}
|
|
|
|
|
|
- body.is-wechat.wx-jssdk-ready #btnContinue {
|
|
|
- display: none !important;
|
|
|
- }
|
|
|
-
|
|
|
#openAppToast {
|
|
|
display: none;
|
|
|
position: fixed;
|
|
|
@@ -772,6 +776,10 @@
|
|
|
} catch (eA) {}
|
|
|
}
|
|
|
|
|
|
+ function hideWxLaunchOverlay() {
|
|
|
+ document.body.classList.remove("wx-jssdk-ready");
|
|
|
+ }
|
|
|
+
|
|
|
function bindWeChatLaunchTagEvents() {
|
|
|
var tag = document.getElementById("launch-btn");
|
|
|
if (!tag || tag._wxLaunchBound) return;
|
|
|
@@ -977,7 +985,7 @@
|
|
|
|
|
|
document.addEventListener("WeixinOpenTagsError", function (e) {
|
|
|
console.warn("[WeixinOpenTagsError]", e && e.detail);
|
|
|
- document.body.classList.remove("wx-jssdk-ready");
|
|
|
+ hideWxLaunchOverlay();
|
|
|
showFabToast("微信开放标签加载失败,请稍候再试");
|
|
|
});
|
|
|
|