diff --git a/components/AppAvatar.vue b/components/AppAvatar.vue new file mode 100644 index 0000000..4d66b37 --- /dev/null +++ b/components/AppAvatar.vue @@ -0,0 +1,31 @@ + + + + + diff --git a/components/AppButton.vue b/components/AppButton.vue index 73c770c..3fd0052 100644 --- a/components/AppButton.vue +++ b/components/AppButton.vue @@ -15,7 +15,7 @@ @click="handleClick" > - {{ label }} @@ -45,7 +45,7 @@ const handleClick = (event) => { diff --git a/components/GenealogyCard.vue b/components/GenealogyCard.vue index ee2d638..8ab8152 100644 --- a/components/GenealogyCard.vue +++ b/components/GenealogyCard.vue @@ -27,36 +27,34 @@ {{ genealogy.name }} - - {{ role }} - - + - - 更新于 {{ genealogy.updatedAt }} + + + {{ genealogy.location }} - - - - {{ genealogy.location }} - - - - {{ genealogy.memberCount }} 位成员 - + + + {{ genealogy.memberCount }} 位成员 + + + {{ role }} + 更新于 {{ genealogy.updatedAt }} @@ -82,13 +80,13 @@ const accessibleLabel = computed( diff --git a/components/PageHeader.vue b/components/PageHeader.vue index 9739712..b304984 100644 --- a/components/PageHeader.vue +++ b/components/PageHeader.vue @@ -46,7 +46,20 @@ - {{ title }} + + + 代代相传 + + {{ title }} - { .header-side { display: flex; + flex: 0 0 120rpx; width: 120rpx; min-height: 88rpx; align-items: center; @@ -179,6 +193,10 @@ const handleBack = () => { .header-side--right { justify-content: flex-end; } +.page-header:not(.page-header--root) .header-side--right { + flex-basis: 152rpx; + width: 152rpx; +} .header-icon-button { display: grid; @@ -246,9 +264,12 @@ const handleBack = () => { border: 0; background: transparent; color: #ffe3a7; - font-size: 27rpx; + font-size: clamp(16px, 27rpx, 20px); line-height: normal; text-align: right; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } .header-action-placeholder { width: 100%; @@ -280,12 +301,45 @@ const handleBack = () => { .header-back--pressed { opacity: 0.62; } +.header-project-lockup { + position: absolute; + top: calc(var(--status-bar-height, 0px) + 52rpx); + left: 112rpx; + z-index: 3; + display: flex; + align-items: center; + gap: 7rpx; + transform: translateY(-50%); + pointer-events: none; +} + +.header-project-lockup--root { + top: calc(var(--status-bar-height, 0px) + 62rpx); + left: 116rpx; +} + +.header-project-lockup__logo { + width: 34rpx; + height: 34rpx; + flex: 0 0 auto; +} + +.header-project-name { + color: #ffe3a7; + font-family: "STKaiti", "KaiTi", serif; + font-size: clamp(11px, 19rpx, 14px); + font-weight: 700; + letter-spacing: 3rpx; + line-height: 1; + white-space: nowrap; +} .header-title { + min-width: 0; flex: 1; overflow: hidden; color: #fff9ed; font-family: serif; - font-size: 35rpx; + font-size: clamp(19px, 35rpx, 24px); font-weight: 700; letter-spacing: 4rpx; text-align: center; @@ -296,7 +350,7 @@ const handleBack = () => { .page-header--root .header-title { color: #ffe3a7; font-family: "STKaiti", "KaiTi", serif; - font-size: 48rpx; + font-size: clamp(24px, 48rpx, 30px); letter-spacing: 5rpx; transform: translateY(2rpx); } diff --git a/docs/迭代进度记录-2026-07-31-完成70%.md b/docs/迭代进度记录-2026-07-31-完成70%.md new file mode 100644 index 0000000..ae0c14a --- /dev/null +++ b/docs/迭代进度记录-2026-07-31-完成70%.md @@ -0,0 +1,33 @@ +# 家谱 App 迭代进度记录(完成 70%) + +日期:2026-07-31 +当前分支:`main` + +## 本轮已完成 + +- 完成全项目字体可读性与长文本换行治理,优先保证手机端、长辈用户的阅读体验。 +- 调整公共页头:项目名称“代代相传”以“Logo + 名称”组合呈现,页面功能标题保持居中;认证页与“我的”页同步使用该品牌组合。 +- 接入默认头像:男性使用男童国风头像,女性使用唐装女性头像;未选择性别时默认使用男性头像。 +- 完善成员资料展示,隐藏不应面向普通用户展示的业务用户与内部人物编号信息。 +- 修复“我的”、家谱、家族、人物录、通知等模块中已发现的文字截断、状态提示与空/错误态表达问题。 +- 保留 T02 世系谱的参考项目结构,仅做兼容性和可读性处理,未改变其核心展示逻辑。 +- 新增并通过默认头像、个人资料、消息中心等重点契约检查。 + +## 当前状态 + +- 整体功能与视觉治理进度:约 70%。 +- 页面入口已完成全局品牌标识覆盖;业务页面仍可继续在真机/模拟器逐页复核细节。 +- 相册图片是否能展示取决于接口是否返回可访问的图片地址;当前不伪造图片链接。 + +## 在另一台电脑运行 + +1. 拉取 `main` 分支的最新代码。 +2. 使用 HBuilderX 导入项目根目录 `jiapuapp`。 +3. 等待 HBuilderX 完成编译后,选择“运行到 Android App 基座”并连接 MuMu 或真机。 +4. 项目所需头像和页面静态资源已随代码提交,不需要单独拷贝资源文件。 + +## 后续建议 + +- 在目标设备尺寸上复核页头品牌组合、表单按钮与底部导航的间距。 +- 继续覆盖未登录、空数据、接口异常和超长文本等状态。 +- 按接口返回能力补充相册图片的真实访问地址或签名 URL。 diff --git a/pages/auth/a01-entry.vue b/pages/auth/a01-entry.vue index 2b440f7..bbac8dc 100644 --- a/pages/auth/a01-entry.vue +++ b/pages/auth/a01-entry.vue @@ -188,9 +188,10 @@ -