Showing
3 changed files
with
12 additions
and
2 deletions
| @@ -18,7 +18,8 @@ export struct MultiPictureDetailItemComponent { | @@ -18,7 +18,8 @@ export struct MultiPictureDetailItemComponent { | ||
| 18 | build() { | 18 | build() { |
| 19 | Row() { | 19 | Row() { |
| 20 | Image(this.MultiPictureDetailItem.picPath) | 20 | Image(this.MultiPictureDetailItem.picPath) |
| 21 | - .alt($r('app.media.picture_loading')) | 21 | + .alt($r('app.media.datail_imageLoading_w')) |
| 22 | + | ||
| 22 | .width(this.imageWidth) | 23 | .width(this.imageWidth) |
| 23 | .objectFit(ImageFit.Contain) | 24 | .objectFit(ImageFit.Contain) |
| 24 | .interpolation(ImageInterpolation.High) | 25 | .interpolation(ImageInterpolation.High) |
| @@ -90,11 +90,20 @@ export struct OperRowListView { | @@ -90,11 +90,20 @@ export struct OperRowListView { | ||
| 90 | console.info(TAG, '22222----', this.styleType) | 90 | console.info(TAG, '22222----', this.styleType) |
| 91 | console.info(TAG, '3333----', this.needLike) | 91 | console.info(TAG, '3333----', this.needLike) |
| 92 | this.handleStyle() | 92 | this.handleStyle() |
| 93 | + this.onDetailUpdated() | ||
| 93 | EmitterUtils.receiveEvent(EmitterEventId.AUDIO_CHANGE_STATUS, (val: number | string | undefined) => { | 94 | EmitterUtils.receiveEvent(EmitterEventId.AUDIO_CHANGE_STATUS, (val: number | string | undefined) => { |
| 94 | console.log(TAG, 'this.currentStatus', val) | 95 | console.log(TAG, 'this.currentStatus', val) |
| 95 | this.currentStatus = val | 96 | this.currentStatus = val |
| 96 | }) | 97 | }) |
| 97 | - this.onDetailUpdated() | 98 | + //注册通知,来自别的组件的评论成功通知 |
| 99 | + EmitterUtils.receiveEvent(EmitterEventId.COMMENT_PUBLISH, (targetId?: string) => { | ||
| 100 | + if (targetId) { | ||
| 101 | + if (targetId == this.publishCommentModel.targetId) { | ||
| 102 | + //新增评论 | ||
| 103 | + this.queryContentInteractCount() | ||
| 104 | + } | ||
| 105 | + } | ||
| 106 | + }) | ||
| 98 | } | 107 | } |
| 99 | 108 | ||
| 100 | async onDetailUpdated() { | 109 | async onDetailUpdated() { |
-
Please register or login to post a comment