商品详情页

This commit is contained in:
2024-01-29 17:55:09 +08:00
parent fdc1b1c18f
commit 5109b242a6
6 changed files with 102 additions and 9 deletions

View File

@@ -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")