diff --git a/guangchang/index.html b/guangchang/index.html index a320aa4..8b3c8fc 100644 --- a/guangchang/index.html +++ b/guangchang/index.html @@ -1079,9 +1079,10 @@ html.night .gtg button.on{background:#F2725B;border-color:#F2725B;color:#fff} /* 11-03 用户:评论要后台审核通过才对外公开。服务器 /plaza/comments:list = 别人已通过的;mine = 我在这篇下发的(含审核中 / 未通过)。 ME.cm 里没有 id 的是 11-03 以前只存本机的旧评论,从没公开过,照旧只给自己看(标「仅自己可见」)。 */ var RC = {}; + /* 11-07 用户:评论、回复一定要审核通过才显示,自己也不显示「审核中」—— 只留已通过的;本机旧评论(从没审过)也不再显示 */ var myCm = function (id) { - var old = (ME.cm[id] || []).filter(function (c) { return !c.id; }).map(function (c) { return { t: c.t, ts: c.ts, s: c.s, st: 'local' }; }); - var srv = RC[id] ? RC[id].mine.map(function (c) { return { id: c.id, t: c.text, ts: c.at, s: c.stage, st: c.status, why: c.reason, parent: c.parent, to: c.parentName, img: c.images }; }) : []; + var old = []; + var srv = RC[id] ? RC[id].mine.filter(function (c) { return c.status === 'approved'; }).map(function (c) { return { id: c.id, t: c.text, ts: c.at, s: c.stage, st: c.status, why: c.reason, parent: c.parent, to: c.parentName, img: c.images }; }) : []; return old.concat(srv.reverse()); }; var realCm = function (id) { return RC[id] ? RC[id].list : []; }; @@ -2216,7 +2217,7 @@ html.night .gtg button.on{background:#F2725B;border-color:#F2725B;color:#fff} cin.value = ''; if (CP) CP.clear(); $('#csend').disabled = true; cin.blur(); $('#bar').classList.remove('typing'); if (openId === n.id) { renderComments(n); syncBar(n); } if (!wasReply) { var w = $('#cmw'); if (w) $('#dsc').scrollTo({ top: w.offsetTop - 50, behavior: 'smooth' }); } - toast(wasReply ? '回复已提交,审核通过后大家就能看到' : '已提交,审核通过后大家就能看到'); + toast(wasReply ? '回复已提交,审核通过后才会显示' : '已提交,审核通过后才会显示'); }).catch(function () { send.busy = false; $('#csend').disabled = !canSend(); toast('网络不太好,稍后再试'); }); } diff --git a/index.html b/index.html index 066f0db..f660a12 100644 --- a/index.html +++ b/index.html @@ -9,7 +9,7 @@ 兜爸心选 · 孕育陪伴 - + @@ -2680,7 +2680,7 @@ html.night .rs-pan .rp-card{background:rgba(255,255,255,.06);border-color:rgba(2 - +