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 { ...@@ -61,7 +61,7 @@ export class TaskPanel extends Panel {
this.isShowing = true; this.isShowing = true;
this.y = layers.stageHeight + this.height; this.y = layers.stageHeight + this.height;
Tween.get(this) Tween.get(this)
.to({ y: 0 }, 500, Ease.quartOut) .to({y: 0}, 500, Ease.quartOut)
.call(() => { .call(() => {
this.isShowing = false; this.isShowing = false;
}); });
...@@ -69,7 +69,6 @@ export class TaskPanel extends Panel { ...@@ -69,7 +69,6 @@ export class TaskPanel extends Panel {
closeBtn: Button; closeBtn: Button;
initUi() { initUi() {
} }
...@@ -80,8 +79,14 @@ export class TaskPanel extends Panel { ...@@ -80,8 +79,14 @@ export class TaskPanel extends Panel {
} }
public updateTask() { public updateTask() {
// showWaiting(); showWaiting();
sendTbNet(TbNetName.getTaskList, {},
(success, res) => {
hideWaiting();
if (!success) return;
console.log(res);
}
);
} }
initEvents() { 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