版本号移入「关于妈妈盒子」页底部(renderSetting about分支), 删全站固定底标 (v26090811)

This commit is contained in:
2026-09-08 10:58:01 +08:00
parent 0598f5b566
commit e2d6489393
3 changed files with 15 additions and 5 deletions

View File

@@ -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'));
}