|
|
@@ -172,7 +172,7 @@
|
|
|
left: 0;
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
- background-color: rgba(0, 0, 0, 0.85); /* 半透明黑色背景 */
|
|
|
+ background-color: rgba(0, 0, 0, 0.75); /* 半透明黑色背景 */
|
|
|
z-index: 9999; /* 确保在最上层 */
|
|
|
display: none; /* 默认隐藏 */
|
|
|
justify-content: center;
|
|
|
@@ -238,27 +238,31 @@
|
|
|
|
|
|
<!-- MARK: 微信引导层 -->
|
|
|
<div id="wechat-guide-overlay" class="wechat-guide-overlay">
|
|
|
- <div class="wechat-guide-arrow"></div>
|
|
|
+ <div class="wechat-guide-arrow" onclick="closeOverlay()"></div>
|
|
|
<p class="wechat-guide-text">
|
|
|
- 请点击右上角 <strong>“...”</strong> 菜单<br>
|
|
|
- 选择 <strong>“在浏览器中打开”</strong><br>
|
|
|
+ 请点击右上角 <strong>"..."</strong> 菜单<br>
|
|
|
+ 选择 <strong>"在浏览器中打开"</strong><br>
|
|
|
即可跳转到 App 或下载页面
|
|
|
</p>
|
|
|
</div>
|
|
|
|
|
|
<script>
|
|
|
+ const wechatGuideOverlay = document.getElementById('wechat-guide-overlay');
|
|
|
+
|
|
|
// MARK: 微信环境检测
|
|
|
function isWeChatBrowser() {
|
|
|
const ua = window.navigator.userAgent.toLowerCase();
|
|
|
return ua.includes('micromessenger');
|
|
|
}
|
|
|
|
|
|
- const wechatGuideOverlay = document.getElementById('wechat-guide-overlay');
|
|
|
+ function closeOverlay() {
|
|
|
+ wechatGuideOverlay.classList.remove('active');
|
|
|
+ }
|
|
|
+
|
|
|
if (isWeChatBrowser()) {
|
|
|
wechatGuideOverlay.classList.add('active');
|
|
|
console.log("检测到微信浏览器,显示引导层。");
|
|
|
} else {
|
|
|
- // 不在微信中,执行自动拉起 App 逻辑
|
|
|
wechatGuideOverlay.classList.remove('active'); // 确保隐藏
|
|
|
}
|
|
|
|