diff --git a/index.html b/index.html index b8d578c..2030ed8 100644 --- a/index.html +++ b/index.html @@ -7,8 +7,8 @@ 妈妈盒子 · 孕育陪伴 - - + + @@ -1774,8 +1774,7 @@ 加载失败/离线时 window.wx 为 undefined,goMall() 会降级为 toast 提示, 不影响应用其余功能。 --> - - -
v26090737
+ + diff --git a/js/app.js b/js/app.js index b9425fc..05fddef 100644 --- a/js/app.js +++ b/js/app.js @@ -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')); } diff --git a/mama-box.css b/mama-box.css index 022edb1..e1015ae 100644 --- a/mama-box.css +++ b/mama-box.css @@ -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}