模块化 AppStore 并完善素材管理与个人空间设置。
将会话、权限、位置、收款与排队存储拆分为独立模块,同步更新各 ViewModel 与单元测试,并补充素材管理 UI 与个人空间设置交互。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@ -40,9 +40,9 @@ final class PaymentCollectionDetailsViewModel {
|
||||
}
|
||||
|
||||
func refreshLocalState() {
|
||||
scenicName = appStore.currentScenicName
|
||||
staffId = appStore.userId
|
||||
isVoiceBroadcastOpen = appStore.isOpenReceiveVoice
|
||||
scenicName = appStore.session.currentScenicName
|
||||
staffId = appStore.session.userId
|
||||
isVoiceBroadcastOpen = appStore.payment.isOpenReceiveVoice
|
||||
notifyStateChange()
|
||||
}
|
||||
|
||||
@ -56,7 +56,7 @@ final class PaymentCollectionDetailsViewModel {
|
||||
notifyStateChange()
|
||||
}
|
||||
|
||||
let scenicId = appStore.currentScenicId
|
||||
let scenicId = appStore.session.currentScenicId
|
||||
guard scenicId > 0 else {
|
||||
clearPayCode()
|
||||
return
|
||||
@ -134,7 +134,7 @@ final class PaymentCollectionDetailsViewModel {
|
||||
|
||||
func toggleReceiveVoice() {
|
||||
isVoiceBroadcastOpen.toggle()
|
||||
appStore.isOpenReceiveVoice = isVoiceBroadcastOpen
|
||||
appStore.payment.isOpenReceiveVoice = isVoiceBroadcastOpen
|
||||
notifyStateChange()
|
||||
}
|
||||
|
||||
|
||||
@ -28,7 +28,7 @@ final class PaymentCollectionRecordViewModel {
|
||||
notifyStateChange()
|
||||
}
|
||||
|
||||
let scenicId = appStore.currentScenicId
|
||||
let scenicId = appStore.session.currentScenicId
|
||||
guard scenicId > 0 else {
|
||||
groups = []
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user