陈剑华

feat: 17034 功能缺陷--评论卡,点击爱心后,用android 查看精品评论页,爱心没有加1

@@ -44,7 +44,7 @@ export struct ZhSingleRow06 { @@ -44,7 +44,7 @@ export struct ZhSingleRow06 {
44 44
45 const commentInfo = this.compDTO.operDataList[0]?.commentInfo as commentInfo; 45 const commentInfo = this.compDTO.operDataList[0]?.commentInfo as commentInfo;
46 // commentLikeChange(this.item) 46 // commentLikeChange(this.item)
47 - this.newsStatusOfUser.likeStatus = this.newsStatusOfUser.likeStatus === '1' ? '0' : '1'; 47 + // this.newsStatusOfUser.likeStatus = this.newsStatusOfUser.likeStatus === '1' ? '0' : '1';
48 const commentLikeParam = { 48 const commentLikeParam = {
49 targetId: commentInfo.newsId || '', 49 targetId: commentInfo.newsId || '',
50 id: commentInfo.commentId, 50 id: commentInfo.commentId,
@@ -52,8 +52,9 @@ export struct ZhSingleRow06 { @@ -52,8 +52,9 @@ export struct ZhSingleRow06 {
52 api_status: this.newsStatusOfUser?.likeStatus == '1' ? false : true 52 api_status: this.newsStatusOfUser?.likeStatus == '1' ? false : true
53 } as commentItemModel; 53 } as commentItemModel;
54 commentViewModel.commentLike(commentLikeParam).then(() => { 54 commentViewModel.commentLike(commentLikeParam).then(() => {
55 - }).catch(() => {  
56 this.newsStatusOfUser.likeStatus = this.newsStatusOfUser.likeStatus === '1' ? '0' : '1'; 55 this.newsStatusOfUser.likeStatus = this.newsStatusOfUser.likeStatus === '1' ? '0' : '1';
  56 + }).catch((err: Error) => {
  57 + console.log('06-err', JSON.stringify(err))
57 }) 58 })
58 } 59 }
59 60