陈剑华

Merge remote-tracking branch 'origin/main'

@@ -372,7 +372,7 @@ export struct WdWebLocalComponent { @@ -372,7 +372,7 @@ export struct WdWebLocalComponent {
372 type: SliderBlockType.IMAGE, 372 type: SliderBlockType.IMAGE,
373 image: $r('app.media.slider_block') 373 image: $r('app.media.slider_block')
374 }) 374 })
375 - .blockSize({ width: 18, height: 12 }) 375 + .blockSize({ width: 14, height: 10 })
376 .onChange((value: number, mode: SliderChangeMode) => { 376 .onChange((value: number, mode: SliderChangeMode) => {
377 this.controller.setCurrentTime(value); 377 this.controller.setCurrentTime(value);
378 if (mode == SliderChangeMode.End) { 378 if (mode == SliderChangeMode.End) {
@@ -111,14 +111,13 @@ struct PeopleShipHomePage { @@ -111,14 +111,13 @@ struct PeopleShipHomePage {
111 .width("100%") 111 .width("100%")
112 // .height(this.topHeight) 112 // .height(this.topHeight)
113 // 列表 113 // 列表
114 - PeopleShipHomeListComponent({  
115 - publishCount: this.publishCount,  
116 - creatorId: this.creatorId  
117 - })  
118 - // Column(){  
119 - //  
120 - //  
121 - // }.height('100%') 114 +
  115 + Column(){
  116 + PeopleShipHomeListComponent({
  117 + publishCount: this.publishCount,
  118 + creatorId: this.creatorId
  119 + })
  120 + }.height('100%')
122 } 121 }
123 .width("100%") 122 .width("100%")
124 .justifyContent(FlexAlign.Start) 123 .justifyContent(FlexAlign.Start)
@@ -64,6 +64,8 @@ export struct DetailPlayLiveCommon { @@ -64,6 +64,8 @@ export struct DetailPlayLiveCommon {
64 64
65 private AudioSuspension = new AudioSuspensionModel() 65 private AudioSuspension = new AudioSuspensionModel()
66 @State isShowAudioCom: boolean = false 66 @State isShowAudioCom: boolean = false
  67 + ///是否已经执行过pageShow
  68 + hasPageShow: boolean = false
67 69
68 build() { 70 build() {
69 Column() { 71 Column() {
@@ -89,6 +91,10 @@ export struct DetailPlayLiveCommon { @@ -89,6 +91,10 @@ export struct DetailPlayLiveCommon {
89 */ 91 */
90 getContentDetail(): Promise<void> { 92 getContentDetail(): Promise<void> {
91 return new Promise<void>((resolve, reject) => { 93 return new Promise<void>((resolve, reject) => {
  94 + if (this.hasPageShow) {
  95 + return
  96 + }
  97 + this.hasPageShow = true
92 this.liveViewModel.getContentDetail(this.contentId, this.relId, this.relType) 98 this.liveViewModel.getContentDetail(this.contentId, this.relId, this.relType)
93 .then(async (data: Array<ContentDetailDTO>) => { 99 .then(async (data: Array<ContentDetailDTO>) => {
94 // console.log(TAG, '查询视频详情用于评论展示 getContentDetail:', JSON.stringify(data)); 100 // console.log(TAG, '查询视频详情用于评论展示 getContentDetail:', JSON.stringify(data));
@@ -132,7 +132,7 @@ export struct PlayUIComponent { @@ -132,7 +132,7 @@ export struct PlayUIComponent {
132 //标题 132 //标题
133 Marquee({ 133 Marquee({
134 start:true, 134 start:true,
135 - loop: 1, 135 + loop: -1,
136 src:this.contentDetailData.newsTitle 136 src:this.contentDetailData.newsTitle
137 }) 137 })
138 .fontSize(this.displayDirection == DisplayDirection.VIDEO_HORIZONTAL ? '18vp' : '16vp') 138 .fontSize(this.displayDirection == DisplayDirection.VIDEO_HORIZONTAL ? '18vp' : '16vp')
1 -import { ContentDetailDTO, LiveDetailsBean, LiveRoomDataBean, postBatchAttentionStatusParams, } from 'wdBean/Index' 1 +import { ContentDetailDTO, LiveDetailsBean, LiveRoomDataBean,
  2 + Params,
  3 + postBatchAttentionStatusParams, } from 'wdBean/Index'
2 import { MultiPictureDetailViewModel } from 'wdComponent/src/main/ets/viewmodel/MultiPictureDetailViewModel' 4 import { MultiPictureDetailViewModel } from 'wdComponent/src/main/ets/viewmodel/MultiPictureDetailViewModel'
3 import { SpConstants } from 'wdConstant/Index' 5 import { SpConstants } from 'wdConstant/Index'
4 import { ContentDetailRequest, postInteractAccentionOperateParams } from 'wdDetailPlayApi/Index' 6 import { ContentDetailRequest, postInteractAccentionOperateParams } from 'wdDetailPlayApi/Index'
@@ -173,6 +175,16 @@ export struct PlayerEndView { @@ -173,6 +175,16 @@ export struct PlayerEndView {
173 // .borderStyle(BorderStyle.Solid) 175 // .borderStyle(BorderStyle.Solid)
174 .position({ x: '50%', y: 0 }) 176 .position({ x: '50%', y: 0 })
175 .markAnchor({ x: '50%', y: '50%' }) 177 .markAnchor({ x: '50%', y: '50%' })
  178 + .onClick(()=>{
  179 + // 跳转到号主页
  180 + if (this.contentDetailData.rmhInfo?.cnMainControl === 1) {
  181 + const params: Params = {
  182 + creatorId: this.contentDetailData.rmhInfo.rmhId,
  183 + pageID: ''
  184 + }
  185 + WDRouterRule.jumpWithPage(WDRouterPage.peopleShipHomePage, params)
  186 + }
  187 + })
176 } 188 }
177 } 189 }
178 .width(307) 190 .width(307)