zhangwenqiang

Merge branch 'fixbug-branch'

@@ -117,7 +117,8 @@ export struct ImageAndTextPageComponent { @@ -117,7 +117,8 @@ export struct ImageAndTextPageComponent {
117 if (this.likeNum > 0) { 117 if (this.likeNum > 0) {
118 Text(NumberFormatterUtils.formatNumberWithWan(this.likeNum)) 118 Text(NumberFormatterUtils.formatNumberWithWan(this.likeNum))
119 .fontSize(16) 119 .fontSize(16)
120 - .fontColor(this.newsStatusOfUser?.likeStatus == '1' ? '#ED2800' : '#999999') 120 + //.fontColor(this.newsStatusOfUser?.likeStatus == '1' ? '#ED2800' : '#999999')
  121 + .fontColor((this.likeNumTextColor()))
121 .fontFamily('PingFang SC-Regular') 122 .fontFamily('PingFang SC-Regular')
122 .fontWeight(400) 123 .fontWeight(400)
123 .margin({ left: 5 }) 124 .margin({ left: 5 })
@@ -267,6 +268,14 @@ export struct ImageAndTextPageComponent { @@ -267,6 +268,14 @@ export struct ImageAndTextPageComponent {
267 .backgroundColor(Color.White) 268 .backgroundColor(Color.White)
268 } 269 }
269 270
  271 + private likeNumTextColor() {
  272 + if(this.newsStatusOfUser?.likeStatus == '1'){
  273 + //已点赞状态 祈福和默哀为黑色 其余为红色
  274 + return (this.contentDetailData?.likesStyle == 2 || this.contentDetailData?.likesStyle == 3) ? '#222222' : '#ED2800'
  275 + }
  276 + return '#999999'
  277 + }
  278 +
270 private async getDetail() { 279 private async getDetail() {
271 this.isNetConnected = NetworkUtil.isNetConnected() 280 this.isNetConnected = NetworkUtil.isNetConnected()
272 if (!this.isNetConnected) { 281 if (!this.isNetConnected) {
@@ -200,12 +200,13 @@ export struct AppointmentListUI { @@ -200,12 +200,13 @@ export struct AppointmentListUI {
200 let time = arr[0].split("-"); 200 let time = arr[0].split("-");
201 if (time.length === 3) { 201 if (time.length === 3) {
202 let month = time[1].indexOf("0") === 0 ? time[1].substring(1) : time[1] 202 let month = time[1].indexOf("0") === 0 ? time[1].substring(1) : time[1]
203 - let day = time[2] 203 + // let day = time[2]
  204 + let day = time[2].indexOf("0") === 0 ? time[2].substring(1) : time[2]
204 205
205 dealData[0] = `${month}月${day}日` 206 dealData[0] = `${month}月${day}日`
206 let today = `${new Date().getMonth() + 1}月${new Date().getDate()}日` 207 let today = `${new Date().getMonth() + 1}月${new Date().getDate()}日`
207 if (dealData[0] === today) { 208 if (dealData[0] === today) {
208 - dealData[0] = "今" 209 + dealData[0] = "今"
209 } 210 }
210 } 211 }
211 } 212 }