zhenghy

fix: 16640

... ... @@ -81,7 +81,7 @@ export class WindowModel {
setWindowKeepScreenOn(isKeepScreenOn: boolean) {
this.windowStage?.getMainWindow((err, windowClass: window.Window) => {
windowClass.setWindowKeepScreenOn(isKeepScreenOn, (err: BusinessError) => {
windowClass?.setWindowKeepScreenOn(isKeepScreenOn, (err: BusinessError) => {
const errCode: number = err.code;
if (errCode) {
console.error(WindowModel.TAG + '设置屏幕常亮:' + isKeepScreenOn + ',失败: ' + JSON.stringify(err));
... ...
... ... @@ -179,9 +179,11 @@ export struct DetailPlayShortVideoPage {
.height(this.videoLandScape === 1 ? '100%' : 'auto')
.width('100%')
.margin({
bottom: this.videoLandScape === 1 ? 130 : 0,
top: this.topSafeHeight + 'px'
})
.padding({
bottom: this.videoLandScape === 1 ? 115 : 0,
})
.align(this.videoLandScape === 0 ? Alignment.Top : Alignment.Center)
.onClick(() => {
console.error('WDPlayerRenderView=== onClick')
... ...
... ... @@ -17,7 +17,7 @@ export struct PlayerCommentView {
})
TextInput({ placeholder: '说两句...', text: this.comment })
.placeholderColor(Color.White)
.placeholderColor('#999999')
.placeholderFont({ size: 14 })
.fontColor(Color.White)
.fontSize(14)
... ... @@ -30,7 +30,12 @@ export struct PlayerCommentView {
}
.backgroundColor(Color.Black)
.alignItems(VerticalAlign.Center)
.padding({ left: 16, right: 16, top: 11, bottom: 11 })
.padding({
left: 16,
right: 16,
top: 11,
bottom: 11
})
.visibility(this.isOpenDetail ? Visibility.None : Visibility.Visible)
}
}
\ No newline at end of file
... ...
... ... @@ -170,7 +170,7 @@ export struct PlayerRightView {
.width(58)
.position({ x: '100%', y: '100%' })
.markAnchor({ x: '100%', y: '100%' })
.padding({ bottom: 0, right: 10 })
.padding({ bottom: 60, right: 10 })
.visibility(this.isOpenDetail || this.isDragging ? Visibility.None : Visibility.Visible)
}
... ... @@ -220,7 +220,7 @@ export struct PlayerRightView {
if (this.likesStyle === 1) {
return {
url: this.newsStatusOfUser.likeStatus === '1' ? $r(`app.media.ic_like_check`) : $r(`app.media.ic_like_uncheck`),
name: '赞'
name: '赞'
}
} else if (this.likesStyle === 2) {
return {
... ...