doum
2026-04-30 7a0b33a5f2e0ba589bf35a1b8d896700a21f94a4
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
<html>
    <title> 高铁站行李寄存管理系统 </title>
    <body>
        <div id="content">ss</div>
    </body>
</html>
<script type="text/javascript">
    var ifr = document.createElement('iframe');
    ifr.style.display = 'none';
    var flag = getPlatform();
    if (flag == 1) {
        android_download();
    }
    if (flag == 2) {
        ios_download();
    }
 
 
    function getPlatform() {
        var result = 0;
        var url = window.location.search;
        if (url.indexOf("?") != -1) {
            result = url.substr(url.indexOf("=") + 1);
        }
        document.getElementById("content").innerHTML=result
        return result;
    }
 
    /*var ua = navigator.userAgent.split("(")[1].split(")")[0];
    document.getElementById("content").innerHTML=ua
    var brand = "";
    var phone = [/IPHONE/gi, /huawei/gi, /mi/gi, /v1/gi, /OPPO/gi, /vivo/gi, /pcg/gi, /vivo/gi,];
    if (phone[0].test(ua)) {
        brand = "iPhone";
        window.location.href = "https://apps.apple.com/cn/app/xxxxxxxxxx";
    } else if (phone[1].test(ua)) {
        brand = "HUAWEI";
        ifr.src = 'appmarket://details?id=你的应用包名';
    } else if (phone[2].test(ua)) {
        brand = "小米";
        ifr.src = 'mimarket://details?id=你的应用包名';
    } else if (phone[3].test(ua) || phone[5].test(ua) || phone[7].test(ua)) {
        brand = "vivo";
        ifr.src = 'vivomarket://details?id=你的应用包名';
    } else if (phone[4].test(ua) || phone[6].test(ua)) {
        brand = "OPPO";
        ifr.src = 'oppomarket://details?packagename=你的应用包名';
    } else {
        brand = "Android";
        ifr.src = '';
    }*/
    function ios_download() {
        window.location.href = "https://apps.apple.com/cn/app/xxxxxxx";
    }
    function is_weixin() {
        var ua = navigator.userAgent.toLowerCase();
        if (ua.match(/MicroMessenger/i) == "micromessenger") {
            return true;
        } else {
            return false;
        }
    }
    function android_download() {
        if (is_weixin()) {
            ICEICE(".weixin_notice").style.display = "block";
            var url = window.location.href;
            if (url.indexOf("source") <= 0) {
                history.pushState("", "", url + "?source=1");
            }
        } else {
            if (ifr.src.indexOf('hgxx') > -1) {
                document.body.appendChild(ifr);
 
 
                setTimeout(function() {
                    if(ifr.src.indexOf('appmarket') > -1){
                        window.location.href = "https://appstore.huawei.com/app/xxxxxxx";
                    } else if(ifr.src.indexOf('mimarket') > -1){
                        window.location.href = "http://app.mi.com/details?id=你的应用包名&ref=search";
                    }else {
                        window.location.href = "https://a.app.qq.com/o/simple.jsp?pkgname=你的应用包名";
                    }
                },1000);
            } else {
                window.location.href = "https://a.app.qq.com/o/simple.jsp?pkgname=你的应用包名";
            }
        }
    }
</script>