Showing
2 changed files
with
9 additions
and
33 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,36 +290,16 @@ export struct OperRowListView { | @@ -294,36 +290,16 @@ 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( | 293 | + Image(this.currentStatus === PlayerConstants.STATUS_START ? $r("app.media.ic_voice_playing") : $r("app.media.icon_listen")) |
| 294 | + .width(24) | ||
| 295 | + .height(24) | ||
| 296 | + .aspectRatio(1) | ||
| 297 | + .interpolation(ImageInterpolation.High) | ||
| 298 | + .gesture( | ||
| 311 | TapGesture() | 299 | TapGesture() |
| 312 | - .onAction((event: GestureEvent) => { | ||
| 313 | - this.AudioSuspension.setPlayerUrl(this.audioUrl, this.audioTitle) | ||
| 314 | - })) | ||
| 315 | - } else { | ||
| 316 | - Image($r("app.media.icon_listen")) | ||
| 317 | - .width(24) | ||
| 318 | - .height(24) | ||
| 319 | - .aspectRatio(1) | ||
| 320 | - .interpolation(ImageInterpolation.High) | ||
| 321 | - .gesture( | ||
| 322 | - TapGesture() | ||
| 323 | - .onAction((event: GestureEvent) => { | ||
| 324 | - this.AudioSuspension.setPlayerUrl(this.audioUrl, this.audioTitle) | ||
| 325 | - })) | ||
| 326 | - } | 300 | + .onAction((event: GestureEvent) => { |
| 301 | + this.AudioSuspension.setPlayerUrl(this.audioUrl, this.audioTitle) | ||
| 302 | + })) | ||
| 327 | } | 303 | } |
| 328 | .height(36) | 304 | .height(36) |
| 329 | .width(48) | 305 | .width(48) |
-
Please register or login to post a comment