商品详情页
This commit is contained in:
@@ -8,13 +8,14 @@
|
||||
import SwiftUI
|
||||
|
||||
struct GoodsCard: View {
|
||||
var title: String
|
||||
func getHeight() -> CGFloat {
|
||||
(UIScreen.main.bounds.width - 24 - 12) / 2 * 1.2
|
||||
}
|
||||
|
||||
var body: some View {
|
||||
NavigationLink {
|
||||
GoodsDetailView()
|
||||
GoodsDetailView(title: title)
|
||||
} label: {
|
||||
VStack {
|
||||
Image("Images/LaunchScreen")
|
||||
|
||||
Reference in New Issue
Block a user