完善景区排队设置页与全局按钮配置迁移。

重构排队设置与变更日志交互,补充 Overlay 与资源,并将多页面主操作按钮统一到 UIButton Configuration,同步更新相关单元测试。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-14 16:51:23 +08:00
parent 6336feff27
commit 5eef31b8da
17 changed files with 181 additions and 124 deletions

View File

@ -12,7 +12,7 @@ protocol ScenicApplicationImageUploading: AnyObject {
data: Data,
fileName: String,
scenicId: Int,
onProgress: @escaping (Int) -> Void
onProgress: @escaping @MainActor (Int) -> Void
) async throws -> String
}
@ -247,20 +247,19 @@ final class ScenicApplicationViewModel {
notifyStateChange()
do {
let progressBatch = batch
let url = try await uploader.uploadScenicApplyImage(
data: data,
fileName: image.fileName,
scenicId: scenicId,
onProgress: { [weak self] progress in
Task { @MainActor in
self?.handleUploadProgress(
index: index,
batch: batch,
currentPosition: currentPosition,
total: total,
progress: progress
)
}
self?.handleUploadProgress(
index: index,
batch: progressBatch,
currentPosition: currentPosition,
total: total,
progress: progress
)
}
)
updateImage(at: index) { item in