<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,minimum-scale=1, maximum-scale=1, user-scalable=no">
    <title>苹果超级签购买(在线支付)</title>
    <link href="__CSS__/ssg/common.css?v={$rand}" rel="stylesheet" type="text/css">
    <script src="__JS__/ssg/flexible.min.js?v={$rand}" type="text/javascript"></script>
</head>

<body>
    <div id="safari_box" class="safari_box">
        <div class="content">
            请选择在“Safari”中打开 <img src="__IMG__/ssg/home/jt.png">
        </div>
        <div class="safari_box_alert">
            <div class="alert_title" style="background:url('__IMG__/ssg/home/alertbg.png') no-repeat top center/cover;">
                <img class="alert_title_close" onclick="closeSafari()" src="__IMG__/ssg/home/close.png">
                <img class="alert_title_safari" src="__IMG__/ssg/home/safari.png">
                <div class="alert_title_desc">
                    该链接只支持<text style="color:yellow">Safari</text>,
                    <br/> 
                    请在<text style="color:yellow">Safari</text>中打开
                </div>
            </div>
            <div class="alert_copy">
                <div>
                    <input id="copyVal" type="text" readonly='' value="">
                    <a href="javascript:" id="copy" data-clipboard-target="#copyVal" style="background:url('__IMG__/ssg/home/copybt.png') no-repeat top center/cover;">
                        复制
                    </a>
                </div>    
            </div>
        </div>
    </div>


    <div class="home-box" style="background: url('__IMG__/ssg/home/bg.png') no-repeat top center/100% auto;">
        <div class="hader-img">
            <img src="__IMG__/ssg/home/hader.png">
        </div>
       <div class="btn-login">
            <a href="{:U('login'),'&promote_id='.$promote_id}"  onclick="return check()"><img src="__IMG__/ssg/home/button1.png"></a>
        </div>
        <div class="btn-group">
            <a href="{:U('process')}" onclick="return check()"><img src="__IMG__/ssg/home/button2.png"></a>
            <a href="{:U('tutorial')}"  onclick="return check()"><img src="__IMG__/ssg/home/button3.png"></a>
            <a href="javascript:" onclick="chatQQ()"><img src="__IMG__/ssg/home/button4.png"></a>
        </div>
        <div class="descitem" style="background: url('__IMG__/ssg/home/list1.png') no-repeat top center/100% 100%;margin-top: .45rem;">
            <ul>
                <li>高端定制,仅对IOS用户开放</li>
                <li>永不闪退,不丢游戏,不丢数据,稳定有保障</li>
                <li>同一设备安装一次可在一年内无限次下载重装</li>
            </ul>
        </div>
        <div class="descitem" style="background: url('__IMG__/ssg/home/list2.png') no-repeat top center/100% 100%;">
            <ul>
                <li style="line-height:1.5;"> 
                    账号登入且付费,购买苹果超级签(同个账号多个设备需要去找客服那边购买)
                </li>
                <li>下载安装描述文件</li>
                <li>下载安装游戏</li>
            </ul>
        </div>
        <div class="btn-download">
            <a href="{:U('login'),'&promote_id='.$promote_id}"  onclick="return check()"><img src="__IMG__/ssg/home/button5.png"></a>
        </div>
    </div>
    <div class="footer home-box-footer">
        <p class="footer-up">闽ICP备19003775号-1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;闽网文{2019}1554-099号</p>
        <p class="footer-down">抵制不良游戏,拒绝盗版游戏。注意自我保护,谨防受骗上当。<br>适度游戏益脑,沉迷游戏伤身。合理安排时间,享受健康生活。</p>
    </div>
 
<script src="__JS__/jquery-1.11.1.min.js?v={$rand}" type="text/javascript"></script>
<script src="__JS__/ssg/clipboard.min.js" type="text/javascript"></script>
<script>
    var issafariBrowser = checkSafari();
    $("#copyVal").val(window.location.href);
    function check(){
        if(!issafariBrowser){
            $("#safari_box").show();
            return false;
        }else{
            return true;
        }
        
    }
    function chatQQ() {
        if(check()){
            window.location.href = 'mqqwpa://im/chat?chat_type=wpa&uin={$app_qq}&version=1&src_type=web&web_src=oicqzone.com';
        }
    }
    function closeSafari(){
        $("#safari_box").hide();
    }
    var clipboard = new ClipboardJS('#copy');

    clipboard.on('success', function(e) {
        alert("复制成功,请在Safari中打开");
        e.clearSelection();
    });
    function checkSafari() {
        var ua = navigator.userAgent.toLowerCase();
        //判断是不是在iPhone的Safair浏览器打开的本页面
        if (ua.indexOf('applewebkit') > -1 && ua.indexOf('mobile') > -1 && ua.indexOf('safari') > -1 &&
            ua.indexOf('linux') === -1 && ua.indexOf('android') === -1 && ua.indexOf('chrome') === -1 &&
            ua.indexOf('ios') === -1 && ua.indexOf('browser') === -1) {
           return true;
        }
        else {
            //alert("请使用iPhone中的Safari浏览器打开本页面!");
            return false;
        }
    }
</script>
</body>

</html>