Showing
2 changed files
with
4 additions
and
2 deletions
| @@ -379,7 +379,8 @@ export struct DynamicDetailComponent { | @@ -379,7 +379,8 @@ export struct DynamicDetailComponent { | ||
| 379 | OperRowListView({ contentDetailData: this.contentDetailData | 379 | OperRowListView({ contentDetailData: this.contentDetailData |
| 380 | ,interactData:this.interactDataDTO | 380 | ,interactData:this.interactDataDTO |
| 381 | ,newsStatusOfUser:this.newsStatusOfUser | 381 | ,newsStatusOfUser:this.newsStatusOfUser |
| 382 | - ,publishCommentModel: this.publishCommentModel}) | 382 | + ,publishCommentModel: this.publishCommentModel |
| 383 | + ,needLike:false}) | ||
| 383 | } | 384 | } |
| 384 | } | 385 | } |
| 385 | .alignSelf(ItemAlign.Start) | 386 | .alignSelf(ItemAlign.Start) |
| @@ -45,6 +45,7 @@ export struct OperRowListView { | @@ -45,6 +45,7 @@ export struct OperRowListView { | ||
| 45 | @State interactData: InteractDataDTO = {} as InteractDataDTO | 45 | @State interactData: InteractDataDTO = {} as InteractDataDTO |
| 46 | @State newsStatusOfUser: batchLikeAndCollectResult | undefined = undefined // 点赞、收藏状态 | 46 | @State newsStatusOfUser: batchLikeAndCollectResult | undefined = undefined // 点赞、收藏状态 |
| 47 | @State likeBean: Record<string, string> = {} | 47 | @State likeBean: Record<string, string> = {} |
| 48 | + needLike: boolean = true | ||
| 48 | 49 | ||
| 49 | async aboutToAppear() { | 50 | async aboutToAppear() { |
| 50 | const user_id = await SPHelper.default.get(SpConstants.USER_ID, '') | 51 | const user_id = await SPHelper.default.get(SpConstants.USER_ID, '') |
| @@ -90,7 +91,7 @@ export struct OperRowListView { | @@ -90,7 +91,7 @@ export struct OperRowListView { | ||
| 90 | ForEach(this.operationButtonList, (item: string, index: number) => { | 91 | ForEach(this.operationButtonList, (item: string, index: number) => { |
| 91 | if (item == 'comment') { | 92 | if (item == 'comment') { |
| 92 | this.builderComment() | 93 | this.builderComment() |
| 93 | - } else if (item == 'like') { | 94 | + } else if (item == 'like' && this.needLike) { |
| 94 | this.builderLike() | 95 | this.builderLike() |
| 95 | } else if (item == 'collect') { | 96 | } else if (item == 'collect') { |
| 96 | this.builderCollect() | 97 | this.builderCollect() |
-
Please register or login to post a comment