This commit is contained in:
anlicheng 2025-02-25 15:14:26 +08:00
parent 73dee0f11d
commit e25f51d27d
3 changed files with 15 additions and 3 deletions

View File

@ -248,6 +248,11 @@ struct DetailView: View {
.lineLimit(1) .lineLimit(1)
} }
.frame(width: 90, height: 120) .frame(width: 90, height: 120)
.onTapGesture {
if let playUrl = URL(string: episode.play) {
UIApplication.shared.open(playUrl)
}
}
} }
} }
} }

View File

@ -442,6 +442,11 @@ extension IndexView {
.lineLimit(1) .lineLimit(1)
} }
.frame(width: 120, height: 100) .frame(width: 120, height: 100)
.onTapGesture {
if let playUrl = URL(string: item.play) {
UIApplication.shared.open(playUrl)
}
}
} }
} }
} }

View File

@ -135,6 +135,11 @@ struct ListView: View {
} }
Spacer() Spacer()
} }
.onTapGesture {
if let playUrl = URL(string: episode.play) {
UIApplication.shared.open(playUrl)
}
}
} }
} }
} }
@ -146,10 +151,7 @@ struct ListView: View {
Rectangle() Rectangle()
.frame(width: 200, height: 25) .frame(width: 200, height: 25)
.foregroundColor(Color(hex: "#F2F2F2")) .foregroundColor(Color(hex: "#F2F2F2"))
//.cornerRadius(10)
.overlay { .overlay {
//RoundedRectangle(cornerRadius: 10)
// .stroke(Color.black, lineWidth: 1)
Text("收起剧集") Text("收起剧集")
.font(.system(size: 13)) .font(.system(size: 13))
.foregroundColor(Color(hex: "#999999")) .foregroundColor(Color(hex: "#999999"))