|
@@ -192,6 +192,7 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.fab-dock__slot {
|
|
.fab-dock__slot {
|
|
|
|
|
+ position: relative;
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
max-width: 280px;
|
|
max-width: 280px;
|
|
|
height: 48px;
|
|
height: 48px;
|
|
@@ -229,6 +230,10 @@
|
|
|
|
|
|
|
|
#launch-btn {
|
|
#launch-btn {
|
|
|
display: none;
|
|
display: none;
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ left: 0;
|
|
|
|
|
+ top: 0;
|
|
|
|
|
+ z-index: 2;
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
height: 48px;
|
|
height: 48px;
|
|
|
min-height: 48px;
|
|
min-height: 48px;
|
|
@@ -237,22 +242,15 @@
|
|
|
opacity: 1;
|
|
opacity: 1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /* openApp 始终可见;仅当开放标签已渲染时才叠加上层(避免隐藏后标签未渲染导致按钮消失) */
|
|
|
body.is-wechat.wx-jssdk-ready #launch-btn {
|
|
body.is-wechat.wx-jssdk-ready #launch-btn {
|
|
|
display: block;
|
|
display: block;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- body.is-wechat.wx-jssdk-ready #openApp {
|
|
|
|
|
- display: none !important;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
body.is-wechat.wx-open-tag-broken #launch-btn {
|
|
body.is-wechat.wx-open-tag-broken #launch-btn {
|
|
|
display: none !important;
|
|
display: none !important;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- body.is-wechat.wx-open-tag-broken #openApp {
|
|
|
|
|
- display: flex !important;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
.fab-wrap .fab {
|
|
.fab-wrap .fab {
|
|
|
pointer-events: auto;
|
|
pointer-events: auto;
|
|
|
}
|
|
}
|
|
@@ -333,7 +331,7 @@
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
height: 48px;
|
|
height: 48px;
|
|
|
margin: 0;
|
|
margin: 0;
|
|
|
- padding: 0;
|
|
|
|
|
|
|
+ padding: 0 10px;
|
|
|
border: none;
|
|
border: none;
|
|
|
border-radius: 999px;
|
|
border-radius: 999px;
|
|
|
background: linear-gradient(90deg, #ffb84c 0%, #ff6b3e 100%);
|
|
background: linear-gradient(90deg, #ffb84c 0%, #ff6b3e 100%);
|
|
@@ -342,6 +340,8 @@
|
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
|
-webkit-tap-highlight-color: transparent;
|
|
-webkit-tap-highlight-color: transparent;
|
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
|
|
+ font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
|
|
|
|
|
+ -webkit-font-smoothing: antialiased;
|
|
|
}
|
|
}
|
|
|
.wx-open-app-btn .fab__brand-clip {
|
|
.wx-open-app-btn .fab__brand-clip {
|
|
|
display: block;
|
|
display: block;
|
|
@@ -1013,6 +1013,7 @@
|
|
|
wx.config(wxConfigParams);
|
|
wx.config(wxConfigParams);
|
|
|
wx.ready(function () {
|
|
wx.ready(function () {
|
|
|
weChatJssdkConfigured = true;
|
|
weChatJssdkConfigured = true;
|
|
|
|
|
+ refreshWxLaunchTagAttrs();
|
|
|
if (wxOpenTagBroken) {
|
|
if (wxOpenTagBroken) {
|
|
|
document.body.classList.add("wx-open-tag-broken");
|
|
document.body.classList.add("wx-open-tag-broken");
|
|
|
document.body.classList.remove("wx-jssdk-ready");
|
|
document.body.classList.remove("wx-jssdk-ready");
|
|
@@ -1020,7 +1021,6 @@
|
|
|
document.body.classList.remove("wx-open-tag-broken");
|
|
document.body.classList.remove("wx-open-tag-broken");
|
|
|
document.body.classList.add("wx-jssdk-ready");
|
|
document.body.classList.add("wx-jssdk-ready");
|
|
|
}
|
|
}
|
|
|
- refreshWxLaunchTagAttrs();
|
|
|
|
|
console.log("[wx.config] ready, htmlUrl=", htmlUrl);
|
|
console.log("[wx.config] ready, htmlUrl=", htmlUrl);
|
|
|
resolve(true);
|
|
resolve(true);
|
|
|
});
|
|
});
|