Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
liyubing
2024-06-24 16:42:40 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
105a1c6598c613d2e9c0516529e1eb03c1722a4a
105a1c65
1 parent
9531e123
feat:1)搜索页面,切换关键字搜索,tab变化
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletions
sight_harmony/features/wdComponent/src/main/ets/components/search/SearchResultComponent.ets
sight_harmony/features/wdComponent/src/main/ets/viewmodel/SearchResultCountItem.ets
sight_harmony/features/wdComponent/src/main/ets/components/search/SearchResultComponent.ets
View file @
105a1c6
...
...
@@ -142,7 +142,7 @@ export struct SearchResultComponent {
SearchResultContentComponent({ keywords: this.searchText, searchType: item ,sameSearch:this.sameSearch,isCurrentShow:this.currentIndex === index})
}.tabBar(this.TabBuilder(index, item))
.layoutWeight(1)
}, (item: string
, index: number) => index.toString()
)
}, (item: string
) => item
)
}
.vertical(false)
.barMode(BarMode.Fixed)
...
...
sight_harmony/features/wdComponent/src/main/ets/viewmodel/SearchResultCountItem.ets
View file @
105a1c6
...
...
@@ -5,11 +5,25 @@
*/
export class SearchResultCountItem{
/*
"allTotal":0,
"activityTotal":0,
"cmsTotal":0,
"trueTotal":0,
"pageSize":1,
"keyword":"wuhuhuan",
"totalCount":0,
"pageNum":1,
"videoTotal":0,
"rmhTotal":5
*/
keyword:string ='' //搜索关键字
allTotal: number = 0 //所有tab总量
cmsTotal: number = 0 //精选总量
rmhTotal: number = 0 //人民号总量
videoTotal: number = 0 //视频总量
activityTotal: number = 0 //活动数据总量
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment