悄悄话:引导箭头左移 30px 对准「···」,留言标题后小头像 8 个 (v26110636)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
deploy
2026-11-07 05:37:25 +00:00
parent f2892ba640
commit 05e9c9fe01
5 changed files with 11 additions and 11 deletions

View File

@@ -3,7 +3,7 @@
(function () {
'use strict';
/* 页面版本号(YYMMDD+序号):显示在「关于兜爸心选」页底部;bump 时同步 head 注释与 ?v= */
var VER = '26110635';
var VER = '26110636';
const $ = (s, c) => (c || document).querySelector(s);
const $$ = (s, c) => Array.from((c || document).querySelectorAll(s));

View File

@@ -93,8 +93,8 @@ p.wcm-mf{display:block;color:#FFC07A}
/* 转发引导 */
.wsh-g{position:absolute;inset:0;z-index:20;background:rgba(8,5,20,.72);animation:wshIn .25s ease}
@keyframes wshIn{from{opacity:0}}
/* 11-07 用户:箭头要指到小程序右上角胶囊的「···」(胶囊在页面顶上、右边 7px 起宽 87px,「···」在它左半边)→ 箭头尖顶到页面最上沿、对准右边 ~70px */
.wsh-arrow{position:absolute;right:48px;top:calc(2px + env(safe-area-inset-top));width:46px;height:84px;
/* 11-07 用户:箭头要指到小程序右上角胶囊的「···」(胶囊在页面顶上、右边 7px 起宽 87px,「···」在它左半边)→ 箭头尖顶到页面最上沿、对准右边 ~70px;用户实测还指在关闭键上,再往左 30px */
.wsh-arrow{position:absolute;right:78px;top:calc(2px + env(safe-area-inset-top));width:46px;height:84px;
background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 84' fill='none' stroke='%23FFD9A0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 80C6 52 18 24 33 6' stroke-dasharray='6 6'/%3E%3Cpath d='M22 10.5L33 4l-1 13'/%3E%3C/svg%3E") center/contain no-repeat;animation:wshA 1.2s ease-in-out infinite}
@keyframes wshA{50%{transform:translateY(-6px)}}
.wsh-c{position:absolute;left:28px;right:28px;top:120px;padding:22px 20px 18px;border-radius:22px;text-align:center;color:#F4ECFF;
@@ -166,5 +166,5 @@ p.wcm-mf{display:block;color:#FFC07A}
.wcm-nm .wcm-pend{margin-left:0}
.wcs-avs{display:inline-flex;align-self:center;margin-left:-2px}
.wcs-avs:empty{display:none}
.wcs-avs img{width:20px;height:20px;border-radius:50%;object-fit:cover;border:1.5px solid #3A2C57;background:#4A3A6A}
.wcs-avs img{width:18px;height:18px;border-radius:50%;object-fit:cover;border:1.5px solid #3A2C57;background:#4A3A6A}
.wcs-avs img+img{margin-left:-7px}

View File

@@ -69,7 +69,7 @@
function repOf(c, me) { return { p: c.parent, n: me ? '我' : (c.nickname || '孕妈'), me: me, to: c.parentName, t: c.text, ts: c.at, st: me ? c.status : '' }; }
function load() {
if (loading || SIM) return; loading = true;
fetch('guangchang/cm.json?v=26110635').then(function (r) { return r.json(); }).then(function (j) {
fetch('guangchang/cm.json?v=26110636').then(function (r) { return r.json(); }).then(function (j) {
var PP = j.p;
SIM = (j.c[PID] || []).map(function (c, k) {
var p = PP[c[0]];
@@ -179,9 +179,9 @@
function total() { return (REAL ? REAL.length : 0) + (SIM ? SIM.length : 0); }
function paintGo() {
document.getElementById('wcmN').textContent = total() ? total() + ' 条' : '';
/* 11-07 用户:「妈妈们的留言」后面加小头像 —— 取最热的 3 位 */
/* 11-07 用户:「妈妈们的留言」后面加 6~8 个小头像 —— 取最热的 8 位 */
var av = document.getElementById('wcmAv');
if (av && SIM && SIM.length && !av.firstChild) av.innerHTML = SIM.slice().sort(function (a, b) { return b.likes - a.likes; }).slice(0, 3)
if (av && SIM && SIM.length && !av.firstChild) av.innerHTML = SIM.slice().sort(function (a, b) { return b.likes - a.likes; }).slice(0, 8)
.map(function (c) { return '<img src="' + esc(c.av) + '" alt="" onerror="this.remove()">'; }).join('');
document.getElementById('wcmRuleN').textContent = STAR_N;
}