Commit e47216cc authored by haiyoucuv's avatar haiyoucuv

换了点皮,换了下接口

parent fb235532
This diff is collapsed.
<audio src="aaaa.mp3" id="au" autoplay='autoplay' loop="loop"></audio>
<script>
var au = document.getElementById('au');
au.src = "aaaaa.mp3";//需要js引入路径
au.play();
// 音乐兼容微信自动播放
document.addEventListener('DOMContentLoaded', function () {
function audioAutoPlay() {
var au = document.getElementById('au');
au.play();
document.addEventListener("WeixinJSBridgeReady", function () {
au.play();
}, false);
}
audioAutoPlay();
});
document.addEventListener("WeixinJSBridgeReady", function () {
au.play();
}, false);
window.onclick = ()=>{
au.play();
window.onclick = null;
}
</script>
......@@ -61,7 +61,7 @@ export class TaskPanel extends Panel {
this.isShowing = true;
this.y = layers.stageHeight + this.height;
Tween.get(this)
.to({ y: 0 }, 500, Ease.quartOut)
.to({y: 0}, 500, Ease.quartOut)
.call(() => {
this.isShowing = false;
});
......@@ -69,7 +69,6 @@ export class TaskPanel extends Panel {
closeBtn: Button;
initUi() {
}
......@@ -80,8 +79,14 @@ export class TaskPanel extends Panel {
}
public updateTask() {
// showWaiting();
showWaiting();
sendTbNet(TbNetName.getTaskList, {},
(success, res) => {
hideWaiting();
if (!success) return;
console.log(res);
}
);
}
initEvents() {
......
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