Ver código fonte

Merge branch 'dev-5.3.1' of Software/android-cloud-H5 into master-new

hutao 3 anos atrás
pai
commit
2eb57e926f

+ 4 - 0
.gitignore

@@ -8,3 +8,7 @@
 *.ntvs*
 *.njsproj
 *.sln
+
+node_modules/
+dist/
+.nuxt/

+ 94 - 0
microserviceUserH5/static/css/cloudanniversaryActive.css

@@ -0,0 +1,94 @@
+@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;
+}
+
+
+.containers{
+    width: 7.5rem;
+    margin: auto;
+    background-image: url('../img/yunActivity/bj.png'); 
+    background-size: 100% 100%; 
+}
+
+.banner-wrap{
+    width: 7.5rem;
+    height: 36.06rem;
+    position: relative;
+}
+
+.banner-img {
+    width: 7.5rem;
+    height: 1.28rem;
+}
+
+.downlond-img {
+    position: absolute;
+    top: 0.2rem;
+    right: 0;
+    width: 2.48rem;
+    height: 0.88rem;
+}
+
+.downlond-midimg {
+    position: absolute;
+    top: 11.4rem;
+    left: 2.43rem;
+    width: 3.03rem;
+    height: 1.08rem;
+}
+
+#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/bj.png


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


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


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


+ 130 - 0
microserviceUserH5/vcloud/cloudanniversaryActive.html

@@ -0,0 +1,130 @@
+<!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/cloudanniversaryActive.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/top.png">
+				</div>
+                <div class="img-downlond">
+                    <img class="downlond-img" src="../static/img/yunActivity/newdowlnd1.png">
+                </div>
+                <div class="midimg-downlond">
+                    <img class="downlond-midimg" src="../static/img/yunActivity/newdowlnd.png">  
+                </div>
+			</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;
+		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终端
+        $('.downlond-img')[0].addEventListener('click',()=>{
+                if(isAndroid){
+		 	     const pointName = id + '渠道h5落地页安卓点击'
+		         operate(pointName,'click');
+				 download()
+		        }else if(isIOS){
+		        	const pointName = id + '渠道h5落地页打开IOS点击'
+		        	operate(pointName);
+				 download()
+		        }
+                 // download()
+        },false)   
+        
+        $('.downlond-midimg')[0].addEventListener('click',()=>{
+                if(isAndroid){
+		 	     const pointName = id + '渠道h5落地页安卓点击'
+		         operate(pointName,'click');
+				download()
+		        }else if(isIOS){
+		        	const pointName = id + '渠道h5落地页打开IOS点击'
+		        	operate(pointName);
+				download()
+		        }
+                // download()
+        },false)   
+		function download() {
+            if (isAndroid) {
+				window.location.href = window.location.protocol === 'https:' ? `https://file.phone.androidscloud.com:8121/document/newFile/download/1/edv834e74a9c43eaac02/LowLevelMultipartUpload_19066905949412147255/shuangzixing.apk` : 
+				`http://110.53.221.195:8210/document/newFile/download/1/edv834e74a9c43eaac02/LowLevelMultipartUpload_19066905949412147255/shuangzixing.apk`;
+				stopManyClick(() =>{
+					toastr.error('下载成功')
+				})
+            } else if (isIOS) {
+                document.location.href = 'https://www.pgyer.com/gemini6?timestamp=' + Math.random();
+                // toastr.error('下载成功')
+            } 
+        }
+		// 埋点下载
+		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 newpage = window.location.search.substring(6);
+		$(function() {
+			pushHistory();
+			function pushHistory() {
+				var warids = {
+					"pointName": `渠道h5落地页打开${id}`  
+				}
+				$.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>