nowsdownapp.html 1.84 KB


<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>潮流商品 | YOHO!有货</title>
    <meta name="description" content="">
    <script src="//lib.sinaapp.com/js/jquery/1.9.1/jquery-1.9.1.min.js"></script>
    <script type="text/javascript">
        var agent = navigator.userAgent.toLowerCase() ;
        var version, type, appid, td, queryString, downUrl;
        
        var jumpTypes = [110];

        function isInJump(unionType) {
        	for (var i = 0 ;i < jumpTypes.length; i++) {
        		if (unionType == jumpTypes[i]) {
        			return true;
        		}
        	}
        	return false;
        }

       function getQueryString() {
            var vars = [],
                hash,
                i;
            var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');

            for (i = 0; i < hashes.length; i++) {
                hash = hashes[i].split('=');
                vars.push(hash[0]);
                vars[hash[0]] = hash[1];
            }
            return vars;
        }
        downUrl = 'http://a.app.qq.com/o/simple.jsp?pkgname=cn.yoho.magazine';
        queryString = getQueryString();
        $.ajax({
                method: 'POST',
//                url: 'http://union.yoho.cn/union/UnionRest/addYas',
           url: 'http://union.yoho.cn/union/UnionRest/addYas',
                data: {
                        union_type: queryString.union_type,

        },
        complete: function(){
            window.location.href = downUrl;
            window.setTimeout(function(){
                window.location.href = "http://m.yohobuy.com";
            }, 2000);
        }});


        //downUrl = "https://itunes.apple.com/cn/app/yoho!-you-huo/id490655927?mt=8";
//          window.location.href = downUrl;
        
        

        

    </script>
</head>
<body>
</body>
</html>