<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>安得直通宝下载</title>
<meta name="format-detection" content="telephone=no" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<style>
body {
height: 100%;
padding: 0;
margin: 0;
font-family: "simHei";
font-size: 1em;
background-color: #0081db;
color: #fff;
-webkit-overflow-scroll: touch;
}
* {
font-family: "simHei" !important;
}
a {
text-decoration: none;
cursor: pointer;
color: #fff;
}
.logo{
margin: 30% auto 0;
width: 105px;
height: 105px;
background: url(images/1.png) no-repeat center center;
background-size: contain;
}
.logo-detail{
width: 100%;
margin: 14px auto 0;
font-size: 30px;
color: #fff;
text-align: center;
}
.helper{
margin-top: 10px;
font-size: 18px;
color: #fff;
text-align: center;
}
.down{
margin: 50px auto 0;
width: 300px;
height: 115px;
}
.weixin{
float: right;
width: 115px;
height: 115px;
background: url(images/weixin.png) no-repeat center center;
background-size: contain;
}
.down-d{
float: left;
margin-top: 5px;
width: 165px;
height: 100px;
}
.ios-and{
display: block;
padding-left: 40px;
box-sizing: border-box;
width: 160px;
height: 43px;
line-height: 43px;
font-size: 12px;
border:1px solid #fff;
border-radius: 6px;
}
.and{
background: url(images/2.png) no-repeat 7% center;
background-size: 25px;
}
.ios{
margin-top: 15px;
background: url(images/3.png) no-repeat 7% center;
background-size: 25px;
}
.down-weixin-mask {
position: fixed;
top: 0;
left: 0;
z-index: 96;
width: 100%;
height: 100%;
background-color: #000;
-moz-opacity:.65;
opacity:.65;
filter: alpha(opacity=65);
-ms-filter:progid:DXImageTransform.Microsoft.Alpha(opacity=65);
}
.down-weixin-tip {
position: absolute;
top: 84px;
left: 8%;
z-index: 98;
width: 84%;
height: 50%;
}
.down-weixin-pic {
width: 100%;
height: 100%;
background: url(images/weixin_tip.png) no-repeat;
background-size: 100% auto;
}
.down-weixin-arrow {
position: absolute;
top: 0;
right: 21px;
z-index: 97;
width: 62px;
height: 86px;
background: url(images/weixin_tip_arrow.png) no-repeat center center;
background-size: cover;
}
.down-weixin-close {
position: absolute;
top: 92px;
right: 40px;
z-index: 99;
width: 24px;
height: 24px;
background: url(images/weixin_tip_close.png) no-repeat center center;
background-size: cover;
}
#close-all{
display: none;
}
</style>
</head>
<body>
<div class="logo"></div>
<div class="logo-detail">安得直通宝</div>
<p class="helper">最专业的物流助手</p>
<div class="down">
<div class="down-d">
<a class="and ios-and" onclick="showWeixinTip(true)">Android公测版下载</a>
<a class="ios ios-and" onclick="showWeixinTip(false)">ios公测版下载</a>
</div>
<div class="weixin"></div>
</div>
<div id="close-all">
<div class="down-weixin-tip">
<div class="down-weixin-pic"></div>
</div>
<div class="down-weixin-arrow"></div>
<div class="down-weixin-close" onclick="oClose()"></div>
<div class="down-weixin-mask"></div>
</div>
<script type="text/javascript">
var oClose = document.getElementsByClassName('down-weixin-close'),
oMask = document.getElementById('close-all');
var isWeiXin = function () {
var ua = navigator.userAgent.toLowerCase();
var isWeichat = false ;
if((/micromessenger/.test(ua)) ? true : false && (/android/.test(ua)) ? true : false){
isWeichat = true ;
}
if((/qq/.test(ua)) ? true : false && (/android/.test(ua)) ? true : false){
isWeichat = true ;
}
return isWeichat ;
};
var openIsWeixin = isWeiXin();
var notIos = !/ios/.test(navigator.userAgent.toLowerCase());
/*openIsWeixin 和 notIos 都为true才显示*/
if(openIsWeixin && notIos){
oMask.style.display = 'block';
};
console.log(openIsWeixin);
var showWeixinTip = function(isAndroid){
alert(isAndroid);
openIsWeixin = isWeiXin();
if(!openIsWeixin){
setTimeout(function(){
var url = isAndroid ? "http://map.midea.com/map/mam/apps/download/com.midea.annto/android?appKey=73ed94969d70f377f4a3ea4fc10acd55" : "https://map.midea.com/map/mam/apps/download/com.midea.annto/ios?appKey=73ed94969d70f377f4a3ea4fc10acd55";
window.open(url);
}, 1000);
} else if (openIsWeixin && !notIos) {
setTimeout(function(){
var url = "https://map.midea.com/map/mam/apps/download/com.midea.annto/ios?appKey=73ed94969d70f377f4a3ea4fc10acd55";
window.open(url);
}, 1000);
}
};
var oClose = function () {
oMask.style.display = 'none';
openIsWeixin = false;
};
/* var closeWeixinTip = function(){
openIsWeixin = false;
};*/
</script>
</body>
</html>

最新文章

  1. 闲聊桌面应用开发[Win16-&gt;Win32-&gt;ATL/WTL/MFC-&gt;WinForm-&gt;WPF/Silverlight/WinRT]
  2. RedRabbit——基于BrokerPattern服务器框架
  3. SharePoint 2013 Installation and Configuration Issues
  4. c语言解数独
  5. [Web] What Is JSONP?
  6. CAS单点登录(SSO)完整教程
  7. A - 棋盘问题
  8. Javascript或jQuery方法产生任意随机整数
  9. 极路由器刷机安装ss插件最新教程
  10. POJ 2991 Crane
  11. UVa 10945 - Mother bear
  12. signalR 消息推送
  13. OWASP Top 10十大风险 – 10个最重大的Web应用风险与攻防
  14. Python 代码片段整理
  15. Yii2 baisic版gii的使用和分页
  16. global 全局变量 nonlocal 局部变量
  17. 38.spiderkeeper的配置
  18. centos7扩展根分区
  19. 《React-Native系列》44、基于多个TextInput的键盘遮挡处理方案优化
  20. codevs 5966 [SDOI2017]硬币游戏

热门文章

  1. ZYNQ生成一个工程的基本步骤
  2. .Net Core 前台添加赋值POST提交到Api控制实现添加
  3. HMS Core 机器学习服务6.4.0版本更新啦,文本翻译功能增加10种小语种语言类型!
  4. Java常见的垃圾收集器有哪些?
  5. Oracle入门基础(三)一一单行函数
  6. 如果有大量的 key 需要设置同一时间过期,一般需要注意什么?
  7. 你能保证 GC 执行吗?
  8. 是否可以从一个静态(static)方法内部发出对非静态 (non-static)方法的调用?
  9. ctfhub 过滤运算符 综合过滤练习 读取源代码 远程包含 eval执行 文件包含 php://input
  10. 领域驱动(DDD)设计和开发实战