|
|
<!DOCTYPE html>
|
|
|
<html>
|
|
|
<head>
|
|
|
<meta charset="utf-8">
|
|
|
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
|
|
<title>元阳水务管理端APP下载</title>
|
|
|
<!-- 引入相关的 css 文件 -->
|
|
|
<link href="https://cdn.bootcdn.net/ajax/libs/Swiper/4.5.1/css/swiper.css" rel="stylesheet" />
|
|
|
<!-- 引入相关的 js 文件 -->
|
|
|
<script src="https://cdn.bootcdn.net/ajax/libs/Swiper/4.5.1/js/swiper.js"></script>
|
|
|
<style>
|
|
|
* {
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.app_one {
|
|
|
position: relative;
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
overflow: hidden;
|
|
|
|
|
|
}
|
|
|
|
|
|
.app_two {
|
|
|
position: relative;
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
|
|
|
.app_three {
|
|
|
position: relative;
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
|
|
|
|
|
|
.app_image {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
}
|
|
|
|
|
|
.app_div {
|
|
|
height: 40px;
|
|
|
width: 100%;
|
|
|
position: absolute;
|
|
|
bottom: 1%;
|
|
|
left: 0%;
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
}
|
|
|
|
|
|
.app_div1 {
|
|
|
height: 40px;
|
|
|
width: 100%;
|
|
|
position: absolute;
|
|
|
top: 1%;
|
|
|
left: 0%;
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
}
|
|
|
|
|
|
.app_image1 {
|
|
|
width: 40px;
|
|
|
height: 40px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.app_image2 {
|
|
|
width: 40px;
|
|
|
height: 40px;
|
|
|
transform: scaleY(-1);
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.app_btn {
|
|
|
position: absolute;
|
|
|
bottom: 10%;
|
|
|
left: 20%;
|
|
|
width: 60%;
|
|
|
height: 35px;
|
|
|
background: #3F7DF7;
|
|
|
border: none;
|
|
|
border-radius: 28px;
|
|
|
color: #ffffff;
|
|
|
font-size: 14px;
|
|
|
font-weight: 400;
|
|
|
}
|
|
|
</style>
|
|
|
</head>
|
|
|
<body>
|
|
|
<div id="app" class="swiper-container app_box" direction="vertical">
|
|
|
<div class="swiper-wrapper">
|
|
|
<div class="swiper-slide app_one" id="appOne">
|
|
|
<img src="app2/img/1086.jpg" class="app_image" />
|
|
|
<button onclick="location.href='<?php echo $row['apk_url']; ?>'" class="app_btn">立即下载</button>
|
|
|
<div class="app_div">
|
|
|
<img src="app2/img/icon.png" class="app_image1" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="swiper-slide app_two" id="appTwo">
|
|
|
<div class="app_div1">
|
|
|
<img src="app2/img/icon.png" class="app_image2" />
|
|
|
</div>
|
|
|
<img src="app2/img/1087.jpg" class="app_image" />
|
|
|
<button onclick="location.href='<?php echo $row['apk_url']; ?>'" class="app_btn">立即下载</button>
|
|
|
<div class="app_div">
|
|
|
<img src="app2/img/icon.png" class="app_image1" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="swiper-slide app_three" id="appThree">
|
|
|
<div class="app_div1">
|
|
|
<img src="app2/img/icon.png" class="app_image2" />
|
|
|
</div>
|
|
|
<img src="app2/img/1088.jpg" class="app_image" />
|
|
|
<button onclick="location.href='<?php echo $row['apk_url']; ?>'" class="app_btn">立即下载</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</body>
|
|
|
<script>
|
|
|
document.addEventListener('plusready', function() {
|
|
|
//console.log("所有plus api都应该在此事件发生后调用,否则会出现plus is undefined。")
|
|
|
|
|
|
});
|
|
|
var deviceWidth = window.innerWidth;
|
|
|
var deviceHeight = window.innerHeight;
|
|
|
// console.log("设备宽度:" + deviceWidth, "设备高度:" + deviceHeight);
|
|
|
// 获取元素
|
|
|
var element = document.getElementById("app");
|
|
|
// 设置宽高
|
|
|
element.style.width = deviceWidth + "px";
|
|
|
element.style.height = deviceHeight + "px";
|
|
|
// 第一种 通过方法响应点击事件
|
|
|
function download() {
|
|
|
// alert("点击事件");
|
|
|
// console.log(index)
|
|
|
}
|
|
|
|
|
|
var mySwiper = new Swiper('.swiper-container', {
|
|
|
direction: 'vertical', // 垂直切换选项
|
|
|
loop: false, // 循环模式选项
|
|
|
// 如果需要前进后退按钮
|
|
|
navigation: {
|
|
|
nextEl: '.app_image1',
|
|
|
prevEl: '.app_image2',
|
|
|
},
|
|
|
resistanceRatio: 0
|
|
|
});
|
|
|
</script>
|
|
|
</html> |
|
|
\ No newline at end of file |
...
|
...
|
|