wuyongxiang hace 4 años
padre
commit
9373ee203b
Se han modificado 1 ficheros con 27 adiciones y 8 borrados
  1. 27 8
      screenH5/homeNew.html

+ 27 - 8
screenH5/homeNew.html

@@ -158,7 +158,8 @@
 			  text-align: center;
 			  font-size: 18px;
 			  /* background: #fff; */
-			  height: 667px;
+			  /* height: 667px; */
+			  height:100%;
 			  /* Center slide text vertically */
 			  display: -webkit-box;
 			  display: -ms-flexbox;
@@ -190,7 +191,9 @@
 				content: "" !important;
 			}
     </style>
-		<div style="width: 100%;height: 100%;background: #F8F9FA;">
+	</head>
+	<body style="background: #F8F9FA;">
+		<div style="width: 100%;height: 100%;">
 			<!-- <div class="canvas" style="display: none;">
 				<div id="wine" style="height: 90%;">
 				</div>
@@ -208,7 +211,7 @@
 				<div class="helpImg">
 					<img src="../static/img/bangzu_icon.png" />
 				</div>
-				<div class="font">使用帮助?</div>
+				<div class="font helpfont">使用帮助?</div>
 			</div>
 			<div class="buyIcon">
 				<img src="../static/img/goumai_icon.png" />
@@ -229,7 +232,7 @@
 										<div class="thl-time">剩29天6小时</div>
 									</div>
 								</div>
-								<div class="th_renew">
+								<div class="th_renew homeRenew">
 									续费
 								</div>
 								<!-- <div class="vip">
@@ -380,13 +383,17 @@
 		<script type="text/javascript" src="../static/js/YUVCanvas.js"></script>
 		<script type="text/javascript" src="../static/js/Player.js"></script>
 		<script type="text/javascript">
+			let hheight=document.body.clientHeight;
+			let cheight=document.body.offsetHeight;
+			console.log("获取网页高度",hheight,cheight,window.screen.height );
+			$(".swiper-container").css("height",window.screen.height);
 			var url = window.location.href;
 
 			url = url.split('/')
 			console.log(url)
 			// var baseUrl = 'https://' + url[2] //'http://192.168.31.159'//'http://' + url[2] 
 			// var baseUrl = 'http://192.168.31.20'
-			var baseUrl='https://test.androidscloud.com';
+			var baseUrl = 'https://test.androidscloud.com';
 			var query = window.location.search.substring(1);
 			var vars = query.split("&");
 			//						 var urls = "https://xcx.androidscloud.com"
@@ -604,12 +611,25 @@
 				$(".helps").show();
 			});
 
-			$('.help').bind('click', function(e) {
+			$('.helpfont').bind('click', function(e) {
 				stopPropagation(e);
 				wx.miniProgram.navigateTo({
 					url: '/pages/viewurl/viewurl'
 				})
 			});
+			
+			$('.buyIcon').bind('click', function(e) {
+				// stopPropagation(e);
+				wx.miniProgram.navigateTo({
+					url: '/pages/order/buy/index'
+				})
+			});
+			$('.homeRenew').bind('click', function(e) {
+				// stopPropagation(e);
+				wx.miniProgram.navigateTo({
+					url: '/pages/order/buy/index'
+				})
+			});
 			$('.helps').bind('click', function(e) {
 				stopPropagation(e);
 			});
@@ -690,8 +710,7 @@
 				alert("复制成功")
 			}
 		</script>
-	</head>
-	<body>
+
 
 	</body>
 </html>