heyang 3 år sedan
förälder
incheckning
ff8a5fca9a

BIN
microserviceUserH5/static/img/shaky/bg.png


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


+ 4 - 3
microserviceUserH5/vcloud/maJiaBaoGoApp.html

@@ -94,9 +94,10 @@
 			}else if(isiOS){
 				const pointName = id + '_IOS_click'
 				operate(pointName);
-				$('.dialog').animate({top: '4.36rem'},"fast");
-				$('.mask').show();
-				document.documentElement.style.overflow='hidden';
+				window.location.href = 'https://apps.apple.com/cn/app/%E5%8F%8C%E5%AD%90%E6%98%9F%E4%BA%91%E6%89%8B%E6%9C%BA/id1541800909';
+				// $('.dialog').animate({top: '4.36rem'},"fast");
+				// $('.mask').show();
+				// document.documentElement.style.overflow='hidden';
 			}
 		},false);
 		//关闭

+ 134 - 0
microserviceUserH5/vcloud/shaky.html

@@ -0,0 +1,134 @@
+<!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>下载APP</title>
+	<link rel="icon" href="../static/img/favicon2.ico" type="img/x-ico">
+	<link rel="stylesheet" href="../static/js/vender/toastr/toastr.min.css">
+	<link rel="stylesheet" href="../static/css/maJiaBaoGoApp.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>
+	<style>
+		.code-container {
+			background: url(../static/img/shaky/bg.png);
+			background-repeat: no-repeat;
+			background-size: 7.5rem 100vh;
+		}
+		.btn-content {
+			position: absolute;
+			bottom: 5.52rem;
+			left: 2.12rem;
+		}
+		.download-app{
+			width: 3.26rem;
+			height: 0.88rem;
+		}
+	</style>
+</head>
+
+<body>
+	<div class="code-container">
+		<div class="btn-content">
+			<img class="download-app" src="../static/img/shaky/btn.png" />
+		</div>
+		<div class="mask">
+			<div class="point">
+				<img class="point-img" src="../static/img/point.png" />
+			</div>
+		</div>
+	</div>
+	<script>
+		toastr.options.positionClass = 'toast-center-center';
+		toastr.options.timeOut = '1500';
+	</script>
+	<script type="text/javascript">
+	    let timer,flag = true;
+		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,
+			isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),
+			isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
+		//埋点
+		if(isAndroid){
+			operate('中秋活动落地页');
+		}
+		if(isiOS){
+			operate('中秋活动落地页');
+		}
+		function operate(pointName,type){
+			$.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) {
+					if(isAndroid && type === 'click'){
+						getAppDownload();
+					}
+				},
+			})
+		}
+		//点击下载APP
+	    $('.btn-content')[0].addEventListener('click',()=>{
+			var ua = navigator.userAgent.toLowerCase();
+			if(ua.match(/MicroMessenger/i)=="micromessenger" || ua.match(/QQ\/[0-9]/i)){
+				$('.point').animate({top: '0.1rem'},"fast");
+				$('.mask').css('background','rgba(0,0,0,0.7)');
+				$('.mask').show();
+				document.documentElement.style.overflow='hidden';
+			}else if(isAndroid){
+		        operate('中秋活动落地页-安卓','click');
+			}else if(isiOS){
+				operate('中秋活动落地页-iOS');
+				window.location.href = 'https://www.pgyer.com/gemini6';
+			}
+		},false);
+		//调用下载接口
+		function getAppDownload(){
+			$.ajax({
+				url: baseUrl + '/api/user/v1/ditchClient/addChannelAppDownload',
+				type: 'post',
+				data:JSON.stringify({
+					code:"j2Di592n8374",
+					type: "5",
+					platform:"1",
+					version:""
+				}),
+				contentType: "application/json",
+				dataType: 'json',
+				cache: false,
+				success: function (res) {
+					if(res.status === 0){
+						window.location.href = 'http://wjzx.androidscloud.com:9090/file-center/fileOperate/downloadFile?id=568374857';
+					}else{
+						stopManyClick(() =>{
+							toastr.error(res.msg)
+						})
+					}
+				},
+			})
+		}
+		//防止提示一秒内重复显示
+		function stopManyClick(fn) {
+			if (flag) {
+				fn();
+			}
+			flag = false;
+			if(timer){clearTimeout(timer);}
+			timer = setTimeout(() => {flag = true}, 1500);
+		}
+	</script>
+</body>
+
+</html>