@@ -117,17 +117,28 @@
var isAudioPlay = false;
var video = document.getElementById("playerVideo");
video.play();
- setTimeout(() => {
+ if(navigator.userAgent.toLowerCase().includes('toutiaomicroapp')){
+ setTimeout(() => { // 抖音环境需要设置延时,不然会有video默认图显示
+ $.alert({
+ title: '提示',
+ text: '开始使用云手机',
+ onOK: function () {
+ setTimeout(() => {
+ isAudioPlay = true;
+ }, 1000);
+ }
+ });
+ }, 1000)
+ }else{
$.alert({
title: '提示',
text: '开始使用云手机',
onOK: function () {
- isAudioPlay = true;
- }, 1000);
}
});
- }, 1000)
+
var topwinHeight = window.screen.height - window.innerHeight + 30; //计算title top 头部
$('#wine').css({
"width": window.screen.width,
@@ -331,7 +331,7 @@ html {
display: flex;
align-items: center;
justify-content: center;
- background: url(../img/homebg.jpg) no-repeat;
+ background: url(../img/homebg.png) no-repeat;
background-size: 100% 100%;