张善主

fix(18721,测试反馈比较严重问题): UI还原问题-【uat】进入心情没好直播间-输入框显示白色

/**
* 直播详情 关注相关信息
* 直播详情 关注相关信息 直播详情页用户信息行
*/
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)
... ...
... ... @@ -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 },
... ...
... ... @@ -13,6 +13,7 @@ import { LiveDetailPageLogic } from '../viewModel/LiveDetailPageLogic';
const TAG = 'DetailPlayLiveCommon'
/**
* 直播详情页
* @Description: 沉浸式和非沉浸式直播页面
* @Author:
* @Email:
... ...
... ... @@ -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 {
// 直播暂停,仍然可以评论
... ...
... ... @@ -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()
}
}
... ...
import { WDAliPlayerController } from 'wdPlayer/Index'
import { PlayerUIComponent } from './PlayerUIComponent'
//竖屏直播详情页左右滑动浮层
@Component
export struct PlayerInfoComponent {
swiperController?: SwiperController
... ...