添加景区选择与合作订单流程并对齐 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

@ -42,6 +42,23 @@ final class ProfileViewModel {
return name.isEmpty ? "--" : name
}
///
var accountTypeLabel: String {
let type = AppStore.shared.accountType.trimmingCharacters(in: .whitespacesAndNewlines)
if type == V9StoreUser.accountTypeValue {
return "门店账号"
}
if type == V9ScenicUser.accountTypeValue {
return "景区账号"
}
return "--"
}
///
var isStoreAccount: Bool {
AppStore.shared.accountType == V9StoreUser.accountTypeValue
}
var currentScenicName: String {
let name = AppStore.shared.currentScenicName.trimmingCharacters(in: .whitespacesAndNewlines)
return name.isEmpty ? "--" : name