liyubing

feat:

1)直播预告页面改造成使用通用模板组件
@@ -90,7 +90,7 @@ export class TemplatePageHelp extends BasePageHelp { @@ -90,7 +90,7 @@ export class TemplatePageHelp extends BasePageHelp {
90 let compDTO: CompDTO = new CompDTO() 90 let compDTO: CompDTO = new CompDTO()
91 compDTO.compType = 'appStyle' 91 compDTO.compType = 'appStyle'
92 contentDto.appStyle = CompStyle.Card_Comp_Live_Big_Image_02 92 contentDto.appStyle = CompStyle.Card_Comp_Live_Big_Image_02
93 - if(this.pageModel.isEmitter){ 93 + if (this.pageModel.isEmitter) {
94 contentDto.timestamp = time 94 contentDto.timestamp = time
95 } 95 }
96 compDTO.operDataList.push(contentDto) 96 compDTO.operDataList.push(contentDto)
@@ -180,21 +180,6 @@ export class TemplatePageHelp extends BasePageHelp { @@ -180,21 +180,6 @@ export class TemplatePageHelp extends BasePageHelp {
180 // 获取直播房间的动态数据 180 // 获取直播房间的动态数据
181 this.getLiveRoomDataInfo(compList) 181 this.getLiveRoomDataInfo(compList)
182 182
183 - // 测试数据  
184 - // setTimeout(() => {  
185 - // let time = DateTimeUtils.getTimeStamp().toString()  
186 - // let index = 1  
187 - // let compBean = compList[index] as CompDTO  
188 - // let contentBean = compBean.operDataList[0]  
189 - // contentBean.newsTitle = '熬阿斯蒂芬'  
190 - // //comp.operDataList[0].newsTitle = '测试111'  
191 - // let liveRoomBean: LiveRoomDataBean = {} as LiveRoomDataBean;  
192 - // liveRoomBean.pv = 6555  
193 - // contentBean.liveRoomDataBean = liveRoomBean  
194 - // compBean.timestamp = time  
195 - // Logger.debug("ZZZXXXXX",  
196 - // "-----setTimeout--------->" + time)  
197 - // }, 4 * 1000)  
198 } 183 }
199 184
200 185
@@ -204,21 +189,15 @@ export class TemplatePageHelp extends BasePageHelp { @@ -204,21 +189,15 @@ export class TemplatePageHelp extends BasePageHelp {
204 */ 189 */
205 private pushDataToPage(pageContentList: CompDTO[]) { 190 private pushDataToPage(pageContentList: CompDTO[]) {
206 191
207 - console.debug(TAG, 'pushDataToPage====>' + this.pageModel.currentPage)  
208 // 请求第一页数据,需要清理pageData数据 192 // 请求第一页数据,需要清理pageData数据
209 if (this.pageModel.currentPage == 1) { 193 if (this.pageModel.currentPage == 1) {
210 this.pageModel.compList.clear() 194 this.pageModel.compList.clear()
211 } 195 }
212 // 懒加载,推送数据 196 // 懒加载,推送数据
213 - // for (let contentDto of pageContentList) {  
214 - // this.pageModel.compList.push(contentDto)  
215 - // }  
216 this.pageModel.compList.push(...pageContentList) 197 this.pageModel.compList.push(...pageContentList)
217 //完成业务数据请求 198 //完成业务数据请求
218 this.pageModel.pageCompType = TemplatePageStateType.LOADED 199 this.pageModel.pageCompType = TemplatePageStateType.LOADED
219 this.pageModel.haveDataShow = true 200 this.pageModel.haveDataShow = true
220 - // }  
221 -  
222 201
223 } 202 }
224 203