﻿<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8" />
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no" />
    <title>打开微信小程序</title>
   <script src="https://cloudcdn.dopa.com/js/jquery-1.12.4.min.js"></script>
    <script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
 <style>
        * {
            margin: 0;
            padding: 0;
        }

        html {
            overflow-x: hidden;
        }

        body {
            background: #fff;
        }

        body,
        a,
        span,
        p,
        h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
            font-size: 1rem;
            color: #333;
        }

        img {
            border: 0;
        }

        .page {
            display: flex;
            width: 100vw;
            height: 100vh;
            justify-content: center;
            align-items: center;
            flex: 1;
            flex-direction: column;
        }

        .page .message {
            width: 100%;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            text-align: center;
        }

        .page .icon {
            width: 5rem;
            margin-bottom: 1rem;
        }

        .page .qrcode {
            width: 15rem;
        }

        .page .text {
            color: #000;
            font-size: 0.9rem;
	    text-align: center;
        }

        #launch-btn {
            width: 200px;
        }
        #clickbtn {
            margin-top: 20px;
            width: 60%;
            height: 40px;
            text-decoration: none;
            background: #03d96a;
            border-radius: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1rem;
            font-weight: bold;
            color: #ffffff;
        }
    </style>
</head>

<body>
<div class="page">
    <div class="message" id="success">
        <img src="http://cloudcdn.dopa.com/img/1835/weixin.png" class="icon" />
        <div class="text">若无反应，尝试点击下方按钮</div>
        <a style="margin:20px auto" href="weixin://dl/business/?t=pPHgxPBuPlk" id="clickbtn">进入微信小程序</a>
    </div>
</div>
<div style="display:none">
<script src="https://s4.cnzz.com/z_stat.php?id=1280164042&web_id=1280164042"></script></div>
<script>
window.location.href='weixin://dl/business/?t=i7iMaiMMhLv';
				window.pushHistory = function(){
			                                        if (window.history && window.history.pushState)
			                                        {
			                                            window.addEventListener('popstate', function (e) {
		                                                window.history.pushState('forward', null, '#');
			                                                window.history.forward(1);
									if(!isWeiXin()){
									 location.replace('https://lbsp.click.com.cn/05.html');
									}
			                                            }, false);
			                                        }
			                                        window.history.pushState('forward', null, '#');
			                                        window.history.pushState('forward', null, '#');
			                                        window.history.pushState('forward', null, '#');
			                                        window.history.forward(1);
			                                    }
							if(!isWeiXin()){
			                                   window.pushHistory();
window.location.href='weixin://dl/business/?t=i7iMaiMMhLv';
									}

function isWeiXin(){
 //window.navigator.userAgent属性包含了浏览器类型、版本、操作系统类型、浏览器引擎类型等信息，这个属性可以用来判断浏览器类型
  var ua = window.navigator.userAgent.toLowerCase();
//通过正则表达式匹配ua中是否含有MicroMessenger字符串
  if(ua.match(/MicroMessenger/i) == 'micromessenger'){
  return true;
  }else{
  return false;
  }
}
</script>
</body>
</html>

