Files
jiapuapp/docs/superpowers/plans/2026-07-16-a01-brand-seal-size.md
T
2026-07-16 18:13:03 +08:00

1.8 KiB
Raw Blame History

A01 品牌 Logo 尺寸微调实施计划

For agentic workers: REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (- [ ]) syntax for tracking.

Goal: 将 A01 顶部品牌 Logo 精确缩小到 184×221rpx,其他布局保持不变。

Architecture: 继续使用现有 brand-seal.png 和绝对定位叠层,只调整页面内唯一的尺寸所有者 .brand-seal。静态契约负责防止尺寸回退,真实 H5 截图负责视觉判断。

Tech Stack: uni-app Vue、SCSS、PowerShell 契约测试、Chrome CDP 截图与运行 smoke。

Global Constraints

  • 只修改 A01 Logo 尺寸和对应契约。
  • 不使用 worktree,不执行 Git 暂存、提交、推送、重置或清理。
  • 不把 H5 截图写成 Android 或用户整页验收。

Task 1: 锁定并实现 Logo 尺寸

Files:

  • Modify: tests/a01-a02-ui-contract.ps1
  • Modify: pages/auth/a01-entry.vue

Interfaces:

  • Consumes: .brand-seal 现有样式规则和 brand-seal.png

  • Produces: 精确的 184×221rpx H5 显示槽位。

  • Step 1: 写入失败契约

在测试中解析 .brand-seal,要求 width: 184rpx;height: 221rpx;top: 64rpx;left: 50%;

  • Step 2: 确认 RED

运行:powershell.exe -NoProfile -ExecutionPolicy Bypass -File tests/a01-a02-ui-contract.ps1

预期:因页面仍为 220×264rpx 而失败。

  • Step 3: 最小实现

.brand-seal 的宽高改为:

width: 184rpx;
height: 221rpx;
  • Step 4: 验证 GREEN 与真实运行

运行 A01 静态合同、四档运行 smoke、412×915 截图和 git diff --check;人工确认 Logo 无拉伸、裁切或新的层级问题。

项目禁止 Git 操作,因此本计划不包含提交步骤。