Showing
1 changed file
with
10 additions
and
9 deletions
| @@ -14,6 +14,7 @@ import { viewBlogItemInsightIntentShare } from '../utils/InsightIntentShare' | @@ -14,6 +14,7 @@ import { viewBlogItemInsightIntentShare } from '../utils/InsightIntentShare' | ||
| 14 | import { common } from '@kit.AbilityKit'; | 14 | import { common } from '@kit.AbilityKit'; |
| 15 | import { PageRepository } from '../repository/PageRepository'; | 15 | import { PageRepository } from '../repository/PageRepository'; |
| 16 | import { CommentDialogView } from './CommentDialogView'; | 16 | import { CommentDialogView } from './CommentDialogView'; |
| 17 | +import { faceDetector } from '@kit.CoreVisionKit'; | ||
| 17 | 18 | ||
| 18 | const TAG: string = 'SpacialTopicPageComponent' | 19 | const TAG: string = 'SpacialTopicPageComponent' |
| 19 | 20 | ||
| @@ -40,7 +41,7 @@ export struct SpacialTopicPageComponent { | @@ -40,7 +41,7 @@ export struct SpacialTopicPageComponent { | ||
| 40 | @State bottomSafeHeight: number = AppStorage.get<number>('bottomSafeHeight') || 0 | 41 | @State bottomSafeHeight: number = AppStorage.get<number>('bottomSafeHeight') || 0 |
| 41 | @State isNetConnected: boolean = true | 42 | @State isNetConnected: boolean = true |
| 42 | @Provide topSafeHeight: number = AppStorage.get<number>('topSafeHeight') || 0 | 43 | @Provide topSafeHeight: number = AppStorage.get<number>('topSafeHeight') || 0 |
| 43 | - | 44 | + @State showComment: boolean = false |
| 44 | private trySendData2H5() { | 45 | private trySendData2H5() { |
| 45 | if (!this.webPrepared || !this.dataPrepared) { | 46 | if (!this.webPrepared || !this.dataPrepared) { |
| 46 | return | 47 | return |
| @@ -204,14 +205,14 @@ export struct SpacialTopicPageComponent { | @@ -204,14 +205,14 @@ export struct SpacialTopicPageComponent { | ||
| 204 | this.showCommentList = true | 205 | this.showCommentList = true |
| 205 | } | 206 | } |
| 206 | }) | 207 | }) |
| 207 | - // //全部评论 | ||
| 208 | - // CommentDialogView({ | ||
| 209 | - // index: $index, | ||
| 210 | - // currentIndex: $currentIndex, | ||
| 211 | - // showCommentList: $showCommentList, | ||
| 212 | - // publishCommentModel: $publishCommentModel, | ||
| 213 | - // interactData: $interactData, | ||
| 214 | - // }) | 208 | + //全部评论 |
| 209 | + CommentDialogView({ | ||
| 210 | + index: $index, | ||
| 211 | + currentIndex: $currentIndex, | ||
| 212 | + showCommentList: $showCommentList, | ||
| 213 | + publishCommentModel: $publishCommentModel, | ||
| 214 | + interactData: $interactData, | ||
| 215 | + }).visibility(this.showComment?Visibility.Visible:Visibility.Hidden) | ||
| 215 | } | 216 | } |
| 216 | }.width(CommonConstants.FULL_WIDTH).height(CommonConstants.FULL_HEIGHT) | 217 | }.width(CommonConstants.FULL_WIDTH).height(CommonConstants.FULL_HEIGHT) |
| 217 | } | 218 | } |
-
Please register or login to post a comment