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
zhangwenqiang
2024-08-05 16:17:33 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
c0c3b7cf3d5b00ffbebe4b6b8372b7d7dfad81fd
c0c3b7cf
2 parents
21b4569c
0e60bcca
Merge branch 'fixbug-branch'
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
sight_harmony/features/wdComponent/src/main/ets/components/ImageAndTextPageComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/appointment/AppointmentListUI.ets
sight_harmony/features/wdComponent/src/main/ets/components/ImageAndTextPageComponent.ets
View file @
c0c3b7c
...
...
@@ -117,7 +117,8 @@ export struct ImageAndTextPageComponent {
if (this.likeNum > 0) {
Text(NumberFormatterUtils.formatNumberWithWan(this.likeNum))
.fontSize(16)
.fontColor(this.newsStatusOfUser?.likeStatus == '1' ? '#ED2800' : '#999999')
//.fontColor(this.newsStatusOfUser?.likeStatus == '1' ? '#ED2800' : '#999999')
.fontColor((this.likeNumTextColor()))
.fontFamily('PingFang SC-Regular')
.fontWeight(400)
.margin({ left: 5 })
...
...
@@ -267,6 +268,14 @@ export struct ImageAndTextPageComponent {
.backgroundColor(Color.White)
}
private likeNumTextColor() {
if(this.newsStatusOfUser?.likeStatus == '1'){
//已点赞状态 祈福和默哀为黑色 其余为红色
return (this.contentDetailData?.likesStyle == 2 || this.contentDetailData?.likesStyle == 3) ? '#222222' : '#ED2800'
}
return '#999999'
}
private async getDetail() {
this.isNetConnected = NetworkUtil.isNetConnected()
if (!this.isNetConnected) {
...
...
sight_harmony/features/wdComponent/src/main/ets/components/mine/appointment/AppointmentListUI.ets
View file @
c0c3b7c
...
...
@@ -200,12 +200,13 @@ export struct AppointmentListUI {
let time = arr[0].split("-");
if (time.length === 3) {
let month = time[1].indexOf("0") === 0 ? time[1].substring(1) : time[1]
let day = time[2]
// let day = time[2]
let day = time[2].indexOf("0") === 0 ? time[2].substring(1) : time[2]
dealData[0] = `${month}月${day}日`
let today = `${new Date().getMonth() + 1}月${new Date().getDate()}日`
if (dealData[0] === today) {
dealData[0] = "今
日
"
dealData[0] = "今
天
"
}
}
}
...
...
Please
register
or
login
to post a comment