拆分宣传页视图并扩充 Mock 数据,合作订单支持获客员备注名并修复线索图片网格尺寸。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-02 17:43:04 +08:00
parent 1b1e93b9ca
commit 328c4321f4
41 changed files with 2529 additions and 1436 deletions

View File

@ -140,6 +140,8 @@ final class ScenicPromotionSettingsViewModel: ObservableObject {
@Published var selectedQueuePointIDs: Set<String> = []
@Published var selectedMaterialPointID: String?
@Published private(set) var materialsByPointID: [String: [ScenicPromotionManagedMaterial]] = [:]
///
@Published var previewMaterial: ScenicPromotionManagedMaterial?
///
var selectedQueuePointNames: String {
@ -262,6 +264,11 @@ final class ScenicPromotionSettingsViewModel: ObservableObject {
}
}
///
func openMaterialPreview(_ material: ScenicPromotionManagedMaterial) {
previewMaterial = material
}
///
func submit() -> Bool {
guard !selectedQueuePointIDs.isEmpty else { return false }