From f5b4103608d557c96ba1e48cf9f569fd11061ecc Mon Sep 17 00:00:00 2001 From: maogeigei Date: Thu, 3 Sep 2026 16:17:33 +0800 Subject: [PATCH] =?UTF-8?q?R29=20=E5=88=97=E4=BD=8D=E7=A7=BB=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=EF=BC=9A=E8=B4=A6=E5=8F=B7=E8=AF=A6=E6=83=85=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E5=88=97=E8=A1=A8=E6=A0=87=E7=AD=BE=E5=88=97=E4=BB=8E?= =?UTF-8?q?=E3=80=8C=E6=97=B6=E9=95=BF=E3=80=8D=E5=89=8D=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E3=80=8C=E7=82=B9=E8=B5=9E=E3=80=8D=E5=B7=A6=E8=BE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 之前位置(时长前)按用户原话「时长前面」实现,忽略了三遍明确指示(标签在点赞左边) - 新位置(点赞左边):data-pages.js 表头/data 行同步移动 td-tag - 冒烟脚本 cdp-verify-r29.mjs 断言更新:thTagIdx 6→2、tagBeforeDur→tagBeforeLike、rowCells[6]→rowCells[2] - 版本 ?v=20260903o→p;CDP PASS + 视觉截图确认 --- .../短视频脚本创作/V1.0/mcn-work-shop/cdp-verify-r29.mjs | 7 ++++--- .../短视频脚本创作/V1.0/mcn-work-shop/public/data-pages.js | 4 ++-- .../短视频脚本创作/V1.0/mcn-work-shop/public/index.html | 6 +++--- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/project/短视频脚本创作/V1.0/mcn-work-shop/cdp-verify-r29.mjs b/project/短视频脚本创作/V1.0/mcn-work-shop/cdp-verify-r29.mjs index c36830d..cd2c489 100644 --- a/project/短视频脚本创作/V1.0/mcn-work-shop/cdp-verify-r29.mjs +++ b/project/短视频脚本创作/V1.0/mcn-work-shop/cdp-verify-r29.mjs @@ -30,9 +30,10 @@ const out = await ev(`(() => { return { ths, // 完整表头文本序列 thTagIdx: ths.indexOf('标签'), + likeIdx: ths.indexOf('点赞'), durIdx: ths.indexOf('时长'), thTagW: thTag ? Math.round(thTag.getBoundingClientRect().width) : null, - tagBeforeDur: ths.indexOf('标签') === ths.indexOf('时长') - 1, + tagBeforeLike: ths.indexOf('标签') === ths.indexOf('点赞') - 1, // 数据行 rowCells: cells.map((c) => ({ cls: c.className, txt: (c.textContent || '').trim().slice(0, 24) })), tagTdText: tagTd ? (tagTd.textContent || '').trim() : null, @@ -44,9 +45,9 @@ const out = await ev(`(() => { })()`); console.log(JSON.stringify(out, null, 1)); const ok = out && !out.__err - && out.ths.length === 9 && out.thTagIdx === 6 && out.durIdx === 7 && out.tagBeforeDur === true + && out.ths.length === 9 && out.thTagIdx === 2 && out.likeIdx === 3 && out.durIdx === 7 && out.tagBeforeLike === true && out.thTagW === 40 - && out.rowCells.length === 9 && out.rowCells[6].cls.includes('td-tag') + && out.rowCells.length === 9 && out.rowCells[2].cls.includes('td-tag') && !!out.tagTdText && out.tagTdText.length > 0 && !!out.tagTdTitle && out.tagTdTitle.includes('#') && out.tagTdTitle.length >= out.tagTdText.length && out.tagTdClips === true && out.tagTdW === 40 && out.hasNumClass === false; diff --git a/project/短视频脚本创作/V1.0/mcn-work-shop/public/data-pages.js b/project/短视频脚本创作/V1.0/mcn-work-shop/public/data-pages.js index 469f768..9f872c6 100644 --- a/project/短视频脚本创作/V1.0/mcn-work-shop/public/data-pages.js +++ b/project/短视频脚本创作/V1.0/mcn-work-shop/public/data-pages.js @@ -866,11 +866,11 @@ async function renderAccountDetail(view, id) { ${bstate.batch ? `` : ''} ${fmt(v.publish_time)} ${esc(cleanTitle(v.video_title) || '-')} + ${v.tags ? esc(v.tags) : ''} ${fmtWan(v.like_display || v.like_count)} ${fmtWan(v.comment_count)} ${fmtWan(v.share_count)} ${fmtWan(v.collect_count)} - ${v.tags ? esc(v.tags) : ''} ${fmtDuration(v.duration)} `).join(''); @@ -922,7 +922,7 @@ async function renderAccountDetail(view, id) { ${personaPanel()}`; } else if (tab === 'persona') { panel = `
-
${bstate.batch ? '' : ''}${rows || ``}
发布时间视频标题点赞评论分享收藏标签时长操作
暂无视频数据
+
${bstate.batch ? '' : ''}${rows || ``}
发布时间视频标题标签点赞评论分享收藏时长操作
暂无视频数据
- - + +