liyubing

Merge remote-tracking branch 'origin/main'

@@ -12,4 +12,5 @@ export interface commentInfo { @@ -12,4 +12,5 @@ export interface commentInfo {
12 relType: string; 12 relType: string;
13 newsType?: string, 13 newsType?: string,
14 objectType?: string, 14 objectType?: string,
  15 + userType?: number
15 } 16 }
@@ -186,8 +186,11 @@ export struct ZhSingleRow06 { @@ -186,8 +186,11 @@ export struct ZhSingleRow06 {
186 this.loadImg 186 this.loadImg
187 ? item.operDataList[0]?.commentInfo?.userHeaderUrl 187 ? item.operDataList[0]?.commentInfo?.userHeaderUrl
188 ? item.operDataList[0].commentInfo.userHeaderUrl 188 ? item.operDataList[0].commentInfo.userHeaderUrl
189 - : $r('app.media.icon_default_head_mater') 189 + : commentViewModel.adjustUserType(item.operDataList[0].commentInfo?.userType)
  190 + ? $r('app.media.WDAccountOwnerHedaerDefaultIcon')
  191 + : $r('app.media.WDAccountDefaultIcon')
190 : $r('app.media.icon_default_head_mater')) 192 : $r('app.media.icon_default_head_mater'))
  193 +
191 .width(32) 194 .width(32)
192 .height(32) 195 .height(32)
193 .borderRadius(16) 196 .borderRadius(16)
@@ -26,6 +26,7 @@ export default struct MinePageUserSimpleInfoUI { @@ -26,6 +26,7 @@ export default struct MinePageUserSimpleInfoUI {
26 }else{ 26 }else{
27 this.headPhotoUrl = "" 27 this.headPhotoUrl = ""
28 this.levelHead = "" 28 this.levelHead = ""
  29 + this.userType = "1"
29 } 30 }
30 } 31 }
31 32
@@ -33,12 +34,20 @@ export default struct MinePageUserSimpleInfoUI { @@ -33,12 +34,20 @@ export default struct MinePageUserSimpleInfoUI {
33 Row(){ 34 Row(){
34 //头像 35 //头像
35 Stack(){ 36 Stack(){
  37 + if (this.headPhotoUrl.length > 0){
36 Image(this.headPhotoUrl) 38 Image(this.headPhotoUrl)
37 - .alt(this.userType === '1'?$r('app.media.default_head'):$r('app.media.AccountOwner_DefaultIcon')) 39 + .alt(this.userType === "1"?$r('app.media.default_head'):$r('app.media.AccountOwner_DefaultIcon'))
38 .width(`${this.calcHeight(100)}lpx`) 40 .width(`${this.calcHeight(100)}lpx`)
39 .height(`${this.calcHeight(100)}lpx`) 41 .height(`${this.calcHeight(100)}lpx`)
40 .objectFit(ImageFit.Cover) 42 .objectFit(ImageFit.Cover)
41 .borderRadius(50) 43 .borderRadius(50)
  44 + }else {
  45 + Image(this.userType === "1"?$r('app.media.default_head'):$r('app.media.AccountOwner_DefaultIcon'))
  46 + .width(`${this.calcHeight(100)}lpx`)
  47 + .height(`${this.calcHeight(100)}lpx`)
  48 + .objectFit(ImageFit.Cover)
  49 + .borderRadius(50)
  50 + }
42 51
43 if(StringUtils.isNotEmpty(this.levelHead)){ 52 if(StringUtils.isNotEmpty(this.levelHead)){
44 Image(this.levelHead) 53 Image(this.levelHead)
@@ -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() {
@@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
7 "main": "", 7 "main": "",
8 "version": "1.0.0", 8 "version": "1.0.0",
9 "dependencies": { 9 "dependencies": {
10 - "@ohos/lottie": "2.0.10", 10 + "@ohos/lottie": "v2.0.11-rc.6",
11 "wdComponent": "file:../../features/wdComponent", 11 "wdComponent": "file:../../features/wdComponent",
12 "wdConstant": "file:../../commons/wdConstant", 12 "wdConstant": "file:../../commons/wdConstant",
13 "wdKit": "file:../../commons/wdKit", 13 "wdKit": "file:../../commons/wdKit",