添加景区选择与合作订单流程并对齐 Android

This commit is contained in:
2026-07-07 10:48:43 +08:00
parent ef1d3b4af5
commit c4057537d2
50 changed files with 5603 additions and 191 deletions

View File

@ -31,6 +31,7 @@ final class ProfileViewController: BaseViewController {
private let statusRow = ProfileInfoRowView(title: "账号状态")
private let scenicRow = ProfileInfoRowView(title: "当前景区")
private let logoutButton = UIButton(type: .system)
private var hasLoadedProfileOnce = false
override func setupNavigationBar() {
title = "我的"
@ -101,7 +102,13 @@ final class ProfileViewController: BaseViewController {
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
Task { await reloadProfile(showGlobalLoading: true) }
let showLoading = !hasLoadedProfileOnce
Task {
await reloadProfile(showGlobalLoading: showLoading)
if showLoading {
hasLoadedProfileOnce = true
}
}
}
private let headerContainer = UIView()
@ -194,9 +201,10 @@ final class ProfileViewController: BaseViewController {
avatarImageView.loadRemoteImage(urlString: viewModel.displayAvatarURL)
nameRow.configure(value: viewModel.displayRealName)
accountRow.configure(
value: viewModel.accountDisplayName,
accessory: .action("切换账号")
accountRow.configureAccountInfo(
storeName: viewModel.accountDisplayName,
accountTypeLabel: viewModel.accountTypeLabel,
isStoreAccount: viewModel.isStoreAccount
)
phoneRow.configure(value: viewModel.displayPhone)