Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
张善主
2024-06-11 11:07:28 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
bb49607df11bbc8a8d4748e6d3cb17ae964a9785
bb49607d
1 parent
7ed2d232
fix(18721,测试反馈比较严重问题): UI还原问题-【uat】进入心情没好直播间-输入框显示白色
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
8 deletions
sight_harmony/features/wdComponent/src/main/ets/components/cardCommon/LiveFollowComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/view/LiveOperRowListView.ets
sight_harmony/features/wdDetailPlayLive/src/main/ets/pages/DetailPlayLiveCommon.ets
sight_harmony/features/wdDetailPlayLive/src/main/ets/pages/DetailPlayVLivePage.ets
sight_harmony/features/wdDetailPlayLive/src/main/ets/widgets/details/video/PlayUIComponent.ets
sight_harmony/features/wdDetailPlayLive/src/main/ets/widgets/vertical/PlayerInfoComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardCommon/LiveFollowComponent.ets
View file @
bb49607
/**
* 直播详情 关注相关信息
* 直播详情 关注相关信息
直播详情页用户信息行
*/
import {
ContentDetailRequest,
...
...
@@ -40,6 +40,7 @@ export struct LiveFollowComponent {
bottomLeft: 90
})
Row() {
//号主头像
Image(this.rmhInfo.rmhHeadUrl)
.width(24)
.height(24)
...
...
@@ -54,6 +55,7 @@ export struct LiveFollowComponent {
WDRouterRule.jumpWithPage(WDRouterPage.peopleShipHomePage, params)
}
})
//号主名称
Text(this.rmhInfo.rmhName)
.fontColor(Color.White)
.maxLines(1)
...
...
@@ -65,6 +67,7 @@ export struct LiveFollowComponent {
right: 6
})
Blank()
//关注状态
Text(this.followStatus === '0' ? '关注' : '已关注')
.fontColor(Color.White)
.fontWeight(500)
...
...
sight_harmony/features/wdComponent/src/main/ets/components/view/LiveOperRowListView.ets
View file @
bb49607
...
...
@@ -189,7 +189,7 @@ export struct LiveOperRowListView {
Stack({ alignContent: Alignment.Start }) {
RelativeContainer() {
Image(
$r('app.media.comment_img_input_hui
'))
Image(
this.styleType == 1 ? $r('app.media.comment_img_input_hui'):$r('app.media.comment_img_input_black
'))
.objectFit(ImageFit.Fill)
.resizable({
slice: {
...
...
@@ -208,7 +208,7 @@ export struct LiveOperRowListView {
.id("Image")
Text("说两句...")
.fontSize(12)
.fontColor(
'#999999
')
.fontColor(
this.styleType == 1 ? '#999999':'#CCFFFFFF
')
.margin({ left: 10 })
.alignRules({
top: { anchor: "__container__", align: VerticalAlign.Top },
...
...
sight_harmony/features/wdDetailPlayLive/src/main/ets/pages/DetailPlayLiveCommon.ets
View file @
bb49607
...
...
@@ -13,6 +13,7 @@ import { LiveDetailPageLogic } from '../viewModel/LiveDetailPageLogic';
const TAG = 'DetailPlayLiveCommon'
/**
* 直播详情页
* @Description: 沉浸式和非沉浸式直播页面
* @Author:
* @Email:
...
...
sight_harmony/features/wdDetailPlayLive/src/main/ets/pages/DetailPlayVLivePage.ets
View file @
bb49607
...
...
@@ -10,6 +10,7 @@ import { PlayerEndView } from '../widgets/vertical/PlayerEndView';
import { TrackConstants, TrackingButton } from 'wdTracking/Index';
import { LiveDetailPageLogic } from '../viewModel/LiveDetailPageLogic';
import { onlyWifiLoadVideo } from 'wdComponent/src/main/ets/utils/lazyloadImg';
import { StringUtils } from 'wdKit';
const storage = LocalStorage.getShared();
const TAG = 'DetailPlayVLivePage'
...
...
@@ -97,7 +98,7 @@ export struct DetailPlayVLivePage {
.blur(100)
.renderFit(RenderFit.RESIZE_COVER)
// 直播结束且无回看
if (this.liveState === 'end' &&
!this.playUrl
) {
if (this.liveState === 'end' &&
StringUtils.isEmpty(this.playUrl)
) {
PlayerEndView()
} else {
// 直播暂停,仍然可以评论
...
...
sight_harmony/features/wdDetailPlayLive/src/main/ets/widgets/details/video/PlayUIComponent.ets
View file @
bb49607
...
...
@@ -6,7 +6,7 @@ import { DateFormatUtil, PlayerConstants, WDAliPlayerController } from 'wdPlayer
import { ContentDetailDTO, LiveRoomDataBean } from 'wdBean/Index';
import { DisplayDirection } from 'wdConstant/Index';
import { LiveFollowComponent, LottieView } from 'wdComponent/Index';
//直播间播放器上层覆盖物
@Component
export struct PlayUIComponent {
playerController?: WDAliPlayerController;
...
...
@@ -84,11 +84,12 @@ export struct PlayUIComponent {
.height('100%')
.alignItems(HorizontalAlign.Start)
}
//最顶部UI
@Builder
getTopUIComponent() {
Column() {
Row() {
//返回键
Image($r('app.media.icon_arrow_left_white'))
.width(24)
.aspectRatio(1)
...
...
@@ -105,6 +106,7 @@ export struct PlayUIComponent {
})
if (this.contentDetailData.liveInfo?.liveState != 'wait') {
//标题
Text(this.contentDetailData.newsTitle)
.maxLines(1)
.textOverflow({ overflow: TextOverflow.MARQUEE })
...
...
@@ -116,6 +118,7 @@ export struct PlayUIComponent {
} else {
Blank()
}
//分享按钮
Image($r('app.media.icon_share'))
.width(24)
.aspectRatio(1)
...
...
@@ -126,16 +129,18 @@ export struct PlayUIComponent {
.margin({
bottom: 10
})
//第二行左边号主信息
Row() {
if (this.contentDetailData?.rmhInfo) {
LiveFollowComponent({
rmhInfo: this.contentDetailData.rmhInfo
})
.margin({
top:-7,
right: 10
})
}
//第二行右边直播状态参与人数
this.getLiveStatusView()
}
}
...
...
sight_harmony/features/wdDetailPlayLive/src/main/ets/widgets/vertical/PlayerInfoComponent.ets
View file @
bb49607
import { WDAliPlayerController } from 'wdPlayer/Index'
import { PlayerUIComponent } from './PlayerUIComponent'
//竖屏直播详情页左右滑动浮层
@Component
export struct PlayerInfoComponent {
swiperController?: SwiperController
...
...
Please
register
or
login
to post a comment