Merge branch 'main' of http://192.168.1.42/developOne/harmonyPool into main
* 'main' of http://192.168.1.42/developOne/harmonyPool: ref |> 修复横版直播间直播间Tab和大家聊占位图多了一个返回按钮问题 fix: 沉浸式视频进度条左右边距修改
Showing
5 changed files
with
22 additions
and
17 deletions
| @@ -63,6 +63,8 @@ export struct EmptyComponent { | @@ -63,6 +63,8 @@ export struct EmptyComponent { | ||
| 63 | @State emptyButton: boolean = false | 63 | @State emptyButton: boolean = false |
| 64 | @State isBlack: boolean = false // 背景是否为黑色 默认白色 | 64 | @State isBlack: boolean = false // 背景是否为黑色 默认白色 |
| 65 | @State timeNum: number = 10 | 65 | @State timeNum: number = 10 |
| 66 | + ///占位图上是否显示返回按钮 | ||
| 67 | + @State showBackButton: boolean = true | ||
| 66 | /** | 68 | /** |
| 67 | * The empty image width percentage setting. | 69 | * The empty image width percentage setting. |
| 68 | */ | 70 | */ |
| @@ -111,16 +113,18 @@ export struct EmptyComponent { | @@ -111,16 +113,18 @@ export struct EmptyComponent { | ||
| 111 | build() { | 113 | build() { |
| 112 | Stack({alignContent:Alignment.Bottom}) { | 114 | Stack({alignContent:Alignment.Bottom}) { |
| 113 | this.noProgrammeData(); | 115 | this.noProgrammeData(); |
| 114 | - Image($r("app.media.icon_arrow_left_white")) | ||
| 115 | - .width(24) | ||
| 116 | - .height(24) | ||
| 117 | - .onClick(() => { | ||
| 118 | - router.back(); | ||
| 119 | - }) | ||
| 120 | - .position({ | ||
| 121 | - bottom: 15, | ||
| 122 | - left: 16 | ||
| 123 | - }) | 116 | + if (this.showBackButton) { |
| 117 | + Image($r("app.media.icon_arrow_left_white")) | ||
| 118 | + .width(24) | ||
| 119 | + .height(24) | ||
| 120 | + .onClick(() => { | ||
| 121 | + router.back(); | ||
| 122 | + }) | ||
| 123 | + .position({ | ||
| 124 | + bottom: 15, | ||
| 125 | + left: 16 | ||
| 126 | + }) | ||
| 127 | + } | ||
| 124 | } | 128 | } |
| 125 | } | 129 | } |
| 126 | 130 |
| @@ -78,7 +78,7 @@ export struct TabChatComponent { | @@ -78,7 +78,7 @@ export struct TabChatComponent { | ||
| 78 | } else if (this.pageModel.viewType == ViewType.ERROR) { | 78 | } else if (this.pageModel.viewType == ViewType.ERROR) { |
| 79 | ErrorComponent() | 79 | ErrorComponent() |
| 80 | } else if (this.pageModel.viewType == ViewType.EMPTY) { | 80 | } else if (this.pageModel.viewType == ViewType.EMPTY) { |
| 81 | - EmptyComponent({ emptyType: WDViewDefaultType.WDViewDefaultType_NoComment1 }) | 81 | + EmptyComponent({ emptyType: WDViewDefaultType.WDViewDefaultType_NoComment1, showBackButton:false}) |
| 82 | } else { | 82 | } else { |
| 83 | 83 | ||
| 84 | CustomPullToRefresh({ | 84 | CustomPullToRefresh({ |
| @@ -75,7 +75,7 @@ export struct TabLiveComponent { | @@ -75,7 +75,7 @@ export struct TabLiveComponent { | ||
| 75 | } else if (this.pageModel.viewType == ViewType.ERROR) { | 75 | } else if (this.pageModel.viewType == ViewType.ERROR) { |
| 76 | ErrorComponent() | 76 | ErrorComponent() |
| 77 | } else if (this.pageModel.viewType == ViewType.EMPTY) { | 77 | } else if (this.pageModel.viewType == ViewType.EMPTY) { |
| 78 | - EmptyComponent({ emptyType: WDViewDefaultType.WDViewDefaultType_NoContent1 }) | 78 | + EmptyComponent({ emptyType: WDViewDefaultType.WDViewDefaultType_NoContent1, showBackButton:false }) |
| 79 | } else { | 79 | } else { |
| 80 | CustomPullToRefresh({ | 80 | CustomPullToRefresh({ |
| 81 | alldata: this.liveList, | 81 | alldata: this.liveList, |
| @@ -130,11 +130,12 @@ export struct PlayerProgressView { | @@ -130,11 +130,12 @@ export struct PlayerProgressView { | ||
| 130 | this.isDragging = false | 130 | this.isDragging = false |
| 131 | } | 131 | } |
| 132 | this.playerController?.setSeekTime(value, mode); | 132 | this.playerController?.setSeekTime(value, mode); |
| 133 | - console.log('slider onChange:', value, mode) | 133 | + // console.log('slider onChange:', value, mode) |
| 134 | 134 | ||
| 135 | }) | 135 | }) |
| 136 | } | 136 | } |
| 137 | .width('100%') | 137 | .width('100%') |
| 138 | + .padding({ left: 6, right: 6 }) | ||
| 138 | .height(24) | 139 | .height(24) |
| 139 | .justifyContent(FlexAlign.Center) | 140 | .justifyContent(FlexAlign.Center) |
| 140 | 141 |
| @@ -94,7 +94,7 @@ export struct PlayerTitleView { | @@ -94,7 +94,7 @@ export struct PlayerTitleView { | ||
| 94 | } | 94 | } |
| 95 | clipStr += strArr[i] | 95 | clipStr += strArr[i] |
| 96 | } | 96 | } |
| 97 | - console.log(TAG, 'clipStr:', clipStr) | 97 | + // console.log(TAG, 'clipStr:', clipStr) |
| 98 | return clipStr | 98 | return clipStr |
| 99 | } | 99 | } |
| 100 | 100 | ||
| @@ -130,7 +130,7 @@ export struct PlayerTitleView { | @@ -130,7 +130,7 @@ export struct PlayerTitleView { | ||
| 130 | } | 130 | } |
| 131 | clipStr += strArr[i] | 131 | clipStr += strArr[i] |
| 132 | } | 132 | } |
| 133 | - console.log(TAG, 'clipTitleText clipStr:', clipStr) | 133 | + // console.log(TAG, 'clipTitleText clipStr:', clipStr) |
| 134 | return clipStr | 134 | return clipStr |
| 135 | } | 135 | } |
| 136 | 136 | ||
| @@ -145,8 +145,8 @@ export struct PlayerTitleView { | @@ -145,8 +145,8 @@ export struct PlayerTitleView { | ||
| 145 | 145 | ||
| 146 | }) | 146 | }) |
| 147 | this.titleHeight = info?.height as number || 0 | 147 | this.titleHeight = info?.height as number || 0 |
| 148 | - console.log('titleHeight:', this.titleHeight,) | ||
| 149 | - console.log(TAG, 'this.contentDetailData:', JSON.stringify(this.contentDetailData)) | 148 | + // console.log('titleHeight:', this.titleHeight,) |
| 149 | + // console.log(TAG, 'this.contentDetailData:', JSON.stringify(this.contentDetailData)) | ||
| 150 | this.summary = this.getSummary() | 150 | this.summary = this.getSummary() |
| 151 | } | 151 | } |
| 152 | 152 |
-
Please register or login to post a comment