From 7092d3590eeba9da98d74c061e1f4e8cca8ccfbd Mon Sep 17 00:00:00 2001 From: deploy Date: Sun, 8 Nov 2026 01:06:06 +0000 Subject: [PATCH] =?UTF-8?q?=E6=98=9F=E7=A9=BA=E9=A1=B5=E6=82=84=E6=82=84?= =?UTF-8?q?=E8=AF=9D=EF=BC=9A=E5=8E=9F=E6=A0=B7=E7=94=A8=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E8=AF=9D=E6=9C=AF=E5=8F=91=E7=9A=84=E5=85=8D?= =?UTF-8?q?=E5=AE=A1=EF=BC=88=E5=90=8E=E7=AB=AF=E5=88=A4=EF=BC=89=EF=BC=8C?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E6=96=87=E6=A1=88=E5=8C=BA=E5=88=86=EF=BC=88?= =?UTF-8?q?v26110801=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 --- index.html | 8 ++++---- js/app.js | 4 ++-- js/wh-cm.js | 8 +++++--- js/wh-themes.js | 3 ++- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/index.html b/index.html index 18027ca..313d184 100644 --- a/index.html +++ b/index.html @@ -9,7 +9,7 @@ 兜爸心选 · 孕育陪伴 - + @@ -2686,8 +2686,8 @@ html.night .rs-pan .rp-card{background:rgba(255,255,255,.06);border-color:rgba(2 - - + + - + diff --git a/js/app.js b/js/app.js index 29b9ede..d1b4143 100644 --- a/js/app.js +++ b/js/app.js @@ -3,7 +3,7 @@ (function () { 'use strict'; /* 页面版本号(YYMMDD+序号):显示在「关于兜爸心选」页底部;bump 时同步 head 注释与 ?v= */ - var VER = '26110653'; + var VER = '26110801'; const $ = (s, c) => (c || document).querySelector(s); const $$ = (s, c) => Array.from((c || document).querySelectorAll(s)); @@ -5063,7 +5063,7 @@ /* 11-07 悄悄话第 2 步(用户定):星空页「说一句」并入留言区 —— 发成置顶笔记下的留言(先审后发),赞够门槛自动挂星 */ if (window.MBWhCm) { MBWhCm.post(t, data.week) - .then(m => { if (m) { toast(m); return; } closeModal(); toast('已发出,审核通过后大家就能看到'); }) + .then(m => { if (m) { toast(m); return; } closeModal(); toast(MBWhCm.lastStatus && MBWhCm.lastStatus() === 'approved' ? '已发出,大家都能看到啦' : '已发出,审核通过后大家就能看到'); }) .then(() => { busy = false; btn.disabled = false; btn.textContent = '悄悄发出'; }); return; } diff --git a/js/wh-cm.js b/js/wh-cm.js index ff227ed..db45ea8 100644 --- a/js/wh-cm.js +++ b/js/wh-cm.js @@ -322,6 +322,7 @@ method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(body) }).then(function (r) { return r.json(); }).then(function (j) { if (!j || j.code !== 200 || !j.result) return (j && j.message) || '没发出去,再试一次'; + LAST_ST = j.result.status; /* 11-08 星空页选系统默认话术发的免审,直接 approved(后端判),提示不说「审核」 */ if (j.result.status === 'rejected') return null; /* 审核中的也放进列表(标「审核中」,只有自己看得到) */ if (reply) { RREP.push(repOf(j.result, 1)); rerender(reply); } else { @@ -334,7 +335,7 @@ return null; }).catch(function () { return '网络不太好,再试一次'; }); } - var busy = false; + var busy = false, LAST_ST = ''; function send() { var t = inp.value.trim(); if (t.length < 2) { toast('多写一两个字吧'); return; } @@ -344,7 +345,7 @@ busy = false; sendB.disabled = false; if (msg) { toast(msg); return; } inp.value = ''; inp.blur(); setReply(null); - toast(REPLY0 ? '回复已发出,审核通过后大家就能看到' : '已发出,审核通过后大家就能看到'); + toast(LAST_ST === 'approved' ? '已发出,大家都能看到啦' : REPLY0 ? '回复已发出,审核通过后大家就能看到' : '已发出,审核通过后大家就能看到'); }); } sendB.addEventListener('click', send); @@ -438,12 +439,13 @@ /* 11-07 用户:只留「被赞 3 次变成星星」,明显一点 */ ld.innerHTML = '' + '被赞 ' + STAR_N + ' 次,
你的话就变成一颗星星
'; - var lf = document.getElementById('whLeft'); if (lf) lf.textContent = '审核通过后,可以转给朋友帮你点赞'; + var lf = document.getElementById('whLeft'); if (lf) lf.textContent = '点一句直接发出;自己写的审核通过后公开'; } if (M && !M.querySelector('.wms-sky')) M.insertAdjacentHTML('afterbegin', ''); window.MBWhCm = { fillModal: fillModal, starLikes: function () { return STAR_N; }, + lastStatus: function () { return LAST_ST; }, post: function (text, week) { return post(text, week, null).then(function (msg) { if (!msg) setTimeout(function () { snap('half'); }, 400); return msg; }); }, diff --git a/js/wh-themes.js b/js/wh-themes.js index 7688618..b60f520 100644 --- a/js/wh-themes.js +++ b/js/wh-themes.js @@ -1,7 +1,8 @@ /* 孕妈悄悄话 · 每周话题表(2026-11-07 从 app.js 抽出来,首页和孕妈广场共用)。 一条 = 从 from(北京时间那周的周一)起生效,直到下一条的 from;取「from ≤ 今天」的最后一条,没配新话题时沿用上一周的。 换话题 = 往表尾追加一条。后端将来若在 /whisper 返回 theme(同结构),以后端为准。 - presets 只是「不知道说什么?点一句」的示范句,发出去照常走微信内容安全审核。 */ + presets =「不知道说什么?点一句」的示范句。11-08 用户定:原样发出的免审直接通过(自己打字/改过的照常先审), + 判断在后端 box_app services/mama_box_plaza_comment_serv.py WH_THEME_PRESETS —— 改话术 / 换话题要同步改那里。 */ window.MB_WH_THEMES = [ /* 2026-10-02 用户:本周话题由「对宝宝说的话」改成「对老公说的话」;2026-11-01 用户:改成「对未来宝宝说的话」 */ { from: '2026-09-28', name: '对未来宝宝说的话', lines: ['对未来宝宝', '说的话'], /* lines:广场置顶笔记封面大字的分行 */