v26110462 孕周专属福利改读数胎动后台(/taidong/api/public/week-perks):首页按孕周出卡、空则整块隐藏;详情页显示后台详情+详情图;价格按单份;删内置 8 份资料

This commit is contained in:
deploy
2026-11-05 10:30:03 +00:00
parent 887b87dc82
commit 8202c77ad9
26 changed files with 205 additions and 261 deletions

View File

@@ -25,7 +25,8 @@
池子 = 分配表 gift 的 9 个 + 11-05 新加的非人像头像 12 个(女生常用 g / 宠物 p),共 21 个,够三张都抽满 7 个。
mama-box.css 里 .gift2 .sb-faces i:nth-child(n+4){display:none} 只留 3 个 → 这里用行内 display 盖掉;
「N 万妈妈已领取」被挤出省略号就先把头像叠紧(5→9px),再不够才从尾巴减头像,最少留 2 个(人数是信息,头像是装饰)。 */
(function () {
/* 11-05 起福利卡由 app.js 按后台资料现画,画完调 window.mbGiftFaces() 再抽头像 */
window.mbGiftFaces = function () {
var box = document.querySelectorAll('.gift2 .sb-faces');
if (!box.length) return;
var pool = ((window.MB_AVA && MB_AVA.S.gift) || []).concat(
@@ -49,4 +50,5 @@
});
}
fit(); setTimeout(fit, 800);
})();
};
window.mbGiftFaces();

View File

@@ -244,5 +244,5 @@
}
/* feed.js 首页默认不加载(index.html 只引了 topics.js),这里按需拉一次 */
if (window.GC_FEED) init();
else { var fs = document.createElement('script'); fs.src = 'guangchang/feed.js?v=26110461'; fs.onload = fs.onerror = init; document.body.appendChild(fs); }
else { var fs = document.createElement('script'); fs.src = 'guangchang/feed.js?v=26110462'; fs.onload = fs.onerror = init; document.body.appendChild(fs); }
})();

View File

@@ -6,9 +6,9 @@
(function () {
var sec = document.getElementById('gcHome');
if (!sec) return;
var l = document.createElement('link'); l.rel = 'stylesheet'; l.href = 'js/gch/v4.css?v=26110461';
var l = document.createElement('link'); l.rel = 'stylesheet'; l.href = 'js/gch/v4.css?v=26110462';
document.head.appendChild(l);
var s = document.createElement('script'); s.src = 'js/gch/v4.js?v=26110461';
var s = document.createElement('script'); s.src = 'js/gch/v4.js?v=26110462';
s.onload = function () { if (sec.querySelector('.g4-foot')) merge(); else sec.addEventListener('gc4-ready', merge, { once: true }); }; /* v4 要先拉 feed.js 才渲染 */
document.body.appendChild(s);