chore: 调整盲盒页面位置

This commit is contained in:
Junhui Chen 2025-09-06 22:08:47 +08:00
parent 3e49ee9489
commit 685e694134
2 changed files with 11 additions and 2 deletions

View File

@ -108,6 +108,11 @@ struct BlindBoxView: View {
init(mediaType: BlindBoxMediaType) {
self.mediaType = mediaType
// First/Second
if mediaType == BlindBoxMediaType.all {
print("获取盲盒列表")
}
}
//
@ -850,7 +855,7 @@ struct BlindBoxView: View {
// MARK: -
#Preview {
BlindBoxView(mediaType: .video)
BlindBoxView(mediaType: .all)
}
struct TransparentVideoPlayer: UIViewRepresentable {

View File

@ -180,6 +180,10 @@ struct UserInfo: View {
if let userData = response.data {
self.userName = userData.username
}
//
//
Router.shared.navigate(to: .blindBox(mediaType: .image))
case .failure(let error):
@ -302,4 +306,4 @@ struct UserInfo_Previews: PreviewProvider {
static var previews: some View {
UserInfo()
}
}
}