heyang 3 år sedan
förälder
incheckning
43c180f145

+ 6 - 3
screenAndroid/WXtrialInterface.html

@@ -115,13 +115,16 @@
 	<script type="text/javascript" src="jmuxer.js"></script>
 	<script>
 		var isAudioPlay = false;
+		var video = document.getElementById("playerVideo");
+		video.play();
+		isAudioPlay = true;
 		$.alert({
 			title: '提示',
 			text: '开始使用云手机',
 			onOK: function () {
-				var video = document.getElementById("playerVideo");
-				video.play();
-				isAudioPlay = true;
+				// var video = document.getElementById("playerVideo");
+				// video.play();
+				// isAudioPlay = true;
 			}
 		});
 		var topwinHeight = window.screen.height - window.innerHeight + 30; //计算title top 头部  

+ 10 - 3
screenH5/WXtrialInterface.html

@@ -476,6 +476,7 @@ transition: all 0.2s ease-in;
 		</div>
 		
 		<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
+		<script src="https://lf1-cdn-tos.bytegoofy.com/goofy/developer/jssdk/jssdk-1.0.3.js"></script>
 		<script src="../static/js/jquery-1.11.0.min.js"></script>
 		<!--  音频-->
 		<script src="../static/js/classlist.js"></script>
@@ -1027,9 +1028,15 @@ transition: all 0.2s ease-in;
 			})
 
 			$("#upload").on("click", function() {
-				wx.miniProgram.switchTab({
-					url: '/pages/home/home'
-				})
+				if(navigator.userAgent.toLowerCase().includes('toutiaomicroapp')){
+					tt.miniProgram.switchTab({
+						url: '/pages/home/home'
+					})
+				}else{
+					wx.miniProgram.switchTab({
+						url: '/pages/home/home'
+					})
+				}
 			})
 
 

+ 18 - 6
screenIos/WXdraw.js

@@ -71,18 +71,30 @@ function doConnect() {
 		wsss.close();
 		throttle(doConnect, 100);
 		if (errorTime > 1000) {
-			wx.miniProgram.switchTab({
-				url: '/pages/home/home'
-			})
+			if(navigator.userAgent.toLowerCase().includes('toutiaomicroapp')){
+				tt.miniProgram.switchTab({
+					url: '/pages/home/home'
+				})
+			}else{
+				wx.miniProgram.switchTab({
+					url: '/pages/home/home'
+				})
+			}
 		}
 	};
 	wsss.onerror = function () {
 		wsss.close();
 		throttle(doConnect, 100);
 		if (errorTime > 1000) {
-			wx.miniProgram.switchTab({
-				url: '/pages/home/home'
-			})
+			if(navigator.userAgent.toLowerCase().includes('toutiaomicroapp')){
+				tt.miniProgram.switchTab({
+					url: '/pages/home/home'
+				})
+			}else{
+				wx.miniProgram.switchTab({
+					url: '/pages/home/home'
+				})
+			}
 		}
 	};
 }

+ 19 - 6
screenIos/WXtrialInterface.html

@@ -100,6 +100,7 @@
 		<p class="weui-toast_content">数据加载中</p>
 	</div>
 	<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
+	<script src="https://lf1-cdn-tos.bytegoofy.com/goofy/developer/jssdk/jssdk-1.0.3.js"></script>
 	<script type="text/javascript" src="jquery-1.11.0.min.js"></script>
 	<!-- ffm软解 -->
 	<script type="text/javascript" src="helper.js"></script>
@@ -594,9 +595,15 @@
 		})
 
 		$("#upload").on("click", function () {
-			wx.miniProgram.switchTab({
-				url: '/pages/home/home'
-			})
+			if(navigator.userAgent.toLowerCase().includes('toutiaomicroapp')){
+				tt.miniProgram.switchTab({
+					url: '/pages/home/home'
+				})
+			}else{
+				wx.miniProgram.switchTab({
+					url: '/pages/home/home'
+				})
+			}
 		})
 
 		function selectText(x) {
@@ -740,9 +747,15 @@
 				}
 			}
 			if (event.data === 'close') {
-				wx.miniProgram.switchTab({
-					url: '/pages/home/home'
-				})
+				if(navigator.userAgent.toLowerCase().includes('toutiaomicroapp')){
+					tt.miniProgram.switchTab({
+						url: '/pages/home/home'
+					})
+				}else{
+					wx.miniProgram.switchTab({
+						url: '/pages/home/home'
+					})
+				}
 			}
 		}