heyang пре 3 година
родитељ
комит
17a34281a8

BIN
microserviceUserH5/static/img/down-bg.png


+ 14 - 8
microserviceUserH5/vcloud/doubleElevenActivity.html

@@ -401,18 +401,18 @@
 				$('.award-text').eq(index).text(`恭喜1${[3,5,7,8,3,5,7,8,3,5][getRandom()]}${getRandom()}****${getRandom()}${getRandom()}${getRandom()}${getRandom()}用户免费获得唔即年卡`);
 				$('.award-list').eq(0).animate({top: -(topVal) + 'rem'},"fast");
 		}
-		//调用免费换机接口
+		//调用获取数据列表接口
 		function getList(){
-			// if(!id){
-			// 	stopManyClick(() => {
-			// 		toastr.error('不支持当前环境!');
-			// 	})
-			// }
+			if(!id){
+				stopManyClick(() => {
+					toastr.error('不支持当前环境!');
+				})
+			}
 			$.ajax({
 				url: baseUrl + '/v1/activity/orderRedEnvelopeSharing',
 				type: 'post',
 				headers: {
-					'Authorization': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyYW5kb20iOiIxNDkwMyIsImNsaWVudCI6IjEiLCJleHAiOjE2MzczNzI4MzEsInVzZXJuYW1lIjoiTVZCbksxNjMxNjc2Mjg3In0.P24SZqEUL_e5LiyuORYGoHQUWBxcCdP78T8M10gQZfQ'  //id
+					'Authorization': id //id
 				},
 				contentType: "application/json",
 				dataType: 'json',
@@ -420,6 +420,8 @@
 				success: function (res) {
 					if(res.status === 0){
 						if(res.data && res.data.length > 0){
+							$('.invite-text').eq(0).show();
+							$('.packet-container').eq(0).show();
 							var str = '',
 							    len = res.data.length;
 							for (var i = 0; i < len; i++) {
@@ -492,13 +494,17 @@
 		$('.right-wechat')[0].addEventListener('click',()=>{
 			shareHandle('shareToWechat');
 		});
+		//点击领取
+		$('.receive')[0].addEventListener('click',()=>{
+			window.native.activatePhone(112);
+		});
 		function shareHandle(type) {
 			if (isAndroid) {
 					if(window.native){
 						window.native[type](
 							'111',
 							'111',
-							'http://test.androidscloud.com/h5/microserviceUserH5/vcloud/doubleElevenActivity.html',
+							'pages/home/home?AppID=wxe7a691bd1cd74958',
 							'https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/18fe2f6bb3c843c0b6fc3935a7411c51~tplv-k3u1fbpfcp-zoom-mark-crop-v2:240:240:0:0.awebp'
 						);
 					}else{

+ 145 - 0
microserviceUserH5/vcloud/downApp.html

@@ -0,0 +1,145 @@
+<!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/toastr/toastr.min.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>
+		@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;
+		}
+
+		ul, li {
+			list-style: none;
+		}
+		.container{
+			width: 7.5rem;
+			height: 116vh;
+			position: relative;
+		}
+		.down-bg{
+			width: 100%;
+			height: 100%;
+		}
+		.down-row{
+			width: 6.7rem;
+			height: 1rem;
+			position: fixed;
+			bottom: 0.2rem;
+			left: 50%;
+			transform: translateX(-50%);
+			display: flex;
+			justify-content: space-between;
+			align-items: center;
+			font-size: 0.24rem;
+			background: linear-gradient(180deg, #251282 0%, #140463 100%);
+			color: #ffffff;
+			border-radius: 0.18rem;
+			border: 0.02rem solid #412DA4;
+			padding: 0 0.2rem;
+		}
+		/* .left{
+
+		} */
+		.address{
+			text-align: center;
+			width: 4.16rem;
+			height: 0.6rem;
+			line-height: 0.6rem;
+			background-color: #ffffff;
+			color: #333333;
+			border-radius: 0.1rem;
+			z-index: 999;
+		}
+		.right-btn{
+			width: 1.1rem;
+			height: 0.6rem;
+			line-height: 0.6rem;
+			text-align: center;
+			background: #6048D8;
+			box-shadow: 0 0.04rem 0.12rem 0 rgba(60, 31, 201, 0.4), 0 0.02rem 0.26rem 0 rgba(255, 255, 255, 0.29);
+			border-radius: 0.1rem;
+			background-color: #6048D8;
+		}
+	</style>
+</head>
+
+<body>
+	<div class="container">
+		<img class="down-bg" src="../static/img/down-bg.png" />
+		<div class="down-row">
+			<div class="left">下载链接</div>
+			<div class="address">下载链接</div>
+			<div class="right-btn">复制</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 baseUrl = 'https://test.androidscloud.com/'
+		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终端
+		//埋点
+		if(isAndroid){
+			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();
+					}
+				},
+			})
+		}
+		//防止提示一秒内重复显示
+		function stopManyClick(fn) {
+			if (flag) {
+				fn();
+			}
+			flag = false;
+			if(timer){clearTimeout(timer);}
+			timer = setTimeout(() => {flag = true}, 1500);
+		}
+	</script>
+</body>
+
+</html>