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
zhenghy
2024-05-08 08:57:31 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e36ff264e202c645d519e18d759ff7300fec9554
e36ff264
1 parent
c4462a0f
fix: 16640
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
6 deletions
sight_harmony/commons/wdKit/src/main/ets/utils/WindowModel.ets
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/DetailPlayShortVideoPage.ets
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/view/PlayerCommentView.ets
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/view/PlayerRightView.ets
sight_harmony/commons/wdKit/src/main/ets/utils/WindowModel.ets
View file @
e36ff26
...
...
@@ -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));
...
...
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/DetailPlayShortVideoPage.ets
View file @
e36ff26
...
...
@@ -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')
...
...
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/view/PlayerCommentView.ets
View file @
e36ff26
...
...
@@ -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
...
...
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/view/PlayerRightView.ets
View file @
e36ff26
...
...
@@ -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:
6
0, 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 {
...
...
Please
register
or
login
to post a comment