From 20613191f5ee0db455294f414244e6db0444c6a1 Mon Sep 17 00:00:00 2001 From: deploy Date: Thu, 5 Nov 2026 01:01:18 +0000 Subject: [PATCH] =?UTF-8?q?=E5=A4=B4=E5=83=8F=E6=8C=89=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E5=88=86=E9=85=8D=E4=BA=92=E4=B8=8D=E9=87=8D=E5=A4=8D=EF=BC=9A?= =?UTF-8?q?js/ava-pool.js=EF=BC=88375=20=E4=B8=AA=E8=A3=85=E9=A5=B0?= =?UTF-8?q?=E5=A4=B4=E5=83=8F=E5=88=86=2012=20=E6=AE=B5=EF=BC=89=EF=BC=8C?= =?UTF-8?q?=E8=AF=84=E8=AE=BA=E5=8C=BA=E8=AE=A9=E5=87=BA=E8=BF=99=E4=BA=9B?= =?UTF-8?q?=E4=BA=BA=E8=AE=BE=E6=94=B9=E5=90=8C=E7=B1=BB=E6=9B=BF=E8=A1=A5?= =?UTF-8?q?=EF=BC=88v26110440=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- guangchang/ceshi/index.html | 8 ++++---- guangchang/cm.json | 2 +- guangchang/index.html | 30 +++++++++++++++++------------ guangchang/mine/index.html | 4 ++-- index.html | 19 +++++++++--------- js/app.js | 17 ++++++++-------- js/ava-pool.js | 11 +++++++++++ js/gch/brand.css | 20 +++++++++---------- js/gch/v4.js | 8 ++++---- js/gch/v6.js | 16 ++++++++------- js/kit.js | 6 ++++-- js/share-card.js | 2 +- topic/_shared/cm/baidai.json | 2 +- topic/_shared/cm/bianmi.json | 2 +- topic/_shared/cm/bugai.json | 2 +- topic/_shared/cm/buji.json | 2 +- topic/_shared/cm/ceshi.json | 2 +- topic/_shared/cm/cewo.json | 2 +- topic/_shared/cm/chanjia.json | 2 +- topic/_shared/cm/chanjiaqi.json | 2 +- topic/_shared/cm/cheqie.json | 2 +- topic/_shared/cm/chiyao.json | 2 +- topic/_shared/cm/chongwu.json | 2 +- topic/_shared/cm/choujin.json | 2 +- topic/_shared/cm/chouxue.json | 2 +- topic/_shared/cm/chuanqi.json | 2 +- topic/_shared/cm/chusheng.json | 2 +- topic/_shared/cm/chuxing.json | 2 +- topic/_shared/cm/cuichan.json | 2 +- topic/_shared/cm/daichanbao.json | 2 +- topic/_shared/cm/daxiao.json | 2 +- topic/_shared/cm/duiyou.json | 2 +- topic/_shared/cm/fajin.json | 2 +- topic/_shared/cm/fansuan.json | 2 +- topic/_shared/cm/fanying.json | 2 +- topic/_shared/cm/fenmian.json | 2 +- topic/_shared/cm/fushe.json | 2 +- topic/_shared/cm/futong.json | 2 +- topic/_shared/cm/ganmao.json | 2 +- topic/_shared/cm/gaoxueya.json | 2 +- topic/_shared/cm/gaozhi.json | 2 +- topic/_shared/cm/gongjing.json | 2 +- topic/_shared/cm/gongwai.json | 2 +- topic/_shared/cm/guoqi.json | 2 +- topic/_shared/cm/haixian.json | 2 +- topic/_shared/cm/hcg.json | 2 +- topic/_shared/cm/huafei.json | 2 +- topic/_shared/cm/hufu.json | 2 +- topic/_shared/cm/jiagong.json | 2 +- topic/_shared/cm/jiandang.json | 2 +- topic/_shared/cm/jiandangqd.json | 2 +- topic/_shared/cm/jianhong.json | 2 +- topic/_shared/cm/jianhongsheng.json | 2 +- topic/_shared/cm/jikou.json | 2 +- topic/_shared/cm/jintie.json | 2 +- topic/_shared/cm/kafei.json | 2 +- topic/_shared/cm/kaiche.json | 2 +- topic/_shared/cm/kainai.json | 2 +- topic/_shared/cm/kongtiao.json | 2 +- topic/_shared/cm/linchan.json | 2 +- topic/_shared/cm/niaopin.json | 2 +- topic/_shared/cm/nt.json | 2 +- topic/_shared/cm/paiji.json | 2 +- topic/_shared/cm/paozao.json | 2 +- topic/_shared/cm/pinxue.json | 2 +- topic/_shared/cm/poshui.json | 2 +- topic/_shared/cm/pougong.json | 2 +- topic/_shared/cm/qingxu.json | 2 +- topic/_shared/cm/ranfa.json | 2 +- topic/_shared/cm/raojing.json | 2 +- topic/_shared/cm/rentangbing.json | 2 +- topic/_shared/cm/ruyuan.json | 2 +- topic/_shared/cm/shaicha.json | 2 +- topic/_shared/cm/shuangtai.json | 2 +- topic/_shared/cm/shuiguo.json | 2 +- topic/_shared/cm/shuizhong.json | 2 +- topic/_shared/cm/siwei.json | 2 +- topic/_shared/cm/taidong.json | 2 +- topic/_shared/cm/taidongshao.json | 2 +- topic/_shared/cm/taidongshu.json | 2 +- topic/_shared/cm/taijiao.json | 2 +- topic/_shared/cm/taiwei.json | 2 +- topic/_shared/cm/taixin.json | 2 +- topic/_shared/cm/tanggao.json | 2 +- topic/_shared/cm/tangnai.json | 2 +- topic/_shared/cm/tizhong.json | 2 +- topic/_shared/cm/tongfang.json | 2 +- topic/_shared/cm/touyun.json | 2 +- topic/_shared/cm/tuyy.json | 2 +- topic/_shared/cm/weikou.json | 2 +- topic/_shared/cm/wen.json | 2 +- topic/_shared/cm/wutong.json | 2 +- topic/_shared/cm/xianhuai.json | 2 +- topic/_shared/cm/yali.json | 2 +- topic/_shared/cm/yangshui.json | 2 +- topic/_shared/cm/yanyun.json | 2 +- topic/_shared/cm/yaotong.json | 2 +- topic/_shared/cm/yatong.json | 2 +- topic/_shared/cm/yingyang.json | 2 +- topic/_shared/cm/yinshi.json | 2 +- topic/_shared/cm/yongpin.json | 2 +- topic/_shared/cm/yuchanqi.json | 2 +- topic/_shared/cm/yuesao.json | 2 +- topic/_shared/cm/yuezi.json | 2 +- topic/_shared/cm/yundong.json | 2 +- topic/_shared/cm/yunfu.json | 2 +- topic/_shared/cm/yuntu.json | 2 +- topic/_shared/cm/zhunbaba.json | 2 +- topic/_shared/cm/zhunbei.json | 2 +- topic/_shared/tools.js | 8 ++++---- topic/butie-js/index.html | 10 +++++----- topic/ceshi/index.html | 2 +- topic/chanjian-js/index.html | 10 +++++----- topic/duiyou/index.html | 2 +- topic/geshui-js/index.html | 10 +++++----- topic/jintie-js/index.html | 10 +++++----- topic/jisuan/index.html | 4 ++-- topic/shengao-js/index.html | 10 +++++----- topic/shouxu-js/index.html | 10 +++++----- topic/xuexing-js/index.html | 10 +++++----- topic/yuchanqi-js/index.html | 6 +++--- topic/yuezi-js/index.html | 10 +++++----- topic/yunzhou-js/index.html | 10 +++++----- topic/zengzhong-js/index.html | 10 +++++----- topic/zhichang/index.html | 4 ++-- 125 files changed, 243 insertions(+), 220 deletions(-) create mode 100644 js/ava-pool.js diff --git a/guangchang/ceshi/index.html b/guangchang/ceshi/index.html index 3a13a6a..26b514a 100644 --- a/guangchang/ceshi/index.html +++ b/guangchang/ceshi/index.html @@ -3,7 +3,7 @@ - + 测一测 · 孕妈广场 @@ -322,9 +322,9 @@ mark{background:linear-gradient(transparent 62%,var(--c20) 0);color:inherit;padd
- - - + + + + 孕妈广场 @@ -890,11 +890,12 @@ button{font:inherit;color:inherit;border:0;background:none;padding:0;cursor:poin
- - - - - + + + + + + + 我的投稿 @@ -107,7 +107,7 @@ main{padding:6px 16px 0}
- + - + + @@ -2618,12 +2618,13 @@ - + + - + - + - - + + diff --git a/js/app.js b/js/app.js index 66873f5..b23502f 100644 --- a/js/app.js +++ b/js/app.js @@ -3,7 +3,7 @@ (function () { 'use strict'; /* 页面版本号(YYMMDD+序号):显示在「关于兜爸心选」页底部;bump 时同步 head 注释与 ?v= */ - var VER = '26110439'; + var VER = '26110440'; const $ = (s, c) => (c || document).querySelector(s); const $$ = (s, c) => Array.from((c || document).querySelectorAll(s)); @@ -4199,11 +4199,12 @@ 妈妈近脸从 22 张砍到 14 张(去掉最像的几张),优先半身 / 户外 / 孕肚(m18~m22),每 3 个里最多 1 张妈妈脸; 两池仍不相交:AVA_TOP 18 张、AVA_FEED 29 张。同日额度充上后补 14 张 p01~p14(孕妇全身、夫妻合照、一家三口、生活场景), 两池各约 1/3 是 p*,妈妈近脸 m* 退到一半以下;AVA_TOP 23 张、AVA_FEED 37 张,仍不相交。 */ - const AVA_TOP = ['p01', 'k01', 's02', 'm20', 'p02', 'mom-03', 'k04', 'p03', 's05', 'baby-02', 'm13', 'p04', 'k06', 's09', 'p05', 'mom-11', 'k10', 'p06', 'm21', 's10', 'p07', 'baby-06', 'k12']; - const AVA_FEED = ['p08', 'k02', 's01', 'm01', 'p09', 'k03', 'mom-05', 'p10', 's03', 'm18', 'k05', 'p11', 's04', 'baby-04', 'm22', 'p12', 'k07', 's06', 'mom-08', 'p13', 'm03', 'k08', 's07', 'p14', 'm19', 'k09', 's08', 'mom-14', 'm09', 'k11', 'baby-09', 'm11', 'k13', 'mom-17', 'm14', 'm15', 'm17']; + /* 11-05 用户:各模块头像不要互相重复 → 改读 js/ava-pool.js 的分配表(pulseTop / pulseFeed),下面两行原表只作加载失败兜底 */ + const AVA_TOP = (window.MB_AVA && MB_AVA.S.pulseTop) || ['p01', 'k01', 's02', 'm20', 'p02', 'mom-03', 'k04', 'p03', 's05', 'baby-02', 'm13', 'p04', 'k06', 's09', 'p05', 'mom-11', 'k10', 'p06', 'm21', 's10', 'p07', 'baby-06', 'k12']; + const AVA_FEED = (window.MB_AVA && MB_AVA.S.pulseFeed) || ['p08', 'k02', 's01', 'm01', 'p09', 'k03', 'mom-05', 'p10', 's03', 'm18', 'k05', 'p11', 's04', 'baby-04', 'm22', 'p12', 'k07', 's06', 'mom-08', 'p13', 'm03', 'k08', 's07', 'p14', 'm19', 'k09', 's08', 'mom-14', 'm09', 'k11', 'baby-09', 'm11', 'k13', 'mom-17', 'm14', 'm15', 'm17']; /* mom-* / baby-* 取自统一头像库 /_bridge/avatars/(2026-10-11 用户:「可以适当调几个我库里预存的头像,妈妈和宝宝的」); 其余仍是 assets/img/mom/ 下的写实照片。库头像是 256px 透明底 PNG,底色由 .pr-ava / .pp-avs i 的 #FFE3D3 托住。 */ - const avaSrc = n => /^(mom|baby)-\d+$/.test(n) ? 'https://mp.yizhezhe.com/_bridge/avatars/' + n + '.png' : 'assets/img/mom/' + n + '.jpg'; + const avaSrc = n => /:|^\//.test(n) && window.MB_AVA ? MB_AVA.src(n, '') : /^(mom|baby)-\d+$/.test(n) ? 'https://mp.yizhezhe.com/_bridge/avatars/' + n + '.png' : 'assets/img/mom/' + n + '.jpg'; const avaImg = n => ''; const strSeed = t => { let x = 7; for (let i = 0; i < t.length; i++) x = (x * 31 + t.charCodeAt(i)) | 0; return Math.abs(x); }; /* ================= 孕妈广场 · 首页入口(2026-11-01 第一版,占位内容) ================= @@ -4235,7 +4236,7 @@ 一块可横滑的地面,话题是一个个说话气泡、气泡下站着一位妈妈的头像,一高一低「之」字形排开、轻轻浮动; 背景一条虚线小路从每个头像脚下穿过,空地上零星散着几个在逛的小头像。隔一个气泡带照片(topics.js 的 ph);「全部」里都是热门,不再逐个挂「热」。 */ const CAT_CN = { family: '家庭婚姻', work: '职场', baby: '经验' }; - const POOL = AVA_FEED.concat(AVA_TOP).filter(n => /^(p|m|mom-)\d/.test(n)); // 只用妈妈头像,k/s/baby 是孩子和风景 + const POOL = (window.MB_AVA && MB_AVA.S.gbWalk) || AVA_FEED.concat(AVA_TOP).filter(n => /^(p|m|mom-)\d/.test(n)); // 11-05 改用分配表 gbWalk(不和「此刻」撞) function bubble(t, i, allHot) { const ph = i % 2 === 0 && t.ph; return '