v26110265 预览:百宝箱人数行缩小协调;我的孕期工具加 slogan;广场信息流测一测卡减到最多 3 张

Co-Authored-By: AI 助手
This commit is contained in:
deploy
2026-11-03 14:34:37 +00:00
parent f0d08329e4
commit 8c93d31083
10 changed files with 34 additions and 27 deletions

View File

@@ -367,8 +367,8 @@ mark{background:linear-gradient(transparent 62%,var(--c20) 0);color:inherit;padd
</div>
<div class="toast" id="toast"></div>
<script src="meta.js?v=26110264"></script>
<script src="tests.js?v=26110264"></script>
<script src="meta.js?v=26110265"></script>
<script src="tests.js?v=26110265"></script>
<script>
(function () {
'use strict';

View File

@@ -672,10 +672,10 @@ button{font:inherit;color:inherit;border:0;background:none;padding:0;cursor:poin
<div id="sheet" role="dialog" aria-modal="true"><i class="sg"></i><div class="sbd" id="sbd"></div></div>
<div class="toast" id="toast"></div>
<script src="topics.js?v=26110264"></script>
<script src="data.js?v=26110264"></script>
<script src="feed.js?v=26110264"></script>
<script src="ceshi/meta.js?v=26110264"></script>
<script src="topics.js?v=26110265"></script>
<script src="data.js?v=26110265"></script>
<script src="feed.js?v=26110265"></script>
<script src="ceshi/meta.js?v=26110265"></script>
<script>
(function () {
'use strict';
@@ -741,7 +741,7 @@ button{font:inherit;color:inherit;border:0;background:none;padding:0;cursor:poin
var CMD = null, CMERR = false;
/* 头像编码:数字 = av/NNNN.webp(旧代码头像);'av:c012' = av/c012.webp(卡通/可爱卡通);'/…' = 站内绝对路径(内置头像库 /_bridge/avatars/);其余 = assets/img/mom/xxx.jpg */
var avP = function (a) { return typeof a === 'number' ? 'av/' + ('000' + a).slice(-4) + '.webp' : a.indexOf('av:') === 0 ? 'av/' + a.slice(3) + '.webp' : a.charAt(0) === '/' ? a : '../assets/img/mom/' + a + '.jpg'; };
fetch('cm.json?v=26110264').then(function (r) { return r.json(); }).then(function (j) {
fetch('cm.json?v=26110265').then(function (r) { return r.json(); }).then(function (j) {
CMD = j; if (openId && NBY[openId]) { renderComments(NBY[openId]); syncBar(NBY[openId]); }
}).catch(function () { CMERR = true; if (openId && NBY[openId]) renderComments(NBY[openId]); });
function commentsOf(n) {
@@ -1054,9 +1054,10 @@ button{font:inherit;color:inherit;border:0;background:none;padding:0;cursor:poin
/* 「全部」信息流:穿插测试卡 */
if (!cur && !catF && TM.length) {
var dn = csDone(), mixed = [], ci = 0;
/* 测试卡:第 3 位起每 8 张帖子插 1 张(约占 1/9),先出 CS_MIX 精选,再按热度轮完其余测试 */
/* 测试卡:先出 CS_MIX 精选,再按热度轮完其余测试。
11-03 用户:「笔记里测一测减少一些,已经有测一测模块了」→ 原来第 3 位起每 8 张插 1 张(约 20 张),改成第 6 位起每 30 张插 1 张、最多 3 张 */
var csq = CS_MIX.concat(byHot(TM).map(function (x) { return x.id; }).filter(function (id) { return CS_MIX.indexOf(id) < 0; }));
list.forEach(function (n, k) { if (k >= 3 && (k - 3) % 8 === 0) { var tid = csq[ci++ % csq.length]; if (TMBY[tid]) mixed.push({ test: TMBY[tid] }); } mixed.push(n); });
list.forEach(function (n, k) { if (k >= 6 && (k - 6) % 30 === 0 && ci < 3) { var tid = csq[ci++ % csq.length]; if (TMBY[tid]) mixed.push({ test: TMBY[tid] }); } mixed.push(n); });
list = [{ mine: 1 }].concat(mixed);
}
/* 11-03 用户:切分类有点卡。原来每张卡塞进列里再 offsetHeight 量高,每量一次整页重排;85 张卡在中端机上卡 0.5 秒以上,正好卡在滑入动画中间。

View File

@@ -105,7 +105,7 @@ main{padding:6px 16px 0}
</div>
<div class="wb"><button type="button" id="write"><svg class="ic" viewBox="0 0 24 24"><path d="M12 20h9M16.5 3.5a2.1 2.1 0 013 3L7 19l-4 1 1-4z"/></svg>写新的故事</button></div>
<script src="../topics.js?v=26110264"></script>
<script src="../topics.js?v=26110265"></script>
<script>
(function () {
'use strict';