chore: 调整盲盒位置

This commit is contained in:
Junhui Chen 2025-09-11 17:57:29 +08:00
parent 411bf440d4
commit 098d5b7e6a
2 changed files with 3 additions and 4 deletions

View File

@ -12,7 +12,7 @@ struct CardBlindBackground: View {
ScoopRoundedRect(cornerRadius: 20, scoopDepth: 20, scoopHalfWidth: 90, scoopCenterX: 0.5, convexDown: true, flatHalfWidth: 60) ScoopRoundedRect(cornerRadius: 20, scoopDepth: 20, scoopHalfWidth: 90, scoopCenterX: 0.5, convexDown: true, flatHalfWidth: 60)
.fill(Theme.Colors.primary) .fill(Theme.Colors.primary)
.shadow(color: .black.opacity(0.08), radius: 12, y: 6) .shadow(color: .black.opacity(0.08), radius: 12, y: 6)
.padding() // .padding()
Rectangle() Rectangle()
.fill( .fill(
@ -22,7 +22,7 @@ struct CardBlindBackground: View {
endPoint: .bottomLeading endPoint: .bottomLeading
) )
) )
.frame(width: w - 100 , height: h - 130) .frame(width: w - 60 , height: h - 90)
.cornerRadius(20) .cornerRadius(20)
.padding(.top, Theme.Spacing.lg) .padding(.top, Theme.Spacing.lg)
// var view = UIView() // var view = UIView()

View File

@ -124,7 +124,7 @@ struct BlindBoxView: View {
if mediaType == .all { if mediaType == .all {
BlindCountBadge(text: "\(viewModel.blindCount?.availableQuantity ?? 0) Boxes") BlindCountBadge(text: "\(viewModel.blindCount?.availableQuantity ?? 0) Boxes")
.position(x: UIScreen.main.bounds.width * 0.7, .position(x: UIScreen.main.bounds.width * 0.7,
y: UIScreen.main.bounds.height * 0.18) y: UIScreen.main.bounds.height * 0.1)
} }
VStack(spacing: 20) { VStack(spacing: 20) {
BlindBoxAnimationView( BlindBoxAnimationView(
@ -153,7 +153,6 @@ struct BlindBoxView: View {
} }
) )
} }
.offset(y: -50)
.compositingGroup() .compositingGroup()
.padding() .padding()
// opening // opening