This commit is contained in:
anlicheng 2025-04-14 17:40:50 +08:00
parent f4939c0099
commit 260bf6017f
2 changed files with 16 additions and 7 deletions

View File

@ -34,13 +34,13 @@ struct IndexMainView: View {
HStack(alignment: .center) {
Text("亚次元")
.font(.system(size: 18, weight: .bold))
.font(.system(size: 20, weight: .bold))
.padding([.top, .bottom], 5)
Spacer()
HStack {
Text("\(indexModel.follow_num)")
.font(.system(size: 17))
.font(.system(size: 18))
.foregroundColor(.black)
.padding([.top, .bottom], 5)
.padding(.leading, 10)

View File

@ -45,13 +45,22 @@ struct SearchView: View {
.frame(height: 50)
.padding([.top, .bottom], 8)
ScrollView(.vertical, showsIndicators: false) {
//
LazyVStack(alignment: .center, spacing: 10) {
ForEach(searchModel.dramaGroups, id: \.group_id) { group in
SearchDramaGroupView(group: group)
if searchModel.dramaGroups.count > 0 {
ScrollView(.vertical, showsIndicators: false) {
//
LazyVStack(alignment: .center, spacing: 10) {
ForEach(searchModel.dramaGroups, id: \.group_id) { group in
SearchDramaGroupView(group: group)
}
}
}
} else {
Spacer()
Text("什么都没有找到")
.font(.system(size: 18))
.foregroundColor(Color(hex: "#333333"))
.frame(alignment: .center)
}
Spacer()