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-12 17:50:24 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6daae0924b2f449a3ee48810191179d59ad7760c
6daae092
1 parent
e43d3c8d
feat:
1)直播预告页面改造成使用通用模板组件
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
22 deletions
sight_harmony/features/wdComponent/src/main/ets/components/page/template/TemplatePageHelp.ets
sight_harmony/features/wdComponent/src/main/ets/components/page/template/TemplatePageHelp.ets
View file @
6daae09
...
...
@@ -90,7 +90,7 @@ export class TemplatePageHelp extends BasePageHelp {
let compDTO: CompDTO = new CompDTO()
compDTO.compType = 'appStyle'
contentDto.appStyle = CompStyle.Card_Comp_Live_Big_Image_02
if
(this.pageModel.isEmitter)
{
if
(this.pageModel.isEmitter)
{
contentDto.timestamp = time
}
compDTO.operDataList.push(contentDto)
...
...
@@ -180,21 +180,6 @@ export class TemplatePageHelp extends BasePageHelp {
// 获取直播房间的动态数据
this.getLiveRoomDataInfo(compList)
// 测试数据
// setTimeout(() => {
// let time = DateTimeUtils.getTimeStamp().toString()
// let index = 1
// let compBean = compList[index] as CompDTO
// let contentBean = compBean.operDataList[0]
// contentBean.newsTitle = '熬阿斯蒂芬'
// //comp.operDataList[0].newsTitle = '测试111'
// let liveRoomBean: LiveRoomDataBean = {} as LiveRoomDataBean;
// liveRoomBean.pv = 6555
// contentBean.liveRoomDataBean = liveRoomBean
// compBean.timestamp = time
// Logger.debug("ZZZXXXXX",
// "-----setTimeout--------->" + time)
// }, 4 * 1000)
}
...
...
@@ -204,21 +189,15 @@ export class TemplatePageHelp extends BasePageHelp {
*/
private pushDataToPage(pageContentList: CompDTO[]) {
console.debug(TAG, 'pushDataToPage====>' + this.pageModel.currentPage)
// 请求第一页数据,需要清理pageData数据
if (this.pageModel.currentPage == 1) {
this.pageModel.compList.clear()
}
// 懒加载,推送数据
// for (let contentDto of pageContentList) {
// this.pageModel.compList.push(contentDto)
// }
this.pageModel.compList.push(...pageContentList)
//完成业务数据请求
this.pageModel.pageCompType = TemplatePageStateType.LOADED
this.pageModel.haveDataShow = true
// }
}
...
...
Please
register
or
login
to post a comment