enter.html 5.36 KB
<!DOCTYPE html>
<html>
  <head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge" />
	<link rel="stylesheet" type="text/css" href="css/reset.css" />
    <link rel="stylesheet" type="text/css" href="css/style.css" />
	<script type="text/javascript" src="js/jquery.min.js"></script>
    <script type="text/javascript" src="js/style.js"></script>
    <script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
	<title>玩游戏赢有货币</title>
	<style>
		html {
			height:100%;
		}
		body {
			background-color:#FFFFFF;
			margin:0;
			height:100%;
		}
		.index-a {
			display: block;
			width: 2.4rem;
			height: 7%;
			position: absolute;
			bottom: 13.2%;
			left: 2rem;
			z-index: 9;
		}
		.rule-a {
			width: 20%;
		    height: 13%;
		    z-index: 1;
		    position: absolute;
		    right: 0;
		    top: 0;
		}
	</style>
	<!-- copy these lines to your document head: -->

	<meta name="viewport" content="user-scalable=yes, width=320" />

	<!-- end copy -->
  </head>
  <body>
  <input id="shareLink" type="hidden" value="http://service.yoho.cn/activity/brand/enter.html">
<input id="shareDesc" type="hidden" value="YOHO!BUY有货【2016潮流新品节】CRAZY BOX疯狂来袭!拆箱赢好礼,有货币、优惠券、现金券赚不停!">
<input id="shareImg" type="hidden" value="http://feature.yoho.cn/0426SHAREIMG/images/0906.jpg">
<input id="shareTitle" type="hidden" value="每天都有机会获得奖品哦~">
<script type="text/javascript" charset="utf-8" src="/activity/brandVote/YOHOPE/js/wx-share.js"></script>
  <script>
  	$(
  		function () {
  			$(".index-a").click(
  				function (){
  					var junpUrl = 'http://'+ window.location.host+ '/activity/brand/index.html';
  					var uid = null;
		    		var clickBoxArr = {};

		            var vars = {},
		                hash,
		                i,
		                search = window.location.search,
		                hashes = search ? decodeURIComponent(search).slice(1).split('&') : [];

		            for (i = 0; i < hashes.length; i++) {
		                hash = hashes[i].split('=');
		                vars[hash[0]] = hash[1];
		            }
		            
		    		var isApp = !!vars.app_version || (vars.openrefer === 'app' && vars.uid);//判断是否是APP
		    		//判定登录

		    		if (!isApp) {
						var dataRequestUrl = "http://m.yohobuy.com/passport/login/user";
			            $.getJSON(dataRequestUrl+"?callback=?",
			                function(json) {
			                    if (json.code === 200) {
			                        uid=json.data;
			                        window.location.href = junpUrl;
			                    } else {
			                        var url ='http://m.yohobuy.com/signin.html?refer=' + junpUrl;
			                        //window.location.href=url;
			                        if ($("#collocation-link").length <= 0) {
			                            $("body").append('<a href=\'' + url + '\' style="display:none;" id="collocation-link">' +
			                                                '<span class="collocation-link"></span>' +
			                                            '</a>');     
			                        }
			                        $(".collocation-link").click();
			                    }
			                }
			            );
					} else {
						var Request = new Object();
						Request = GetRequest();
						uid = Request['uid'];
		                 if (!uid){ 
		                	var locationUrl = window.location.href;
		                    var url = locationUrl + '?app_version=1&openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"'
		                            + junpUrl +'","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}';
		                    if ($("#collocation-link").length <= 0) {
		                        $("body").append('<a href=\'' + url + '\' style="display:none;" id="collocation-link">' +
		                                            '<span class="collocation-link"></span>' +
		                                        '</a>');
		                    }
		                    $(".collocation-link").click();
		                }else{
		                	 window.location.href = junpUrl + window.location.search;
		                }
					}
  				}
  			);
  		}
  	);
  	//获取url的uid
	function GetRequest() {
	   var url = location.search; //获取url中"?"符后的字串
	   var theRequest = new Object();
	   if (url.indexOf("?") != -1) {
	      var str = url.substr(1);
	      strs = str.split("&");
	      for(var i = 0; i < strs.length; i ++) {
	         theRequest[strs[i].split("=")[0]]=unescape(strs[i].split("=")[1]);
	      }
	   }
	   return theRequest;
	}
  </script>
	<!-- copy these lines to your document: -->

	<div id="0825balltext04_hype_container" style="margin:auto;position:relative;width:100%;height:100%;overflow:hidden;" aria-live="polite">
		<script type="text/javascript" charset="utf-8" src="index-animate/0825balltext04_hype_generated_script.js?76253"></script>
	</div>

	<!-- end copy -->
	


	<!-- text content for search engines: -->

	<div style="display:none">


	</div>
	<a class="rule-a rule-btn"></a>
	<a class="index-a"></a>
	<!-- end text content: -->
	<div class="dia-c">
		<a class="close-btn">
			<img src="images/close-btn.png" />
		</a>
		<img src="images/rule.png" />
	</div>

  </body>
</html>