yangchenggong1_wd

desc:客态 关注 评论

Showing 18 changed files with 961 additions and 57 deletions
@@ -122,6 +122,14 @@ export class HttpUrlUtils { @@ -122,6 +122,14 @@ export class HttpUrlUtils {
122 */ 122 */
123 static readonly OTHER_USER_DETAIL_DATA_PATH: string = "/api/rmrb-contact/contact/zh/c/master/detail"; 123 static readonly OTHER_USER_DETAIL_DATA_PATH: string = "/api/rmrb-contact/contact/zh/c/master/detail";
124 /** 124 /**
  125 + * 个人中心 其他用户的评论列表
  126 + */
  127 + static readonly OTHER_COMMENT_LIST_DATA_PATH: string = "/api/rmrb-comment/comment/zh/c/othersCommentList";
  128 + /**
  129 + * 个人中心 我的关注列表
  130 + */
  131 + static readonly OTHER_USER_FOLLOW_LIST_DATA_PATH: string = "/api/rmrb-interact/interact/zh/c/userAttention/list";
  132 + /**
125 * 早晚报列表 133 * 早晚报列表
126 * 根据页面id获取页面楼层列表 134 * 根据页面id获取页面楼层列表
127 * https://pdapis.pdnews.cn/api/rmrb-bff-display-zh/display/zh/c/pageInfo?pageId=28927 135 * https://pdapis.pdnews.cn/api/rmrb-bff-display-zh/display/zh/c/pageInfo?pageId=28927
@@ -291,7 +299,7 @@ export class HttpUrlUtils { @@ -291,7 +299,7 @@ export class HttpUrlUtils {
291 return '8a81226a-cabd-3e1b-b630-b51db4a720ed'; 299 return '8a81226a-cabd-3e1b-b630-b51db4a720ed';
292 } 300 }
293 301
294 - private static getUserId() { 302 + public static getUserId() {
295 // TODO 对接登录 303 // TODO 对接登录
296 // let userid = await SPHelper.default.get(SpConstants.USER_ID,"") 304 // let userid = await SPHelper.default.get(SpConstants.USER_ID,"")
297 // if(StringUtils.isNotEmpty(userid)) { 305 // if(StringUtils.isNotEmpty(userid)) {
@@ -405,6 +413,17 @@ export class HttpUrlUtils { @@ -405,6 +413,17 @@ export class HttpUrlUtils {
405 return url 413 return url
406 } 414 }
407 415
  416 + static getOtherCommentListDataUrl() {
  417 + let url = HttpUrlUtils.HOST_SIT + HttpUrlUtils.OTHER_COMMENT_LIST_DATA_PATH
  418 + return url
  419 + }
  420 +
  421 + static getOtherUserFollowListDataUrl() {
  422 + let url = HttpUrlUtils.HOST_SIT + HttpUrlUtils.OTHER_USER_FOLLOW_LIST_DATA_PATH
  423 + return url
  424 + }
  425 +
  426 +
408 427
409 static getYcgCommonHeaders(): HashMap<string, string> { 428 static getYcgCommonHeaders(): HashMap<string, string> {
410 let headers: HashMap<string, string> = new HashMap<string, string>() 429 let headers: HashMap<string, string> = new HashMap<string, string>()
  1 +import { Params } from 'wdBean';
1 import { LazyDataSource, StringUtils } from 'wdKit'; 2 import { LazyDataSource, StringUtils } from 'wdKit';
  3 +import { WDRouterPage, WDRouterRule } from 'wdRouter';
2 import MinePageDatasModel from '../../../model/MinePageDatasModel'; 4 import MinePageDatasModel from '../../../model/MinePageDatasModel';
3 import { FollowListDetailItem } from '../../../viewmodel/FollowListDetailItem' 5 import { FollowListDetailItem } from '../../../viewmodel/FollowListDetailItem'
4 import { FollowListDetailRequestItem } from '../../../viewmodel/FollowListDetailRequestItem'; 6 import { FollowListDetailRequestItem } from '../../../viewmodel/FollowListDetailRequestItem';
@@ -72,7 +74,7 @@ export struct FollowListDetailUI{ @@ -72,7 +74,7 @@ export struct FollowListDetailUI{
72 this.hasMore = false 74 this.hasMore = false
73 }else{ 75 }else{
74 value.list.forEach((value)=>{ 76 value.list.forEach((value)=>{
75 - this.data.push(new FollowListDetailItem(value.attentionHeadPhotoUrl,value.attentionUserName,value.fansNum,value.introduction,value.attentionCreatorId,"1")) 77 + this.data.push(new FollowListDetailItem(value.attentionHeadPhotoUrl,value.attentionUserName,value.fansNum,value.introduction,value.attentionCreatorId,"1",value.attentionUserId))
76 }) 78 })
77 this.data.notifyDataReload() 79 this.data.notifyDataReload()
78 this.count = this.data.totalCount() 80 this.count = this.data.totalCount()
@@ -90,9 +92,6 @@ export struct FollowListDetailUI{ @@ -90,9 +92,6 @@ export struct FollowListDetailUI{
90 } 92 }
91 }else{ 93 }else{
92 if(this.hasMore){ 94 if(this.hasMore){
93 - if(this.creatorDirectoryId === 120){  
94 - console.log("console");  
95 - }  
96 let object = new FollowListDetailRequestItem(this.creatorDirectoryId,20,this.curPageNum) 95 let object = new FollowListDetailRequestItem(this.creatorDirectoryId,20,this.curPageNum)
97 96
98 MinePageDatasModel.getFollowListDetailData(object,getContext(this)).then((value)=>{ 97 MinePageDatasModel.getFollowListDetailData(object,getContext(this)).then((value)=>{
@@ -115,7 +114,7 @@ export struct FollowListDetailUI{ @@ -115,7 +114,7 @@ export struct FollowListDetailUI{
115 let data : FollowListDetailItem[] = [] 114 let data : FollowListDetailItem[] = []
116 value.list.forEach((item)=>{ 115 value.list.forEach((item)=>{
117 status.creatorIds.push(new QueryListIsFollowedItem(item.creatorId)) 116 status.creatorIds.push(new QueryListIsFollowedItem(item.creatorId))
118 - data.push(new FollowListDetailItem(item.headPhotoUrl,item.cnUserName,item.cnFansNum,item.introduction,item.creatorId,"0")) 117 + data.push(new FollowListDetailItem(item.headPhotoUrl,item.cnUserName,item.cnFansNum,item.introduction,item.creatorId,"0",item.attentionUserId))
119 }) 118 })
120 119
121 MinePageDatasModel.getFollowListStatusData(status,getContext(this)).then((newValue)=>{ 120 MinePageDatasModel.getFollowListStatusData(status,getContext(this)).then((newValue)=>{
@@ -128,7 +127,7 @@ export struct FollowListDetailUI{ @@ -128,7 +127,7 @@ export struct FollowListDetailUI{
128 }) 127 })
129 128
130 data.forEach((item)=>{ 129 data.forEach((item)=>{
131 - this.data.push(new FollowListDetailItem(item.headPhotoUrl,item.cnUserName,item.cnFansNum,item.introduction,item.creatorId,item.status)) 130 + this.data.push(new FollowListDetailItem(item.headPhotoUrl,item.cnUserName,item.cnFansNum,item.introduction,item.creatorId,item.status,item.attentionUserId))
132 }) 131 })
133 132
134 this.data.notifyDataReload() 133 this.data.notifyDataReload()
@@ -233,5 +232,11 @@ struct ChildComponent { @@ -233,5 +232,11 @@ struct ChildComponent {
233 232
234 }.height('146lpx') 233 }.height('146lpx')
235 .justifyContent(FlexAlign.Center) 234 .justifyContent(FlexAlign.Center)
  235 + .onClick(()=>{
  236 + let params: Params = {
  237 + pageID: this.data.attentionUserId
  238 + }
  239 + WDRouterRule.jumpWithPage(WDRouterPage.otherNormalUserHomePagePage,params)
  240 + })
236 } 241 }
237 } 242 }
@@ -154,7 +154,7 @@ export struct HomePageBottomComponent{ @@ -154,7 +154,7 @@ export struct HomePageBottomComponent{
154 this.hasMore = false 154 this.hasMore = false
155 }else{ 155 }else{
156 value.list.forEach((value)=>{ 156 value.list.forEach((value)=>{
157 - this.data_follow.push(new FollowListDetailItem(value.attentionHeadPhotoUrl,value.attentionUserName,value.fansNum,value.introduction,value.attentionCreatorId,"1")) 157 + this.data_follow.push(new FollowListDetailItem(value.attentionHeadPhotoUrl,value.attentionUserName,value.fansNum,value.introduction,value.attentionCreatorId,"1",value.attentionUserId))
158 }) 158 })
159 this.data_follow.notifyDataReload() 159 this.data_follow.notifyDataReload()
160 this.count = this.data_follow.totalCount() 160 this.count = this.data_follow.totalCount()
@@ -179,7 +179,7 @@ export struct HomePageBottomComponent{ @@ -179,7 +179,7 @@ export struct HomePageBottomComponent{
179 this.hasMore = false 179 this.hasMore = false
180 }else{ 180 }else{
181 value.list.forEach((value)=>{ 181 value.list.forEach((value)=>{
182 - this.data_comment.push(new CommentListItem(value.fromUserHeader,value.fromUserName,value.targetTitle,value.createTime,value.commentContent)) 182 + this.data_comment.push(new CommentListItem(value.fromUserHeader,value.fromUserName,value.targetTitle,value.createTime,value.commentContent,value.likeNum,0,value.id))
183 }) 183 })
184 this.data_comment.notifyDataReload() 184 this.data_comment.notifyDataReload()
185 this.count = this.data_comment.totalCount() 185 this.count = this.data_comment.totalCount()
1 -import { LazyDataSource, StringUtils } from 'wdKit'; 1 +import { DateTimeUtils, LazyDataSource } from 'wdKit';
  2 +import MinePageDatasModel from '../../../model/MinePageDatasModel';
2 import { CommentListItem } from '../../../viewmodel/CommentListItem'; 3 import { CommentListItem } from '../../../viewmodel/CommentListItem';
3 import { OtherUserCommentListRequestItem } from '../../../viewmodel/OtherUserCommentListRequestItem'; 4 import { OtherUserCommentListRequestItem } from '../../../viewmodel/OtherUserCommentListRequestItem';
4 import { ListHasNoMoreDataUI } from '../../reusable/ListHasNoMoreDataUI'; 5 import { ListHasNoMoreDataUI } from '../../reusable/ListHasNoMoreDataUI';
  6 +import { MineCommentListDetailItem } from '../../../viewmodel/MineCommentListDetailItem';
  7 +import { OtherUserCommentLikeStatusRequestItem } from '../../../viewmodel/OtherUserCommentLikeStatusRequestItem';
5 8
6 const TAG = "HomePageBottomComponent" 9 const TAG = "HomePageBottomComponent"
7 @Component 10 @Component
@@ -12,6 +15,7 @@ export struct OtherHomePageBottomCommentComponent{ @@ -12,6 +15,7 @@ export struct OtherHomePageBottomCommentComponent{
12 @State hasMore:boolean = true 15 @State hasMore:boolean = true
13 curPageNum:number = 1; 16 curPageNum:number = 1;
14 @State count:number = 0; 17 @State count:number = 0;
  18 + @Prop levelHead:string
15 19
16 aboutToAppear(){ 20 aboutToAppear(){
17 this.getNewPageData() 21 this.getNewPageData()
@@ -31,7 +35,7 @@ export struct OtherHomePageBottomCommentComponent{ @@ -31,7 +35,7 @@ export struct OtherHomePageBottomCommentComponent{
31 List({ space: 3 }) { 35 List({ space: 3 }) {
32 LazyForEach(this.data_comment, (item: CommentListItem, index: number = 0) => { 36 LazyForEach(this.data_comment, (item: CommentListItem, index: number = 0) => {
33 ListItem() { 37 ListItem() {
34 - ChildCommentComponent({data: item}) 38 + ChildCommentComponent({data: item,levelHead:this.levelHead})
35 } 39 }
36 .onClick(() => { 40 .onClick(() => {
37 }) 41 })
@@ -47,10 +51,10 @@ export struct OtherHomePageBottomCommentComponent{ @@ -47,10 +51,10 @@ export struct OtherHomePageBottomCommentComponent{
47 .layoutWeight(1) 51 .layoutWeight(1)
48 .scrollBar(BarState.Off) 52 .scrollBar(BarState.Off)
49 .edgeEffect(EdgeEffect.None) 53 .edgeEffect(EdgeEffect.None)
50 - // .nestedScroll({  
51 - // scrollForward: NestedScrollMode.PARENT_FIRST,  
52 - // scrollBackward: NestedScrollMode.SELF_FIRST  
53 - // }) 54 + .nestedScroll({
  55 + scrollForward: NestedScrollMode.PARENT_FIRST,
  56 + scrollBackward: NestedScrollMode.SELF_FIRST
  57 + })
54 .onReachEnd(()=>{ 58 .onReachEnd(()=>{
55 console.log(TAG,"触底了"); 59 console.log(TAG,"触底了");
56 if(!this.isLoading){ 60 if(!this.isLoading){
@@ -76,45 +80,84 @@ export struct OtherHomePageBottomCommentComponent{ @@ -76,45 +80,84 @@ export struct OtherHomePageBottomCommentComponent{
76 getNewPageData(){ 80 getNewPageData(){
77 this.isLoading = true 81 this.isLoading = true
78 if(this.hasMore){ 82 if(this.hasMore){
79 -  
80 - let object = new OtherUserCommentListRequestItem("",20,this.curPageNum,"","1",this.curUserId)  
81 -  
82 - // MinePageDatasModel.getMineCommentListData(object,getContext(this)).then((value)=>{  
83 - // if (!this.data_comment || value.list.length == 0){  
84 - // this.hasMore = false  
85 - // }else{  
86 - // value.list.forEach((value)=>{  
87 - // this.data_comment.push(new CommentListItem(value.fromUserHeader,value.fromUserName,value.targetTitle,value.createTime,value.commentContent))  
88 - // })  
89 - // this.data_comment.notifyDataReload()  
90 - // this.count = this.data_comment.totalCount()  
91 - // if (this.data_comment.totalCount() < value.totalCount) {  
92 - // this.curPageNum++  
93 - // }else {  
94 - // this.hasMore = false  
95 - // }  
96 - // }  
97 - // this.isLoading = false  
98 - // }).catch((err:Error)=>{  
99 - // console.log(TAG,"请求失败")  
100 - // this.isLoading = false  
101 - // }) 83 + let time = encodeURI(DateTimeUtils.getCurDate(DateTimeUtils.PATTERN_DATE_TIME_HYPHEN))
  84 + let object = new OtherUserCommentListRequestItem("",20,this.curPageNum,time,"1",this.curUserId)
  85 +
  86 + MinePageDatasModel.getOtherCommentListData(object,getContext(this)).then((value)=>{
  87 + if (!this.data_comment || value.list.length == 0){
  88 + this.hasMore = false
  89 + }else{
  90 + this.getFollowListStatus(value)
  91 + }
  92 + }).catch((err:Error)=>{
  93 + console.log(TAG,"请求失败")
  94 + this.isLoading = false
  95 + })
102 } 96 }
103 } 97 }
  98 +
  99 + getFollowListStatus(value:MineCommentListDetailItem){
  100 +
  101 + let status = new OtherUserCommentLikeStatusRequestItem()
  102 + let data : CommentListItem[] = []
  103 + value.list.forEach((item)=>{
  104 + status.commentIdList.push(item.id)
  105 + data.push(new CommentListItem(item.fromUserHeader,item.fromUserName,item.targetTitle,item.createTime,item.commentContent,item.likeNum,0,item.id))
  106 + })
  107 +
  108 + MinePageDatasModel.getOtherUserCommentLikeStatusData(status,getContext(this)).then((newValue)=>{
  109 + newValue.forEach((item)=>{
  110 + data.forEach((list)=>{
  111 + if (item.commentId == list.id) {
  112 + list.like_status = item.status
  113 + }
  114 + })
  115 + })
  116 +
  117 + data.forEach((item)=>{
  118 + this.data_comment.push(new CommentListItem(item.fromUserHeader,item.fromUserName,item.targetTitle,item.createTime,item.commentContent,item.likeNum,item.like_status,item.id))
  119 + })
  120 +
  121 + this.data_comment.notifyDataReload()
  122 +
  123 + this.count = this.data_comment.totalCount()
  124 + if (this.data_comment.totalCount() < value.totalCount) {
  125 + this.curPageNum++
  126 + }else {
  127 + this.hasMore = false
  128 + }
  129 +
  130 + this.isLoading = false
  131 + }).catch((err:Error)=>{
  132 + console.log(TAG,"请求失败")
  133 + this.isLoading = false
  134 + })
  135 + }
  136 +
104 } 137 }
105 138
106 @Component 139 @Component
107 struct ChildCommentComponent { 140 struct ChildCommentComponent {
108 @ObjectLink data: CommentListItem 141 @ObjectLink data: CommentListItem
  142 + @Prop levelHead:string
109 143
110 build() { 144 build() {
111 Column(){ 145 Column(){
112 Row() { 146 Row() {
113 - Image(StringUtils.isEmpty(this.data.fromUserHeader)?$r('app.media.default_head'):this.data.fromUserHeader)  
114 - .objectFit(ImageFit.Auto)  
115 - .width('69lpx')  
116 - .height('69lpx')  
117 - .margin({right:'15lpx'}) 147 + Stack(){
  148 + Image(this.data.fromUserHeader)
  149 + .alt($r('app.media.default_head'))
  150 + .objectFit(ImageFit.Auto)
  151 + .width('69lpx')
  152 + .height('69lpx')
  153 + .margin({right:'15lpx'})
  154 + .borderRadius(50)
  155 + Image(this.levelHead)
  156 + .width('89lpx')
  157 + .height('89lpx')
  158 + .objectFit(ImageFit.Cover)
  159 + .borderRadius(50)
  160 + }
118 161
119 Column(){ 162 Column(){
120 Text(this.data.fromUserName) 163 Text(this.data.fromUserName)
@@ -132,6 +175,22 @@ struct ChildCommentComponent { @@ -132,6 +175,22 @@ struct ChildCommentComponent {
132 .maxLines(1) 175 .maxLines(1)
133 }.layoutWeight(1) 176 }.layoutWeight(1)
134 .alignItems(HorizontalAlign.Start) 177 .alignItems(HorizontalAlign.Start)
  178 +
  179 + Row(){
  180 + Text(this.data.likeNum.toString())
  181 + .fontWeight("500lpx")
  182 + .fontSize("27lpx")
  183 + .lineHeight("31lpx")
  184 + .fontColor(this.data.like_status===0?$r('app.color.color_666666'):$r('app.color.color_ED2800'))
  185 + .margin({right:'8lpx'})
  186 + Image(this.data.like_status===0?$r('app.media.like_default_status'):$r('app.media.liked_status'))
  187 + .width('31lpx')
  188 + .height('31lpx')
  189 + .objectFit(ImageFit.Auto)
  190 + .interpolation(ImageInterpolation.Medium)
  191 + .borderRadius(50)
  192 + }
  193 +
135 } 194 }
136 .margin({bottom:'10lpx'}) 195 .margin({bottom:'10lpx'})
137 .width('100%') 196 .width('100%')
@@ -4,6 +4,7 @@ import { WDRouterRule, WDRouterPage } from 'wdRouter'; @@ -4,6 +4,7 @@ import { WDRouterRule, WDRouterPage } from 'wdRouter';
4 import MinePageDatasModel from '../../../model/MinePageDatasModel'; 4 import MinePageDatasModel from '../../../model/MinePageDatasModel';
5 import { FollowListDetailItem } from '../../../viewmodel/FollowListDetailItem'; 5 import { FollowListDetailItem } from '../../../viewmodel/FollowListDetailItem';
6 import { FollowListDetailRequestItem } from '../../../viewmodel/FollowListDetailRequestItem'; 6 import { FollowListDetailRequestItem } from '../../../viewmodel/FollowListDetailRequestItem';
  7 +import { UserFollowListRequestItem } from '../../../viewmodel/UserFollowListRequestItem';
7 import { ListHasNoMoreDataUI } from '../../reusable/ListHasNoMoreDataUI'; 8 import { ListHasNoMoreDataUI } from '../../reusable/ListHasNoMoreDataUI';
8 9
9 const TAG = "HomePageBottomComponent" 10 const TAG = "HomePageBottomComponent"
@@ -14,6 +15,7 @@ export struct OtherHomePageBottomFollowComponent{ @@ -14,6 +15,7 @@ export struct OtherHomePageBottomFollowComponent{
14 @State hasMore:boolean = true 15 @State hasMore:boolean = true
15 curPageNum:number = 1; 16 curPageNum:number = 1;
16 @State count:number = 0; 17 @State count:number = 0;
  18 + @Prop curUserId: string
17 19
18 aboutToAppear(){ 20 aboutToAppear(){
19 this.getNewPageData() 21 this.getNewPageData()
@@ -77,10 +79,10 @@ export struct OtherHomePageBottomFollowComponent{ @@ -77,10 +79,10 @@ export struct OtherHomePageBottomFollowComponent{
77 .layoutWeight(1) 79 .layoutWeight(1)
78 .scrollBar(BarState.Off) 80 .scrollBar(BarState.Off)
79 .edgeEffect(EdgeEffect.None) 81 .edgeEffect(EdgeEffect.None)
80 - // .nestedScroll({  
81 - // scrollForward: NestedScrollMode.PARENT_FIRST,  
82 - // scrollBackward: NestedScrollMode.SELF_FIRST  
83 - // }) 82 + .nestedScroll({
  83 + scrollForward: NestedScrollMode.PARENT_FIRST,
  84 + scrollBackward: NestedScrollMode.SELF_FIRST
  85 + })
84 .onReachEnd(()=>{ 86 .onReachEnd(()=>{
85 console.log(TAG,"触底了"); 87 console.log(TAG,"触底了");
86 if(!this.isLoading){ 88 if(!this.isLoading){
@@ -107,14 +109,14 @@ export struct OtherHomePageBottomFollowComponent{ @@ -107,14 +109,14 @@ export struct OtherHomePageBottomFollowComponent{
107 this.isLoading = true 109 this.isLoading = true
108 //我的关注列表 110 //我的关注列表
109 if(this.hasMore){ 111 if(this.hasMore){
110 - let object = new FollowListDetailRequestItem(20,this.curPageNum) 112 + let object = new UserFollowListRequestItem(Number(this.curUserId),20,this.curPageNum,"1")
111 113
112 - MinePageDatasModel.getMineFollowListData(object,getContext(this)).then((value)=>{ 114 + MinePageDatasModel.getOtherUserFollowListData(object,getContext(this)).then((value)=>{
113 if (!this.data_follow || value.list.length == 0){ 115 if (!this.data_follow || value.list.length == 0){
114 this.hasMore = false 116 this.hasMore = false
115 }else{ 117 }else{
116 value.list.forEach((value)=>{ 118 value.list.forEach((value)=>{
117 - this.data_follow.push(new FollowListDetailItem(value.attentionHeadPhotoUrl,value.attentionUserName,value.fansNum,value.introduction,value.attentionCreatorId,"1")) 119 + this.data_follow.push(new FollowListDetailItem(value.attentionHeadPhotoUrl,value.attentionUserName,value.fansNum,value.introduction,value.attentionCreatorId,"1",value.attentionUserId))
118 }) 120 })
119 this.data_follow.notifyDataReload() 121 this.data_follow.notifyDataReload()
120 this.count = this.data_follow.totalCount() 122 this.count = this.data_follow.totalCount()
@@ -16,6 +16,10 @@ import { MineCommentListDetailItem } from '../viewmodel/MineCommentListDetailIte @@ -16,6 +16,10 @@ import { MineCommentListDetailItem } from '../viewmodel/MineCommentListDetailIte
16 import { MineUserLevelItem } from '../viewmodel/MineUserLevelItem'; 16 import { MineUserLevelItem } from '../viewmodel/MineUserLevelItem';
17 import { MineUserDetailItem } from '../viewmodel/MineUserDetailItem'; 17 import { MineUserDetailItem } from '../viewmodel/MineUserDetailItem';
18 import { OtherUserDetailRequestItem } from '../viewmodel/OtherUserDetailRequestItem'; 18 import { OtherUserDetailRequestItem } from '../viewmodel/OtherUserDetailRequestItem';
  19 +import { OtherUserCommentListRequestItem } from '../viewmodel/OtherUserCommentListRequestItem';
  20 +import { OtherUserCommentLikeStatusRequestItem } from '../viewmodel/OtherUserCommentLikeStatusRequestItem';
  21 +import { QueryCommentListIsLikedItem } from '../viewmodel/QueryCommentListIsLikedItem';
  22 +import { UserFollowListRequestItem } from '../viewmodel/UserFollowListRequestItem';
19 23
20 const TAG = "MinePageDatasModel" 24 const TAG = "MinePageDatasModel"
21 25
@@ -495,7 +499,128 @@ class MinePageDatasModel{ @@ -495,7 +499,128 @@ class MinePageDatasModel{
495 return compRes.data 499 return compRes.data
496 } 500 }
497 501
  502 + /**
  503 + * 其他用户的评论列表
  504 + * @param params
  505 + * @param context
  506 + * @returns
  507 + */
  508 + getOtherCommentListData(params:OtherUserCommentListRequestItem,context: Context): Promise<MineCommentListDetailItem> {
  509 + return new Promise<MineCommentListDetailItem>((success, error) => {
  510 + Logger.info(TAG, `getAppointmentList start`);
  511 + this.fetchOtherCommentListData(params).then((navResDTO: ResponseDTO<MineCommentListDetailItem>) => {
  512 + if (!navResDTO || navResDTO.code != 0) {
  513 + success(this.getOtherCommentListDataLocal(context))
  514 + return
  515 + }
  516 + Logger.info(TAG, "getAppointmentList then,AppointmentResDTO.timeStamp:" + navResDTO.timestamp);
  517 + let navigationBean = navResDTO.data as MineCommentListDetailItem
  518 + success(navigationBean);
  519 + }).catch((err: Error) => {
  520 + Logger.error(TAG, `fetchAppointmentListDataApi catch, error.name : ${err.name}, error.message:${err.message}`);
  521 + success(this.getOtherCommentListDataLocal(context))
  522 + })
  523 + })
  524 + }
  525 +
  526 + fetchOtherCommentListData(object:OtherUserCommentListRequestItem) {
  527 + let url = HttpUrlUtils.getOtherCommentListDataUrl()+`?pageSize=${object.pageSize}&pageNum=${object.pageNum}&creatorId=${object.creatorId}&time=${object.time}&userType=${object.userType}&userId=${object.userId}`
  528 + let headers: HashMap<string, string> = HttpUrlUtils.getYcgCommonHeaders();
  529 + return WDHttp.get<ResponseDTO<MineCommentListDetailItem>>(url, headers)
  530 + };
  531 +
  532 + async getOtherCommentListDataLocal(context: Context): Promise<MineCommentListDetailItem> {
  533 + Logger.info(TAG, `getMineFollowListDataLocal start`);
  534 + let compRes: ResponseDTO<MineCommentListDetailItem> | null = await ResourcesUtils.getResourcesJson<ResponseDTO<MineCommentListDetailItem>>(context,'other_user512157124138245_comment_list_data.json' );
  535 + if (!compRes || !compRes.data) {
  536 + Logger.info(TAG, `getMineFollowListDataLocal compRes is empty`);
  537 + return new MineCommentListDetailItem()
  538 + }
  539 + Logger.info(TAG, `getMineFollowListDataLocal getResourcesJsonSync compRes : ${JSON.stringify(compRes)}`);
  540 + return compRes.data
  541 + }
  542 +
  543 + /**
  544 + * 查询是否点赞了这条评论
  545 + * @param params
  546 + * @param context
  547 + * @returns
  548 + */
  549 + getOtherUserCommentLikeStatusData(params:OtherUserCommentLikeStatusRequestItem,context: Context): Promise<QueryCommentListIsLikedItem[]> {
  550 + return new Promise<QueryCommentListIsLikedItem[]>((success, error) => {
  551 + Logger.info(TAG, `getAppointmentList start`);
  552 + this.fetchOtherUserCommentLikeStatusData(params).then((navResDTO: ResponseDTO<QueryCommentListIsLikedItem[]>) => {
  553 + if (!navResDTO || navResDTO.code != 0) {
  554 + success(this.getOtherUserCommentLikeStatusDataLocal(context))
  555 + return
  556 + }
  557 + Logger.info(TAG, "getAppointmentList then,AppointmentResDTO.timeStamp:" + navResDTO.timestamp);
  558 + let navigationBean = navResDTO.data as QueryCommentListIsLikedItem[]
  559 + success(navigationBean);
  560 + }).catch((err: Error) => {
  561 + Logger.error(TAG, `fetchAppointmentListDataApi catch, error.name : ${err.name}, error.message:${err.message}`);
  562 + success(this.getOtherUserCommentLikeStatusDataLocal(context))
  563 + })
  564 + })
  565 + }
  566 +
  567 + fetchOtherUserCommentLikeStatusData(object:OtherUserCommentLikeStatusRequestItem) {
  568 + let url = HttpUrlUtils.getFollowListStatusDataUrl()
  569 + let headers: HashMap<string, string> = HttpUrlUtils.getYcgCommonHeaders();
  570 + return WDHttp.post<ResponseDTO<QueryCommentListIsLikedItem[]>>(url,object, headers)
  571 + };
  572 +
  573 + async getOtherUserCommentLikeStatusDataLocal(context: Context): Promise<QueryCommentListIsLikedItem[]> {
  574 + Logger.info(TAG, `getMineFollowListDataLocal start`);
  575 + let compRes: ResponseDTO<QueryCommentListIsLikedItem[]> | null = await ResourcesUtils.getResourcesJson<ResponseDTO<QueryCommentListIsLikedItem[]>>(context,'other_user512157124138245_comment_list_liked_data.json' );
  576 + if (!compRes || !compRes.data) {
  577 + Logger.info(TAG, `getMineFollowListDataLocal compRes is empty`);
  578 + return []
  579 + }
  580 + Logger.info(TAG, `getMineFollowListDataLocal getResourcesJsonSync compRes : ${JSON.stringify(compRes)}`);
  581 + return compRes.data
  582 + }
  583 +
  584 + /**
  585 + * 其他用户的关注列表
  586 + * @param params
  587 + * @param context
  588 + * @returns
  589 + */
  590 + getOtherUserFollowListData(params:UserFollowListRequestItem,context: Context): Promise<MineFollowListItem> {
  591 + return new Promise<MineFollowListItem>((success, error) => {
  592 + Logger.info(TAG, `getAppointmentList start`);
  593 + this.fetchOtherUserFollowListData(params).then((navResDTO: ResponseDTO<MineFollowListItem>) => {
  594 + if (!navResDTO || navResDTO.code != 0) {
  595 + success(this.getOtherUserFollowListDataLocal(context))
  596 + return
  597 + }
  598 + Logger.info(TAG, "getAppointmentList then,AppointmentResDTO.timeStamp:" + navResDTO.timestamp);
  599 + let navigationBean = navResDTO.data as MineFollowListItem
  600 + success(navigationBean);
  601 + }).catch((err: Error) => {
  602 + Logger.error(TAG, `fetchAppointmentListDataApi catch, error.name : ${err.name}, error.message:${err.message}`);
  603 + success(this.getOtherUserFollowListDataLocal(context))
  604 + })
  605 + })
  606 + }
498 607
  608 + fetchOtherUserFollowListData(object:UserFollowListRequestItem) {
  609 + let url = HttpUrlUtils.getOtherUserFollowListDataUrl()+`?pageSize=${object.pageSize}&pageNum=${object.pageNum}&queryUserId=${object.queryUserId}&userType=${object.userType}&userId=${HttpUrlUtils.getUserId()}`
  610 + let headers: HashMap<string, string> = HttpUrlUtils.getYcgCommonHeaders();
  611 + return WDHttp.get<ResponseDTO<MineFollowListItem>>(url, headers)
  612 + };
  613 +
  614 + async getOtherUserFollowListDataLocal(context: Context): Promise<MineFollowListItem> {
  615 + Logger.info(TAG, `getMineFollowListDataLocal start`);
  616 + let compRes: ResponseDTO<MineFollowListItem> | null = await ResourcesUtils.getResourcesJson<ResponseDTO<MineFollowListItem>>(context,'other_user_follow_list_data.json' );
  617 + if (!compRes || !compRes.data) {
  618 + Logger.info(TAG, `getMineFollowListDataLocal compRes is empty`);
  619 + return new MineFollowListItem()
  620 + }
  621 + Logger.info(TAG, `getMineFollowListDataLocal getResourcesJsonSync compRes : ${JSON.stringify(compRes)}`);
  622 + return compRes.data
  623 + }
499 624
500 625
501 } 626 }
@@ -67,7 +67,7 @@ struct MineHomePage { @@ -67,7 +67,7 @@ struct MineHomePage {
67 .borderRadius(50) 67 .borderRadius(50)
68 }.onClick(()=>{ 68 }.onClick(()=>{
69 let params: Params = { 69 let params: Params = {
70 - pageID: "-1" 70 + pageID: "512157124138245"
71 } 71 }
72 WDRouterRule.jumpWithPage(WDRouterPage.otherNormalUserHomePagePage,params) 72 WDRouterRule.jumpWithPage(WDRouterPage.otherNormalUserHomePagePage,params)
73 }) 73 })
@@ -32,6 +32,7 @@ struct OtherNormalUserHomePage { @@ -32,6 +32,7 @@ struct OtherNormalUserHomePage {
32 @State browseNum:number = 0//阅读数 32 @State browseNum:number = 0//阅读数
33 @State commentNum:number = 0//评论数 33 @State commentNum:number = 0//评论数
34 @State attentionNum:number = 0//关注数 34 @State attentionNum:number = 0//关注数
  35 + @State desc:string = ""
35 36
36 aboutToAppear(){ 37 aboutToAppear(){
37 this.getUserInfo() 38 this.getUserInfo()
@@ -146,17 +147,36 @@ struct OtherNormalUserHomePage { @@ -146,17 +147,36 @@ struct OtherNormalUserHomePage {
146 .width('100%') 147 .width('100%')
147 .padding({ left: '35lpx' }) 148 .padding({ left: '35lpx' })
148 149
149 - //间隔符 150 + //用户简介区域
  151 + Column() {
  152 + Row() {
  153 + Text(this.desc)
  154 + .fontSize('27lpx')
  155 + .maxLines(3)
  156 + .textOverflow({ overflow: TextOverflow.Ellipsis })
  157 + .lineHeight('40lpx')
  158 + .fontWeight('400lpx')
  159 + .fontColor($r('app.color.color_222222'))
  160 + .textAlign(TextAlign.Start)
  161 +
  162 + }
  163 + }.padding({ left: '31lpx',right:'31lpx',top:'19lpx',bottom:'31lpx'})
  164 + .alignItems(HorizontalAlign.Start)
  165 + .justifyContent(FlexAlign.Center)
  166 + .width('100%')
  167 + .backgroundColor($r('app.color.white'))
  168 + .visibility(StringUtils.isEmpty(this.desc)?Visibility.Hidden:Visibility.Visible)
150 169
  170 + //间隔符
151 Divider().width('100%').height('12lpx').color($r('app.color.color_F5F5F5')).strokeWidth('12lpx') 171 Divider().width('100%').height('12lpx').color($r('app.color.color_F5F5F5')).strokeWidth('12lpx')
152 172
153 //tab 页面 173 //tab 页面
154 Tabs({controller: this.controller}) { 174 Tabs({controller: this.controller}) {
155 TabContent() { 175 TabContent() {
156 - OtherHomePageBottomCommentComponent({curUserId:this.curUserId}) 176 + OtherHomePageBottomCommentComponent({curUserId:this.curUserId,levelHead:this.levelHead})
157 }.tabBar(this.TabBuilder(0,"评论")) 177 }.tabBar(this.TabBuilder(0,"评论"))
158 TabContent() { 178 TabContent() {
159 - OtherHomePageBottomFollowComponent() 179 + OtherHomePageBottomFollowComponent({curUserId:this.curUserId})
160 }.tabBar(this.TabBuilder(1,"关注")) 180 }.tabBar(this.TabBuilder(1,"关注"))
161 } 181 }
162 .backgroundColor($r('app.color.white')) 182 .backgroundColor($r('app.color.white'))
@@ -288,7 +308,9 @@ struct OtherNormalUserHomePage { @@ -288,7 +308,9 @@ struct OtherNormalUserHomePage {
288 if(value!=null){ 308 if(value!=null){
289 this.userName = value.userName 309 this.userName = value.userName
290 this.headPhotoUrl = value.headPhotoUrl 310 this.headPhotoUrl = value.headPhotoUrl
291 - 311 + if(StringUtils.isNotEmpty(value.introduction)){
  312 + this.desc = value.introduction
  313 + }
292 this.browseNum = StringUtils.isEmpty(value.browseNum)?0:value.browseNum 314 this.browseNum = StringUtils.isEmpty(value.browseNum)?0:value.browseNum
293 this.commentNum = StringUtils.isEmpty(value.commentNum)?0:value.commentNum 315 this.commentNum = StringUtils.isEmpty(value.commentNum)?0:value.commentNum
294 this.attentionNum = StringUtils.isEmpty(value.attentionNum)?0:value.attentionNum 316 this.attentionNum = StringUtils.isEmpty(value.attentionNum)?0:value.attentionNum
@@ -7,12 +7,18 @@ export class CommentListItem{ @@ -7,12 +7,18 @@ export class CommentListItem{
7 commentContent:string = "" 7 commentContent:string = ""
8 targetTitle:string = "" 8 targetTitle:string = ""
9 createTime:string = "" 9 createTime:string = ""
  10 + likeNum:number = 0
  11 + like_status:number = 0
  12 + id:number = 0
10 13
11 - constructor(fromUserHeader:string,fromUserName:string,targetTitle:string,createTime:string,commentContent:string ) { 14 + constructor(fromUserHeader:string,fromUserName:string,targetTitle:string,createTime:string,commentContent:string,likeNum:number,like_status:number,id:number) {
12 this.fromUserHeader = fromUserHeader 15 this.fromUserHeader = fromUserHeader
13 this.fromUserName = fromUserName 16 this.fromUserName = fromUserName
14 this.commentContent = commentContent 17 this.commentContent = commentContent
15 this.targetTitle = targetTitle 18 this.targetTitle = targetTitle
16 this.createTime = createTime 19 this.createTime = createTime
  20 + this.likeNum = likeNum
  21 + this.like_status = like_status
  22 + this.id = id
17 } 23 }
18 } 24 }
@@ -67,6 +67,7 @@ export class FollowListDetailItem{ @@ -67,6 +67,7 @@ export class FollowListDetailItem{
67 introduction:string //介绍 67 introduction:string //介绍
68 status:string = "0" //是否已经关注 68 status:string = "0" //是否已经关注
69 creatorId:string = "" 69 creatorId:string = ""
  70 + attentionUserId:string = ""
70 71
71 attentionCreatorId:string = "" 72 attentionCreatorId:string = ""
72 attentionHeadPhotoUrl:string = "" 73 attentionHeadPhotoUrl:string = ""
@@ -74,12 +75,13 @@ export class FollowListDetailItem{ @@ -74,12 +75,13 @@ export class FollowListDetailItem{
74 fansNum :number = 0 75 fansNum :number = 0
75 76
76 77
77 - constructor(headPhotoUrl:string,cnUserName:string,cnFansNum:number,introduction:string,creatorId:string,status:string ) { 78 + constructor(headPhotoUrl:string,cnUserName:string,cnFansNum:number,introduction:string,creatorId:string,status:string,attentionUserId:string) {
78 this.headPhotoUrl = headPhotoUrl 79 this.headPhotoUrl = headPhotoUrl
79 this.cnUserName = cnUserName 80 this.cnUserName = cnUserName
80 this.cnFansNum = cnFansNum 81 this.cnFansNum = cnFansNum
81 this.introduction = introduction 82 this.introduction = introduction
82 this.creatorId = creatorId 83 this.creatorId = creatorId
83 this.status = status 84 this.status = status
  85 + this.attentionUserId = attentionUserId
84 } 86 }
85 } 87 }
  1 +export class OtherUserCommentLikeStatusRequestItem{
  2 + commentIdList:number[] = []
  3 +}
  1 +
  2 +
  3 +export class QueryCommentListIsLikedItem{
  4 + commentId:number = 0
  5 + status:number = 0
  6 +
  7 +}
  1 +export class UserFollowListRequestItem{
  2 + queryUserId:number = -1
  3 + pageSize:number = 20
  4 + pageNum:number = 1
  5 + userType:string = "1"
  6 +
  7 + constructor(queryUserId:number, pageSize:number, pageNum:number, userType:string) {
  8 + this.queryUserId = queryUserId
  9 + this.pageSize = pageSize
  10 + this.pageNum = pageNum
  11 + this.userType = userType
  12 + }
  13 +}
  1 +{
  2 + "code": "0",
  3 + "data": {
  4 + "hasNext": 0,
  5 + "list": [
  6 + {
  7 + "avatarFrame": "",
  8 + "checkStatus": 2,
  9 + "commentContent": "方法就是\\ud83d\\udc4d",
  10 + "commentContentSensitive": "",
  11 + "commentLevel": 1,
  12 + "commentPics": "",
  13 + "commentSensitive": "",
  14 + "commentType": "2",
  15 + "createTime": "2024-02-19 14:14:16",
  16 + "fromCreatorId": "",
  17 + "fromDeviceId": "F0B98E7F-6479-462C-BA25-5FC574511C8A",
  18 + "fromUserHeader": "https://sitcontentjdcdn.aikan.pdnews.cn/null20240127/1630371072/1706336907262.jpg?x-oss-process=image/resize,l_100/auto-orient,1/quality,q_90/format,jpg",
  19 + "fromUserId": "512157124138245",
  20 + "fromUserName": "树下🍑 1122334",
  21 + "fromUserType": 1,
  22 + "h5Url": "",
  23 + "id": 403445,
  24 + "keyArticle": 0,
  25 + "likeNum": 3,
  26 + "pageId": null,
  27 + "parentCommentVo": null,
  28 + "parentId": -1,
  29 + "rootCommentId": 403445,
  30 + "sensitiveExist": 0,
  31 + "sensitiveShow": 1,
  32 + "shareInfo": {
  33 + "shareCoverUrl": "http://sitcontentjdcdn.aikan.pdnews.cn/zhbj-20231012/image/content/7f1a342a809d4276aa975ba9e7fe2313.png",
  34 + "shareSummary": "这是一个开始、请持续关注这是一个开始、请持续关注这是一个开始、请持续关注这是一个开始、请持续关注这是",
  35 + "shareTitle": "这是一个开始、请持续关注这是一个开始、请",
  36 + "shareUrl": "https://pd-people-sit.pdnews.cn/column/30000633703-500000008559"
  37 + },
  38 + "targetId": "30000633703",
  39 + "targetRelId": "500000008559",
  40 + "targetRelObjectId": "2002",
  41 + "targetRelType": 1,
  42 + "targetStatus": 0,
  43 + "targetTitle": "这是一个开始、请持续关注这是一个开始、请持续关注这是一个开始、请持续关注这是一个开始、请持续关注这是一个开始、请持续关注这是一个开始、请持续关注这是一个开始、请持续关注",
  44 + "targetType": 8,
  45 + "topicType": null,
  46 + "uuid": "5901a353-79aa-4b81-81d7-f6f13f0a6817"
  47 + },
  48 + {
  49 + "avatarFrame": "",
  50 + "checkStatus": 2,
  51 + "commentContent": "毕业",
  52 + "commentContentSensitive": "",
  53 + "commentLevel": 1,
  54 + "commentPics": "",
  55 + "commentSensitive": "",
  56 + "commentType": "2",
  57 + "createTime": "2024-01-29 17:39:04",
  58 + "fromCreatorId": "",
  59 + "fromDeviceId": "",
  60 + "fromUserHeader": "https://sitcontentjdcdn.aikan.pdnews.cn/null20240127/1630371072/1706336907262.jpg?x-oss-process=image/resize,l_100/auto-orient,1/quality,q_90/format,jpg",
  61 + "fromUserId": "512157124138245",
  62 + "fromUserName": "树下🍑 1122334",
  63 + "fromUserType": 1,
  64 + "h5Url": "",
  65 + "id": 303318,
  66 + "keyArticle": 0,
  67 + "likeNum": 0,
  68 + "pageId": null,
  69 + "parentCommentVo": null,
  70 + "parentId": -1,
  71 + "rootCommentId": 303318,
  72 + "sensitiveExist": 0,
  73 + "sensitiveShow": 1,
  74 + "shareInfo": {
  75 + "shareCoverUrl": "http://sitcontentjdcdn.aikan.pdnews.cn/zhbj-20230923/image/content/4b8f615d1b134546aa4903300c38fb5b.png",
  76 + "shareSummary": "人民日报,有品质的新闻",
  77 + "shareTitle": "【广东爱情故事】人在广东已经漂泊十年",
  78 + "shareUrl": "https://pd-people-sit.pdnews.cn/column/30000627490-500000007811"
  79 + },
  80 + "targetId": "30000627490",
  81 + "targetRelId": "500000007811",
  82 + "targetRelObjectId": "10000002083",
  83 + "targetRelType": 2,
  84 + "targetStatus": 0,
  85 + "targetTitle": "【广东爱情故事】人在广东已经漂泊十年",
  86 + "targetType": 13,
  87 + "topicType": null,
  88 + "uuid": "59339983-a9ee-4054-98aa-0eddbc6275a1"
  89 + },
  90 + {
  91 + "avatarFrame": "",
  92 + "checkStatus": 2,
  93 + "commentContent": "索尼👍",
  94 + "commentContentSensitive": "",
  95 + "commentLevel": 1,
  96 + "commentPics": "",
  97 + "commentSensitive": "",
  98 + "commentType": "2",
  99 + "createTime": "2024-01-29 17:38:56",
  100 + "fromCreatorId": "",
  101 + "fromDeviceId": "",
  102 + "fromUserHeader": "https://sitcontentjdcdn.aikan.pdnews.cn/null20240127/1630371072/1706336907262.jpg?x-oss-process=image/resize,l_100/auto-orient,1/quality,q_90/format,jpg",
  103 + "fromUserId": "512157124138245",
  104 + "fromUserName": "树下🍑 1122334",
  105 + "fromUserType": 1,
  106 + "h5Url": "",
  107 + "id": 303317,
  108 + "keyArticle": 0,
  109 + "likeNum": 0,
  110 + "pageId": null,
  111 + "parentCommentVo": null,
  112 + "parentId": -1,
  113 + "rootCommentId": 303317,
  114 + "sensitiveExist": 0,
  115 + "sensitiveShow": 1,
  116 + "shareInfo": {
  117 + "shareCoverUrl": "http://sitcontentjdcdn.aikan.pdnews.cn/zhbj-20230923/image/content/4b8f615d1b134546aa4903300c38fb5b.png",
  118 + "shareSummary": "人民日报,有品质的新闻",
  119 + "shareTitle": "【广东爱情故事】人在广东已经漂泊十年",
  120 + "shareUrl": "https://pd-people-sit.pdnews.cn/column/30000627490-500000007811"
  121 + },
  122 + "targetId": "30000627490",
  123 + "targetRelId": "500000007811",
  124 + "targetRelObjectId": "10000002083",
  125 + "targetRelType": 2,
  126 + "targetStatus": 0,
  127 + "targetTitle": "【广东爱情故事】人在广东已经漂泊十年",
  128 + "targetType": 13,
  129 + "topicType": null,
  130 + "uuid": "8808cffa-6496-4dc9-ac79-a65c8ada09d2"
  131 + },
  132 + {
  133 + "avatarFrame": "",
  134 + "checkStatus": 2,
  135 + "commentContent": "游客评论苹果",
  136 + "commentContentSensitive": "",
  137 + "commentLevel": 1,
  138 + "commentPics": "",
  139 + "commentSensitive": "",
  140 + "commentType": "2",
  141 + "createTime": "2024-01-27 15:00:24",
  142 + "fromCreatorId": "",
  143 + "fromDeviceId": "F0B98E7F-6479-462C-BA25-5FC574511C8A",
  144 + "fromUserHeader": "https://sitcontentjdcdn.aikan.pdnews.cn/null20240127/1630371072/1706336907262.jpg?x-oss-process=image/resize,l_100/auto-orient,1/quality,q_90/format,jpg",
  145 + "fromUserId": "512157124138245",
  146 + "fromUserName": "树下🍑 1122334",
  147 + "fromUserType": 1,
  148 + "h5Url": "",
  149 + "id": 403426,
  150 + "keyArticle": 0,
  151 + "likeNum": 1,
  152 + "pageId": null,
  153 + "parentCommentVo": null,
  154 + "parentId": -1,
  155 + "rootCommentId": 403426,
  156 + "sensitiveExist": 0,
  157 + "sensitiveShow": 1,
  158 + "shareInfo": {
  159 + "shareCoverUrl": "http://sitcontentjdcdn.aikan.pdnews.cn/zhbj-20231012/image/content/7f1a342a809d4276aa975ba9e7fe2313.png",
  160 + "shareSummary": "这是一个开始、请持续关注这是一个开始、请持续关注这是一个开始、请持续关注这是一个开始、请持续关注这是",
  161 + "shareTitle": "这是一个开始、请持续关注这是一个开始、请",
  162 + "shareUrl": "https://pd-people-sit.pdnews.cn/column/30000633703-500000008559"
  163 + },
  164 + "targetId": "30000633703",
  165 + "targetRelId": "500000008559",
  166 + "targetRelObjectId": "2002",
  167 + "targetRelType": 1,
  168 + "targetStatus": 0,
  169 + "targetTitle": "这是一个开始、请持续关注这是一个开始、请持续关注这是一个开始、请持续关注这是一个开始、请持续关注这是一个开始、请持续关注这是一个开始、请持续关注这是一个开始、请持续关注",
  170 + "targetType": 8,
  171 + "topicType": null,
  172 + "uuid": "a272d091-3697-44ca-95e6-532028eee776"
  173 + },
  174 + {
  175 + "avatarFrame": "",
  176 + "checkStatus": 2,
  177 + "commentContent": "游客账号评论安卓",
  178 + "commentContentSensitive": "",
  179 + "commentLevel": 1,
  180 + "commentPics": "",
  181 + "commentSensitive": "",
  182 + "commentType": "2",
  183 + "createTime": "2024-01-27 15:00:15",
  184 + "fromCreatorId": "",
  185 + "fromDeviceId": "23c43f15-37e9-3f2d-9999-bd1abbb7e0ed",
  186 + "fromUserHeader": "https://sitcontentjdcdn.aikan.pdnews.cn/null20240127/1630371072/1706336907262.jpg?x-oss-process=image/resize,l_100/auto-orient,1/quality,q_90/format,jpg",
  187 + "fromUserId": "512157124138245",
  188 + "fromUserName": "树下🍑 1122334",
  189 + "fromUserType": 1,
  190 + "h5Url": "",
  191 + "id": 403425,
  192 + "keyArticle": 0,
  193 + "likeNum": 0,
  194 + "pageId": null,
  195 + "parentCommentVo": null,
  196 + "parentId": -1,
  197 + "rootCommentId": 403425,
  198 + "sensitiveExist": 0,
  199 + "sensitiveShow": 1,
  200 + "shareInfo": {
  201 + "shareCoverUrl": "http://sitcontentjdcdn.aikan.pdnews.cn/zhbj-20231012/image/content/7f1a342a809d4276aa975ba9e7fe2313.png",
  202 + "shareSummary": "这是一个开始、请持续关注这是一个开始、请持续关注这是一个开始、请持续关注这是一个开始、请持续关注这是",
  203 + "shareTitle": "这是一个开始、请持续关注这是一个开始、请",
  204 + "shareUrl": "https://pd-people-sit.pdnews.cn/column/30000633703-500000008559"
  205 + },
  206 + "targetId": "30000633703",
  207 + "targetRelId": "500000008559",
  208 + "targetRelObjectId": "2002",
  209 + "targetRelType": 1,
  210 + "targetStatus": 0,
  211 + "targetTitle": "这是一个开始、请持续关注这是一个开始、请持续关注这是一个开始、请持续关注这是一个开始、请持续关注这是一个开始、请持续关注这是一个开始、请持续关注这是一个开始、请持续关注",
  212 + "targetType": 8,
  213 + "topicType": null,
  214 + "uuid": "62225e7a-9afd-4b8c-b9b6-71a5d610997d"
  215 + },
  216 + {
  217 + "avatarFrame": "",
  218 + "checkStatus": 2,
  219 + "commentContent": "你理解吗",
  220 + "commentContentSensitive": "",
  221 + "commentLevel": 1,
  222 + "commentPics": "",
  223 + "commentSensitive": "",
  224 + "commentType": "2",
  225 + "createTime": "2024-01-27 14:45:21",
  226 + "fromCreatorId": "",
  227 + "fromDeviceId": "23c43f15-37e9-3f2d-9999-bd1abbb7e0ed",
  228 + "fromUserHeader": "https://sitcontentjdcdn.aikan.pdnews.cn/null20240127/1630371072/1706336907262.jpg?x-oss-process=image/resize,l_100/auto-orient,1/quality,q_90/format,jpg",
  229 + "fromUserId": "512157124138245",
  230 + "fromUserName": "树下🍑 1122334",
  231 + "fromUserType": 1,
  232 + "h5Url": "",
  233 + "id": 403422,
  234 + "keyArticle": 0,
  235 + "likeNum": 0,
  236 + "pageId": null,
  237 + "parentCommentVo": null,
  238 + "parentId": -1,
  239 + "rootCommentId": 403422,
  240 + "sensitiveExist": 0,
  241 + "sensitiveShow": 1,
  242 + "shareInfo": {
  243 + "shareCoverUrl": "http://sitcontentjdcdn.aikan.pdnews.cn/zhbj-20231130/image/content/09ee931569d34781b9bbe85f5348873f.jpg",
  244 + "shareSummary": "人民日报,有品质的新闻",
  245 + "shareTitle": "点亮香港“小航天迷”的“太空梦”——内地航天专家走进香港中小学校园",
  246 + "shareUrl": "https://pd-people-sit.pdnews.cn/rmhphotos/30000650925"
  247 + },
  248 + "targetId": "30000650925",
  249 + "targetRelId": "500000013228",
  250 + "targetRelObjectId": "2058",
  251 + "targetRelType": 1,
  252 + "targetStatus": 0,
  253 + "targetTitle": "点亮香港“小航天迷”的“太空梦”——内地航天专家走进香港中小学校园",
  254 + "targetType": 9,
  255 + "topicType": null,
  256 + "uuid": "cc6b2322-ffa4-4a59-a7af-5e4a18afcbd3"
  257 + },
  258 + {
  259 + "avatarFrame": "",
  260 + "checkStatus": 2,
  261 + "commentContent": "你好我是游客",
  262 + "commentContentSensitive": "",
  263 + "commentLevel": 1,
  264 + "commentPics": "",
  265 + "commentSensitive": "",
  266 + "commentType": "2",
  267 + "createTime": "2024-01-27 14:40:19",
  268 + "fromCreatorId": "",
  269 + "fromDeviceId": "23c43f15-37e9-3f2d-9999-bd1abbb7e0ed",
  270 + "fromUserHeader": "https://sitcontentjdcdn.aikan.pdnews.cn/null20240127/1630371072/1706336907262.jpg?x-oss-process=image/resize,l_100/auto-orient,1/quality,q_90/format,jpg",
  271 + "fromUserId": "512157124138245",
  272 + "fromUserName": "树下🍑 1122334",
  273 + "fromUserType": 1,
  274 + "h5Url": "",
  275 + "id": 303306,
  276 + "keyArticle": 0,
  277 + "likeNum": 0,
  278 + "pageId": null,
  279 + "parentCommentVo": null,
  280 + "parentId": -1,
  281 + "rootCommentId": 303306,
  282 + "sensitiveExist": 0,
  283 + "sensitiveShow": 1,
  284 + "shareInfo": {
  285 + "shareCoverUrl": "http://sitcontentjdcdn.aikan.pdnews.cn/zhbj-20231130/image/content/09ee931569d34781b9bbe85f5348873f.jpg",
  286 + "shareSummary": "人民日报,有品质的新闻",
  287 + "shareTitle": "点亮香港“小航天迷”的“太空梦”——内地航天专家走进香港中小学校园",
  288 + "shareUrl": "https://pd-people-sit.pdnews.cn/rmhphotos/30000650925"
  289 + },
  290 + "targetId": "30000650925",
  291 + "targetRelId": "500000013228",
  292 + "targetRelObjectId": "2058",
  293 + "targetRelType": 1,
  294 + "targetStatus": 0,
  295 + "targetTitle": "点亮香港“小航天迷”的“太空梦”——内地航天专家走进香港中小学校园",
  296 + "targetType": 9,
  297 + "topicType": null,
  298 + "uuid": "9fac53da-603f-444a-8807-4f5feacf55bb"
  299 + },
  300 + {
  301 + "avatarFrame": "",
  302 + "checkStatus": 2,
  303 + "commentContent": "你好我是游客",
  304 + "commentContentSensitive": "",
  305 + "commentLevel": 1,
  306 + "commentPics": "",
  307 + "commentSensitive": "",
  308 + "commentType": "2",
  309 + "createTime": "2024-01-27 14:34:30",
  310 + "fromCreatorId": "",
  311 + "fromDeviceId": "23c43f15-37e9-3f2d-9999-bd1abbb7e0ed",
  312 + "fromUserHeader": "https://sitcontentjdcdn.aikan.pdnews.cn/null20240127/1630371072/1706336907262.jpg?x-oss-process=image/resize,l_100/auto-orient,1/quality,q_90/format,jpg",
  313 + "fromUserId": "512157124138245",
  314 + "fromUserName": "树下🍑 1122334",
  315 + "fromUserType": 1,
  316 + "h5Url": "",
  317 + "id": 403420,
  318 + "keyArticle": 0,
  319 + "likeNum": 0,
  320 + "pageId": null,
  321 + "parentCommentVo": null,
  322 + "parentId": -1,
  323 + "rootCommentId": 403420,
  324 + "sensitiveExist": 0,
  325 + "sensitiveShow": 1,
  326 + "shareInfo": {
  327 + "shareCoverUrl": "http://sitcontentjdcdn.aikan.pdnews.cn/image/creator/2024012911/f2f9fe93ca464d05bc0407a385ad877b.png",
  328 + "shareSummary": "爸爸角色扮演医生,在宝蓝比赛摔倒的时候悉心照顾,其他小朋友也要注意呀!",
  329 + "shareTitle": "爸爸角色扮演医生,在宝蓝比赛摔倒的时候悉心照顾,其他小朋友也要注意呀!",
  330 + "shareUrl": "https://pd-people-sit.pdnews.cn/rmhvideo/30000716043"
  331 + },
  332 + "targetId": "30000716043",
  333 + "targetRelId": "500000030952",
  334 + "targetRelObjectId": "2058",
  335 + "targetRelType": 1,
  336 + "targetStatus": 0,
  337 + "targetTitle": "爸爸角色扮演医生,在宝蓝比赛摔倒的时候悉心照顾,其他小朋友也要注意呀!",
  338 + "targetType": 1,
  339 + "topicType": null,
  340 + "uuid": "31305151-6b9c-49ea-8e5b-9e4b8fffe79d"
  341 + },
  342 + {
  343 + "avatarFrame": "",
  344 + "checkStatus": 2,
  345 + "commentContent": "游客账号",
  346 + "commentContentSensitive": "",
  347 + "commentLevel": 1,
  348 + "commentPics": "",
  349 + "commentSensitive": "",
  350 + "commentType": "2",
  351 + "createTime": "2024-01-27 14:27:52",
  352 + "fromCreatorId": "",
  353 + "fromDeviceId": "23c43f15-37e9-3f2d-9999-bd1abbb7e0ed",
  354 + "fromUserHeader": "https://sitcontentjdcdn.aikan.pdnews.cn/null20240127/1630371072/1706336907262.jpg?x-oss-process=image/resize,l_100/auto-orient,1/quality,q_90/format,jpg",
  355 + "fromUserId": "512157124138245",
  356 + "fromUserName": "树下🍑 1122334",
  357 + "fromUserType": 1,
  358 + "h5Url": "",
  359 + "id": 403417,
  360 + "keyArticle": 0,
  361 + "likeNum": 0,
  362 + "pageId": null,
  363 + "parentCommentVo": null,
  364 + "parentId": -1,
  365 + "rootCommentId": 403417,
  366 + "sensitiveExist": 0,
  367 + "sensitiveShow": 1,
  368 + "shareInfo": {
  369 + "shareCoverUrl": "",
  370 + "shareSummary": "人民日报,有品质的新闻",
  371 + "shareTitle": "跟着习主席看世界|同舟共济 打造人类卫生健康共同体",
  372 + "shareUrl": "https://pd-people-sit.pdnews.cn/column/30000628337-500000004210"
  373 + },
  374 + "targetId": "30000628337",
  375 + "targetRelId": "500000004210",
  376 + "targetRelObjectId": "2002",
  377 + "targetRelType": 1,
  378 + "targetStatus": 0,
  379 + "targetTitle": "跟着习主席看世界|同舟共济 打造人类卫生健康共同体",
  380 + "targetType": 8,
  381 + "topicType": null,
  382 + "uuid": "034911cc-34ca-4209-add2-46f48f4b2104"
  383 + },
  384 + {
  385 + "avatarFrame": "",
  386 + "checkStatus": 2,
  387 + "commentContent": "我是游客",
  388 + "commentContentSensitive": "",
  389 + "commentLevel": 1,
  390 + "commentPics": "",
  391 + "commentSensitive": "",
  392 + "commentType": "2",
  393 + "createTime": "2024-01-27 14:25:34",
  394 + "fromCreatorId": "",
  395 + "fromDeviceId": "F0B98E7F-6479-462C-BA25-5FC574511C8A",
  396 + "fromUserHeader": "https://sitcontentjdcdn.aikan.pdnews.cn/null20240127/1630371072/1706336907262.jpg?x-oss-process=image/resize,l_100/auto-orient,1/quality,q_90/format,jpg",
  397 + "fromUserId": "512157124138245",
  398 + "fromUserName": "树下🍑 1122334",
  399 + "fromUserType": 1,
  400 + "h5Url": "",
  401 + "id": 303305,
  402 + "keyArticle": 0,
  403 + "likeNum": 0,
  404 + "pageId": null,
  405 + "parentCommentVo": null,
  406 + "parentId": -1,
  407 + "rootCommentId": 303305,
  408 + "sensitiveExist": 0,
  409 + "sensitiveShow": 1,
  410 + "shareInfo": {
  411 + "shareCoverUrl": "http://sitcontentjdcdn.aikan.pdnews.cn/zhbj-20240127/image/content/e8d93872483a48c7a4eaa48f70211ab1.png",
  412 + "shareSummary": "人民日报,有品质的新闻",
  413 + "shareTitle": "“大学也有家长群",
  414 + "shareUrl": "https://pd-people-sit.pdnews.cn/column/30000723442-500000031275"
  415 + },
  416 + "targetId": "30000723442",
  417 + "targetRelId": "500000031275",
  418 + "targetRelObjectId": "2002",
  419 + "targetRelType": 1,
  420 + "targetStatus": 0,
  421 + "targetTitle": "“大学也有家长群",
  422 + "targetType": 8,
  423 + "topicType": null,
  424 + "uuid": "0b0aa5ef-b2de-4d01-9f5a-274c5122560f"
  425 + },
  426 + {
  427 + "avatarFrame": "",
  428 + "checkStatus": 2,
  429 + "commentContent": "你好,我是游客动态",
  430 + "commentContentSensitive": "",
  431 + "commentLevel": 1,
  432 + "commentPics": "",
  433 + "commentSensitive": "",
  434 + "commentType": "2",
  435 + "createTime": "2024-01-27 14:24:56",
  436 + "fromCreatorId": "",
  437 + "fromDeviceId": "23c43f15-37e9-3f2d-9999-bd1abbb7e0ed",
  438 + "fromUserHeader": "https://sitcontentjdcdn.aikan.pdnews.cn/null20240127/1630371072/1706336907262.jpg?x-oss-process=image/resize,l_100/auto-orient,1/quality,q_90/format,jpg",
  439 + "fromUserId": "512157124138245",
  440 + "fromUserName": "树下🍑 1122334",
  441 + "fromUserType": 1,
  442 + "h5Url": "",
  443 + "id": 303304,
  444 + "keyArticle": 0,
  445 + "likeNum": 0,
  446 + "pageId": null,
  447 + "parentCommentVo": null,
  448 + "parentId": -1,
  449 + "rootCommentId": 303304,
  450 + "sensitiveExist": 0,
  451 + "sensitiveShow": 1,
  452 + "shareInfo": {
  453 + "shareCoverUrl": "http://sitcontentjdcdn.aikan.pdnews.cn/zhbj-20231130/image/content/3e0cce06724740f0807ff0731c4a1d03/C4BC1C53-2B9C-4A54-BF95-044242D78260.jpg",
  454 + "shareSummary": "发布动态带活动13",
  455 + "shareTitle": "发布动态带活动13",
  456 + "shareUrl": "https://pd-people-sit.pdnews.cn/rmhmoments/30000650969"
  457 + },
  458 + "targetId": "30000650969",
  459 + "targetRelId": "500000013237",
  460 + "targetRelObjectId": "2058",
  461 + "targetRelType": 1,
  462 + "targetStatus": 0,
  463 + "targetTitle": "发布动态带活动13",
  464 + "targetType": 14,
  465 + "topicType": null,
  466 + "uuid": "ae2b2ece-d036-4b01-91e7-9708b0b5fe1c"
  467 + },
  468 + {
  469 + "avatarFrame": "",
  470 + "checkStatus": 2,
  471 + "commentContent": "你好我是游客",
  472 + "commentContentSensitive": "",
  473 + "commentLevel": 1,
  474 + "commentPics": "",
  475 + "commentSensitive": "",
  476 + "commentType": "2",
  477 + "createTime": "2024-01-27 14:24:19",
  478 + "fromCreatorId": "",
  479 + "fromDeviceId": "23c43f15-37e9-3f2d-9999-bd1abbb7e0ed",
  480 + "fromUserHeader": "https://sitcontentjdcdn.aikan.pdnews.cn/null20240127/1630371072/1706336907262.jpg?x-oss-process=image/resize,l_100/auto-orient,1/quality,q_90/format,jpg",
  481 + "fromUserId": "512157124138245",
  482 + "fromUserName": "树下🍑 1122334",
  483 + "fromUserType": 1,
  484 + "h5Url": "",
  485 + "id": 303302,
  486 + "keyArticle": 0,
  487 + "likeNum": 0,
  488 + "pageId": null,
  489 + "parentCommentVo": null,
  490 + "parentId": -1,
  491 + "rootCommentId": 303302,
  492 + "sensitiveExist": 0,
  493 + "sensitiveShow": 1,
  494 + "shareInfo": {
  495 + "shareCoverUrl": "http://sitcontentjdcdn.aikan.pdnews.cn/zhbj-20240127/image/content/e8d93872483a48c7a4eaa48f70211ab1.png",
  496 + "shareSummary": "人民日报,有品质的新闻",
  497 + "shareTitle": "“大学也有家长群",
  498 + "shareUrl": "https://pd-people-sit.pdnews.cn/column/30000723442-500000031275"
  499 + },
  500 + "targetId": "30000723442",
  501 + "targetRelId": "500000031275",
  502 + "targetRelObjectId": "2002",
  503 + "targetRelType": 1,
  504 + "targetStatus": 0,
  505 + "targetTitle": "“大学也有家长群",
  506 + "targetType": 8,
  507 + "topicType": null,
  508 + "uuid": "766a6bac-aa1d-4e88-a798-f19bade201ee"
  509 + }
  510 + ],
  511 + "pageNum": 1,
  512 + "pageSize": 20,
  513 + "totalCommentNum": 12,
  514 + "totalCount": 12
  515 + },
  516 + "message": "Success",
  517 + "meta": null,
  518 + "requestId": "",
  519 + "success": true,
  520 + "timestamp": 1711440876958
  521 +}
  1 +{
  2 + "code": "0",
  3 + "data": [
  4 + {
  5 + "commentId": 403445,
  6 + "status": 1
  7 + },
  8 + {
  9 + "commentId": 303318,
  10 + "status": 0
  11 + },
  12 + {
  13 + "commentId": 303317,
  14 + "status": 0
  15 + },
  16 + {
  17 + "commentId": 403426,
  18 + "status": 1
  19 + },
  20 + {
  21 + "commentId": 403425,
  22 + "status": 0
  23 + },
  24 + {
  25 + "commentId": 403422,
  26 + "status": 0
  27 + },
  28 + {
  29 + "commentId": 303306,
  30 + "status": 0
  31 + },
  32 + {
  33 + "commentId": 403420,
  34 + "status": 0
  35 + },
  36 + {
  37 + "commentId": 403417,
  38 + "status": 0
  39 + },
  40 + {
  41 + "commentId": 303305,
  42 + "status": 0
  43 + },
  44 + {
  45 + "commentId": 303304,
  46 + "status": 0
  47 + },
  48 + {
  49 + "commentId": 303302,
  50 + "status": 0
  51 + }
  52 + ],
  53 + "message": "Success",
  54 + "meta": null,
  55 + "requestId": "",
  56 + "success": true,
  57 + "timestamp": 1711440877105
  58 +}
  1 +{
  2 + "code": "0",
  3 + "data": {
  4 + "hasNext": 0,
  5 + "list": [
  6 + {
  7 + "attentionCreatorId": "3259284",
  8 + "attentionHeadPhotoUrl": "https://sitcontentjdcdn.aikan.pdnews.cn/vod/content/202401/20240127161739536/eUj.png?x-oss-process=image/resize,l_400/auto-orient,1/quality,q_90/format,jpg",
  9 + "attentionNum": 0,
  10 + "attentionUserId": "535571576006021",
  11 + "attentionUserName": "斯特的7778",
  12 + "attentionUserType": 2,
  13 + "authIcon": "",
  14 + "authId": 0,
  15 + "authPersional": "",
  16 + "authTitle": "",
  17 + "banControl": 0,
  18 + "categoryAuth": "",
  19 + "cnLiveCommentControl": 1,
  20 + "cnLiveGiftControl": 1,
  21 + "cnLiveLikeControl": 1,
  22 + "cnLiveShareControl": 1,
  23 + "cnShareControl": 1,
  24 + "collectNum": 1,
  25 + "commentNum": 0,
  26 + "createTime": 1706344099000,
  27 + "fansNum": 1,
  28 + "honoraryIcon": "",
  29 + "honoraryTitle": "",
  30 + "id": 100703,
  31 + "introduction": "暗黑世界顶级",
  32 + "isAttention": 0,
  33 + "isComment": 1,
  34 + "isLike": 1,
  35 + "isVisiable": 1,
  36 + "likeNum": 0,
  37 + "liveCommentControl": 1,
  38 + "liveGiftControl": 1,
  39 + "liveLikeControl": 1,
  40 + "liveShareControl": 1,
  41 + "mainControl": 1,
  42 + "posterShareControl": 0,
  43 + "registTime": 1706343790000,
  44 + "shareControl": 1,
  45 + "shareNum": 7,
  46 + "status": 1,
  47 + "subjectType": null,
  48 + "updateTime": 1706344099000,
  49 + "userId": "512157124138245",
  50 + "userType": 1
  51 + }
  52 + ],
  53 + "pageNum": 1,
  54 + "pageSize": 20,
  55 + "totalCount": 1
  56 + },
  57 + "message": "Success",
  58 + "meta": null,
  59 + "requestId": "",
  60 + "success": true,
  61 + "timestamp": 1711441048304
  62 +}