heyang 3 years ago
parent
commit
415398362d
2 changed files with 17 additions and 6 deletions
  1. 16 5
      screenAndroid/WXtrialInterface.html
  2. 1 1
      screenIos/css/WXtrialInterface.css

+ 16 - 5
screenAndroid/WXtrialInterface.html

@@ -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 () {
-					setTimeout(() => {
-						isAudioPlay = true;
-					}, 1000);
+					isAudioPlay = true;
 				}
 			});
-		}, 1000)
+		}
+		
 		var topwinHeight = window.screen.height - window.innerHeight + 30; //计算title top 头部  
 		$('#wine').css({
 			"width": window.screen.width,

+ 1 - 1
screenIos/css/WXtrialInterface.css

@@ -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%;
 }