huangxiaojing 4 anos atrás
pai
commit
3ee4b7108a
2 arquivos alterados com 17 adições e 18 exclusões
  1. 6 6
      screenAndroid/WXtrialInterface.html
  2. 11 12
      screenIos/WXtrialInterface.html

+ 6 - 6
screenAndroid/WXtrialInterface.html

@@ -126,18 +126,18 @@
 	<script type="text/javascript" src="jmuxer.js"></script>
 	<script>
 		var isAudioPlay = false;
-		$(function () {
-			// test 的点击事件
-			$('body').click(function () {
+		$.alert({
+			title: '提示',
+			text: '开始使用云手机',
+			onOK: function () {
 				var video = document.getElementById("playerVideo");
 				video.play();
 				isAudioPlay = true;
 				$('.weui-mask_transparent').hide();
 				$('.weui-toast').hide();
 				$('.loading').hide();
-			});
-			$("body").click();
-		})
+			}
+		});
 		var topwinHeight = window.screen.height - window.innerHeight + 30; //计算title top 头部
 		$('#wine').css({
 			"width": window.screen.width,

+ 11 - 12
screenIos/WXtrialInterface.html

@@ -116,14 +116,6 @@
 	<!-- ffm软解 -->
 	<script type="text/javascript" src="helper.js"></script>
 	<script type="text/javascript" src="jquery-weui.min.js"></script>
-	<script>
-		$(function () {
-			$('body').click(function () {
-				isAudioPlay = true;
-			});
-			$("body").click();
-		})
-	</script>
 	<script type="text/javascript" src="pcm-player.js"></script>
 	<script type="text/javascript" src="webgl.js"></script>
 	<script type="text/javascript" src="https://cdn.bootcss.com/vConsole/3.2.0/vconsole.min.js"></script>
@@ -144,11 +136,18 @@
 		var winese = document.createElement("wine");
 		wine.style.top = "-" + winese + 'px';
 		var isAudioPlay = false;
+		$.alert({
+			title: '提示',
+			text: '开始使用云手机',
+			onOK: function () {
+				isAudioPlay = true;
+			}
+		});
 		var url = window.location.href;
 		url = url.split('/');
 		var baseUrl = "http://192.168.199.243";
-		var form = {}
-		//			 审核
+		var form = {};
+		// 审核
 		$.ajax({
 			url: baseUrl + "/api/user/v1/config/download/isShow",
 			data: {},
@@ -189,10 +188,10 @@
 			form.userCardId = parameters['userCardId'];
 		}
 
-		var orientation = 0 //0 竖屏,1横屏
+		var orientation = 0; //0 竖屏,1横屏
 
 		document.body.addEventListener('touchmove', function (e) {
-			e.preventDefault()
+			e.preventDefault();
 		}, {
 			passive: false
 		})