王士厅

视频类型稿件详情页-全部评论,已收藏视频未展示已收藏状态

@@ -98,7 +98,7 @@ export interface IStatusContentList { @@ -98,7 +98,7 @@ export interface IStatusContentList {
98 98
99 // relType: string; 99 // relType: string;
100 contentType: string; 100 contentType: string;
101 - // contentRelId: string; 101 + contentRelId: string;
102 } 102 }
103 export interface batchLikeAndCollectParams { 103 export interface batchLikeAndCollectParams {
104 // userType: number; 104 // userType: number;
@@ -627,6 +627,7 @@ export struct DynamicDetailComponent { @@ -627,6 +627,7 @@ export struct DynamicDetailComponent {
627 { 627 {
628 contentId: this.contentDetailData?.newsId + '', 628 contentId: this.contentDetailData?.newsId + '',
629 contentType: this.contentDetailData?.newsType + '', 629 contentType: this.contentDetailData?.newsType + '',
  630 + contentRelId: this.contentDetailData?.reLInfo?.relId + '',
630 } 631 }
631 ] 632 ]
632 } 633 }
@@ -328,6 +328,7 @@ export struct ImageAndTextPageComponent { @@ -328,6 +328,7 @@ export struct ImageAndTextPageComponent {
328 { 328 {
329 contentId: this.contentDetailData?.newsId + '', 329 contentId: this.contentDetailData?.newsId + '',
330 contentType: this.contentDetailData?.newsType + '', 330 contentType: this.contentDetailData?.newsType + '',
  331 + contentRelId: this.contentDetailData?.reLInfo?.relId + '',
331 } 332 }
332 ] 333 ]
333 } 334 }
@@ -71,6 +71,7 @@ export struct ZhSingleRow06 { @@ -71,6 +71,7 @@ export struct ZhSingleRow06 {
71 { 71 {
72 contentId: this.compDTO.operDataList[0]?.commentInfo?.newsId + '', 72 contentId: this.compDTO.operDataList[0]?.commentInfo?.newsId + '',
73 contentType: this.compDTO.operDataList[0]?.commentInfo?.newsType + '', 73 contentType: this.compDTO.operDataList[0]?.commentInfo?.newsType + '',
  74 + contentRelId: this.compDTO.operDataList[0]?.commentInfo?.relId + '',
74 } 75 }
75 ] 76 ]
76 } 77 }
@@ -380,12 +380,13 @@ export struct OperRowListView { @@ -380,12 +380,13 @@ export struct OperRowListView {
380 { 380 {
381 contentId: this.contentDetailData?.newsId + '', 381 contentId: this.contentDetailData?.newsId + '',
382 contentType: this.contentDetailData?.newsType + '', 382 contentType: this.contentDetailData?.newsType + '',
  383 + contentRelId: this.contentDetailData?.reLInfo?.relId + '',
383 } 384 }
384 ] 385 ]
385 } 386 }
386 // console.info(TAG, '查询用户对作品收藏11', JSON.stringify(params)) 387 // console.info(TAG, '查询用户对作品收藏11', JSON.stringify(params))
387 let data = await MultiPictureDetailViewModel.getInteractDataStatus(params) 388 let data = await MultiPictureDetailViewModel.getInteractDataStatus(params)
388 - // console.info(TAG, '查询用户对作品收藏22', JSON.stringify(data)) 389 + console.info(TAG, '查询用户对作品收藏22', JSON.stringify(data))
389 this.newsStatusOfUser = data[0]; 390 this.newsStatusOfUser = data[0];
390 } catch (exception) { 391 } catch (exception) {
391 // console.error(TAG, JSON.stringify(exception)) 392 // console.error(TAG, JSON.stringify(exception))
@@ -399,6 +400,7 @@ export struct OperRowListView { @@ -399,6 +400,7 @@ export struct OperRowListView {
399 console.log(TAG, '收藏点击') 400 console.log(TAG, '收藏点击')
400 // 未登录,跳转登录 401 // 未登录,跳转登录
401 const user_id = await SPHelper.default.get(SpConstants.USER_ID, '') 402 const user_id = await SPHelper.default.get(SpConstants.USER_ID, '')
  403 + console.log(TAG, '收藏点击,登录', user_id)
402 if (!user_id) { 404 if (!user_id) {
403 console.log(TAG, '收藏点击,用户未登录') 405 console.log(TAG, '收藏点击,用户未登录')
404 WDRouterRule.jumpWithPage(WDRouterPage.loginPage) 406 WDRouterRule.jumpWithPage(WDRouterPage.loginPage)
@@ -414,9 +416,10 @@ export struct OperRowListView { @@ -414,9 +416,10 @@ export struct OperRowListView {
414 }], 416 }],
415 417
416 } 418 }
417 - console.log(TAG, '收藏点击', JSON.stringify(params)) 419 + // console.log(TAG, '收藏点击', JSON.stringify(params))
418 PageRepository.postExecuteCollectRecord(params).then(res => { 420 PageRepository.postExecuteCollectRecord(params).then(res => {
419 console.log(TAG, '收藏点击 res', JSON.stringify(res)) 421 console.log(TAG, '收藏点击 res', JSON.stringify(res))
  422 + console.log(TAG, '收藏点击 this.newsStatusOfUser', JSON.stringify(this.newsStatusOfUser))
420 if (this.newsStatusOfUser) { 423 if (this.newsStatusOfUser) {
421 this.newsStatusOfUser.collectStatus = this.newsStatusOfUser?.collectStatus === 1 ? 0 : 1 424 this.newsStatusOfUser.collectStatus = this.newsStatusOfUser?.collectStatus === 1 ? 0 : 1
422 if (this.newsStatusOfUser.collectStatus === 1) { 425 if (this.newsStatusOfUser.collectStatus === 1) {
@@ -85,7 +85,7 @@ export interface IStatusContentList { @@ -85,7 +85,7 @@ export interface IStatusContentList {
85 85
86 // relType: string; 86 // relType: string;
87 contentType: string; 87 contentType: string;
88 - // contentRelId: string; 88 + contentRelId: string;
89 } 89 }
90 90
91 export interface batchLikeAndCollectParams { 91 export interface batchLikeAndCollectParams {
@@ -112,6 +112,7 @@ export struct DetailPlayShortVideoPage { @@ -112,6 +112,7 @@ export struct DetailPlayShortVideoPage {
112 { 112 {
113 contentId: this.contentDetailData?.newsId + '', 113 contentId: this.contentDetailData?.newsId + '',
114 contentType: this.contentDetailData?.newsType + '', 114 contentType: this.contentDetailData?.newsType + '',
  115 + contentRelId: this.contentDetailData?.reLInfo?.relId + '',
115 } 116 }
116 ] 117 ]
117 } 118 }