From 47462dc6c323cc4ac7b32b93051947d351799c1f Mon Sep 17 00:00:00 2001 From: yiming <m13691596795@163.com> Date: 星期四, 21 三月 2024 18:53:20 +0800 Subject: [PATCH] 检索页修改 --- packageDomain/pages/resourceDetails/myAudio/index.js | 40 +++++++++++++++++++++++++++++++++++----- 1 files changed, 35 insertions(+), 5 deletions(-) diff --git a/packageDomain/pages/resourceDetails/myAudio/index.js b/packageDomain/pages/resourceDetails/myAudio/index.js index 544125b..a15fcb2 100644 --- a/packageDomain/pages/resourceDetails/myAudio/index.js +++ b/packageDomain/pages/resourceDetails/myAudio/index.js @@ -7,6 +7,7 @@ * 椤甸潰鐨勫垵濮嬫暟鎹� */ data: { + showDropdown: false, noteList: [], navBarHeight: '', barHeight: '', @@ -34,8 +35,8 @@ style: 'height: 248rpx', submitType: "new", // 鏂板缓 or 缂栬緫 noteId: '', - myAudioDuration: '', // 瑙嗛鏃堕棿 - myAudioCurrent: '', // 褰撳墠鎾斁杩涘害 + myAudioDuration: '00:00', // 瑙嗛鏃堕棿 + myAudioCurrent: '00:00', // 褰撳墠鎾斁杩涘害 isplay: false, //鏄惁榛樿鎾斁, selectId: '', speed: 1.0, @@ -521,7 +522,7 @@ myAudio.onCanplay(() => { myAudio.duration; //蹇呴』鍐欙紝涓嶇劧鑾峰彇涓嶅埌銆傘�傘�� setTimeout(() => { - console.log(myAudio.duration); + console.log(myAudio.duration, 'myAudio.duration'); this.setData({ myAudioDuration: this.format(myAudio.duration), myAudioCurrent: this.format(myAudio.currentTime) @@ -665,7 +666,36 @@ myAudioPos: position, myAudioCurrent: this.format(currentTime) }) + }, + + + toggleDropdown() { + this.setData({ + showDropdown: !this.data.showDropdown + }); + }, + smallSpeed() { + this.setData({ + speed: 0.5, + showDropdown: !this.data.showDropdown + }) + }, + centreSpeed() { + this.setData({ + speed: 1.5, + showDropdown: !this.data.showDropdown + }) + }, + bigSpeed() { + this.setData({ + speed: 2, + showDropdown: !this.data.showDropdown + }) + }, + smallSpeeDmultiple() { + this.setData({ + speed: 1, + showDropdown: !this.data.showDropdown + }) } - - }) \ No newline at end of file -- Gitblit v1.9.1