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
wangliang_wd
2024-09-20 15:58:42 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
837796295fab6fc88d55c19c202a9ebb37cdd82c
83779629
1 parent
116d0cd8
feat:调整早晚报字体,调整个人主页时间显示问题
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
sight_harmony/features/wdComponent/src/main/ets/components/MorningEveningPaper/PaperTitleComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/ChildCommentComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/MorningEveningPaper/PaperTitleComponent.ets
View file @
8377962
...
...
@@ -3,6 +3,7 @@ import { ContentDetailDTO, TopicInfo } from 'wdBean/Index';
import { ToastUtils } from 'wdKit';
import { WDShare } from 'wdShare/Index';
import { TrackConstants } from 'wdTracking/Index';
import font from '@ohos.font';
/**
* 早晚报页面标题bar
...
...
@@ -14,6 +15,10 @@ export struct PaperTitleComponent {
@Consume subTitle?: string
@Consume topicInfo: TopicInfo
aboutToAppear() {
font.registerFont({
familyName: 'SourceHanSerifSC-Heavy',
familySrc: $rawfile('font/SourceHanSerifSC-Heavy.ttf')
})
}
build() {
...
...
@@ -54,7 +59,7 @@ export struct PaperTitleComponent {
.margin({ left: 10 })
.fontSize(22)
.fontColor($r('app.color.white'))
.fontFamily('Source
Han Serif CN
')
.fontFamily('Source
HanSerifSC-Heavy
')
.maxLines(1)
...
...
@@ -125,7 +130,7 @@ export struct PaperTitleComponent {
@Builder
rightDecorateBuilder() {
Row()
.width('
10
0vp')
.width('
8
0vp')
.height('18vp')
.clip(new Path({
commands: `M${vp2px(9)} 0 H${vp2px(91)} V${vp2px(18)} L0 ${vp2px(18)} Z`
...
...
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/ChildCommentComponent.ets
View file @
8377962
import { ContentDTO } from 'wdBean/Index'
import { StringUtils, UserDataLocal } from 'wdKit/Index'
import {
DateTimeUtils,
StringUtils, UserDataLocal } from 'wdKit/Index'
import MinePageDatasModel from '../../../model/MinePageDatasModel'
import { CommentLikeOperationRequestItem } from '../../../viewmodel/CommentLikeOperationRequestItem'
import { CommentListItem } from '../../../viewmodel/CommentListItem'
...
...
@@ -45,7 +45,7 @@ export struct ChildCommentComponent {
.fontColor($r('app.color.color_222222'))
.margin({ bottom: 1 })
.maxLines(1)
Text(
`${this.data.createTime}`
)
Text(
DateTimeUtils.getCommentTime(DateTimeUtils.getDateTimestamp(this.data.createTime))
)
.fontColor($r('app.color.color_B0B0B0'))
.fontSize(12)
.lineHeight(16)
...
...
Please
register
or
login
to post a comment