This commit is contained in:
anlicheng 2025-02-21 22:53:28 +08:00
parent e5f155dfce
commit 0b26a83cf4

View File

@ -73,7 +73,10 @@ struct DetailView: View {
.font(.system(size: 20)) .font(.system(size: 20))
.fontWeight(.bold) .fontWeight(.bold)
HStack(alignment: .center, spacing: 0) { HStack(alignment: .center, spacing: 0) {
ForEach(detailModel.voiceActors, id: \.actor_id) { actor in ForEach(Array(detailModel.voiceActors.enumerated()), id: \.offset) { index, actor in
if index > 0 {
Text("")
}
Text(actor.name) Text(actor.name)
.font(.system(size: 16)) .font(.system(size: 16))
} }
@ -81,6 +84,24 @@ struct DetailView: View {
} }
} }
HStack {
Spacer()
switch detailModel.status {
case 0:
Text("补完")
case 1:
Text("追番")
case 2:
Text("前排站位")
default:
Text("追番")
}
}
//
} }
.task { .task {
await detailModel.loadData(dramaId: 124) await detailModel.loadData(dramaId: 124)