chore: 调整盲盒页面位置
This commit is contained in:
parent
3e49ee9489
commit
685e694134
@ -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 {
|
||||
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user