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
fanmingyou3_wd
2024-02-04 14:29:49 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0a42dfb562f9304e5ccf1388a6145b635e9b203a
0a42dfb5
1 parent
08ba0287
早晚报,格式化视频时长
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
sight_harmony/wdComponent/src/main/ets/components/page/CardView.ets
sight_harmony/wdComponent/src/main/ets/components/page/CardView.ets
View file @
0a42dfb
...
...
@@ -396,9 +396,8 @@ export struct PaperSingleColumn999CardView {
@State videoDuration?: string = ''
aboutToAppear() {
if(this.item?.videoInfo?.videoDuration) {
let duration = StringUtils.parseNumber(this.item?.videoInfo?.videoDuration)
this.videoDuration = DateTimeUtils.getFormattedDuration(duration * 1000) // 转换为毫秒
if (this.item?.videoInfo?.videoDuration) {
this.videoDuration = DateTimeUtils.getFormattedDuration(this.item?.videoInfo?.videoDuration * 1000) // 转换为毫秒
console.info(TAG, `aboutToAppear videoDuration:${this.videoDuration}`);
}
}
...
...
Please
register
or
login
to post a comment