From 5df6d7638cdc13addf9d6813ef253a1542da1a0c Mon Sep 17 00:00:00 2001 From: Karlcarlo Date: Fri, 2 Oct 2026 02:51:19 +0000 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E9=A2=98=E5=8E=BB=E7=BA=A2=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=E5=A2=A8=E8=89=B2=20+=20=E5=90=8C=E5=AD=95=E5=91=A8?= =?UTF-8?q?=E6=82=84=E6=82=84=E8=AF=9D=E6=94=B9=E5=90=8D=20+=20=E6=9D=A5?= =?UTF-8?q?=E4=BF=A1=E5=8D=A1=E5=86=8D=E7=9F=AD=20(v26100161)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- index.html | 8 ++++---- js/app.js | 8 ++++---- mama-box.css | 10 ++++++++++ 3 files changed, 18 insertions(+), 8 deletions(-) diff --git a/index.html b/index.html index c2da8fa..dfeef31 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ 兜爸心选 · 孕育陪伴 - + @@ -285,7 +285,7 @@ ② 「你今天还没数 ›」改成邀请:「小米粒在等你,陪它数一数 ›」,做过了就是「你今天也陪它数过啦 ✓」; ③ 同周悄悄话 #whWall:横滑的小纸条,只能「抱抱」不能评论,没有昵称头像。数据 GET /whisper(app.js whisperWall())。 拉到悄悄话时滚动动态 #plFeed 让位(一块地方只讲一件事),拉不到就还是滚动动态。 --> -
+
此刻 @@ -300,9 +300,9 @@ -
diff --git a/js/app.js b/js/app.js index 04eb9b7..4da9aee 100644 --- a/js/app.js +++ b/js/app.js @@ -3,7 +3,7 @@ (function () { 'use strict'; /* 页面版本号(YYMMDD+序号):显示在「关于兜爸心选」页底部;bump 时同步 head 注释与 ?v= */ - var VER = '26100160'; + var VER = '26100161'; const $ = (s, c) => (c || document).querySelector(s); const $$ = (s, c) => Array.from((c || document).querySelectorAll(s)); @@ -3453,7 +3453,7 @@ }); $('#whSay').addEventListener('click', () => { if (!data) return; - if (!oid() || !data.canPost) { toast('填好预产期,就能和同周妈妈说悄悄话啦'); return; } + if (!oid() || !data.canPost) { toast('填好预产期,就能和同孕周妈妈说悄悄话啦'); return; } if (!data.left) { toast('今天已经说了 3 句啦,明天再来'); return; } ta.value = ''; ta.maxLength = data.maxLen || 40; @@ -3492,7 +3492,7 @@ paintPage(); closeModal(); $('#whpScroll').scrollTo({ top: $('#whpFlow').offsetTop - 80, behavior: 'smooth' }); - toast('发出去啦,同周妈妈会给你抱抱的'); + toast('发出去啦,同孕周妈妈会给你抱抱的'); }) .catch(() => toast('网络不太好,再试一次')) .then(() => { busy = false; btn.disabled = false; btn.textContent = '悄悄发出'; }); @@ -3529,7 +3529,7 @@ function rowHTML(f) { /* 一行:小头像 + 「同周妈妈 · 刚刚」+ 动作(数字标色)。原文「孕 29 周的妈妈 数完胎动……」按「的妈妈 」切 */ const t = String(f.text || ''), i = t.indexOf('的妈妈 '); - const who = peerMode ? '同周妈妈' : (i > 0 ? t.slice(0, i + 3) : '一位妈妈'), what = i > 0 ? t.slice(i + 4) : t; + const who = peerMode ? '同孕周妈妈' : (i > 0 ? t.slice(0, i + 3) : '一位妈妈'), what = i > 0 ? t.slice(i + 4) : t; return '
' + momAva(strSeed(t + (f.ago || ''))) + '' + '' + esc(who) + ' · ' + esc(f.ago || '刚刚') + '' + esc(what).replace(/(\d+)/g, '$1') + '
'; diff --git a/mama-box.css b/mama-box.css index 6fcf1b8..0f04f85 100644 --- a/mama-box.css +++ b/mama-box.css @@ -3674,3 +3674,13 @@ a.skip:focus{left:16px;top:16px} .letter-card .lc-body{flex:0 1 auto} .letter-card .lc-title{font-size:14.5px} .letter-card .lc-desc{font-size:11.5px;max-width:170px} + +/* ================= 标题去红 + 来信卡再短(2026-10-02)================= + 用户:「孕 30 周的颜色不要变成红色,统一一下标题的颜色……整体页面的红色太多了,反而不突出」。 + 首页各模块标题里的孕周/数字一律跟标题同色(墨色),红色只留给真正要点的按钮和角标。 */ +.pt-wk,.gift2 .sh-title [data-wk],.pulse .pl-title b{color:var(--ink)} +.pt-title .pt-wk::after{background:rgba(120,100,90,.3)} +.letter-card{min-width:0;max-width:250px} +.letter-card .lc-desc{max-width:150px} +/* 「此刻」两个字也回墨色,只留前面那颗跳动的小红点表示“正在发生” */ +.pl-live{color:var(--ink)}