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
yangchenggong1_wd
2024-05-21 17:19:52 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4ce8c3d008ac31c875927ac97d06223b3716c91e
4ce8c3d0
1 parent
64b39d3a
fix:bug[17915] 评论消息后互动信息中显示的内容不一致
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
2 deletions
sight_harmony/features/wdComponent/src/main/ets/components/mine/message/MessageListUI.ets
sight_harmony/features/wdComponent/src/main/ets/model/InteractMessageModel.ets
sight_harmony/features/wdComponent/src/main/ets/viewmodel/MessageUnReadItem.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/message/MessageListUI.ets
View file @
4ce8c3d
import { DateTimeUtils, StringUtils, ToastUtils } from 'wdKit/Index'
import { WDRouterPage, WDRouterRule } from 'wdRouter/Index'
import { WDMessageCenterMessageType } from '../../../model/InteractMessageModel'
import {
Remark,
WDMessageCenterMessageType } from '../../../model/InteractMessageModel'
import MinePageDatasModel from '../../../model/MinePageDatasModel'
import { MessageItem } from '../../../viewmodel/MessageItem'
import { CustomPullToRefresh } from '../../reusable/CustomPullToRefresh'
...
...
@@ -66,6 +66,24 @@ export struct MessageListUI {
if (value.activeInfo.title) {
item.desc = value.activeInfo.title.replace("null","")
}
let remark = JSON.parse(value.activeInfo.remark) as Remark
switch (value.activeInfo.contentType){
case "204":
item.desc = remark.userName + "关注了你"
break;
case "206":
item.desc = remark.userName +"赞了你的作品"
break;
case "207":
item.desc = remark.userName + "赞了你的评论"
break;
case "208":
item.desc = remark.userName + "评论了你的作品"
break;
case "209":
item.desc = remark.userName + "回复了你的评论"
break;
}
if (value.activeInfo.time) {
item.time = this.getPublishTime(value.subscribeInfo.time,DateTimeUtils.getDateTimestamp(value.activeInfo.time) + "")
}
...
...
sight_harmony/features/wdComponent/src/main/ets/model/InteractMessageModel.ets
View file @
4ce8c3d
...
...
@@ -109,4 +109,5 @@ export class Remark{
coverImageUrl:string = ""
relationId:string = ""
status:string = ""
userName:string = ""
}
\ No newline at end of file
...
...
sight_harmony/features/wdComponent/src/main/ets/viewmodel/MessageUnReadItem.ets
View file @
4ce8c3d
...
...
@@ -41,11 +41,23 @@ class SystemInfo{
time: string = ""
title: string = ""
userId: number = -1
remark: string = ""
}
class ActiveInfo{
id:string = ""
classify: string = ""
contentId: string = ""
contentType: string = ""
id: number = -1
message: string = ""
platform: string = ""
privateMailId: number = -1
privateMailIds: string = ""
privateMailNum: number = -1
read: boolean = false
source: string = ""
time: string = ""
title: string = ""
userId: number = -1
remark: string = ""
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment