拆分宣传页视图并扩充 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

@ -0,0 +1,44 @@
//
// ScenicPromotionMediaEmptyView.swift
// suixinkan
//
// Created by Codex on 2026/7/2.
//
import SwiftUI
/// /
struct ScenicPromotionMediaEmptyView: View {
let mode: ScenicPromotionMediaMode
var body: some View {
VStack(spacing: 12) {
Image(systemName: mode == .video ? "play.rectangle.fill" : "photo.on.rectangle.angled")
.font(.system(size: 44, weight: .semibold))
.foregroundStyle(Color(hex: 0x57A2FF))
Text(mode == .video ? "暂无视频" : "暂无照片")
.font(.system(size: 19, weight: .bold))
.foregroundStyle(Color(hex: 0x1E5DA8))
Text("敬请期待更多精彩内容")
.font(.system(size: 13, weight: .medium))
.foregroundStyle(Color(hex: 0x6B83A8))
}
.frame(maxWidth: .infinity, minHeight: 172)
}
}
#if DEBUG
#Preview("素材空状态-视频") {
ScenicPromotionMediaEmptyView(mode: .video)
.padding()
.background(.white.opacity(0.72), in: RoundedRectangle(cornerRadius: 18))
.padding()
}
#Preview("素材空状态-照片") {
ScenicPromotionMediaEmptyView(mode: .photo)
.padding()
.background(.white.opacity(0.72), in: RoundedRectangle(cornerRadius: 18))
.padding()
}
#endif