Showing
2 changed files
with
1 additions
and
25 deletions
| @@ -11,13 +11,10 @@ import { | @@ -11,13 +11,10 @@ import { | ||
| 11 | postExecuteCollectRecordParams | 11 | postExecuteCollectRecordParams |
| 12 | } from 'wdBean'; | 12 | } from 'wdBean'; |
| 13 | import router from '@ohos.router'; | 13 | import router from '@ohos.router'; |
| 14 | -import inputMethod from '@ohos.inputMethod'; | ||
| 15 | import { MultiPictureDetailViewModel } from '../../viewmodel/MultiPictureDetailViewModel'; | 14 | import { MultiPictureDetailViewModel } from '../../viewmodel/MultiPictureDetailViewModel'; |
| 16 | import { LikeComponent } from './LikeComponent'; | 15 | import { LikeComponent } from './LikeComponent'; |
| 17 | import { CommentTabComponent, CommentIconComponent, } from '../comment/view/CommentTabComponent'; | 16 | import { CommentTabComponent, CommentIconComponent, } from '../comment/view/CommentTabComponent'; |
| 18 | import { publishCommentModel } from '../comment/model/PublishCommentModel' | 17 | import { publishCommentModel } from '../comment/model/PublishCommentModel' |
| 19 | -// import { AudioBarView } from '../MorningEveningPaper/AudioBarView' | ||
| 20 | -// import { AudioDialog } from '../../dialog/AudioDialog' | ||
| 21 | import { HttpUrlUtils } from 'wdNetwork/Index'; | 18 | import { HttpUrlUtils } from 'wdNetwork/Index'; |
| 22 | import { WDRouterPage, WDRouterRule } from 'wdRouter/Index'; | 19 | import { WDRouterPage, WDRouterRule } from 'wdRouter/Index'; |
| 23 | import { PageRepository } from '../../repository/PageRepository'; | 20 | import { PageRepository } from '../../repository/PageRepository'; |
| @@ -26,7 +23,6 @@ import { WDShare } from 'wdShare/Index'; | @@ -26,7 +23,6 @@ import { WDShare } from 'wdShare/Index'; | ||
| 26 | import { AudioSuspensionModel } from '../../viewmodel/AudioSuspensionModel' | 23 | import { AudioSuspensionModel } from '../../viewmodel/AudioSuspensionModel' |
| 27 | import { EmitterEventId, EmitterUtils } from 'wdKit/Index' | 24 | import { EmitterEventId, EmitterUtils } from 'wdKit/Index' |
| 28 | import { PlayerConstants } from 'wdPlayer' | 25 | import { PlayerConstants } from 'wdPlayer' |
| 29 | -import { LottieView } from '../lottie/LottieView' | ||
| 30 | 26 | ||
| 31 | const TAG = 'OperRowListView'; | 27 | const TAG = 'OperRowListView'; |
| 32 | 28 | ||
| @@ -294,26 +290,7 @@ export struct OperRowListView { | @@ -294,26 +290,7 @@ export struct OperRowListView { | ||
| 294 | @Builder | 290 | @Builder |
| 295 | builderListen() { | 291 | builderListen() { |
| 296 | Column() { | 292 | Column() { |
| 297 | - if(this.currentStatus === PlayerConstants.STATUS_START) { | ||
| 298 | - Column() { | ||
| 299 | - LottieView({ | ||
| 300 | - name: this.name, | ||
| 301 | - path: "lottie/audio_recommend_playing.json", | ||
| 302 | - lottieWidth: 24, | ||
| 303 | - lottieHeight: 24, | ||
| 304 | - autoplay: true, | ||
| 305 | - loop: true | ||
| 306 | - }) | ||
| 307 | - } | ||
| 308 | - .width(25) | ||
| 309 | - .height(25) | ||
| 310 | - .parallelGesture( | ||
| 311 | - TapGesture() | ||
| 312 | - .onAction((event: GestureEvent) => { | ||
| 313 | - this.AudioSuspension.setPlayerUrl(this.audioUrl, this.audioTitle) | ||
| 314 | - })) | ||
| 315 | - } else { | ||
| 316 | - Image($r("app.media.icon_listen")) | 293 | + Image(this.currentStatus === PlayerConstants.STATUS_START ? $r("app.media.ic_voice_playing") : $r("app.media.icon_listen")) |
| 317 | .width(24) | 294 | .width(24) |
| 318 | .height(24) | 295 | .height(24) |
| 319 | .aspectRatio(1) | 296 | .aspectRatio(1) |
| @@ -324,7 +301,6 @@ export struct OperRowListView { | @@ -324,7 +301,6 @@ export struct OperRowListView { | ||
| 324 | this.AudioSuspension.setPlayerUrl(this.audioUrl, this.audioTitle) | 301 | this.AudioSuspension.setPlayerUrl(this.audioUrl, this.audioTitle) |
| 325 | })) | 302 | })) |
| 326 | } | 303 | } |
| 327 | - } | ||
| 328 | .height(36) | 304 | .height(36) |
| 329 | .width(48) | 305 | .width(48) |
| 330 | .justifyContent(FlexAlign.Center) | 306 | .justifyContent(FlexAlign.Center) |
-
Please register or login to post a comment