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-08-22 16:54:59 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
c7dc18e6e5c5e666167f598be68d50be59ce6466
c7dc18e6
2 parents
4c0159a4
1306e389
Merge remote-tracking branch 'origin/main'
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
11 deletions
sight_harmony/features/wdComponent/src/main/ets/components/ENewspaperPageComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/view/LiveLikeComponent.ets
sight_harmony/features/wdComponent/src/main/resources/base/media/live_like_icon_number_bg.png
sight_harmony/features/wdComponent/src/main/resources/rawfile/apph5/index.html
sight_harmony/features/wdComponent/src/main/resources/rawfile/apph5/js/index.js
sight_harmony/features/wdDetailPlayLive/src/main/ets/widgets/vertical/PlayerComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/ENewspaperPageComponent.ets
View file @
c7dc18e
...
...
@@ -141,8 +141,8 @@ export struct ENewspaperPageComponent {
// bottomSafeHeight 底导高度 topSafeHeight 顶导高度 44 顶部高度 60 底部高度
// newspaper_shadow 49 高度 e_newspaper_content 59 margin top
let height =
screenHeight - this.bottomSafeHeight - this.topSafeHeight - vp2px(44) - vp2px(60) - vp2px(49) - vp2px(59)
this.picHeight = height
// screenHeight - this.bottomSafeHeight - this.topSafeHeight - vp2px(44) - vp2px(60) - vp2px(49) - vp2px(59)
this.picHeight = (this.picWidth * 506)/355
let ratio = this.ratio == '100%' ? 1 : 0.5
this.picWidth = this.picWidth * ratio
...
...
@@ -279,7 +279,7 @@ export struct ENewspaperPageComponent {
.indicator(false)
.loop(false)
.displayCount(1)
.margin({ top:
5
9, left: 10, right: 10 })
.margin({ top:
6
9, left: 10, right: 10 })
.id('e_newspaper_content')
.alignRules({
top: { anchor: "e_newspaper_top", align: VerticalAlign.Bottom },
...
...
sight_harmony/features/wdComponent/src/main/ets/components/view/LiveLikeComponent.ets
View file @
c7dc18e
...
...
@@ -122,7 +122,8 @@ export struct LiveLikeComponent {
if (this.likeCount != 0) {
RelativeContainer() {
Image(this.styleType == 1 ? $r('app.media.comment_icon_number_bg') : $r('app.media.ic_like_back_Select'))
///2是直播,直播的单独一种样式,
Image( this.contentDetailData.newsType == 2 ? $r('app.media.live_like_icon_number_bg') : (this.styleType == 1 ? $r('app.media.comment_icon_number_bg') : $r('app.media.ic_like_back_Select')))
.objectFit(ImageFit.Fill)
.height(10)
.resizable({
...
...
sight_harmony/features/wdComponent/src/main/resources/base/media/live_like_icon_number_bg.png
0 → 100644
View file @
c7dc18e
458 Bytes
sight_harmony/features/wdComponent/src/main/resources/rawfile/apph5/index.html
View file @
c7dc18e
...
...
@@ -219,7 +219,7 @@
<div
class=
"cdescrip_text"
v-if=
"details.rmhDesc"
@
click=
"skipCustomerNumberPage"
>
{{details.rmhDesc}}
</div>
</div>
<!-- @click.stop阻止事件冒泡 -->
<template
v-if=
"!isOwer"
>
<template
v-if=
"!isOwer
&& showButton
"
>
<div
class=
"clook-btn clook"
@
click
.
stop=
"clookBtn"
v-if=
"clookStatusSee || showClook"
>
<template
v-if=
"clookBtnActive"
>
<img
class=
"clook-loading anticon-spin"
src=
"./image/loading_clock.svg"
alt=
""
>
...
...
sight_harmony/features/wdComponent/src/main/resources/rawfile/apph5/js/index.js
View file @
c7dc18e
...
...
@@ -50,6 +50,7 @@ const app = Vue.createApp({
const
isRmh
=
ref
(
null
)
const
isNewspaper
=
ref
(
null
)
const
browseStr
=
ref
(
''
)
const
showButton
=
ref
(
false
)
const
state
=
reactive
({
clientHeight
:
0
,
...
...
@@ -1051,11 +1052,13 @@ const app = Vue.createApp({
headers
:
state
.
appHeader
,
showError
:
false
})
showButton
.
value
=
true
if
(
response
.
success
)
{
clookStatusSee
.
value
=
response
.
data
[
0
].
status
==
'1'
?
false
:
true
// '1' 是已关注 '0'是未关注
}
}
else
{
if
(
state
.
creatorID
==
state
.
details
.
rmhId
)
{
showButton
.
value
=
true
isOwer
.
value
=
true
clookStatusSee
.
value
=
false
nextTick
(()
=>
{
...
...
@@ -1090,6 +1093,7 @@ const app = Vue.createApp({
const
code
=
statusResponseMap
.
code
const
data
=
statusResponseMap
.
data
if
([
200
,
'0'
].
includes
(
code
))
{
showButton
.
value
=
true
if
(
data
)
{
if
(
data
[
0
].
status
==
'1'
)
{
state
.
initClockStatus
=
!
initStatus
...
...
@@ -1949,6 +1953,7 @@ const app = Vue.createApp({
isNewspaper
.
value
=
false
voteInit
.
value
=
false
showClook
.
value
=
false
showButton
.
value
=
false
optionList
.
value
=
[]
subjectList
.
value
=
[]
channelList
.
value
=
[]
...
...
@@ -2074,6 +2079,7 @@ const app = Vue.createApp({
optionList
,
showClook
,
clookStatusSee
,
showButton
,
timeLine
,
shareOpen
,
hasReadCount
,
...
...
sight_harmony/features/wdDetailPlayLive/src/main/ets/widgets/vertical/PlayerComponent.ets
View file @
c7dc18e
...
...
@@ -56,17 +56,11 @@ export struct PlayerComponent {
this.playerController.onVideoSizePlayerComponentBack = (width: number, height: number) => {
if(width>height){
this.isLarge = false
if(this.liveStreamType == 1) { ///后台选择的是竖屏流,实际流画面是横屏,展示样式和安卓保持一致
this.isLarge = true
this.playerController?.setScaleMode(AliScaleMode.SCALE_ASPECT_FILL)
return
}
if(width > 2){
this.liveStreamType = 0
}
}else{
this.isLarge = true
this.playerController?.setScaleMode(AliScaleMode.SCALE_ASPECT_FILL)
}
}
}
...
...
Please
register
or
login
to post a comment