Преглед изворни кода

Merge branch 'master' of http://192.168.32.253:3000/Software/android-cloud-H5

huangxiaojing пре 3 година
родитељ
комит
b2e498a632

+ 183 - 0
microserviceUserH5/static/css/maJiaBaoGoApp.css

@@ -0,0 +1,183 @@
+@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;
+}
+
+.code-container {
+  position: relative;
+  width: 7.5rem;
+  height: 100vh;
+  margin: 0 auto;
+  background: url(../img/maJiaBaoGoAppBag.png);
+  background-repeat: repeat-y;
+  background-size: cover;
+}
+
+.top-Text{
+  position: absolute;
+  top: 0.53rem;
+  left: 0.89rem;
+}
+
+.img-container{
+  width: 5.87rem;
+  height: 3.67rem;
+}
+
+.btn-content{
+  position: absolute;
+  bottom: 0.62rem;
+  left: 1.25rem;
+}
+
+.download-app{
+  width: 4.8rem;
+  height: 0.89rem;
+  display: block;
+  position: relative;
+}
+.download-text{
+  width: 3.43rem;
+  height: 0.42rem;
+  top: 50%;
+  left: 50%;
+  text-align: center;
+  transform: translate(-50%, -50%);
+  position: absolute;
+}
+
+.mask {
+  width: 7.5rem;
+  height: 100vh;
+  position: absolute;
+  top: 0;
+  left: 0;
+  background: rgba(0, 0, 0, 0.24);
+  display: none;
+}
+
+.dialog {
+  width: 5.05rem;
+  height: 6.41rem;
+  position: absolute;
+  left: 1.22rem;
+  top: -6.96rem;
+}
+
+.border{
+  width: 100%;
+  height: 100%;
+}
+
+.border-close{
+  width: 0.44rem;
+  height: 0.44rem;
+  position: absolute;
+  right: 2.32rem;
+  bottom: 0.06rem;
+}
+
+.border-text {
+  width: 4.20rem;
+  height: 1.26rem;
+  position: absolute;
+  right: 0.32rem;
+  top: 0.61rem;
+}
+
+.ios-text {
+  width: 2.56rem;
+  height: 0.42rem;
+  position: absolute;
+  right: 1.28rem;
+  top: -0.21rem;
+  z-index: 99;
+}
+
+.ios-title{
+  width: 3.46rem;
+  height: 0.76rem;
+  position: absolute;
+  right: 0.8rem;
+  top: -0.4rem;
+}
+
+.head-list{
+  display: flex;
+  justify-content: space-between;
+  align-items: center;
+  padding: 0 0.28rem;
+  height: 0.67rem;
+  background: linear-gradient(0deg, #E2FFF6 0%, #D0FCEC 100%);
+}
+
+.head-title{
+  font-size: 0.33rem;
+}
+
+.content{
+  margin: 0.97rem 0 0.28rem 0;
+  text-align: center;
+  font-size: 0.28rem;
+}
+
+.try-play{
+  margin-top: 0.14rem;
+}
+
+.success-img{
+  width: 3rem;
+  height: 3rem;
+}
+
+.success-text{
+  margin-top: 0.2rem;
+  color: #FFFFFF;
+  font-size: 0.28rem;
+}
+
+#toast-container>.toast-error {
+  background-image: none !important;
+}
+
+.toast-error {
+  background-color: rgba(0, 0, 0, 0.8);
+}
+
+#toast-container>div {
+  font-size: 14px;
+  min-width: 80px !important;
+  padding: 12px !important;
+  box-shadow: none;
+}
+
+.toast-center-center {
+  min-width: 100px;
+  top: 50%;
+  left: 50%;
+  text-align: center;
+  transform: translateX(-50%);
+}
+
+@media (max-width: 480px) and (min-width: 241px) {
+  #toast-container>div {
+    min-width: 80px !important;
+    width: auto;
+  }
+}

BIN
microserviceUserH5/static/img/border-close.png


BIN
microserviceUserH5/static/img/border-text.png


BIN
microserviceUserH5/static/img/border.png


BIN
microserviceUserH5/static/img/downLoadApp.png


