diff --git a/pages.json b/pages.json index 8a650de7d38302f77ef16461878059aa1c511841..14900ee4b4815bc3d13ead8109d31f12968fdeb0 100644 --- a/pages.json +++ b/pages.json @@ -1526,7 +1526,7 @@ } }, // #endif - // #ifdef APP-ANDROID || MP-WEIXIN + // #ifdef APP || MP-WEIXIN { "path": "pages/API/get-background-audio-manager/get-background-audio-manager", "group": "1,7,10", diff --git a/pages/API/get-background-audio-manager/get-background-audio-manager.uvue b/pages/API/get-background-audio-manager/get-background-audio-manager.uvue index a792bb4f7e85cf4091f06e4ae8593da6e35af959..efd7c2e8250ee924be9b49214b4fe165558d6221 100644 --- a/pages/API/get-background-audio-manager/get-background-audio-manager.uvue +++ b/pages/API/get-background-audio-manager/get-background-audio-manager.uvue @@ -111,7 +111,8 @@ console.log('播放出错err', err); }) this.bgAudioMannager = bgAudioMannager; - this.playing = !bgAudioMannager.paused + this.playing = !bgAudioMannager.paused + this.isCanplay = this.bgAudioMannager.duration > 0 }, methods: { play: function () {