Skip to content

Commit

Permalink
解决Hello MUI在Android平台打开广告模板时,窗口动画闪烁的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
hbcui1984 committed Oct 31, 2017
1 parent b398e9c commit d1494b0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/hello-mui/examples/ad.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ <h1 class="mui-title">advertisement(广告模板)</h1>
});
}else{
ad.addEventListener('loaded',function () {
ad.show('slide-in-bottom');
//延时的目的是为了等待主窗体动画结束后才显示,否则可能会闪烁
setTimeout(function () {
ad.show('slide-in-bottom');
},300);
});
}

Expand Down

0 comments on commit d1494b0

Please sign in to comment.