版本号移入「关于妈妈盒子」页底部(renderSetting about分支), 删全站固定底标 (v26090811)
This commit is contained in:
@@ -7,8 +7,8 @@
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<title>妈妈盒子 · 孕育陪伴</title>
|
||||
<!-- V:26090737 缓存版本标记:改 css/js 时同步 bump 该值,并给下方资源引用加 ?v= 以强制 webview 刷新子资源 -->
|
||||
<link rel="stylesheet" href="mama-box.css?v=26090737">
|
||||
<!-- V:26090811 缓存版本标记:改 css/js 时同步 bump 该值,并给下方资源引用加 ?v= 以强制 webview 刷新子资源 -->
|
||||
<link rel="stylesheet" href="mama-box.css?v=26090811">
|
||||
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
@@ -1774,8 +1774,7 @@
|
||||
加载失败/离线时 window.wx 为 undefined,goMall() 会降级为 toast 提示,
|
||||
不影响应用其余功能。 -->
|
||||
|
||||
<script src="js/app.js?v=26090737"></script>
|
||||
<!-- 页面版本号(排查 webview 缓存):底部会显示 v26090737 -->
|
||||
<div id="ver" style="position:fixed;left:0;right:0;bottom:10px;text-align:center;z-index:9999;pointer-events:none;color:#B3A69C;font-size:10px;letter-spacing:.5px">v26090737</div>
|
||||
<script src="js/app.js?v=26090811"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
/* ================= 妈妈盒子 H5 · 交互 ================= */
|
||||
(function () {
|
||||
'use strict';
|
||||
/* 页面版本号(YYMMDD+序号):显示在「关于妈妈盒子」页底部;bump 时同步 head 注释与 ?v= */
|
||||
var VER = '26090811';
|
||||
const $ = (s, c) => (c || document).querySelector(s);
|
||||
const $$ = (s, c) => Array.from((c || document).querySelectorAll(s));
|
||||
|
||||
@@ -2299,6 +2301,12 @@
|
||||
}).join('');
|
||||
|
||||
$('#stBody').innerHTML = html;
|
||||
/* 「关于妈妈盒子」页底部显示版本号(全站不再有固定底标) */
|
||||
if (key === 'about') {
|
||||
let av = document.getElementById('aboutVer');
|
||||
if (!av) { av = document.createElement('p'); av.id = 'aboutVer'; av.className = 'about-ver'; $('#detailSetting .detail-body').appendChild(av); }
|
||||
av.textContent = '妈妈盒子 v' + VER;
|
||||
}
|
||||
scrollTop($('#detailSetting .detail-body'));
|
||||
}
|
||||
|
||||
|
||||
@@ -2659,3 +2659,6 @@ a.skip:focus{left:16px;top:16px}
|
||||
.fld-date .date-ph{position:absolute;left:16px;top:50%;transform:translateY(-50%);font-size:14px;color:#C9B7AC;pointer-events:none;display:block;line-height:1}
|
||||
/* 空值时隐藏原生提示(Chrome 会画 mm/dd/yyyy,与占位叠字):文字透明即隐 */
|
||||
.fld-date input.due-empty{color:transparent;-webkit-text-fill-color:transparent}
|
||||
|
||||
/* 「关于妈妈盒子」页底部版本号 */
|
||||
.about-ver{margin-top:24px;padding-bottom:34px;text-align:center;color:#C9BFB8;font-size:11px;letter-spacing:.5px}
|
||||
|
||||
Reference in New Issue
Block a user