拆分宣传页视图并扩充 Mock 数据,合作订单支持获客员备注名并修复线索图片网格尺寸。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@ -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
|
||||
Reference in New Issue
Block a user