Advance UIKit rewrite with AMap integration and core UI modules.

Integrate高德 SDK with simulator-safe build flags, add map views for operating area and punch points, refactor main tabs and key feature screens to UIKit with Diffable lists, and document Swift concurrency defaults in AGENTS.md.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-26 15:16:12 +08:00
parent 9edf993432
commit d99a5b1bf8
124 changed files with 5195 additions and 1536 deletions

View File

@ -61,6 +61,7 @@ final class PhotographerInviteViewModel {
return UIImage(cgImage: cgImage)
}
///
private func clear() {
inviteCode = ""
inviteUrl = ""
@ -128,6 +129,7 @@ final class InviteRecordViewModel {
await reload(inviteAPI: inviteAPI, walletAPI: walletAPI, refresh: true)
}
/// InviteRows
private func loadInviteRows(api: any InviteServing, refresh: Bool) async throws {
let users = try await api.inviteUserList(page: refresh ? 1 : invitePage, pageSize: invitePageSize)
let mapped = users.map {
@ -152,6 +154,7 @@ final class InviteRecordViewModel {
hasMore = users.count >= invitePageSize
}
/// RewardRows
private func loadRewardRows(api: any WalletServing, refresh: Bool) async throws {
let response = try await api.walletEarningDetail(
startDate: "2025-01-01",
@ -183,6 +186,7 @@ final class InviteRecordViewModel {
hasMore = rewardRows.count < response.total && !mapped.isEmpty
}
///
private func clear() {
totalRewardText = "¥ 0.00"
withdrawableText = "¥ 0.00"