品牌露出 4 处默认显示(页底落款 / 专属福利「兜爸出品」/ 测一测「兜爸原创」/ 投稿卡「兜爸心选 · 官方征集」,?brand=0 可关);专题页底部加「兜爸心选 | 孕育知识整理」落款(共用模板 + 5 个自带页);v26110203

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
deploy
2026-11-02 06:37:11 +00:00
parent 1dd1456f16
commit 29e1f3a9a2
107 changed files with 226 additions and 203 deletions

View File

@@ -7,7 +7,7 @@
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>兜爸心选 · 孕育陪伴</title>
<!-- V:26110202 缓存版本标记:改 css/js 时同步 bump 该值(与 js/app.js 的 VER 同源),静态资源按 mtime 走 ETag 自动刷新 -->
<!-- V:26110203 缓存版本标记:改 css/js 时同步 bump 该值(与 js/app.js 的 VER 同源),静态资源按 mtime 走 ETag 自动刷新 -->
<link rel="stylesheet" href="mama-box.css">
<link rel="stylesheet" href="night.css">
<!-- 夜晚模式:首屏绘制前就按上次的选择加 class,避免先白后黑闪一下(开关在首页右上角 #nightBtn,逻辑见 app.js) -->
@@ -2500,15 +2500,15 @@
(function () {
var m = location.search.match(/[?&]gcv=([1-6])(?:&|$)/);
if (!m) window.__gcDefault = 1;
var n = m ? m[1] : '6', l = document.createElement('link'), s = document.createElement('script'), q = m ? Date.now() : 'v=26110202';
var n = m ? m[1] : '6', l = document.createElement('link'), s = document.createElement('script'), q = m ? Date.now() : 'v=26110203';
l.rel = 'stylesheet'; l.href = 'demo/gch/v' + n + '.css?' + q;
s.src = 'demo/gch/v' + n + '.js?' + q;
if (m) s.onload = function () { setTimeout(function () { var el = document.getElementById('gcHome'); if (el) el.scrollIntoView({ block: 'center' }); }, 900); };
document.head.appendChild(l); document.body.appendChild(s);
/* 11-02 品牌露出效果稿:?brand=1 才加载(demo/brand/) */
if (/[?&]brand=1/.test(location.search)) {
/* 11-02 品牌露出(用户定 4 处都要):默认加载,?brand=0 可关掉对比;⚠️ 上正式前和 V6 一起并进正式代码,别依赖 demo/ */
if (!/[?&]brand=0/.test(location.search)) {
var bl = document.createElement('link'), bs = document.createElement('script');
bl.rel = 'stylesheet'; bl.href = 'demo/brand/brand.css?' + Date.now(); bs.src = 'demo/brand/brand.js?' + Date.now();
bl.rel = 'stylesheet'; bl.href = 'demo/brand/brand.css?v=26110203'; bs.src = 'demo/brand/brand.js?v=26110203';
document.head.appendChild(bl); document.body.appendChild(bs);
}
})();