Переглянути джерело

Merge branch 'test' into uat

曾志翔 3 роки тому
батько
коміт
021d212155

+ 355 - 0
microserviceUserH5/static/css/yunActivity.css

@@ -0,0 +1,355 @@
+@media screen and (max-width: 750px) {
+    html {
+      font-size: calc(100vw / 7.5);
+    }
+  }
+  
+@media screen and (min-width: 750px)  {
+  html {
+    font-size: calc(450px / 7.5);
+  }
+}
+html, body, div, ul, li, p {
+  padding: 0;
+  margin: 0;
+}
+body {
+    background-color: #fdf2ed;
+}
+
+ul, li {
+  list-style: none;
+}
+
+.containers{
+  width: 7.5rem;
+  margin: auto;
+  background-image: url('../img/yunActivity/background.png'); 
+  background-size: 100% 100%; 
+}
+
+.banner-wrap{
+  width: 7.5rem;
+  height: 8.33rem;
+  position: relative;
+}
+
+.img-title {
+  padding: 0.67rem 0.72rem 0;
+}
+
+.banner-img{
+  width: 100%;
+}
+
+img {
+  border: 0;
+}
+
+.img-middle {
+  margin: 0.27rem 0.25rem 0.43rem;
+}
+
+.time-img{
+  width: 100%;
+}
+
+.img-bottom {
+  margin: 0.5rem 0.97rem 0.53rem 0.61rem;
+}
+
+.game-img {
+  width: 100%;
+}
+
+.receive-code {
+  position: relative;
+  width: 6.9rem;
+  height: 4.36rem;
+  border: 1px solid #FFFFFF;
+  opacity: 0.8;
+  border-radius: 0.2rem;
+  margin: 0 0.3rem;
+  background: #FFFFFF;
+}
+
+.take-phone {
+  color: #333333;
+  text-align: center;
+  margin-top: 0.39rem;
+  font-size: 0.32rem;
+  font-weight: bold;
+  font-family: SourceHanSansCN-Bold;
+}
+
+.send-phone {
+  width: 6.2rem;
+  height: 0.68rem;
+  display: flex;
+  align-items: center;
+  border: 0.02rem solid #E6E6E6;
+  border-radius: 0.1rem;
+  margin: 0.2rem 0.35rem 0;
+}
+
+.ipt-row{
+  position: relative;
+  width: 6.2rem;
+  height: 0.68rem;
+  border: 0.02rem solid #E6E6E6;
+  border-radius: 0.1rem;
+  display: flex;
+  align-items: center;
+  margin: 0.3rem 0.35rem 0;
+}
+
+.img-code {
+  width: 0.3rem;
+  height: 0.36rem;
+  margin: 0 0.22rem 0 0.3rem;
+}
+
+.ipt {
+  border: none;
+  outline: none;
+  border-left: 0.01rem solid rgba(238,238,238,1);
+}
+
+.phone-tip{
+  position: absolute;
+  top: 1.72rem;
+  left: 1.25rem;
+  font-size: 0.24rem;
+  color: #FB5030;
+  display: none;
+}
+
+.code-tip{
+  position: absolute;
+  top: 2.72rem;
+  left: 1.25rem;
+  font-size: 0.24rem;
+  color: #FB5030;
+  text-align: center;
+  display: none;
+}
+
+.donwlond-receive {
+  display: flex;
+  justify-content: center;
+  align-items: center;
+  margin-top: 0.6rem;
+}
+
+.btn-img {
+  width: 4rem;
+  height: 0.8rem;
+  /* background: linear-gradient(0deg, #E85A4B 1%, #EF9878 99%); */
+  border-radius: 0.4rem;
+  text-align: center;
+  /* border: none; */
+  /* line-height: 0.8rem;
+  font-size: 0.3rem;
+  color: #FFFFFF; */
+  font-family:  Source Han Sans CN;
+}
+
+.get-code{
+  position: absolute;
+  right: 0.2rem;
+  width: 1.53rem;
+  height: 0.28rem;
+  line-height: 0.28rem;
+  font-size: 0.3rem;
+  color: #333333;
+}
+
+.get-code-active{
+  width: 1.4rem;
+  height: 0.6rem;
+  line-height: 0.6rem;
+  text-align: center;
+  color: #333333;
+  border-radius: 0.1rem;
+  background-color: rgba(238,238,238,1);
+}
+
+.host-dirction {
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  margin-top: 0.56rem;
+}
+
+.game-host {
+  font-size: 0.32rem;
+  font-family: Source Han Sans CN;
+  font-weight: bold;
+  color: #333333;
+  padding: 0 0.2rem ;
+}
+
+.video {
+  /* display: flex;
+  justify-content: center; */
+  position: relative;
+  width: 100%;
+  height: 4.06rem;
+  margin-top: 0.3rem;
+  background-size: 100% 100%;
+  background: url('../img/yunActivity/bgc.png');
+}
+
+.host-left {
+  width: 0.85rem;
+  height: 0.06rem;
+}
+
+.host-right {
+  width: 0.85rem;
+  height: 0.06rem;
+}
+
+
+.btn-video {
+  position: absolute;
+  top: 42%;
+  left: 45%;
+  width: 0.88rem;
+  height: 0.87rem;
+}
+
+.direction {
+  padding: 0.54rem 0 0.67rem;
+  text-align: center;
+  font-size: 0.24rem;
+  font-family: SourceHanSansCN-Regular;
+}
+
+.copy-mask {
+  width: 100%;
+  height: 100vh;
+  position: fixed;
+  top: 0;
+  left: 0;
+  background: rgba(0, 0, 0, 0.6);
+  display: none;
+}
+
+.copy-dialog {
+  width: 6.8rem;
+  height: 5rem;
+  background: #FFFFFF;
+  border-radius: 0.2rem;
+  position: absolute;
+  background: linear-gradient(0deg, #FFFFFF 1%, #FCF2EF 99%);
+  margin: 0 0.35rem;
+  top: 3.39rem;
+  display: none;
+}
+
+.dialog-title {
+  text-align: center;
+  font-size: 0.4rem;
+  font-family: Source Han Sans CN;
+  font-weight: bold;
+  color: #333333;
+  padding-top: 0.6rem;
+}
+
+.free-try {
+  font-size: 0.3rem;
+  font-family: Source Han Sans CN;
+  font-weight: 400;
+  text-align: center;
+  color: #333333;
+  padding-top: 0.19rem;
+}
+
+.activation-code {
+  width: 5.8rem;
+  height: 0.8rem;
+  background: pink;
+  margin: 0.5rem 0.5rem 0;
+  border: 1px solid #E6E6E6;
+  border-radius: 0.2rem;
+}
+
+.donwlond-code {
+  width: 4rem;
+  height: 0.8rem;
+  /* margin-left: 1.4rem; */
+  margin: 0.39rem 1.4rem 0;
+}
+
+.take-code {
+  font-size: 0.24rem;
+  color: #333333;
+  text-align: center;
+  margin-top: 0.2rem;
+}
+
+.close {
+  position: absolute;
+  width: 0.7rem;
+  height: 0.7rem;
+  bottom: 3.65rem;
+  left: 3.4rem;
+  display: none;
+}
+
+
+.viedo-game {
+  position: absolute;
+  /* top: 50%; */
+  display: none;
+  z-index: 999;
+}
+
+.pop_video_bg {
+  position: fixed;
+  width: 100%;
+  z-index: 2;
+  left: 0;
+  top: 0;
+  height: 100%;
+  display: none;
+  background-color: rgba(0,0,0,.7);
+}
+
+
+#toast-container>.toast-error {
+  background-image: none !important;
+  border-radius: 0.2rem;
+}
+
+.toast-error {
+  background-color: rgba(0, 0, 0, 0.8);
+  border-radius: 0.2rem;
+}
+
+#toast-container>div {
+  font-size: 14px;
+  min-width: 80px !important;
+  padding: 12px !important;
+  box-shadow: none;
+  border-radius: 0.2rem;
+}
+
+.toast-center-center {
+  position: fixed;
+  min-width: 220px;
+  top: 50%;
+  left: 50%;
+  text-align: center;
+  transform: translateX(-50%);
+  color: #FFFFFF;
+  border-radius: 0.2rem;
+}
+
+@media (max-width: 480px) and (min-width: 241px) {
+  #toast-container>div {
+    min-width: 80px !important;
+    width: auto;
+  }
+}