BIN
microserviceUserH5/static/img/downLoadText.png


BIN
microserviceUserH5/static/img/ios-text.png


BIN
microserviceUserH5/static/img/ios-title.png


BIN
microserviceUserH5/static/img/maJiaBaoGoAppBag.png


BIN
microserviceUserH5/static/img/maJiaBaoGoAppText.png


+ 1 - 1
microserviceUserH5/vcloud/activationCode.html

@@ -64,7 +64,7 @@
 		//点击试玩
 		$('.try-play')[0].addEventListener('click',()=>{
 			//是否有token
-			let type = id === ''? 'noToken': 'com.xjro.yy';
+			let type = id === ''? 'noToken': 'com.xlwy.yy';
 			    sendParm(type);
 			if(id !== ''){
 				operate(5);

+ 126 - 0
microserviceUserH5/vcloud/maJiaBaoGoApp.html

@@ -0,0 +1,126 @@
+<!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>
+</head>
+
+<body>
+	<div class="code-container">
+		<div class="top-Text">
+			<img class="img-container" src="../static/img/maJiaBaoGoAppText.png" />
+		</div>
+		<div class="btn-content">
+			<img class="download-app" src="../static/img/downLoadApp.png" />
+			<img class="download-text" src="../static/img/downLoadText.png" />
+		</div>
+		<div class="mask">
+			<div class="dialog">
+			    <img class="border" src="../static/img/border.png" />
+			    <img class="border-close" src="../static/img/border-close.png" />
+			    <img class="border-text" src="../static/img/border-text.png" />
+			    <img class="ios-text" src="../static/img/ios-text.png" />
+			    <img class="ios-title" src="../static/img/ios-title.png" />
+			</div>
+		</div>
+	</div>
+	<script>
+		toastr.options.positionClass = 'toast-center-center';
+		toastr.options.timeOut = '1500';
+	</script>
+	<script type="text/javascript">
+        // var baseUrl = 'http://14.215.128.96/'
+	    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终端
+		//埋点
+		operate(3);
+		function operate(accessType){
+			$.ajax({
+				url: baseUrl + '/api/public/v1/game/user/operate',
+				type: 'post',
+				data:JSON.stringify({
+					accessType: accessType,
+					entrance: id,
+					url: window.location.href
+				}),
+				contentType:"application/json",
+				dataType: 'json',
+				cache: false,
+				success: function (res) {
+					if(accessType === 1 && isAndroid){
+						getAppDownload();
+					}
+				},
+			})
+		}
+		//点击下载APP
+	    $('.btn-content')[0].addEventListener('click',()=>{
+			if(isAndroid){
+		        operate(1);
+			}else if(isiOS){
+				operate(1);
+				$('.dialog').animate({top: '4.36rem'},"fast");
+				$('.mask').show();
+				document.documentElement.style.overflow='hidden';
+			}
+		},false);
+		//关闭
+	    $('.border-close')[0].addEventListener('click',handleClose,false);
+		function handleClose() {
+			$('.dialog').animate({top: '-6.96rem'},"fast");
+			$('.mask').hide();
+			document.documentElement.style.overflow='auto';
+		}
+		//调用下载接口
+		function getAppDownload(){
+			$.ajax({
+				url: baseUrl + '/api/user/v1/ditchClient/addChannelAppDownload',
+				type: 'post',
+				data:JSON.stringify({
+					code:"Q4796f4k26ST",
+					platform:"1",
+					version:""
+				}),
+				contentType: "application/json",
+				dataType: 'json',
+				cache: false,
+				success: function (res) {
+					if(res.status === 0){
+						window.location.href = baseUrl + '/file-center/fileOperate/downloadFile?id=169403';
+					}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>

+ 1 - 1
microserviceUserH5/vcloud/register.html

@@ -110,7 +110,7 @@
 				security: encrypts
 			}
 			$.ajax({
-				url:baseUrl + '/file-center/fileOperate/getImage?id='+fileId,
+				url:'http://wjzx.androidscloud.com:9090/file-center/fileOperate/getImage?id='+fileId,
 				type: 'get',
 				headers: data,
 				xhrFields: { responseType: "blob" },