王士厅

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

... ... @@ -98,7 +98,7 @@ export interface IStatusContentList {
// relType: string;
contentType: string;
// contentRelId: string;
contentRelId: string;
}
export interface batchLikeAndCollectParams {
// userType: number;
... ...
... ... @@ -627,6 +627,7 @@ export struct DynamicDetailComponent {
{
contentId: this.contentDetailData?.newsId + '',
contentType: this.contentDetailData?.newsType + '',
contentRelId: this.contentDetailData?.reLInfo?.relId + '',
}
]
}
... ...
... ... @@ -328,6 +328,7 @@ export struct ImageAndTextPageComponent {
{
contentId: this.contentDetailData?.newsId + '',
contentType: this.contentDetailData?.newsType + '',
contentRelId: this.contentDetailData?.reLInfo?.relId + '',
}
]
}
... ...
... ... @@ -71,6 +71,7 @@ export struct ZhSingleRow06 {
{
contentId: this.compDTO.operDataList[0]?.commentInfo?.newsId + '',
contentType: this.compDTO.operDataList[0]?.commentInfo?.newsType + '',
contentRelId: this.compDTO.operDataList[0]?.commentInfo?.relId + '',
}
]
}
... ...
... ... @@ -380,12 +380,13 @@ export struct OperRowListView {
{
contentId: this.contentDetailData?.newsId + '',
contentType: this.contentDetailData?.newsType + '',
contentRelId: this.contentDetailData?.reLInfo?.relId + '',
}
]
}
// console.info(TAG, '查询用户对作品收藏11', JSON.stringify(params))
let data = await MultiPictureDetailViewModel.getInteractDataStatus(params)
// console.info(TAG, '查询用户对作品收藏22', JSON.stringify(data))
console.info(TAG, '查询用户对作品收藏22', JSON.stringify(data))
this.newsStatusOfUser = data[0];
} catch (exception) {
// console.error(TAG, JSON.stringify(exception))
... ... @@ -399,6 +400,7 @@ export struct OperRowListView {
console.log(TAG, '收藏点击')
// 未登录,跳转登录
const user_id = await SPHelper.default.get(SpConstants.USER_ID, '')
console.log(TAG, '收藏点击,登录', user_id)
if (!user_id) {
console.log(TAG, '收藏点击,用户未登录')
WDRouterRule.jumpWithPage(WDRouterPage.loginPage)
... ... @@ -414,9 +416,10 @@ export struct OperRowListView {
}],
}
console.log(TAG, '收藏点击', JSON.stringify(params))
// console.log(TAG, '收藏点击', JSON.stringify(params))
PageRepository.postExecuteCollectRecord(params).then(res => {
console.log(TAG, '收藏点击 res', JSON.stringify(res))
console.log(TAG, '收藏点击 this.newsStatusOfUser', JSON.stringify(this.newsStatusOfUser))
if (this.newsStatusOfUser) {
this.newsStatusOfUser.collectStatus = this.newsStatusOfUser?.collectStatus === 1 ? 0 : 1
if (this.newsStatusOfUser.collectStatus === 1) {
... ...
... ... @@ -85,7 +85,7 @@ export interface IStatusContentList {
// relType: string;
contentType: string;
// contentRelId: string;
contentRelId: string;
}
export interface batchLikeAndCollectParams {
... ...
... ... @@ -112,6 +112,7 @@ export struct DetailPlayShortVideoPage {
{
contentId: this.contentDetailData?.newsId + '',
contentType: this.contentDetailData?.newsType + '',
contentRelId: this.contentDetailData?.reLInfo?.relId + '',
}
]
}
... ...