From 4031d4a89275be10e4b4bbe55c654957d4a6b823 Mon Sep 17 00:00:00 2001 From: ieiqny Date: Wed, 19 Oct 2022 17:36:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E5=88=97=E8=A1=A8=E5=88=B7?= =?UTF-8?q?=E6=96=B0=E4=B8=8D=E5=8F=8A=E6=97=B6=E9=97=AE=E9=A2=98=E8=A7=A3?= =?UTF-8?q?=E5=86=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/view/MediaItem.ets | 28 ++------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/entry/src/main/ets/view/MediaItem.ets b/entry/src/main/ets/view/MediaItem.ets index 0ac88c4..fc0f6c7 100644 --- a/entry/src/main/ets/view/MediaItem.ets +++ b/entry/src/main/ets/view/MediaItem.ets @@ -120,9 +120,6 @@ export struct MediaItem { .onClick(() => { this.btnAction('delete', this.index) }) - - - } .padding({ top: 10, bottom: 10, left: 10, right: 10 }) .margin({ left: 15, right: 15, top: 10 }) @@ -132,21 +129,6 @@ export struct MediaItem { console.log("MediaItem onClick") if(this.media.mediaType==mediaLibrary.MediaType.IMAGE) { -// console.log(this.TAG+',this.mediaList.length='+this.mediaList.length) -// -// for (var i = 0; i < this.mediaList.length; i++) { -// console.log(this.TAG + ',this.mediaList[i].uri=' + this.mediaList[i].uri) -// if (this.mediaList[i].uri == this.media.uri ) { -// this.selectMedia = this.mediaList[i] -// break -// } -// } - -// console.log(this.TAG+',this.selectMedia.uri='+this.selectMedia.uri) -// console.log(this.TAG+',this.selectMedia.title='+this.selectMedia.title) -// console.log(this.TAG+',renameMedia newName = '+this.selectMedia.displayName) - - router.push({ uri: "pages/ImagePreview", params: { @@ -161,8 +143,6 @@ export struct MediaItem { else if(this.media.mediaType==mediaLibrary.MediaType.VIDEO) { AppStorage.SetOrCreate('isAudio',false) - //AppStorage.SetOrCreate('playerSource','../../resources/rawfile/video_test_1.mp4') - //AppStorage.SetOrCreate('playerName','video_test_1.mp4') AppStorage.SetOrCreate('playerSource',this.media.uri) AppStorage.SetOrCreate('playerName',this.media.title) @@ -170,7 +150,7 @@ export struct MediaItem { let context = globalThis.context var want = { "deviceId": "", - "bundleName": "com.example.filemanager_sys", + "bundleName": "com.example.filemanager_sys1", "abilityName": "PlayerAbility" }; context.startAbility(want, null).then((data) => { @@ -183,15 +163,13 @@ export struct MediaItem { else if(this.media.mediaType==mediaLibrary.MediaType.AUDIO) { AppStorage.SetOrCreate('isAudio',true) -// AppStorage.SetOrCreate('playerSource','../../resources/rawfile/lingsheng2.mp3') -// AppStorage.SetOrCreate('playerName','lingsheng2.mp3') AppStorage.SetOrCreate('playerSource',this.media.uri) AppStorage.SetOrCreate('playerName',this.media.title) let context = globalThis.context var want = { "deviceId": "", - "bundleName": "com.example.filemanager_sys", + "bundleName": "com.example.filemanager_sys1", "abilityName": "PlayerAbility" }; context.startAbility(want, null).then((data) => { @@ -201,8 +179,6 @@ export struct MediaItem { }) } - - }) } } \ No newline at end of file -- Gitee