do modify cuxiao coupon js warning message
Showing
13 changed files
with
740 additions
and
10 deletions
1 | +<?php return function ($in, $debugopt = 1) { | ||
2 | + $cx = array( | ||
3 | + 'flags' => array( | ||
4 | + 'jstrue' => false, | ||
5 | + 'jsobj' => false, | ||
6 | + 'spvar' => true, | ||
7 | + 'prop' => false, | ||
8 | + 'method' => false, | ||
9 | + 'mustlok' => true, | ||
10 | + 'echo' => false, | ||
11 | + 'debug' => $debugopt, | ||
12 | + ), | ||
13 | + 'constants' => array(), | ||
14 | + 'helpers' => array(), | ||
15 | + 'blockhelpers' => array(), | ||
16 | + 'hbhelpers' => array(), | ||
17 | + 'partials' => array(), | ||
18 | + 'scopes' => array(), | ||
19 | + 'sp_vars' => array('root' => $in), | ||
20 | + 'lcrun' => 'Plugin\LCRun3', | ||
21 | + | ||
22 | + ); | ||
23 | + | ||
24 | + return '<!DOCTYPE html> | ||
25 | +<html> | ||
26 | +<head> | ||
27 | +<meta charset="UTF-8"> | ||
28 | +<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0 user-scalable=no"> | ||
29 | +<meta content="yes" name="apple-mobile-web-app-capable"> | ||
30 | +<meta content="telephone=no" name="format-detection"> | ||
31 | +<meta content="yes" name="apple-touch-fullscreen"> | ||
32 | +<meta content="black" name="apple-mobile-web-app-status-bar-style"> | ||
33 | +<title>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('staticTitle')), ENT_QUOTES, 'UTF-8').'</title> | ||
34 | +<link rel="stylesheet" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('cssUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/css/151201/coupon.mobile.css"> | ||
35 | +<link rel="dns-prefetch" href="//cdn.yoho.cn"> | ||
36 | +<link rel="dns-prefetch" href="//static.yohobuy.com"> | ||
37 | +<script type="text/javascript"> | ||
38 | + (function(doc, win) { | ||
39 | + var docEl = doc.documentElement; | ||
40 | + (function() { | ||
41 | + var clientWidth = docEl.clientWidth; | ||
42 | + if (!clientWidth) { | ||
43 | + return; | ||
44 | + } | ||
45 | + docEl.style.fontSize = 20 * (clientWidth / 320) + \'px\'; | ||
46 | + }()); | ||
47 | + })(document, window); | ||
48 | +</script> | ||
49 | +</head> | ||
50 | +<body> | ||
51 | + <div class="coupon-container" id="coupon-container" param="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('activityId')), ENT_QUOTES, 'UTF-8').'" isLogged="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('isLogged')), ENT_QUOTES, 'UTF-8').'"> | ||
52 | + <div class="coupon-hd hd3"></div> | ||
53 | + <div class="coupon-bd"> | ||
54 | + <div class="bd-top"></div> | ||
55 | + <div class="bd-bottom"></div> | ||
56 | + <div class="coupon-rule"> | ||
57 | + <h2></h2> | ||
58 | + <ul> | ||
59 | + <li class="clearfix"> | ||
60 | + <span>如何领取</span> | ||
61 | + <em>12.7-12.10期间,点击页面各品牌领券按钮,即可获得对应品牌的专属券。</em> | ||
62 | + </li> | ||
63 | + <li class="clearfix"> | ||
64 | + <span>使用方法</span> | ||
65 | + <em>12.7-12.10期间,在结算页面选择使用相应的优惠券。</em> | ||
66 | + </li> | ||
67 | + <li class="clearfix"> | ||
68 | + <span>使用细则</span> | ||
69 | + <em>在个人中心查看我的优惠券,每个订单限制用一张。</em> | ||
70 | + </li> | ||
71 | + </ul> | ||
72 | + </div> | ||
73 | + <div class="floor-header best-choice"></div> | ||
74 | + <div class="img-coupon clearfix"> | ||
75 | + <ul class="boy2-img-coupon01"> | ||
76 | + <li> | ||
77 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_114')), ENT_QUOTES, 'UTF-8').'"></a> | ||
78 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15715"></a> | ||
79 | + </li> | ||
80 | + <li> | ||
81 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_847')), ENT_QUOTES, 'UTF-8').'"></a> | ||
82 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15719"></a> | ||
83 | + </li> | ||
84 | + </ul> | ||
85 | + <ul class="boy2-img-coupon02"> | ||
86 | + <li> | ||
87 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_536')), ENT_QUOTES, 'UTF-8').'"></a> | ||
88 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15767"></a> | ||
89 | + </li> | ||
90 | + <li> | ||
91 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_230')), ENT_QUOTES, 'UTF-8').'"></a> | ||
92 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15723"></a> | ||
93 | + </li> | ||
94 | + </ul> | ||
95 | + </div> | ||
96 | + <div class="logo-coupon"> | ||
97 | + <ul> | ||
98 | + <li class="boy2-logo-coupon01"> | ||
99 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_676')), ENT_QUOTES, 'UTF-8').'"></a> | ||
100 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15717"></a> | ||
101 | + </li> | ||
102 | + <li class="boy2-logo-coupon02"> | ||
103 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_308')), ENT_QUOTES, 'UTF-8').'"></a> | ||
104 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15727"></a> | ||
105 | + </li> | ||
106 | + <li class="boy2-logo-coupon03"> | ||
107 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_199')), ENT_QUOTES, 'UTF-8').'"></a> | ||
108 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15729"></a> | ||
109 | + </li> | ||
110 | + <li class="boy2-logo-coupon04"> | ||
111 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_714')), ENT_QUOTES, 'UTF-8').'"></a> | ||
112 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15731"></a> | ||
113 | + </li> | ||
114 | + <li class="boy2-logo-coupon05"> | ||
115 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_553')), ENT_QUOTES, 'UTF-8').'"></a> | ||
116 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15677"></a> | ||
117 | + </li> | ||
118 | + <li class="boy2-logo-coupon06"> | ||
119 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_194')), ENT_QUOTES, 'UTF-8').'"></a> | ||
120 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15735"></a> | ||
121 | + </li> | ||
122 | + </ul> | ||
123 | + </div> | ||
124 | + <div class="floor-header top-recommend"></div> | ||
125 | + <div class="img-coupon clearfix"> | ||
126 | + <ul class="boy2-img-coupon03"> | ||
127 | + <li> | ||
128 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_343')), ENT_QUOTES, 'UTF-8').'"></a> | ||
129 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15725"></a> | ||
130 | + </li> | ||
131 | + <li> | ||
132 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_692')), ENT_QUOTES, 'UTF-8').'"></a> | ||
133 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15739"></a> | ||
134 | + </li> | ||
135 | + </ul> | ||
136 | + <ul class="boy2-img-coupon04"> | ||
137 | + <li> | ||
138 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_870')), ENT_QUOTES, 'UTF-8').'"></a> | ||
139 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15743"></a> | ||
140 | + </li> | ||
141 | + <li> | ||
142 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_444')), ENT_QUOTES, 'UTF-8').'"></a> | ||
143 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15721"></a> | ||
144 | + </li> | ||
145 | + </ul> | ||
146 | + </div> | ||
147 | + <div class="logo-coupon"> | ||
148 | + <ul> | ||
149 | + <li class="boy2-logo-coupon07"> | ||
150 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_462')), ENT_QUOTES, 'UTF-8').'"></a> | ||
151 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15737"></a> | ||
152 | + </li> | ||
153 | + <li class="boy2-logo-coupon08"> | ||
154 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_136')), ENT_QUOTES, 'UTF-8').'"></a> | ||
155 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15741"></a> | ||
156 | + </li> | ||
157 | + <li class="boy2-logo-coupon09"> | ||
158 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_641')), ENT_QUOTES, 'UTF-8').'"></a> | ||
159 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15745"></a> | ||
160 | + </li> | ||
161 | + <li class="boy2-logo-coupon10"> | ||
162 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_832')), ENT_QUOTES, 'UTF-8').'"></a> | ||
163 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15747"></a> | ||
164 | + </li> | ||
165 | + <li class="boy2-logo-coupon11"> | ||
166 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_940')), ENT_QUOTES, 'UTF-8').'"></a> | ||
167 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15749"></a> | ||
168 | + </li> | ||
169 | + <li class="boy2-logo-coupon12"> | ||
170 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_719')), ENT_QUOTES, 'UTF-8').'"></a> | ||
171 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15753"></a> | ||
172 | + </li> | ||
173 | + </ul> | ||
174 | + </div> | ||
175 | + </div> | ||
176 | + <div class="coupon-ft"> | ||
177 | + <div class="other-coupon"> | ||
178 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_girls')), ENT_QUOTES, 'UTF-8').'">女生</a> | ||
179 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_kids')), ENT_QUOTES, 'UTF-8').'">童装</a> | ||
180 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_lifestyle')), ENT_QUOTES, 'UTF-8').'">创意生活</a> | ||
181 | + </div> | ||
182 | + </div> | ||
183 | + </div> | ||
184 | +<input id="shareLink" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareLink')), ENT_QUOTES, 'UTF-8').'"> | ||
185 | +<input id="shareImg" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareImg')), ENT_QUOTES, 'UTF-8').'"> | ||
186 | +<input id="shareTitle" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareTitle')), ENT_QUOTES, 'UTF-8').'"> | ||
187 | +<input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'"> | ||
188 | +'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('weixinShare')))) ? '<script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> | ||
189 | +' : '').'<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script> | ||
190 | +<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/151201/coupon.mobile.1201.js"></script> | ||
191 | +'.'<!-- Google Tag Manager --> | ||
192 | +<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> | ||
193 | +<script> | ||
194 | + (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\': | ||
195 | + new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0], | ||
196 | + j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src= | ||
197 | + \'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f); | ||
198 | + })(window,document,\'script\',\'dataLayer\',\'GTM-W958MG\'); | ||
199 | +</script> | ||
200 | +<!-- End Google Tag Manager --> | ||
201 | +<script type="text/javascript"> | ||
202 | + var _hmt = _hmt || []; | ||
203 | + (function() { | ||
204 | + var hm = document.createElement("script"); | ||
205 | + hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311"; | ||
206 | + var s = document.getElementsByTagName("script")[0]; | ||
207 | + s.parentNode.insertBefore(hm, s); | ||
208 | + })(); | ||
209 | +</script> | ||
210 | +<script> | ||
211 | + var _hmt = _hmt || []; | ||
212 | + (function() { | ||
213 | + var hm = document.createElement("script"); | ||
214 | + hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841"; | ||
215 | + var s = document.getElementsByTagName("script")[0]; | ||
216 | + s.parentNode.insertBefore(hm, s); | ||
217 | + })(); | ||
218 | +</script> | ||
219 | +'.' | ||
220 | +</body> | ||
221 | +</html>'; | ||
222 | +} | ||
223 | +?> |
@@ -227,7 +227,7 @@ | @@ -227,7 +227,7 @@ | ||
227 | <input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'"> | 227 | <input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'"> |
228 | '.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('weixinShare')))) ? '<script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> | 228 | '.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('weixinShare')))) ? '<script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> |
229 | ' : '').'<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script> | 229 | ' : '').'<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script> |
230 | -<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/151201/coupon.mobile.1130.js"></script> | 230 | +<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/151201/coupon.mobile.1201.js"></script> |
231 | '.'<!-- Google Tag Manager --> | 231 | '.'<!-- Google Tag Manager --> |
232 | <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> | 232 | <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> |
233 | <script> | 233 | <script> |
1 | +<?php return function ($in, $debugopt = 1) { | ||
2 | + $cx = array( | ||
3 | + 'flags' => array( | ||
4 | + 'jstrue' => false, | ||
5 | + 'jsobj' => false, | ||
6 | + 'spvar' => true, | ||
7 | + 'prop' => false, | ||
8 | + 'method' => false, | ||
9 | + 'mustlok' => true, | ||
10 | + 'echo' => false, | ||
11 | + 'debug' => $debugopt, | ||
12 | + ), | ||
13 | + 'constants' => array(), | ||
14 | + 'helpers' => array(), | ||
15 | + 'blockhelpers' => array(), | ||
16 | + 'hbhelpers' => array(), | ||
17 | + 'partials' => array(), | ||
18 | + 'scopes' => array(), | ||
19 | + 'sp_vars' => array('root' => $in), | ||
20 | + 'lcrun' => 'Plugin\LCRun3', | ||
21 | + | ||
22 | + ); | ||
23 | + | ||
24 | + return '<!DOCTYPE html> | ||
25 | +<html lang="en"> | ||
26 | +<head> | ||
27 | +<meta charset="UTF-8"> | ||
28 | +<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0 user-scalable=no"> | ||
29 | +<meta content="yes" name="apple-mobile-web-app-capable"> | ||
30 | +<meta content="telephone=no" name="format-detection"> | ||
31 | +<meta content="yes" name="apple-touch-fullscreen"> | ||
32 | +<meta content="black" name="apple-mobile-web-app-status-bar-style"> | ||
33 | +<title>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('staticTitle')), ENT_QUOTES, 'UTF-8').'</title> | ||
34 | +<link rel="stylesheet" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('cssUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/css/151201/coupon.mobile.css"> | ||
35 | +<link rel="dns-prefetch" href="//cdn.yoho.cn"> | ||
36 | +<link rel="dns-prefetch" href="//static.yohobuy.com"> | ||
37 | +<script type="text/javascript"> | ||
38 | + (function(doc, win) { | ||
39 | + var docEl = doc.documentElement; | ||
40 | + (function() { | ||
41 | + var clientWidth = docEl.clientWidth; | ||
42 | + if (!clientWidth) { | ||
43 | + return; | ||
44 | + } | ||
45 | + docEl.style.fontSize = 20 * (clientWidth / 320) + \'px\'; | ||
46 | + }()); | ||
47 | + })(document, window); | ||
48 | +</script> | ||
49 | +</head> | ||
50 | +<body> | ||
51 | + <div class="coupon-container" id="coupon-container" param="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('activityId')), ENT_QUOTES, 'UTF-8').'" isLogged="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('isLogged')), ENT_QUOTES, 'UTF-8').'"> | ||
52 | + <div class="coupon-hd hd3"></div> | ||
53 | + <div class="coupon-bd"> | ||
54 | + <div class="bd-top"></div> | ||
55 | + <div class="bd-bottom"></div> | ||
56 | + <div class="coupon-rule"> | ||
57 | + <h2></h2> | ||
58 | + <ul> | ||
59 | + <li class="clearfix"> | ||
60 | + <span>如何领取</span> | ||
61 | + <em>12.7-12.10期间,点击页面各品牌领券按钮,即可获得对应品牌的专属券。</em> | ||
62 | + </li> | ||
63 | + <li class="clearfix"> | ||
64 | + <span>使用方法</span> | ||
65 | + <em>12.7-12.10期间,在结算页面选择使用相应的优惠券。</em> | ||
66 | + </li> | ||
67 | + <li class="clearfix"> | ||
68 | + <span>使用细则</span> | ||
69 | + <em>在个人中心查看我的优惠券,每个订单限制用一张。</em> | ||
70 | + </li> | ||
71 | + </ul> | ||
72 | + </div> | ||
73 | + <div class="floor-header best-choice"></div> | ||
74 | + <div class="img-coupon clearfix"> | ||
75 | + <ul class="img-coupon01 girl2"> | ||
76 | + <li> | ||
77 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_481')), ENT_QUOTES, 'UTF-8').'"></a> | ||
78 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15757"></a> | ||
79 | + </li> | ||
80 | + <li> | ||
81 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_450')), ENT_QUOTES, 'UTF-8').'"></a> | ||
82 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15759"></a> | ||
83 | + </li> | ||
84 | + </ul> | ||
85 | + <ul class="img-coupon02 girl2"> | ||
86 | + <li> | ||
87 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_256')), ENT_QUOTES, 'UTF-8').'"></a> | ||
88 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15763"></a> | ||
89 | + </li> | ||
90 | + <li> | ||
91 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_701')), ENT_QUOTES, 'UTF-8').'"></a> | ||
92 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15827"></a> | ||
93 | + </li> | ||
94 | + </ul> | ||
95 | + </div> | ||
96 | + <div class="logo-coupon"> | ||
97 | + <ul> | ||
98 | + <li class="logo-coupon01 girl2"> | ||
99 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_570')), ENT_QUOTES, 'UTF-8').'"></a> | ||
100 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15755"></a> | ||
101 | + </li> | ||
102 | + <li class="logo-coupon02 girl2"> | ||
103 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_868')), ENT_QUOTES, 'UTF-8').'"></a> | ||
104 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15761"></a> | ||
105 | + </li> | ||
106 | + <li class="logo-coupon03 girl2"> | ||
107 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_824')), ENT_QUOTES, 'UTF-8').'"></a> | ||
108 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15765"></a> | ||
109 | + </li> | ||
110 | + <li class="logo-coupon04 girl2"> | ||
111 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_1031')), ENT_QUOTES, 'UTF-8').'"></a> | ||
112 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15829"></a> | ||
113 | + </li> | ||
114 | + <li class="logo-coupon05 girl2"> | ||
115 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_734')), ENT_QUOTES, 'UTF-8').'"></a> | ||
116 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15831"></a> | ||
117 | + </li> | ||
118 | + <li class="logo-coupon06 girl2"> | ||
119 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_713')), ENT_QUOTES, 'UTF-8').'"></a> | ||
120 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15833"></a> | ||
121 | + </li> | ||
122 | + </ul> | ||
123 | + </div> | ||
124 | + <div class="floor-header top-recommend"></div> | ||
125 | + <div class="img-coupon clearfix"> | ||
126 | + <ul class="img-coupon03 girl2"> | ||
127 | + <li> | ||
128 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_947')), ENT_QUOTES, 'UTF-8').'"></a> | ||
129 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15837"></a> | ||
130 | + </li> | ||
131 | + <li> | ||
132 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_760')), ENT_QUOTES, 'UTF-8').'"></a> | ||
133 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15839"></a> | ||
134 | + </li> | ||
135 | + </ul> | ||
136 | + <ul class="img-coupon04 girl2"> | ||
137 | + <li> | ||
138 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_738')), ENT_QUOTES, 'UTF-8').'"></a> | ||
139 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15843"></a> | ||
140 | + </li> | ||
141 | + <li> | ||
142 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_778')), ENT_QUOTES, 'UTF-8').'"></a> | ||
143 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15853"></a> | ||
144 | + </li> | ||
145 | + </ul> | ||
146 | + </div> | ||
147 | + <div class="logo-coupon"> | ||
148 | + <ul> | ||
149 | + <li class="logo-coupon07 girl2"> | ||
150 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_380')), ENT_QUOTES, 'UTF-8').'"></a> | ||
151 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15835"></a> | ||
152 | + </li> | ||
153 | + <li class="logo-coupon08 girl2"> | ||
154 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_909')), ENT_QUOTES, 'UTF-8').'"></a> | ||
155 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15841"></a> | ||
156 | + </li> | ||
157 | + <li class="logo-coupon09 girl2"> | ||
158 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_524')), ENT_QUOTES, 'UTF-8').'"></a> | ||
159 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15845"></a> | ||
160 | + </li> | ||
161 | + <li class="logo-coupon10 girl2"> | ||
162 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_968')), ENT_QUOTES, 'UTF-8').'"></a> | ||
163 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15847"></a> | ||
164 | + </li> | ||
165 | + <li class="logo-coupon11 girl2"> | ||
166 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_517')), ENT_QUOTES, 'UTF-8').'"></a> | ||
167 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15849"></a> | ||
168 | + </li> | ||
169 | + <li class="logo-coupon12 girl2"> | ||
170 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_419')), ENT_QUOTES, 'UTF-8').'"></a> | ||
171 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15697"></a> | ||
172 | + </li> | ||
173 | + <li class="logo-coupon13 girl2"> | ||
174 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_1026')), ENT_QUOTES, 'UTF-8').'"></a> | ||
175 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15811"></a> | ||
176 | + </li> | ||
177 | + <li class="logo-coupon14 girl2"> | ||
178 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_1027')), ENT_QUOTES, 'UTF-8').'"></a> | ||
179 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15813"></a> | ||
180 | + </li> | ||
181 | + </ul> | ||
182 | + </div> | ||
183 | + </div> | ||
184 | + <div class="coupon-ft"> | ||
185 | + <div class="other-coupon"> | ||
186 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_boys')), ENT_QUOTES, 'UTF-8').'">男生</a> | ||
187 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_kids')), ENT_QUOTES, 'UTF-8').'">童装</a> | ||
188 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_lifestyle')), ENT_QUOTES, 'UTF-8').'">创意生活</a> | ||
189 | + </div> | ||
190 | + </div> | ||
191 | + </div> | ||
192 | +<input id="shareLink" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareLink')), ENT_QUOTES, 'UTF-8').'"> | ||
193 | +<input id="shareImg" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareImg')), ENT_QUOTES, 'UTF-8').'"> | ||
194 | +<input id="shareTitle" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareTitle')), ENT_QUOTES, 'UTF-8').'"> | ||
195 | +<input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'"> | ||
196 | +<script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> | ||
197 | +<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script> | ||
198 | +<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/151201/coupon.mobile.1201.js"></script> | ||
199 | +'.'<!-- Google Tag Manager --> | ||
200 | +<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> | ||
201 | +<script> | ||
202 | + (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\': | ||
203 | + new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0], | ||
204 | + j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src= | ||
205 | + \'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f); | ||
206 | + })(window,document,\'script\',\'dataLayer\',\'GTM-W958MG\'); | ||
207 | +</script> | ||
208 | +<!-- End Google Tag Manager --> | ||
209 | +<script type="text/javascript"> | ||
210 | + var _hmt = _hmt || []; | ||
211 | + (function() { | ||
212 | + var hm = document.createElement("script"); | ||
213 | + hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311"; | ||
214 | + var s = document.getElementsByTagName("script")[0]; | ||
215 | + s.parentNode.insertBefore(hm, s); | ||
216 | + })(); | ||
217 | +</script> | ||
218 | +<script> | ||
219 | + var _hmt = _hmt || []; | ||
220 | + (function() { | ||
221 | + var hm = document.createElement("script"); | ||
222 | + hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841"; | ||
223 | + var s = document.getElementsByTagName("script")[0]; | ||
224 | + s.parentNode.insertBefore(hm, s); | ||
225 | + })(); | ||
226 | +</script> | ||
227 | +'.'</body> | ||
228 | +</html>'; | ||
229 | +} | ||
230 | +?> |
@@ -122,7 +122,7 @@ | @@ -122,7 +122,7 @@ | ||
122 | <input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'"> | 122 | <input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'"> |
123 | <script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> | 123 | <script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> |
124 | <script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script> | 124 | <script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script> |
125 | -<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/151201/coupon.mobile.1130.js"></script> | 125 | +<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/151201/coupon.mobile.1201.js"></script> |
126 | '.'<!-- Google Tag Manager --> | 126 | '.'<!-- Google Tag Manager --> |
127 | <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> | 127 | <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> |
128 | <script> | 128 | <script> |
@@ -142,7 +142,7 @@ | @@ -142,7 +142,7 @@ | ||
142 | <input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'"> | 142 | <input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'"> |
143 | <script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> | 143 | <script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> |
144 | <script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script> | 144 | <script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script> |
145 | -<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/151201/coupon.mobile.1130.js"></script> | 145 | +<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/151201/coupon.mobile.1201.js"></script> |
146 | '.'<!-- Google Tag Manager --> | 146 | '.'<!-- Google Tag Manager --> |
147 | <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> | 147 | <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> |
148 | <script> | 148 | <script> |
@@ -239,7 +239,7 @@ | @@ -239,7 +239,7 @@ | ||
239 | <input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'"> | 239 | <input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'"> |
240 | <script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> | 240 | <script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> |
241 | <script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script> | 241 | <script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script> |
242 | -<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/151201/coupon.mobile.1130.js"></script> | 242 | +<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/151201/coupon.mobile.1201.js"></script> |
243 | '.'<!-- Google Tag Manager --> | 243 | '.'<!-- Google Tag Manager --> |
244 | <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> | 244 | <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> |
245 | <script> | 245 | <script> |
1 | +var $tip, tipItime; | ||
2 | + | ||
3 | +/* 领指定券 */ | ||
4 | +var activityId = $('#coupon-container').attr('param'); | ||
5 | +var userIsLogged = $('#coupon-container').attr('isLogged') === 'Y'; | ||
6 | +var isApp; | ||
7 | + | ||
8 | +$('.get-coupon').click(function() { | ||
9 | + var couponId = $(this).attr('param'); | ||
10 | + isApp = $(this).attr('href') !== 'javascript:;'; | ||
11 | + if (!isNaN(activityId) && !isNaN(couponId)) { | ||
12 | + getNamedCoupon(activityId, couponId, isApp, userIsLogged); | ||
13 | + } | ||
14 | +}); | ||
15 | +/* 领所有券 */ | ||
16 | +$('#get-all-coupon').click(function() { | ||
17 | + var isApp = $(this).attr('href') !== 'javascript:;'; | ||
18 | + getAllCoupon(activityId, isApp); | ||
19 | +}); | ||
20 | + | ||
21 | +/* 检查是否有在领取中的券,有则直接领取 */ | ||
22 | +if (userIsLogged) { | ||
23 | + var cookieCouponId = cookie('_Coupon' + activityId); | ||
24 | + if (cookieCouponId && !isNaN(cookieCouponId)) { | ||
25 | + getNamedCoupon(activityId, cookieCouponId, isApp, userIsLogged); | ||
26 | + } | ||
27 | +} | ||
28 | + | ||
29 | +/** | ||
30 | + * 微信分享 | ||
31 | + */ | ||
32 | +(function($) { | ||
33 | + if (typeof(wx) == "undefined") { | ||
34 | + return; | ||
35 | + } | ||
36 | + var _weChatInterface = 'http://www.yohoshow.com/api/wechat/getSignPackage'; | ||
37 | + $.getJSON(_weChatInterface + '?pageurl=' + | ||
38 | + encodeURIComponent(location.href.split('#')[0]) + '&callback=?', function(json) { | ||
39 | + var _appId, _timestamp, _nonceStr, _signature; | ||
40 | + if (json !== undefined && json !== '') { | ||
41 | + _appId = json.appId.toString(); | ||
42 | + _timestamp = json.timestamp; | ||
43 | + _nonceStr = json.nonceStr.toString(); | ||
44 | + _signature = json.signature.toString(); | ||
45 | + | ||
46 | + wx.config({ | ||
47 | + debug: false, | ||
48 | + appId: _appId, | ||
49 | + timestamp: _timestamp, | ||
50 | + nonceStr: _nonceStr, | ||
51 | + signature: _signature, | ||
52 | + jsApiList: [ | ||
53 | + 'checkJsApi', | ||
54 | + 'onMenuShareTimeline', | ||
55 | + 'onMenuShareAppMessage', | ||
56 | + 'onMenuShareQQ', | ||
57 | + 'onMenuShareWeibo', | ||
58 | + 'hideMenuItems', | ||
59 | + 'showMenuItems', | ||
60 | + 'hideAllNonBaseMenuItem', | ||
61 | + 'showAllNonBaseMenuItem', | ||
62 | + 'translateVoice', | ||
63 | + 'startRecord', | ||
64 | + 'stopRecord', | ||
65 | + 'onRecordEnd', | ||
66 | + 'playVoice', | ||
67 | + 'pauseVoice', | ||
68 | + 'stopVoice', | ||
69 | + 'uploadVoice', | ||
70 | + 'downloadVoice', | ||
71 | + 'chooseImage', | ||
72 | + 'previewImage', | ||
73 | + 'uploadImage', | ||
74 | + 'downloadImage', | ||
75 | + 'getNetworkType', | ||
76 | + 'openLocation', | ||
77 | + 'getLocation', | ||
78 | + 'hideOptionMenu', | ||
79 | + 'showOptionMenu', | ||
80 | + 'closeWindow', | ||
81 | + 'scanQRCode', | ||
82 | + 'chooseWXPay', | ||
83 | + 'openProductSpecificView', | ||
84 | + 'addCard', | ||
85 | + 'chooseCard', | ||
86 | + 'openCard' | ||
87 | + ] | ||
88 | + }); | ||
89 | + } | ||
90 | + }); | ||
91 | + wx.ready(function() { | ||
92 | + var shareTitle = $('#shareTitle').val(); | ||
93 | + var shareImg = $('#shareImg').val(); | ||
94 | + var shareDesc = $('#shareDesc').val(); | ||
95 | + var shareLink = $('#shareLink').val(); | ||
96 | + var shareData = { | ||
97 | + title: shareTitle, | ||
98 | + desc: shareDesc, | ||
99 | + imgUrl: shareImg, | ||
100 | + link: shareLink | ||
101 | + }; | ||
102 | + wx.onMenuShareAppMessage(shareData); | ||
103 | + wx.onMenuShareTimeline(shareData); | ||
104 | + wx.onMenuShareQQ(shareData); | ||
105 | + wx.onMenuShareWeibo(shareData); | ||
106 | + }); | ||
107 | +}(jQuery)); | ||
108 | + | ||
109 | +/** | ||
110 | + * 初始化提示框 | ||
111 | + */ | ||
112 | +(function() { | ||
113 | + var tipHtml = '<div id="yoho-tip" class="yoho-tip"></div>'; | ||
114 | + | ||
115 | + //插入提示HTML | ||
116 | + $('#coupon-container').append(tipHtml); | ||
117 | + | ||
118 | + $tip = $('#yoho-tip'); | ||
119 | + $tip.on('touchend', function() { | ||
120 | + $tip.hide(); | ||
121 | + | ||
122 | + //清除Timeout | ||
123 | + clearTimeout(tipItime); | ||
124 | + }); | ||
125 | +}()); | ||
126 | + | ||
127 | +function cookie(name) { | ||
128 | + var cookies = document.cookie, | ||
129 | + cookieVal, | ||
130 | + offset; | ||
131 | + | ||
132 | + if (document.cookie && document.cookie !== '') { | ||
133 | + offset = cookies.indexOf(name + '='); | ||
134 | + if (offset > -1) { | ||
135 | + offset += name.length + 1; | ||
136 | + | ||
137 | + cookieVal = decodeURIComponent($.trim(cookies.substring(offset, cookies.indexOf(';', offset)))); | ||
138 | + } | ||
139 | + } | ||
140 | + | ||
141 | + return cookieVal; | ||
142 | +} | ||
143 | + | ||
144 | +function setCookie(name, value, options) { | ||
145 | + var expires = '', | ||
146 | + path, | ||
147 | + domain, | ||
148 | + secure, | ||
149 | + date; | ||
150 | + | ||
151 | + if (typeof value !== 'undefined') { | ||
152 | + options = options || {}; | ||
153 | + if (value === null) { | ||
154 | + value = ''; | ||
155 | + options.expires = -1; | ||
156 | + } | ||
157 | + | ||
158 | + if (options.expires && | ||
159 | + (typeof options.expires === 'number' || options.expires.toUTCString)) { | ||
160 | + if (typeof options.expires === 'number') { | ||
161 | + date = new Date(); | ||
162 | + date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000)); | ||
163 | + } else { | ||
164 | + date = options.expires; | ||
165 | + } | ||
166 | + expires = '; expires=' + date.toUTCString(); | ||
167 | + } | ||
168 | + path = options.path ? '; path=' + options.path : ''; | ||
169 | + domain = options.domain ? '; domain=' + options.domain : ''; | ||
170 | + secure = options.secure ? '; secure' : ''; | ||
171 | + document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join(''); | ||
172 | + } | ||
173 | +} | ||
174 | + | ||
175 | +/** | ||
176 | + * 显示提示 | ||
177 | + */ | ||
178 | +function showTip(con, dur) { | ||
179 | + var content, duration; | ||
180 | + | ||
181 | + if (typeof con === 'undefined') { | ||
182 | + return; | ||
183 | + } | ||
184 | + | ||
185 | + content = con.toString(); | ||
186 | + duration = (dur && dur > 0) ? dur : 3000; | ||
187 | + | ||
188 | + $tip.html(content).show(); | ||
189 | + | ||
190 | + tipItime = setTimeout(function() { | ||
191 | + if ($tip.css('display') === 'block') { | ||
192 | + $tip.hide(); | ||
193 | + } | ||
194 | + }, duration); | ||
195 | +} | ||
196 | + | ||
197 | +/** | ||
198 | + * 获取活动的指定优惠券 | ||
199 | + */ | ||
200 | +function getNamedCoupon(activityId, couponId, isApp, userIsLogged) | ||
201 | +{ | ||
202 | + $.ajax({ | ||
203 | + type: 'POST', | ||
204 | + url: '/cuxiao/coupon/getnamed', | ||
205 | + data: 'activityId=' + activityId + '&couponId=' + couponId, | ||
206 | + success: function(data) { | ||
207 | + setCookie('_Coupon' + activityId, null, { | ||
208 | + expires: -2, | ||
209 | + domain: '.m.yohobuy.com' | ||
210 | + }); | ||
211 | + if (isApp && !userIsLogged) { | ||
212 | + return; | ||
213 | + } | ||
214 | + if (data.code == 200) { | ||
215 | + showTip('恭喜你成功领取优惠券!<br><br>稍后即会到账,请耐心等待。'); | ||
216 | + } | ||
217 | + else if (data.code == 201) { | ||
218 | + showTip('你已领取过品牌优惠券<br><br>快去选购心仪的商品吧!'); | ||
219 | + } | ||
220 | + else if (data.code == 400) { | ||
221 | + setCookie('_Coupon' + activityId, couponId, { | ||
222 | + expires: 1, | ||
223 | + domain: '.m.yohobuy.com' | ||
224 | + }); | ||
225 | + if (isApp) { | ||
226 | + //showTip('请先登录!'); | ||
227 | + } else { | ||
228 | + location.href = decodeURIComponent(data.data); | ||
229 | + } | ||
230 | + } | ||
231 | + else if (data.message) { | ||
232 | + //showTip(data.message); | ||
233 | + showTip('领取失败<br><br>请稍候再试'); | ||
234 | + setCookie('_Coupon' + activityId, null); | ||
235 | + } | ||
236 | + | ||
237 | + }, | ||
238 | + error: function() { | ||
239 | + showTip('网络断开连接啦~'); | ||
240 | + } | ||
241 | + }); | ||
242 | +} | ||
243 | + | ||
244 | +/** | ||
245 | + * 获取活动所有的优惠券 | ||
246 | + */ | ||
247 | +function getAllCoupon(activityId, isApp) | ||
248 | +{ | ||
249 | + $.ajax({ | ||
250 | + type: 'POST', | ||
251 | + url: '/cuxiao/coupon/getall', | ||
252 | + data: 'activityId=' + activityId, | ||
253 | + dataType: 'json', | ||
254 | + success: function(data) { | ||
255 | + if (data.code == 200) { | ||
256 | + showTip('恭喜您,成功领取'); | ||
257 | + } | ||
258 | + else if (data.code == 201) { | ||
259 | + showTip('对不起,您已经领取过'); | ||
260 | + } | ||
261 | + else if (data.code == 400) { | ||
262 | + if (isApp) { | ||
263 | + showTip('请先登录!'); | ||
264 | + } else { | ||
265 | + location.href = decodeURIComponent(data.data); | ||
266 | + } | ||
267 | + } | ||
268 | + else if (data.message) { | ||
269 | + //showTip(data.message); | ||
270 | + showTip('系统繁忙,请稍候再试!'); | ||
271 | + } | ||
272 | + }, | ||
273 | + error: function() { | ||
274 | + showTip('网络断开连接啦~'); | ||
275 | + } | ||
276 | + }); | ||
277 | +} |
@@ -166,7 +166,7 @@ | @@ -166,7 +166,7 @@ | ||
166 | <script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> | 166 | <script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> |
167 | {{/if}} | 167 | {{/if}} |
168 | <script type="text/javascript" src="{{jsUrl}}/cuxiao/js/jquery.min.js"></script> | 168 | <script type="text/javascript" src="{{jsUrl}}/cuxiao/js/jquery.min.js"></script> |
169 | -<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/151201/coupon.mobile.1130.js"></script> | 169 | +<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/151201/coupon.mobile.1201.js"></script> |
170 | {{> layout/analysis}} | 170 | {{> layout/analysis}} |
171 | 171 | ||
172 | </body> | 172 | </body> |
@@ -206,7 +206,7 @@ | @@ -206,7 +206,7 @@ | ||
206 | <script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> | 206 | <script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> |
207 | {{/if}} | 207 | {{/if}} |
208 | <script type="text/javascript" src="{{jsUrl}}/cuxiao/js/jquery.min.js"></script> | 208 | <script type="text/javascript" src="{{jsUrl}}/cuxiao/js/jquery.min.js"></script> |
209 | -<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/151201/coupon.mobile.1130.js"></script> | 209 | +<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/151201/coupon.mobile.1201.js"></script> |
210 | {{> layout/analysis}} | 210 | {{> layout/analysis}} |
211 | 211 | ||
212 | </body> | 212 | </body> |
@@ -172,7 +172,7 @@ | @@ -172,7 +172,7 @@ | ||
172 | <input id="shareDesc" type="hidden" value="{{shareDesc}}"> | 172 | <input id="shareDesc" type="hidden" value="{{shareDesc}}"> |
173 | <script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> | 173 | <script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> |
174 | <script type="text/javascript" src="{{jsUrl}}/cuxiao/js/jquery.min.js"></script> | 174 | <script type="text/javascript" src="{{jsUrl}}/cuxiao/js/jquery.min.js"></script> |
175 | -<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/151201/coupon.mobile.1130.js"></script> | 175 | +<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/151201/coupon.mobile.1201.js"></script> |
176 | {{> layout/analysis}} | 176 | {{> layout/analysis}} |
177 | </body> | 177 | </body> |
178 | </html> | 178 | </html> |
@@ -216,7 +216,7 @@ | @@ -216,7 +216,7 @@ | ||
216 | <input id="shareDesc" type="hidden" value="{{shareDesc}}"> | 216 | <input id="shareDesc" type="hidden" value="{{shareDesc}}"> |
217 | <script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> | 217 | <script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> |
218 | <script type="text/javascript" src="{{jsUrl}}/cuxiao/js/jquery.min.js"></script> | 218 | <script type="text/javascript" src="{{jsUrl}}/cuxiao/js/jquery.min.js"></script> |
219 | -<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/151201/coupon.mobile.1130.js"></script> | 219 | +<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/151201/coupon.mobile.1201.js"></script> |
220 | {{> layout/analysis}} | 220 | {{> layout/analysis}} |
221 | </body> | 221 | </body> |
222 | </html> | 222 | </html> |
@@ -99,7 +99,7 @@ | @@ -99,7 +99,7 @@ | ||
99 | <input id="shareDesc" type="hidden" value="{{shareDesc}}"> | 99 | <input id="shareDesc" type="hidden" value="{{shareDesc}}"> |
100 | <script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> | 100 | <script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> |
101 | <script type="text/javascript" src="{{jsUrl}}/cuxiao/js/jquery.min.js"></script> | 101 | <script type="text/javascript" src="{{jsUrl}}/cuxiao/js/jquery.min.js"></script> |
102 | -<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/151201/coupon.mobile.1130.js"></script> | 102 | +<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/151201/coupon.mobile.1201.js"></script> |
103 | {{> layout/analysis}} | 103 | {{> layout/analysis}} |
104 | </body> | 104 | </body> |
105 | </html> | 105 | </html> |
@@ -119,7 +119,7 @@ | @@ -119,7 +119,7 @@ | ||
119 | <input id="shareDesc" type="hidden" value="{{shareDesc}}"> | 119 | <input id="shareDesc" type="hidden" value="{{shareDesc}}"> |
120 | <script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> | 120 | <script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> |
121 | <script type="text/javascript" src="{{jsUrl}}/cuxiao/js/jquery.min.js"></script> | 121 | <script type="text/javascript" src="{{jsUrl}}/cuxiao/js/jquery.min.js"></script> |
122 | -<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/151201/coupon.mobile.1130.js"></script> | 122 | +<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/151201/coupon.mobile.1201.js"></script> |
123 | {{> layout/analysis}} | 123 | {{> layout/analysis}} |
124 | </body> | 124 | </body> |
125 | </html> | 125 | </html> |
-
Please register or login to post a comment