标题去红统一墨色 + 同孕周悄悄话改名 + 来信卡再短 (v26100161)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<title>兜爸心选 · 孕育陪伴</title>
|
||||
<!-- V:26100160 缓存版本标记:改 css/js 时同步 bump 该值(与 js/app.js 的 VER 同源),静态资源按 mtime 走 ETag 自动刷新 -->
|
||||
<!-- V:26100161 缓存版本标记:改 css/js 时同步 bump 该值(与 js/app.js 的 VER 同源),静态资源按 mtime 走 ETag 自动刷新 -->
|
||||
<link rel="stylesheet" href="mama-box.css">
|
||||
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
|
||||
<!-- 共享助手:授权/跳商城/位置上报(分享卡片同步,见 docs/h5-auth-standard.md 第四节) -->
|
||||
@@ -285,7 +285,7 @@
|
||||
② 「你今天还没数 ›」改成邀请:「小米粒在等你,陪它数一数 ›」,做过了就是「你今天也陪它数过啦 ✓」;
|
||||
③ 同周悄悄话 #whWall:横滑的小纸条,只能「抱抱」不能评论,没有昵称头像。数据 GET /whisper(app.js whisperWall())。
|
||||
拉到悄悄话时滚动动态 #plFeed 让位(一块地方只讲一件事),拉不到就还是滚动动态。 -->
|
||||
<div class="pulse hide" id="pulse" role="region" aria-label="此刻,同周妈妈们">
|
||||
<div class="pulse hide" id="pulse" role="region" aria-label="此刻,同孕周妈妈们">
|
||||
<div class="pl-head">
|
||||
<span class="pl-live"><i></i>此刻</span>
|
||||
<span class="pl-title" id="plTitle"></span>
|
||||
@@ -300,9 +300,9 @@
|
||||
<!-- 2026-10-02 二改(用户:「此刻有一点点乱……悄悄话点进去,前端一个很简洁、轻量化的入口,
|
||||
点进去是整个悄悄话的大页面,设计炫酷一点、有创意、视觉有冲击力」):
|
||||
首页只留一条入口(一句轮播的悄悄话 + 条数),横滑纸条带挪进全屏页 #whPage。 -->
|
||||
<button class="wh-entry hide" id="whWall" type="button" aria-label="打开同周悄悄话">
|
||||
<button class="wh-entry hide" id="whWall" type="button" aria-label="打开同孕周悄悄话">
|
||||
<span class="we-ico" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M5 18.5V7.8A2.8 2.8 0 017.8 5h8.4A2.8 2.8 0 0119 7.8v5.4a2.8 2.8 0 01-2.8 2.8H9.2z" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linejoin="round"/><path d="M9 10.5h6" stroke="currentColor" stroke-width="1.9" stroke-linecap="round"/></svg></span>
|
||||
<span class="we-txt"><b>同周悄悄话</b><span class="we-roll" id="weRoll"></span></span>
|
||||
<span class="we-txt"><b>同孕周悄悄话</b><span class="we-roll" id="weRoll"></span></span>
|
||||
<span class="we-go" id="weGo"></span>
|
||||
</button>
|
||||
<div class="pl-feed hide" id="plFeed"><div class="pl-track" id="plTrack"></div></div>
|
||||
|
||||
@@ -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 '<div class="pl-row"><span class="pr-ava">' + momAva(strSeed(t + (f.ago || ''))) + '</span>' +
|
||||
'<span class="pr-who">' + esc(who) + ' · ' + esc(f.ago || '刚刚') + '</span><span class="pr-do">' +
|
||||
esc(what).replace(/(\d+)/g, '<em>$1</em>') + '</span></div>';
|
||||
|
||||
10
mama-box.css
10
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)}
|
||||
|
||||
Reference in New Issue
Block a user