Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

libai / fireflyReg

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • fireflyReg
  • invite
  • download.html
Find file
Normal viewHistoryPermalink
download.html 4.75 KB
Newer Older
libai's avatar
测试
8e24e39a
 
libai committed a year ago
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
<!DOCTYPE html>
<html lang="en">

<head>
    <script type="text/javascript" charset="UTF-8" src="https://web.cdn.openinstall.io/openinstall.js"></script>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <meta content="telephone=no" name="format-detection">
    <meta name="wap-font-scale" content="no">
    <meta charset="UTF-8">
    <title>邀請分享下載</title>
    <link rel="stylesheet" href="css/base.css">
    <link rel="stylesheet" href="css/layer.css">
    <link rel="stylesheet" href="css/index.css?v='2156515'">
    <script src="lib/fsize.js"></script>
</head>

<body style="background: #000;">
    <img class="fly" src="images/fly.png" alt="">
    <div class="shadow-img"><img src="images/share-img.png" alt=""></div>
    <div class="fly-btn" onclick="download();">點擊下載</div>
</body>
<script src="lib/jquery-3.1.1.min.js"></script>
<script src="../lib/globalizationJq.js"></script>

<script>
    var _hmt = _hmt || [];
    (function () {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?9611931f61008898ac526dcf57df6445";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
</script>
<script>
    isWeiXin()
    //判断是否是微信浏览器的函数
    function isWeiXin() {
        //window.navigator.userAgent属性包含了浏览器类型、版本、操作系统类型、浏览器引擎类型等信息,这个属性可以用来判断浏览器类型
        var ua = window.navigator.userAgent.toLowerCase();
        //通过正则表达式匹配ua中是否含有MicroMessenger字符串
        if (ua.match(/MicroMessenger/i) == 'micromessenger') {
            $('.shadow-img').show();
            return true;
        } else {
            $('.shadow-img').hide();
            return false;
        }
    }
    $ip = "https://webserver.yabolive.net";
    cdn = "https://zhibocdn.yabolive.net/comm"
    if (sessionStorage.lang == 1) {
        $(".fly").attr("src", "images/fly-En.png")
        $(".fly-btn").text('click to download')
    }
    var bbb = location.href;
    var data = url_get_params(bbb)
    sessionStorage.bbb = data.agentCode; //t
    sessionStorage.kkk = data.token;//k
    function url_get_params(url_path) {
        var url = url_path;
        var theRequest = new Object();
        if (url.indexOf("?") != -1) {
            var str = url.substr(url.indexOf("?") + 1);
            strs = str.split("&");
            for (var i = 0; i < strs.length; i++) {
                theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
            }
        }
        return theRequest;
    }
    if (data.test == 1) {
        window.location.href = 'http://yhc.ixiulive.com/ceshiInvite/download.html?agentCode=' + data.agentCode + '&token=' + data.token;
    } else {
        var str = document.referrer;
        // console.log(str.indexOf('ourpow'));
        // 	if(str.indexOf('ourpow')>0){
        download();
        // }
    }


    function download() {
        var ua = navigator.userAgent.toLowerCase();
        console.log(ua);
        if (/android/.test(ua)) {
            window.location.href = "share.html?agentCode=" + sessionStorage.bbb + "&bindType=2";

            //      var data = OpenInstall.parseUrlParams();
            //      new OpenInstall({
            //          appKey: "ssvd7x",
            //          mask:function(){
            //              return '<div id="openinstall_shadow" class="shadow-img"><img src="images/share-img.png" alt=""></div>'
            //          },
            //          preferWakeup: true,
            //          onready: function () {
            //              var m = this, button = document.getElementById("down-btn");
            //              m.schemeWakeup();
            //              setTimeout(function () {
            //                  m.wakeupOrInstall();
            //                  return false;
            //              },300)
            //              $(".fly-btn").on("click", function () {
            //                  m.schemeWakeup();
            //                  m.wakeupOrInstall();
            //                  return false;
            //              })
            //
            //          }
            //      }, data);
        } else if (/iphone|ipad|ipod/.test(ua)) {
            //        window.location.href="share2.html?agentCode="+sessionStorage.bbb+"&bindType=2"
            //临时企业用
            window.location.href = "share2.html?agentCode=" + sessionStorage.bbb + "&bindType=2"
        }
    }




</script>

</html>