张善主

fix(16650): 功能缺陷--进入横屏直播页,全屏后,点击分享按钮没有反应

@@ -16,6 +16,7 @@ @@ -16,6 +16,7 @@
16 "wdConstant": "file:../../commons/wdConstant", 16 "wdConstant": "file:../../commons/wdConstant",
17 "wdDetailPlayApi": "file:../../features/wdDetailPlayApi", 17 "wdDetailPlayApi": "file:../../features/wdDetailPlayApi",
18 "wdRouter": "file:../../commons/wdRouter", 18 "wdRouter": "file:../../commons/wdRouter",
19 - "wdTracking": "file:../../features/wdTracking" 19 + "wdTracking": "file:../../features/wdTracking",
  20 + "wdShare": "file:../../features/wdShare"
20 } 21 }
21 } 22 }
@@ -6,6 +6,7 @@ import { DateFormatUtil, PlayerConstants, WDAliPlayerController } from 'wdPlayer @@ -6,6 +6,7 @@ import { DateFormatUtil, PlayerConstants, WDAliPlayerController } from 'wdPlayer
6 import { ContentDetailDTO, LiveRoomDataBean } from 'wdBean/Index'; 6 import { ContentDetailDTO, LiveRoomDataBean } from 'wdBean/Index';
7 import { DisplayDirection } from 'wdConstant/Index'; 7 import { DisplayDirection } from 'wdConstant/Index';
8 import { LiveFollowComponent, LottieView } from 'wdComponent/Index'; 8 import { LiveFollowComponent, LottieView } from 'wdComponent/Index';
  9 +import { WDShare } from 'wdShare/Index';
9 //直播间播放器上层覆盖物 10 //直播间播放器上层覆盖物
10 @Component 11 @Component
11 export struct PlayUIComponent { 12 export struct PlayUIComponent {
@@ -123,6 +124,9 @@ export struct PlayUIComponent { @@ -123,6 +124,9 @@ export struct PlayUIComponent {
123 .width(24) 124 .width(24)
124 .aspectRatio(1) 125 .aspectRatio(1)
125 .visibility(this.displayDirection == DisplayDirection.VIDEO_HORIZONTAL ? Visibility.Visible : Visibility.None) 126 .visibility(this.displayDirection == DisplayDirection.VIDEO_HORIZONTAL ? Visibility.Visible : Visibility.None)
  127 + .onClick(() => {
  128 + WDShare.shareContent(this.contentDetailData)
  129 + })
126 } 130 }
127 .width('100%') 131 .width('100%')
128 .alignItems(VerticalAlign.Center) 132 .alignItems(VerticalAlign.Center)
@@ -5,6 +5,7 @@ import { NumberFormatterUtils, WindowModel } from 'wdKit/Index' @@ -5,6 +5,7 @@ import { NumberFormatterUtils, WindowModel } from 'wdKit/Index'
5 import { window } from '@kit.ArkUI' 5 import { window } from '@kit.ArkUI'
6 import { WDAliPlayerController } from 'wdPlayer/Index' 6 import { WDAliPlayerController } from 'wdPlayer/Index'
7 import { DisplayDirection } from 'wdConstant/Index' 7 import { DisplayDirection } from 'wdConstant/Index'
  8 +import { WDShare } from 'wdShare/Index'
8 9
9 /** 10 /**
10 * 沉浸式直播--- 头部标题 11 * 沉浸式直播--- 头部标题
@@ -76,6 +77,9 @@ export struct PlayerTitleComponent { @@ -76,6 +77,9 @@ export struct PlayerTitleComponent {
76 .aspectRatio(1) 77 .aspectRatio(1)
77 .visibility((this.isLarge && this.displayDirection == DisplayDirection.VIDEO_HORIZONTAL) ? Visibility.Visible : Visibility.None) 78 .visibility((this.isLarge && this.displayDirection == DisplayDirection.VIDEO_HORIZONTAL) ? Visibility.Visible : Visibility.None)
78 .margin({right:16}) 79 .margin({right:16})
  80 + .onClick(() => {
  81 + WDShare.shareContent(this.contentDetailData)
  82 + })
79 }.margin({ bottom: 10 }) 83 }.margin({ bottom: 10 })
80 84
81 Row() { 85 Row() {