feat(ios): 在首页展示录入、找物和社区
continuous-integration/drone/push Build is passing Details

This commit is contained in:
dongjf 2026-11-27 08:36:24 +08:00
parent 8351820d35
commit f46c16797e
4 changed files with 48 additions and 35 deletions

View File

@ -117,7 +117,7 @@
isa = XCBuildConfiguration; isa = XCBuildConfiguration;
buildSettings = { buildSettings = {
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 15; CURRENT_PROJECT_VERSION = 16;
GENERATE_INFOPLIST_FILE = YES; GENERATE_INFOPLIST_FILE = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ATLAS_API_BASE_URL = "https://api-atlas.tutudog.com"; ATLAS_API_BASE_URL = "https://api-atlas.tutudog.com";
@ -138,7 +138,7 @@
isa = XCBuildConfiguration; isa = XCBuildConfiguration;
buildSettings = { buildSettings = {
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 15; CURRENT_PROJECT_VERSION = 16;
GENERATE_INFOPLIST_FILE = YES; GENERATE_INFOPLIST_FILE = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ATLAS_API_BASE_URL = "https://api-atlas.tutudog.com"; ATLAS_API_BASE_URL = "https://api-atlas.tutudog.com";

View File

@ -30,10 +30,10 @@ struct WelcomeView: View {
var body: some View { var body: some View {
ScrollView { ScrollView {
VStack(alignment: .leading, spacing: 22) { VStack(alignment: .leading, spacing: 18) {
EntryBrand(prominent: true) EntryBrand(prominent: true)
scene scene
example featureExamples
} }
.frame(maxWidth: 460, alignment: .leading) .frame(maxWidth: 460, alignment: .leading)
.padding(.horizontal, 24) .padding(.horizontal, 24)
@ -53,23 +53,35 @@ struct WelcomeView: View {
.toolbar(.hidden, for: .navigationBar) .toolbar(.hidden, for: .navigationBar)
} }
private var example: some View { private var featureExamples: some View {
HStack(alignment: .center, spacing: 13) { VStack(spacing: 9) {
Image(systemName: "waveform") feature("智能录入", symbol: "waveform", tint: .atlasBlue,
.font(.body.weight(.semibold)) example: "数据线放在书房抽屉", detail: "说一句,见物帮你记下。")
.foregroundStyle(Color.atlasBlue) feature("找物", symbol: "magnifyingglass", tint: .teal,
.frame(width: 36, height: 36) example: "备用钥匙放哪了?", detail: "玄关 / 鞋柜 / 上层抽屉")
.background(Color.atlasBlue.opacity(0.10), in: .rect(cornerRadius: 10)) feature("社区", symbol: "bubble.left.and.bubble.right", tint: .indigo,
example: "这个硬盘盒好用吗?", detail: "分享使用感受,也可以评论和打分。")
}
}
private func feature(_ title: String, symbol: String, tint: Color, example: String, detail: String) -> some View {
HStack(alignment: .top, spacing: 12) {
Image(systemName: symbol)
.font(.subheadline.weight(.semibold))
.foregroundStyle(tint)
.frame(width: 35, height: 35)
.background(tint.opacity(0.10), in: .rect(cornerRadius: 10))
.accessibilityHidden(true) .accessibilityHidden(true)
VStack(alignment: .leading, spacing: 4) { VStack(alignment: .leading, spacing: 3) {
Text("数据线放在书房抽屉").font(.headline) Text(title).font(.caption.weight(.semibold)).foregroundStyle(.secondary)
Text("说一句,见物帮你记下。").font(.subheadline).foregroundStyle(.secondary) Text(example).font(.subheadline.weight(.semibold))
Text(detail).font(.footnote).foregroundStyle(.secondary)
} }
.accessibilityElement(children: .combine)
} }
.padding(14) .padding(11)
.frame(maxWidth: .infinity, alignment: .leading) .frame(maxWidth: .infinity, alignment: .leading)
.background(Color(uiColor: .secondarySystemGroupedBackground), in: .rect(cornerRadius: 15)) .background(Color(uiColor: .secondarySystemGroupedBackground), in: .rect(cornerRadius: 15))
.accessibilityElement(children: .combine)
} }
private var signInLink: some View { private var signInLink: some View {
@ -89,10 +101,16 @@ struct WelcomeView: View {
} }
private var scene: some View { private var scene: some View {
Color.clear
.aspectRatio(1.72, contentMode: .fit)
.overlay {
GeometryReader { frame in
Image("WelcomeTray") Image("WelcomeTray")
.resizable() .resizable()
.aspectRatio(contentMode: .fit) .scaledToFill()
.frame(maxWidth: .infinity) .frame(width: frame.size.width, height: frame.size.height, alignment: .bottom)
}
}
.clipShape(.rect(cornerRadius: 21)) .clipShape(.rect(cornerRadius: 21))
.accessibilityHidden(true) .accessibilityHidden(true)
} }

View File

@ -2,7 +2,7 @@
## 首页 ## 首页
见物标识在顶部,照片下方用「数据线放在书房抽屉」举例。底部可以进入自己的空间。首次使用时可以新建空空间,或在空间列表里接受家人的邀请。 见物标识在顶部。照片下方用三张示例卡介绍智能录入、找物和社区。底部可以进入自己的空间。首次使用时可以新建空空间,或在空间列表里接受家人的邀请。
## 录入 ## 录入

View File

@ -8,7 +8,7 @@
| 页面 | 布局与交互 | | 页面 | 布局与交互 |
| --- | --- | | --- | --- |
| 欢迎 | 品牌置顶。场景照片下展示一个语音录入示例,底部入口进入原生登录。 | | 欢迎 | 品牌置顶。照片下展示智能录入、找物和社区的示例,底部入口进入原生登录。 |
| 登录 | 系统返回按钮、小品牌行、大标题和两个带明确标签的原生输入框。密码默认隐藏,可切换显示。 | | 登录 | 系统返回按钮、小品牌行、大标题和两个带明确标签的原生输入框。密码默认隐藏,可切换显示。 |
| 找物与收藏 | 搜索框贴近标题,缩略图左对齐,物品名和完整位置路径置于同一行组。保留可见的空结果和清除搜索动作。 | | 找物与收藏 | 搜索框贴近标题,缩略图左对齐,物品名和完整位置路径置于同一行组。保留可见的空结果和清除搜索动作。 |
| 详情 | 标题、照片、完整位置路径依次展示。移位和编辑靠近位置,按角色展示可用动作。 | | 详情 | 标题、照片、完整位置路径依次展示。移位和编辑靠近位置,按角色展示可用动作。 |
@ -18,18 +18,13 @@
## 首次打开 ## 首次打开
见物标识从屏幕安全区顶部起排。照片保留原有构图,示例独立放在照片下方,登录入口贴近底部安全区。 [首页主图](../../apps/ios/ItemAtlas/Assets.xcassets/WelcomeTray.imageset/WelcomeTray.jpg) 见物标识从屏幕安全区顶部起排。照片用横幅构图,下方三张示例卡依次介绍功能。登录入口贴近底部安全区。 [首页主图](../../apps/ios/ItemAtlas/Assets.xcassets/WelcomeTray.imageset/WelcomeTray.jpg)
```text | 示例 | 内容 |
[标识] 见物 | --- | --- |
| 智能录入 | 「数据线放在书房抽屉」。说一句,见物帮你记下。 |
[ 玄关托盘里的物品 ] | 找物 | 「备用钥匙放哪了?」示例结果是「玄关 / 鞋柜 / 上层抽屉」。 |
| 社区 | 「这个硬盘盒好用吗?」可以看或分享使用感受,也可以评论和打分。 |
数据线放在书房抽屉
说一句,见物帮你记下。
[ 进入我的空间 ]
```
- 登录后加载空间。新账号可新建空空间,或在空间列表接受邀请。 - 登录后加载空间。新账号可新建空空间,或在空间列表接受邀请。
- 页面跟随深色模式和系统字号。小屏可以滚动查看图片和示例,主入口保持可用。 - 页面跟随深色模式和系统字号。小屏可以滚动查看图片和示例,主入口保持可用。