zhenghy

视频频道入口修改

@@ -71,6 +71,7 @@ export struct PageComponent { @@ -71,6 +71,7 @@ export struct PageComponent {
71 @Builder 71 @Builder
72 ListLayout() { 72 ListLayout() {
73 List() { 73 List() {
  74 + if (this.name !== '视频') {
74 // 下拉刷新 75 // 下拉刷新
75 ListItem() { 76 ListItem() {
76 RefreshLayout({ 77 RefreshLayout({
@@ -78,22 +79,23 @@ export struct PageComponent { @@ -78,22 +79,23 @@ export struct PageComponent {
78 this.pageModel.pullDownRefreshText, this.pageModel.pullDownRefreshHeight) 79 this.pageModel.pullDownRefreshText, this.pageModel.pullDownRefreshHeight)
79 }) 80 })
80 } 81 }
  82 + }
81 83
  84 + if (this.name === '视频') {
  85 + VideoChannelDetail()
  86 + } else {
82 LazyForEach(this.pageModel.compList, (compDTO: CompDTO, compIndex: number) => { 87 LazyForEach(this.pageModel.compList, (compDTO: CompDTO, compIndex: number) => {
83 ListItem() { 88 ListItem() {
84 Column() { 89 Column() {
85 - if (this.name == '视频') {  
86 - VideoChannelDetail()  
87 - } else {  
88 CompParser({ compDTO: compDTO, compIndex: compIndex }); 90 CompParser({ compDTO: compDTO, compIndex: compIndex });
89 } 91 }
90 -  
91 - }  
92 } 92 }
93 }, 93 },
94 (compDTO: CompDTO, compIndex: number) => compDTO.id + compIndex.toString() + this.pageModel.timestamp 94 (compDTO: CompDTO, compIndex: number) => compDTO.id + compIndex.toString() + this.pageModel.timestamp
95 ) 95 )
  96 + }
96 97
  98 + if (this.name !== '视频') {
97 // 加载更多 99 // 加载更多
98 ListItem() { 100 ListItem() {
99 if (this.pageModel.hasMore) { 101 if (this.pageModel.hasMore) {
@@ -106,6 +108,8 @@ export struct PageComponent { @@ -106,6 +108,8 @@ export struct PageComponent {
106 } 108 }
107 } 109 }
108 } 110 }
  111 +
  112 + }
109 .scrollBar(BarState.Off) 113 .scrollBar(BarState.Off)
110 .cachedCount(8) 114 .cachedCount(8)
111 .height(CommonConstants.FULL_PARENT) 115 .height(CommonConstants.FULL_PARENT)
@@ -37,7 +37,7 @@ export struct DetailPlayShortVideoPage { @@ -37,7 +37,7 @@ export struct DetailPlayShortVideoPage {
37 if (this.currentIndex != this.index) { 37 if (this.currentIndex != this.index) {
38 this.playerController.pause() 38 this.playerController.pause()
39 39
40 - if (this.index < this.currentIndex - 5 && this.playerController.getPlayer()) { 40 + if (this.index < this.currentIndex - 3 && this.playerController.getPlayer()) {
41 this.playerController.release() 41 this.playerController.release()
42 } 42 }
43 43
@@ -147,7 +147,7 @@ export class WDPlayerController { @@ -147,7 +147,7 @@ export class WDPlayerController {
147 if (this.avPlayer == null) { 147 if (this.avPlayer == null) {
148 return 148 return
149 } 149 }
150 - Logger.error("开始播放") 150 + Logger.error("开始播放", this.url)
151 this.avPlayer.url = this.url; 151 this.avPlayer.url = this.url;
152 } 152 }
153 153