Add scenic selection and cooperation order flows aligned with Android.
Upgrade scenic picker with search, location sorting, permission apply/status, and blocking home dialog; add cooperation order module and order source picker improvements with unit tests. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user