Commit f733fd12 by 陈玉桐

fix

parent aaedf4a8
......@@ -75,11 +75,6 @@ export default {
loading
},
ready: function() {
this.isPlaying = true
document.querySelector('#music').play();
document.addEventListener("WeixinJSBridgeReady", function () {
document.querySelector('#music').play();
}, false);
},
mounted() {
this.loadingShow = true
......@@ -102,6 +97,12 @@ export default {
this.detailImgUrl = response.data.detailImgUrl
this.qualifications = response.data.qualifications
this.musicUrl = response.data.musicUrl
this.isPlaying = true
document.querySelector('#music').play();
document.addEventListener("WeixinJSBridgeReady", function () {
document.querySelector('#music').play();
}, false);
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment