From 55012dc1ff90eee6f3c31e114bd68c2f2c548d5f Mon Sep 17 00:00:00 2001 From: deploy Date: Sat, 7 Nov 2026 02:16:49 +0000 Subject: [PATCH] =?UTF-8?q?=E6=82=84=E6=82=84=E8=AF=9D=EF=BC=9A=E5=B9=BF?= =?UTF-8?q?=E5=9C=BA=E7=BD=AE=E9=A1=B6=E7=AC=94=E8=AE=B0=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E8=BF=9B=E6=98=9F=E7=A9=BA=E9=A1=B5=EF=BC=8C=E7=95=99=E8=A8=80?= =?UTF-8?q?=E6=8C=82=E5=9C=A8=E6=98=9F=E7=A9=BA=E9=A1=B5=E3=80=8C=E8=AF=B4?= =?UTF-8?q?=E4=B8=80=E5=8F=A5=E6=82=84=E6=82=84=E8=AF=9D=E3=80=8D=E4=B8=8B?= =?UTF-8?q?=E9=9D=A2=EF=BC=88=E6=B7=B1=E8=89=B2=E6=98=9F=E7=A9=BA=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=EF=BC=89=EF=BC=9B=E6=8A=95=E7=A8=BF=E8=BD=AE=E6=92=AD?= =?UTF-8?q?=E5=8E=BB=E6=8E=89=E7=A4=BC=E7=89=A9=E5=9B=BE=E6=A0=87=E5=92=8C?= =?UTF-8?q?=E3=80=8C=E6=88=91=E4=B9=9F=E6=8A=95=E7=A8=BF=E3=80=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- guangchang/index.html | 15 +++++-- index.html | 2 + js/wh-cm.css | 35 +++++++++++++++++ js/wh-cm.js | 91 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 139 insertions(+), 4 deletions(-) create mode 100644 js/wh-cm.css create mode 100644 js/wh-cm.js diff --git a/guangchang/index.html b/guangchang/index.html index a121288..a7bd3ff 100644 --- a/guangchang/index.html +++ b/guangchang/index.html @@ -486,7 +486,7 @@ button{font:inherit;color:inherit;border:0;background:none;padding:0;cursor:poin .rww .rwl{margin:0} /* 11-07 用户:祈福树下面「投稿被选中得 ¥30…」一条 → 改成轮播「哪些妈妈的笔记上了广场」:真实投稿(审核通过)排前, 不够时用广场里点赞高的笔记补;只说「上了广场 / 入选精选」,不写某人领了多少钱。右边「我也投稿」= 原来的规则弹层 */ -.rwc{display:flex;align-items:center;gap:8px;height:40px;padding:0 6px 0 10px;border-radius:12px;background:linear-gradient(100deg,#FFF1E8,#FFE6E6)} +.rwc{display:flex;align-items:center;gap:8px;height:40px;padding:0 12px;border-radius:12px;background:linear-gradient(100deg,#FFF1E8,#FFE6E6)} .rwc>.ic{flex:none;width:16px;height:16px;color:#F2553A} .rwv{position:relative;flex:1;min-width:0;height:40px;overflow:hidden} .rwi{position:absolute;left:0;right:0;top:0;display:flex;align-items:center;gap:6px;height:40px;border:0;background:none;padding:0;font:inherit;text-align:left;color:#8A4B36;font-size:12px; @@ -1701,7 +1701,7 @@ html.night .gtg button.on{background:#F2725B;border-color:#F2725B;color:#fff} 标签作为唯一入口(末尾加「全部话题 ›」);选中标签时标签下露出这一类的 2~3 个热门话题(用户同意);投稿奖励一行挪到「大家在聊」上面。 话题本身不变:投稿选话题、帖子卡上的 #话题#、话题详情页照旧。分类视图(catF)仍是原来的热门话题列表。 */ el.innerHTML = qifuHTML() + - '
' + rwItem(0) + '
'; + '
' + rwItem(0) + '
'; /* 11-07 用户:去掉礼物图标和「我也投稿」 */ rwRun(); fh.className = 'shtg'; fh.innerHTML = '

大家在聊

孕妈们的分享
' + @@ -2066,9 +2066,16 @@ html.night .gtg button.on{background:#F2725B;border-color:#F2725B;color:#fff} $('#bcm span').textContent = cfmt(cmN(n)); if (popK) { var b = popK === 'lv' ? lv : fv; b.classList.remove('pop'); void b.offsetWidth; b.classList.add('pop'); } } + /* 先把本页地址换成不带 ?n= 的广场列表,星空页关掉 history.back() 回到列表,不会再弹回星空 */ + function goStar() { + var q = new URLSearchParams(location.search); ['t', 'n', 'c'].forEach(function (k) { q.delete(k); }); + var qs = q.toString(); + try { history.replaceState(null, '', location.pathname + (qs ? '?' + qs : '') + location.hash); } catch (e) {} + q.set('wh', '1'); location.href = '../?' + q + location.hash; + } function openNote(id, push) { var n = NBY[id]; if (!n) return; - if (n.pin) return openPin(n, push); + if (n.pin) return goStar(); /* 11-07 用户:点置顶笔记直接进星空页,留言在星空页下面(openPin 详情页不再用) */ $('#dt').classList.remove('is-pin'); var t = TBY[n.t]; openId = id; @@ -2162,7 +2169,7 @@ html.night .gtg button.on{background:#F2725B;border-color:#F2725B;color:#fff} var rr = e.target.closest('[data-rk]'); if (rr) { REPLY = { k: rr.dataset.rk, n: rr.dataset.rn }; cin.placeholder = '回复 ' + REPLY.n + ':'; cin.focus(); return; } if (e.target.closest('#cmgo')) { REPLY = null; cin.placeholder = (NBY[openId] || {}).pin ? PIN_PH : '说点什么…'; $('#cin').focus(); } - if (e.target.closest('[data-star]')) { haptic(); var q = new URLSearchParams(location.search); ['t', 'n', 'c'].forEach(function (k) { q.delete(k); }); q.set('wh', '1'); location.href = '../?' + q + location.hash; } + if (e.target.closest('[data-star]')) { haptic(); goStar(); } }); $('#blk').addEventListener('click', function () { var n = NBY[openId]; if (!n) return; diff --git a/index.html b/index.html index ad5d940..2b76ab4 100644 --- a/index.html +++ b/index.html @@ -12,6 +12,7 @@ + @@ -2679,6 +2680,7 @@ html.night .rs-pan .rp-card{background:rgba(255,255,255,.06);border-color:rgba(2 +