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
wangyong_wd
2024-03-29 10:02:22 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
84963f2d2329c0338d8928d191714f7ac78bb378
84963f2d
1 parent
fa1dad49
compStyle:13 新增音频图标
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
3 deletions
sight_harmony/features/wdBean/src/main/ets/bean/component/CompDTO.ets
sight_harmony/features/wdBean/src/main/ets/bean/content/ContentDTO.ets
sight_harmony/features/wdBean/src/main/ets/bean/detail/VoiceInfoDTO.ts
sight_harmony/features/wdComponent/src/main/ets/components/view/SingleImageCardComponent.ets
sight_harmony/features/wdBean/src/main/ets/bean/component/CompDTO.ets
View file @
84963f2
...
...
@@ -28,5 +28,5 @@ export interface CompDTO {
sortValue: number;
subType: string;
imageScale: number; // 封面图比例 1-4:3, 2-16:9, 3-3:2
audioDataList:AudioDTO[]
audioDataList:
AudioDTO[]
}
\ No newline at end of file
...
...
sight_harmony/features/wdBean/src/main/ets/bean/content/ContentDTO.ets
View file @
84963f2
...
...
@@ -3,7 +3,7 @@ import { LiveInfoDTO } from '../detail/LiveInfoDTO';
import { VideoInfoDTO } from '../detail/VideoInfoDTO';
import { InteractDataDTO } from './InteractDataDTO';
import { slideShows } from '../morningevening/slideShows'
import { VoiceInfoDTO } from '../detail/VoiceInfoDTO'
export interface ContentDTO {
cityCode: string;
...
...
@@ -62,5 +62,6 @@ export interface ContentDTO {
interactData:InteractDataDTO;
hasMore: number,
slideShows: slideShows[]
slideShows: slideShows[],
voiceInfo: VoiceInfoDTO
}
\ No newline at end of file
...
...
sight_harmony/features/wdBean/src/main/ets/bean/detail/VoiceInfoDTO.ts
0 → 100644
View file @
84963f2
export
interface
VoiceInfoDTO
{
defaultMultiple
?:
string
;
openMultipleAdjustment
?:
number
;
type
?:
number
;
voiceDuration
:
number
;
voiceUrl
?:
string
;
}
\ No newline at end of file
...
...
sight_harmony/features/wdComponent/src/main/ets/components/view/SingleImageCardComponent.ets
View file @
84963f2
...
...
@@ -93,6 +93,25 @@ export struct SingleImageCardComponent {
bottom: 4
})
.backgroundColor($r('app.color.color_4d000000'))
} else if(this.compDTO.operDataList[0].voiceInfo) {
Row() {
Image($r('app.media.icon_listen'))
.width(22)
.height(18)
Text(DateTimeUtils.getFormattedDuration(this.compDTO.operDataList[0].voiceInfo
.voiceDuration * 1000))
.fontSize($r('app.float.font_size_13'))
.fontWeight(400)
.fontColor($r('app.color.color_fff'))
}
.alignItems(VerticalAlign.Bottom)
.height(18)
.padding({ right: 4 })
.margin({
right: 4,
bottom: 4
})
.backgroundColor($r('app.color.color_4d000000'))
}
}.alignContent(Alignment.BottomEnd)
}
...
...
Please
register
or
login
to post a comment