BIN
microserviceUserH5/static/img/yunActivity/background.png


BIN
microserviceUserH5/static/img/yunActivity/banner.png


BIN
microserviceUserH5/static/img/yunActivity/bgc.png


BIN
microserviceUserH5/static/img/yunActivity/btn.png


BIN
microserviceUserH5/static/img/yunActivity/close.png


BIN
microserviceUserH5/static/img/yunActivity/code.png


BIN
microserviceUserH5/static/img/yunActivity/left.png


BIN
microserviceUserH5/static/img/yunActivity/phone.png


BIN
microserviceUserH5/static/img/yunActivity/right.png


BIN
microserviceUserH5/static/img/yunActivity/takedowlond.png


BIN
microserviceUserH5/static/img/yunActivity/time.png


BIN
microserviceUserH5/static/img/yunActivity/title.png


BIN
microserviceUserH5/static/img/yunActivity/viedo.png


+ 1 - 1
microserviceUserH5/vcloud/qqActivity.html

@@ -257,7 +257,7 @@
 		//点击下载APP并复制激活码
 		$('.get-success-block')[0].addEventListener('click', (e) => {
 			operate('QQQB_下载APP并复制激活码');
-      if (isIOS) {
+     		 if (isIOS) {
 				$('.copy-dialog').animate({top: '-6.96rem'},"fast");
 				$('.copy-mask').hide();
 				$('.ios-dialog').animate({top: '5.75rem'},"fast");

+ 396 - 0
microserviceUserH5/vcloud/yunActivity.html

@@ -0,0 +1,396 @@
+<!DOCTYPE html>
+<html lang="zh-CN">
+<head>
+	<meta charset="UTF-8">
+	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
+	<title>双子星云手机</title>
+	<link rel="icon" href="../static/img/favicon2.ico" type="img/x-ico">
+	<link rel="stylesheet" href="../static/js/vender/bootstrap/css/bootstrap.min.css">
+	<link rel="stylesheet" href="../static/js/vender/toastr/toastr.min.css">
+	<link rel="stylesheet" href="../static/css/yunActivity.css">
+	<script src="../static/js/vender/jquery-3.4.1.min.js"></script>
+	<script src="../static/js/vender/toastr/toastr.min.js"></script>
+	<script src="../static/js/vender/config.js"></script>
+	<script src="../static/js/vender/crypto-js.js"></script>
+	<script src="../static/js/vender/ase.js"></script>
+</head>
+
+<body>
+	<div class="containers">
+			<div class="banner-wrap">
+				<div class="img-title">
+					<img class="banner-img" src="../static/img/yunActivity/title.png">
+				</div>
+				<div class="img-middle">
+					<img class="time-img" src="../static/img/yunActivity/time.png">
+				</div>
+				<div class="img-bottom">
+					<img class="game-img" src="../static/img/yunActivity/banner.png">
+				</div>
+			</div>
+			<div class="receive-code">
+				<div class="take-phone">
+					领取云机激活码	
+				</div>	
+				<div class="send-phone">
+					<img class="img-code" src="../static/img/yunActivity/phone.png">
+					<input class="phone-ipt ipt" type="number" placeholder="请输入手机号" />
+				</div>
+				<div class="phone-tip">手机号码不正确,请重新输入!</div>
+				<div class="ipt-row">
+					<img class="img-code" src="../static/img/yunActivity/code.png">
+					<input class="code-ipt ipt" type="number" placeholder="请输入验证码" />
+					<div class="get-code">获取验证码</div>
+				</div>
+				<div class="code-tip">请输入正确的验证码</div>
+				<div class="donwlond-receive">
+					<img class="btn-img" src="../static/img/yunActivity/takedowlond.png">	
+					<!-- <div class="btn-receive">
+						立即领取
+					</div> -->
+				</div>
+			</div>
+			<div class="host-dirction">
+				<img class="host-left" src="../static/img/yunActivity/left.png" />
+				<div class="game-host">游戏托管功能应用详解</div>
+				<img class="host-right" src="../static/img/yunActivity/right.png" />
+			</div>
+			<div class="video">
+				<img class="btn-video" src="../static/img/yunActivity/viedo.png"/>
+			</div>
+			<div class="direction">
+				<p>用绑定手机号打开双子星云手机APP,</p>
+				<p>登录并进入<b>“我的-我的工具-激活码”</b>兑换使用</p>
+			</div>
+			<div class="viedo-game">
+				<video class="viedo-slide" width="100%" height="100%" controls="controls" src="http://110.53.221.195:8210/document/newFile/download/0/edv834e74a9c43eaac02?fileKey=LowLevelMultipartUpload_18704932809085747255">
+				</video>
+			</div>	
+			<div class="pop_video_bg">
+			</div>
+		    <!-- <div class="copy-mask">
+				<div class="copy-dialog">
+					<div class="dialog-title">
+						恭喜新人专享激活码
+					</div>
+					<div class="free-try">
+						云手机3天套餐免费用
+					</div>		
+					 <div class="activation-code">
+					</div>
+					<div class="copy-code">
+						<img class="donwlond-code" onclick="copyCodeUrl()" src="../static/img/yunActivity/btn.png">	
+					</div>
+					<div class="take-code">进入<b>“我的-我的工具-激活码”</b>兑换使用</div> 
+				</div>
+				<img class="close" src="../static/img/yunActivity/close.png" />
+			</div>  -->
+	</div>
+	<script>
+		toastr.options.positionClass = 'toast-center-center';
+		toastr.options.timeOut = '3000';
+	</script>
+	<script type="text/javascript">
+		// var baseUrl = 'http://14.18.190.141:1280'
+		let timer, flag = true;
+		let time = 60, codeTimer = null, isStart = false, myCode = '';
+		var url = window.location.href;
+		url = url.split('/')
+		var loc = window.location.search,
+			n1 = loc.length,//地址的总长度
+			n2 = loc.indexOf("="),//取得=号的位置
+			id = loc.substr(n2 + 1, n1 - n2),//从=号后面的内容
+			u = navigator.userAgent,
+			ua = navigator.userAgent.toLowerCase(),
+			isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),
+			isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
+		// 点击立即领取按钮	
+		$('.btn-img')[0].addEventListener('click',() => {	
+			let phone = $('.phone-ipt').eq(0).val();
+			phone = phone.replace(/\s+/g,"");
+			let code = $('.code-ipt').eq(0).val();
+			code = code.replace(/\s+/g,"");
+			let phoneFlag = checkPhone()
+			let dataObj = {
+				phone: phone,
+				code: code
+			}
+			if(!phoneFlag || phone.length < 11) {
+				$('.phone-tip').eq(0).css('display','block');
+				return false
+			}
+			let codeFlag = checkCode();
+			if(!codeFlag){
+				$('.code-tip').eq(0).css('display', 'block');
+				return false
+			}
+			if(code.length < 6){
+				$('.code-tip').eq(0).css('display', 'block');
+				return false;
+			}
+			$.ajax({
+				// url: baseUrl + '/api/user/web/register/qqWallet',
+				url: baseUrl + '/api/user/web/register/general',  // 地址
+				type: 'post',
+				data: JSON.stringify(dataObj),
+				contentType: "application/json",
+				dataType: 'json',
+				cache: false,
+				success: function (res) {
+					if(res.status == 0){
+						myCode = res.data;
+						if (isIOS) {
+						operate(`周年庆h5落地页打开${isIOS}`);
+						}else if(isAndroid) {
+						operate(`周年庆h5落地页打开${isAndroid}`);	
+						}
+						download();
+						stopManyClick(() =>{
+							toastr.error(res.msg)
+						})
+					}else{
+						stopManyClick(() =>{
+							toastr.error(res.msg)
+						})
+					}
+				}
+			})
+		},false) 
+		$('.get-code')[0].addEventListener('click',() => {
+			if(isStart){
+				return
+			}
+			let phone = $('.phone-ipt').eq(0).val();
+			phone = phone.replace(/\s+/g,"");
+			let phoneFlag = checkPhone();
+			if(!phoneFlag || phone.length < 11){
+				$('.phone-tip').eq(0).css('display', 'block');
+				return false
+			}
+			getCode();
+		},false);
+		// 获取验证码接口
+		var flag1 = false  // 标志验证码防止重复点击
+		function getCode() {
+			let phone = $('.phone-ipt').eq(0).val();
+			if (flag1) {
+				return
+			}
+			flag1 = true
+			phone = phone.replace(/\s+/g,"");
+			$.ajax({
+				url: baseUrl + '/api/message/v5/phone/send',
+				type: 'post',
+				data: JSON.stringify({
+					type: 'regist',
+					phone: phone
+				}),
+				contentType: "application/json",
+				dataType: 'json',
+				cache:false,
+				success: function (res) {
+					if(res.status == 0) {
+						stopManyClick(() =>{
+							toastr.error(`验证码已发送`);
+						})
+						flag1 = false
+						isStart = true;
+						$('.get-code').eq(0).text('60s');
+						$('.get-code')[0].className = 'get-code get-code-active';
+						codeTimer = setInterval(() => {
+							time--;
+							if(time > 0){
+								$('.get-code').eq(0).text(`${time}s`);
+							}else{
+								isStart = false;
+								time = 60;
+								clearInterval(codeTimer);
+								$('.get-code').eq(0).text('获取验证码');
+								$('.get-code-active')[0].className = 'get-code';
+							}
+						}, 1000);				
+					}else{
+						flag1 = false
+						stopManyClick(() =>{
+							toastr.error(res.msg)
+						})
+					}
+				}
+			})
+		}
+		// 手机号提示校验
+		$('.phone-ipt')[0].oninput = checkPhone;
+		function checkPhone(){
+			let phone = $('.phone-ipt').eq(0).val();
+			phone = phone.replace(/\s+/g,"");
+			if(phone.length > 11){
+				phone = phone.slice(0,11);
+				$('.phone-ipt').eq(0).val(phone);
+			}
+			let reg_tel = /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/;
+			if(!phone){
+				$('.phone-tip').eq(0).css('display', 'block');
+				return false;
+			}else if(!reg_tel.test(phone) && phone.length == 11){
+				$('.phone-tip').eq(0).css('display', 'block');
+				return false;
+			}else{
+				$('.phone-tip').eq(0).css('display', 'none');
+				return true;
+			}
+		}
+		$('.phone-ipt')[0].addEventListener('blur',() => {
+			let phone = $('.phone-ipt').eq(0).val();
+			phone = phone.replace(/\s+/g,"");
+			let reg_tel = /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/;
+			if(!reg_tel.test(phone)){
+				$('.phone-tip').eq(0).css('display', 'block');
+			}
+			if(phone !== '') {
+				$(".btn-dowlond").attr({"style":"background: #E85A4B;"});
+			}else{
+				$(".btn-dowlond").attr({"style":"background: linear-gradient(0deg, #E85A4B 1%, #EF9878 99%);"});
+				$('.phone-tip').eq(0).css('display', 'none');	
+			}
+		},false);
+		// 验证码提示校验
+		$('.code-ipt')[0].oninput = checkCode;
+		function checkCode() {
+			let code = $('.code-ipt').eq(0).val();
+			code = code.replace(/\s+/g,"");
+			if(code.length > 6){
+				code = code.slice(0,6);
+				$('.code-ipt').eq(0).val(code);
+			}
+			if(!code){
+				$('.code-tip').eq(0).css('display', 'block');
+				return false;
+			}else{
+				$('.code-tip').eq(0).css('display', 'none');
+				return true;
+			}
+
+			if(code == '') {
+				$('.code-tip').eq(0).css('display', 'none');	
+			}
+		}
+		$('.code-ipt')[0].addEventListener('blur',() => {
+			let code = $('.code-ipt').eq(0).val();
+			code = code.replace(/\s+/g,"");
+			if(code.length < 6){
+				$('.code-tip').eq(0).css('display', 'block');
+			}
+		},false);
+		function download() {
+            if (isAndroid) {
+				window.location.href = window.location.protocol === 'https:' ? 'https://file.phone.androidscloud.com:8121/document/newFile/download/0/edv834e74a9c43eaac02?fileKey=LowLevelMultipartUpload_18708543811604070422' :
+				'http://110.53.221.195:8210/document/newFile/download/0/edv834e74a9c43eaac02?fileKey=LowLevelMultipartUpload_18708543811604070422';
+            } else if (isIOS) {
+                document.location.href = 'https://www.pgyer.com/gemini6?timestamp=' + Math.random();
+            } 
+        }
+		// function selectText(textbox, startIndex, stopIndex) {
+		// 	if (textbox.createTextRange) {//ie
+		// 		const range = textbox.createTextRange();
+		// 		range.collapse(true);
+		// 		range.moveStart('character', startIndex);//起始光标
+		// 		range.moveEnd('character', stopIndex - startIndex);//结束光标
+		// 		range.select();//不兼容苹果
+		// 	} else {//firefox/chrome
+		// 		textbox.setSelectionRange(startIndex, stopIndex);
+		// 		textbox.focus();
+		// 	}
+		// }
+		// 复制
+		// function copyUrl() {
+		// 	var code = $('.code-ipt').eq(0).val();
+		// 	var phone = $('.phone-ipt').eq(0).val();
+		// 	if( code && phone != ''){
+		// 	  var oInput = document.createElement('input');// 创建一个input
+		// 	  oInput.setAttribute("readonly", "readonly");
+		// 	   // 设置只读
+		// 		setTimeout(() => {
+        //     	    oInput.value = myCode;
+        //     	    // oInput.select(); // 选择对象 ios不支持
+        //     	    document.body.appendChild(oInput)
+        //     	    selectText(oInput, 0, oInput.value.length);
+        //     	    document.execCommand("Copy"); // 执行浏览器复制命令
+        //     	    // toastr.error(`复制成功`);
+        //     	    // $('.copy-dialog').animate({top: '-6.96rem'},"fast");
+        //     	    // $('.copy-mask').hide();
+        //     	    document.documentElement.style.overflow='auto';
+        //     	    oInput.style.display = 'none'; // 将input隐藏
+        //     	    oInput.blur();
+        //     	    oInput.remove(); // 将input销毁
+        //     	    // setTimeout(() => {
+        //     	    //     download();
+        //     	    // }, 1000)
+        //     	}, 400) 
+		// 	}	
+		// }
+		// $('.donwlond-receive')[0].addEventListener('click', (e) => {
+		// 	if (isIOS) {
+		// 		operate(`周年庆h5落地页打开${isIOS}`);
+		// 	}else if(isAndroid) {
+		// 		operate(`周年庆h5落地页打开${isAndroid}`);	
+		// 	}
+		// 	copyUrl();
+		// });
+		// 视频打开
+		$('.btn-video')[0].addEventListener('click',(e)=>{
+			$('.viedo-game').show();
+			$('.pop_video_bg').show();
+			$('.viedo-game').animate({bottom: '-1.56rem'},"fast");
+			$('.viedo-slide').trigger("play");
+		},false);
+		// 视频弹窗关闭
+		$('.pop_video_bg')[0].addEventListener('click',()=>{
+			$('.viedo-game').eq(0).css('display', 'none');		
+			$('.viedo-slide').trigger("pause");
+			$('.pop_video_bg').eq(0).css('display', 'none');
+		});
+		// 埋点下载
+		function operate(pointName) {
+			$.ajax({
+				url: baseUrl + '/api/public/v1/systemBuriedPoint/stat',
+				type: 'post',
+				data: JSON.stringify({
+					pointName: pointName
+				}),
+				contentType: "application/json",
+				dataType: 'json',
+				cache: false,
+				success: function (res) {},
+			})
+		}
+		// 埋点页面访问
+		var page = window.location.search.substring(6);
+		$(function() {
+			pushHistory();
+			function pushHistory() {
+				var warids = {
+					"pointName": `周年庆h5落地页打开${page}`  
+				}
+				$.ajax({
+					url: baseUrl + "/api/public/v1/systemBuriedPoint/stat",
+					data: JSON.stringify(warids),
+					type: 'post',
+					dataType: 'json',
+					contentType: "application/json;charset=UTF-8",
+					cache: false,
+					success: function(data) {}
+				})
+			}
+		});
+		function stopManyClick(fn) {
+			if (flag) {
+				fn();
+			}
+			flag = false;
+			if (timer) { clearTimeout(timer); }
+			timer = setTimeout(() => { flag = true }, 1500);
+		}
+	</script>
+</body>
+
+</html>

+ 1 - 0
screenAndroid/WXtrialInterface.html

@@ -1293,6 +1293,7 @@
             report(1);
           }
           $('.try-use-wrap').eq(0).hide();
+          $('#source')[0].pause();
           return;
         }
         $('.look-wrap').eq(0).show();

+ 1 - 0
screenIos/WXtrialInterface.html

@@ -1072,6 +1072,7 @@
             report(1);
           }
           $('.try-use-wrap').eq(0).hide();
+          $('#source')[0].pause();
           return;
         }
         $('.look-wrap').eq(0).show();