enter.html
5.36 KB
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<!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>