do modify coupon cuxiao js
Showing
10 changed files
with
1153 additions
and
5 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 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 hd2"></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.1-12.10期间,点击页面各品牌领券按钮,即可获得对应品牌的专属券。</em> | ||
62 | + </li> | ||
63 | + <li class="clearfix"> | ||
64 | + <span>使用方法</span> | ||
65 | + <em>12.1-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="logo-coupon"> | ||
75 | + <ul> | ||
76 | + <li class="logo-coupon01 life"> | ||
77 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_166')), 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="15875"></a> | ||
79 | + </li> | ||
80 | + <li class="logo-coupon02 life"> | ||
81 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_201')), 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="15877"></a> | ||
83 | + </li> | ||
84 | + <li class="logo-coupon03 life"> | ||
85 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_626')), ENT_QUOTES, 'UTF-8').'"></a> | ||
86 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15879"></a> | ||
87 | + </li> | ||
88 | + <li class="logo-coupon04 life"> | ||
89 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_1024')), ENT_QUOTES, 'UTF-8').'"></a> | ||
90 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15881"></a> | ||
91 | + </li> | ||
92 | + <li class="logo-coupon05 life"> | ||
93 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_675')), ENT_QUOTES, 'UTF-8').'"></a> | ||
94 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15717"></a> | ||
95 | + </li> | ||
96 | + <li class="logo-coupon06 life"> | ||
97 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_801')), ENT_QUOTES, 'UTF-8').'"></a> | ||
98 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15885"></a> | ||
99 | + </li> | ||
100 | + <li class="logo-coupon07 life"> | ||
101 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_686')), ENT_QUOTES, 'UTF-8').'"></a> | ||
102 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15887"></a> | ||
103 | + </li> | ||
104 | + <li class="logo-coupon08 life"> | ||
105 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_501')), ENT_QUOTES, 'UTF-8').'"></a> | ||
106 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15889"></a> | ||
107 | + </li> | ||
108 | + <li class="logo-coupon09 life"> | ||
109 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_925')), ENT_QUOTES, 'UTF-8').'"></a> | ||
110 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15891"></a> | ||
111 | + </li> | ||
112 | + <li class="logo-coupon10 life"> | ||
113 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_932')), ENT_QUOTES, 'UTF-8').'"></a> | ||
114 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15893"></a> | ||
115 | + </li> | ||
116 | + <li class="logo-coupon11 life"> | ||
117 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_892')), ENT_QUOTES, 'UTF-8').'"></a> | ||
118 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15895"></a> | ||
119 | + </li> | ||
120 | + <li class="logo-coupon12 life"> | ||
121 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_849')), ENT_QUOTES, 'UTF-8').'"></a> | ||
122 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15899"></a> | ||
123 | + </li> | ||
124 | + <li class="logo-coupon13 life"> | ||
125 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_615')), ENT_QUOTES, 'UTF-8').'"></a> | ||
126 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15901"></a> | ||
127 | + </li> | ||
128 | + </ul> | ||
129 | + </div> | ||
130 | + </div> | ||
131 | + <div class="coupon-ft"> | ||
132 | + <div class="other-coupon"> | ||
133 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_boys')), ENT_QUOTES, 'UTF-8').'">男生</a> | ||
134 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_girls')), ENT_QUOTES, 'UTF-8').'">女生</a> | ||
135 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_kids')), ENT_QUOTES, 'UTF-8').'">童装</a> | ||
136 | + </div> | ||
137 | + </div> | ||
138 | + </div> | ||
139 | +<input id="shareLink" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareLink')), ENT_QUOTES, 'UTF-8').'"> | ||
140 | +<input id="shareImg" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareImg')), ENT_QUOTES, 'UTF-8').'"> | ||
141 | +<input id="shareTitle" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareTitle')), 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> | ||
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> | ||
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> | ||
148 | +<script> | ||
149 | + (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\': | ||
150 | + new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0], | ||
151 | + j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src= | ||
152 | + \'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f); | ||
153 | + })(window,document,\'script\',\'dataLayer\',\'GTM-W958MG\'); | ||
154 | +</script> | ||
155 | +<!-- End Google Tag Manager --> | ||
156 | +<script type="text/javascript"> | ||
157 | + var _hmt = _hmt || []; | ||
158 | + (function() { | ||
159 | + var hm = document.createElement("script"); | ||
160 | + hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311"; | ||
161 | + var s = document.getElementsByTagName("script")[0]; | ||
162 | + s.parentNode.insertBefore(hm, s); | ||
163 | + })(); | ||
164 | +</script> | ||
165 | +<script> | ||
166 | + var _hmt = _hmt || []; | ||
167 | + (function() { | ||
168 | + var hm = document.createElement("script"); | ||
169 | + hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841"; | ||
170 | + var s = document.getElementsByTagName("script")[0]; | ||
171 | + s.parentNode.insertBefore(hm, s); | ||
172 | + })(); | ||
173 | +</script> | ||
174 | +'.'</body> | ||
175 | +</html>'; | ||
176 | +} | ||
177 | +?> |
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"></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.1-12.6期间,点击页面各品牌领券按钮,即可获得对应品牌的专属券。</em> | ||
62 | + </li> | ||
63 | + <li class="clearfix"> | ||
64 | + <span>使用方法</span> | ||
65 | + <em>12.1-12.6期间,在结算页面选择使用相应的优惠券。</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"> | ||
76 | + <li> | ||
77 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_350')), 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="15659"></a> | ||
79 | + </li> | ||
80 | + <li> | ||
81 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_160')), 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="15663"></a> | ||
83 | + </li> | ||
84 | + </ul> | ||
85 | + <ul class="img-coupon02"> | ||
86 | + <li> | ||
87 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_341')), 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="15667"></a> | ||
89 | + </li> | ||
90 | + <li> | ||
91 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_710')), 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="15669"></a> | ||
93 | + </li> | ||
94 | + </ul> | ||
95 | + <ul class="img-coupon03"> | ||
96 | + <li> | ||
97 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_471')), ENT_QUOTES, 'UTF-8').'"></a> | ||
98 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15671"></a> | ||
99 | + </li> | ||
100 | + <li> | ||
101 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_495')), ENT_QUOTES, 'UTF-8').'"></a> | ||
102 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15675"></a> | ||
103 | + </li> | ||
104 | + </ul> | ||
105 | + <ul class="img-coupon04"> | ||
106 | + <li> | ||
107 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_235')), 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="15681"></a> | ||
109 | + </li> | ||
110 | + <li> | ||
111 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_583')), 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="15683"></a> | ||
113 | + </li> | ||
114 | + </ul> | ||
115 | + </div> | ||
116 | + <div class="logo-coupon"> | ||
117 | + <ul> | ||
118 | + <li class="logo-coupon01"> | ||
119 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_417')), 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="15665"></a> | ||
121 | + </li> | ||
122 | + <li class="logo-coupon02"> | ||
123 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_672')), ENT_QUOTES, 'UTF-8').'"></a> | ||
124 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15673"></a> | ||
125 | + </li> | ||
126 | + <li class="logo-coupon03"> | ||
127 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_589')), ENT_QUOTES, 'UTF-8').'"></a> | ||
128 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15679"></a> | ||
129 | + </li> | ||
130 | + <li class="logo-coupon04"> | ||
131 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_707')), ENT_QUOTES, 'UTF-8').'"></a> | ||
132 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15699"></a> | ||
133 | + </li> | ||
134 | + <li class="logo-coupon05"> | ||
135 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_550')), ENT_QUOTES, 'UTF-8').'"></a> | ||
136 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15687"></a> | ||
137 | + </li> | ||
138 | + <li class="logo-coupon06"> | ||
139 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_600')), ENT_QUOTES, 'UTF-8').'"></a> | ||
140 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15693"></a> | ||
141 | + </li> | ||
142 | + </ul> | ||
143 | + </div> | ||
144 | + <div class="floor-header top-recommend"></div> | ||
145 | + <div class="img-coupon clearfix"> | ||
146 | + <ul class="img-coupon05"> | ||
147 | + <li> | ||
148 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_402')), ENT_QUOTES, 'UTF-8').'"></a> | ||
149 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15685"></a> | ||
150 | + </li> | ||
151 | + <li> | ||
152 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_720')), ENT_QUOTES, 'UTF-8').'"></a> | ||
153 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15689"></a> | ||
154 | + </li> | ||
155 | + </ul> | ||
156 | + <ul class="img-coupon06"> | ||
157 | + <li> | ||
158 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_138')), 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="15691"></a> | ||
160 | + </li> | ||
161 | + <li> | ||
162 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_506')), 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="15695"></a> | ||
164 | + </li> | ||
165 | + </ul> | ||
166 | + <ul class="img-coupon07"> | ||
167 | + <li> | ||
168 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_419')), ENT_QUOTES, 'UTF-8').'"></a> | ||
169 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15697"></a> | ||
170 | + </li> | ||
171 | + <li> | ||
172 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_581')), ENT_QUOTES, 'UTF-8').'"></a> | ||
173 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15705"></a> | ||
174 | + </li> | ||
175 | + </ul> | ||
176 | + <ul class="img-coupon08"> | ||
177 | + <li> | ||
178 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_722')), 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="15707"></a> | ||
180 | + </li> | ||
181 | + <li> | ||
182 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_191')), ENT_QUOTES, 'UTF-8').'"></a> | ||
183 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15751"></a> | ||
184 | + </li> | ||
185 | + </ul> | ||
186 | + </div> | ||
187 | + <div class="logo-coupon"> | ||
188 | + <ul> | ||
189 | + <li class="logo-coupon07"> | ||
190 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_152')), ENT_QUOTES, 'UTF-8').'"></a> | ||
191 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15701"></a> | ||
192 | + </li> | ||
193 | + <li class="logo-coupon08"> | ||
194 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_464')), ENT_QUOTES, 'UTF-8').'"></a> | ||
195 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15703"></a> | ||
196 | + </li> | ||
197 | + <li class="logo-coupon09"> | ||
198 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_102')), ENT_QUOTES, 'UTF-8').'"></a> | ||
199 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15709"></a> | ||
200 | + </li> | ||
201 | + <li class="logo-coupon10"> | ||
202 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_851')), ENT_QUOTES, 'UTF-8').'"></a> | ||
203 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15711"></a> | ||
204 | + </li> | ||
205 | + <li class="logo-coupon11"> | ||
206 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_699')), ENT_QUOTES, 'UTF-8').'"></a> | ||
207 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15713"></a> | ||
208 | + </li> | ||
209 | + <li class="logo-coupon12"> | ||
210 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_103')), ENT_QUOTES, 'UTF-8').'"></a> | ||
211 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15733"></a> | ||
212 | + </li> | ||
213 | + </ul> | ||
214 | + </div> | ||
215 | + </div> | ||
216 | + <div class="coupon-ft"> | ||
217 | + <div class="other-coupon"> | ||
218 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_girls')), ENT_QUOTES, 'UTF-8').'">女生</a> | ||
219 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_kids')), ENT_QUOTES, 'UTF-8').'">童装</a> | ||
220 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_lifestyle')), ENT_QUOTES, 'UTF-8').'">创意生活</a> | ||
221 | + </div> | ||
222 | + </div> | ||
223 | + </div> | ||
224 | +<input id="shareLink" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareLink')), ENT_QUOTES, 'UTF-8').'"> | ||
225 | +<input id="shareImg" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareImg')), ENT_QUOTES, 'UTF-8').'"> | ||
226 | +<input id="shareTitle" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareTitle')), 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> | ||
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> | ||
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> | ||
233 | +<script> | ||
234 | + (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\': | ||
235 | + new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0], | ||
236 | + j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src= | ||
237 | + \'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f); | ||
238 | + })(window,document,\'script\',\'dataLayer\',\'GTM-W958MG\'); | ||
239 | +</script> | ||
240 | +<!-- End Google Tag Manager --> | ||
241 | +<script type="text/javascript"> | ||
242 | + var _hmt = _hmt || []; | ||
243 | + (function() { | ||
244 | + var hm = document.createElement("script"); | ||
245 | + hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311"; | ||
246 | + var s = document.getElementsByTagName("script")[0]; | ||
247 | + s.parentNode.insertBefore(hm, s); | ||
248 | + })(); | ||
249 | +</script> | ||
250 | +<script> | ||
251 | + var _hmt = _hmt || []; | ||
252 | + (function() { | ||
253 | + var hm = document.createElement("script"); | ||
254 | + hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841"; | ||
255 | + var s = document.getElementsByTagName("script")[0]; | ||
256 | + s.parentNode.insertBefore(hm, s); | ||
257 | + })(); | ||
258 | +</script> | ||
259 | +'.' | ||
260 | +</body> | ||
261 | +</html>'; | ||
262 | +} | ||
263 | +?> |
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 hd2"></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.1-12.10期间,点击页面各品牌领券按钮,即可获得对应品牌的专属券。</em> | ||
62 | + </li> | ||
63 | + <li class="clearfix"> | ||
64 | + <span>使用方法</span> | ||
65 | + <em>12.1-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="logo-coupon"> | ||
75 | + <ul> | ||
76 | + <li class="logo-coupon01 kid"> | ||
77 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_907')), 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="15859"></a> | ||
79 | + </li> | ||
80 | + <li class="logo-coupon02 kid"> | ||
81 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_600')), 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="15693"></a> | ||
83 | + </li> | ||
84 | + <li class="logo-coupon03 kid"> | ||
85 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_888')), ENT_QUOTES, 'UTF-8').'"></a> | ||
86 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15863"></a> | ||
87 | + </li> | ||
88 | + <li class="logo-coupon04 kid"> | ||
89 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_855')), ENT_QUOTES, 'UTF-8').'"></a> | ||
90 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15865"></a> | ||
91 | + </li> | ||
92 | + <li class="logo-coupon05 kid"> | ||
93 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_203')), ENT_QUOTES, 'UTF-8').'"></a> | ||
94 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15867"></a> | ||
95 | + </li> | ||
96 | + <li class="logo-coupon06 kid"> | ||
97 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_800')), ENT_QUOTES, 'UTF-8').'"></a> | ||
98 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15869"></a> | ||
99 | + </li> | ||
100 | + <li class="logo-coupon07 kid"> | ||
101 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_784')), ENT_QUOTES, 'UTF-8').'"></a> | ||
102 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15871"></a> | ||
103 | + </li> | ||
104 | + <li class="logo-coupon08 kid"> | ||
105 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_876')), ENT_QUOTES, 'UTF-8').'"></a> | ||
106 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="16145"></a> | ||
107 | + </li> | ||
108 | + </ul> | ||
109 | + </div> | ||
110 | + </div> | ||
111 | + <div class="coupon-ft"> | ||
112 | + <div class="other-coupon"> | ||
113 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_boys')), ENT_QUOTES, 'UTF-8').'">男生</a> | ||
114 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_girls')), ENT_QUOTES, 'UTF-8').'">女生</a> | ||
115 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_lifestyle')), ENT_QUOTES, 'UTF-8').'">创意生活</a> | ||
116 | + </div> | ||
117 | + </div> | ||
118 | + </div> | ||
119 | +<input id="shareLink" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareLink')), ENT_QUOTES, 'UTF-8').'"> | ||
120 | +<input id="shareImg" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareImg')), ENT_QUOTES, 'UTF-8').'"> | ||
121 | +<input id="shareTitle" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareTitle')), 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> | ||
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> | ||
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> | ||
128 | +<script> | ||
129 | + (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\': | ||
130 | + new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0], | ||
131 | + j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src= | ||
132 | + \'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f); | ||
133 | + })(window,document,\'script\',\'dataLayer\',\'GTM-W958MG\'); | ||
134 | +</script> | ||
135 | +<!-- End Google Tag Manager --> | ||
136 | +<script type="text/javascript"> | ||
137 | + var _hmt = _hmt || []; | ||
138 | + (function() { | ||
139 | + var hm = document.createElement("script"); | ||
140 | + hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311"; | ||
141 | + var s = document.getElementsByTagName("script")[0]; | ||
142 | + s.parentNode.insertBefore(hm, s); | ||
143 | + })(); | ||
144 | +</script> | ||
145 | +<script> | ||
146 | + var _hmt = _hmt || []; | ||
147 | + (function() { | ||
148 | + var hm = document.createElement("script"); | ||
149 | + hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841"; | ||
150 | + var s = document.getElementsByTagName("script")[0]; | ||
151 | + s.parentNode.insertBefore(hm, s); | ||
152 | + })(); | ||
153 | +</script> | ||
154 | +'.'</body> | ||
155 | +</html>'; | ||
156 | +} | ||
157 | +?> |
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"></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.1-12.6期间,点击页面各品牌领券按钮,即可获得对应品牌的专属券。</em> | ||
62 | + </li> | ||
63 | + <li class="clearfix"> | ||
64 | + <span>使用方法</span> | ||
65 | + <em>12.1-12.6期间,在结算页面选择使用相应的优惠券。</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 girl"> | ||
76 | + <li> | ||
77 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_570')), 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="15755"></a> | ||
79 | + </li> | ||
80 | + <li> | ||
81 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_864')), 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="15761"></a> | ||
83 | + </li> | ||
84 | + </ul> | ||
85 | + <ul class="img-coupon02 girl"> | ||
86 | + <li> | ||
87 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_824')), 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="15765"></a> | ||
89 | + </li> | ||
90 | + <li> | ||
91 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_536')), 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="15767"></a> | ||
93 | + </li> | ||
94 | + </ul> | ||
95 | + <ul class="img-coupon03 girl"> | ||
96 | + <li> | ||
97 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_257')), ENT_QUOTES, 'UTF-8').'"></a> | ||
98 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15773"></a> | ||
99 | + </li> | ||
100 | + <li> | ||
101 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_342')), ENT_QUOTES, 'UTF-8').'"></a> | ||
102 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15775"></a> | ||
103 | + </li> | ||
104 | + </ul> | ||
105 | + <ul class="img-coupon04 girl"> | ||
106 | + <li> | ||
107 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_354')), 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="15777"></a> | ||
109 | + </li> | ||
110 | + <li> | ||
111 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_60')), 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="15663"></a> | ||
113 | + </li> | ||
114 | + </ul> | ||
115 | + </div> | ||
116 | + | ||
117 | + <div class="logo-coupon"> | ||
118 | + <ul> | ||
119 | + <li class="logo-coupon01 girl"> | ||
120 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_481')), ENT_QUOTES, 'UTF-8').'"></a> | ||
121 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15757"></a> | ||
122 | + </li> | ||
123 | + <li class="logo-coupon02 girl"> | ||
124 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_450')), ENT_QUOTES, 'UTF-8').'"></a> | ||
125 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15759"></a> | ||
126 | + </li> | ||
127 | + <li class="logo-coupon03 girl"> | ||
128 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_256')), 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="15763"></a> | ||
130 | + </li> | ||
131 | + <li class="logo-coupon04 girl"> | ||
132 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_701')), 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="15769"></a> | ||
134 | + </li> | ||
135 | + <li class="logo-coupon05 girl"> | ||
136 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_506')), ENT_QUOTES, 'UTF-8').'"></a> | ||
137 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15695"></a> | ||
138 | + </li> | ||
139 | + <li class="logo-coupon06 girl"> | ||
140 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_569')), ENT_QUOTES, 'UTF-8').'"></a> | ||
141 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15779"></a> | ||
142 | + </li> | ||
143 | + </ul> | ||
144 | + </div> | ||
145 | + | ||
146 | + <div class="floor-header top-recommend"></div> | ||
147 | + <div class="img-coupon clearfix"> | ||
148 | + <ul class="img-coupon05 girl"> | ||
149 | + <li> | ||
150 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_324')), 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="15783"></a> | ||
152 | + </li> | ||
153 | + <li> | ||
154 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_589')), 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="15679"></a> | ||
156 | + </li> | ||
157 | + </ul> | ||
158 | + <ul class="img-coupon06 girl"> | ||
159 | + <li> | ||
160 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_191')), ENT_QUOTES, 'UTF-8').'"></a> | ||
161 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15751"></a> | ||
162 | + </li> | ||
163 | + <li> | ||
164 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_4')), ENT_QUOTES, 'UTF-8').'"></a> | ||
165 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15715"></a> | ||
166 | + </li> | ||
167 | + </ul> | ||
168 | + <ul class="img-coupon07 girl"> | ||
169 | + <li> | ||
170 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_768')), 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="15795"></a> | ||
172 | + </li> | ||
173 | + <li> | ||
174 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_649')), 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="15799"></a> | ||
176 | + </li> | ||
177 | + </ul> | ||
178 | + <ul class="img-coupon08 girl"> | ||
179 | + <li> | ||
180 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_1026')), ENT_QUOTES, 'UTF-8').'"></a> | ||
181 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15811"></a> | ||
182 | + </li> | ||
183 | + <li> | ||
184 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_1027')), ENT_QUOTES, 'UTF-8').'"></a> | ||
185 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15813"></a> | ||
186 | + </li> | ||
187 | + </ul> | ||
188 | + </div> | ||
189 | + | ||
190 | + <div class="logo-coupon"> | ||
191 | + <ul> | ||
192 | + <li class="logo-coupon07 girl"> | ||
193 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_981')), ENT_QUOTES, 'UTF-8').'"></a> | ||
194 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15787"></a> | ||
195 | + </li> | ||
196 | + <li class="logo-coupon08 girl"> | ||
197 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_402')), ENT_QUOTES, 'UTF-8').'"></a> | ||
198 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15793"></a> | ||
199 | + </li> | ||
200 | + <li class="logo-coupon09 girl"> | ||
201 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_1021')), ENT_QUOTES, 'UTF-8').'"></a> | ||
202 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15709"></a> | ||
203 | + </li> | ||
204 | + <li class="logo-coupon10 girl"> | ||
205 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_860')), ENT_QUOTES, 'UTF-8').'"></a> | ||
206 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15801"></a> | ||
207 | + </li> | ||
208 | + <li class="logo-coupon11 girl"> | ||
209 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_435')), ENT_QUOTES, 'UTF-8').'"></a> | ||
210 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15803"></a> | ||
211 | + </li> | ||
212 | + <li class="logo-coupon12 girl"> | ||
213 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_327')), ENT_QUOTES, 'UTF-8').'"></a> | ||
214 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15805"></a> | ||
215 | + </li> | ||
216 | + <li class="logo-coupon13 girl"> | ||
217 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_505')), ENT_QUOTES, 'UTF-8').'"></a> | ||
218 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15807"></a> | ||
219 | + </li> | ||
220 | + <li class="logo-coupon14 girl"> | ||
221 | + <a class="enter-store" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_987')), ENT_QUOTES, 'UTF-8').'"></a> | ||
222 | + <a class="get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="15809"></a> | ||
223 | + </li> | ||
224 | + </ul> | ||
225 | + </div> | ||
226 | + </div> | ||
227 | + | ||
228 | + <div class="coupon-ft"> | ||
229 | + <div class="other-coupon"> | ||
230 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_boys')), ENT_QUOTES, 'UTF-8').'">男生</a> | ||
231 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_kids')), ENT_QUOTES, 'UTF-8').'">童装</a> | ||
232 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_lifestyle')), ENT_QUOTES, 'UTF-8').'">创意生活</a> | ||
233 | + </div> | ||
234 | + </div> | ||
235 | + </div> | ||
236 | +<input id="shareLink" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareLink')), ENT_QUOTES, 'UTF-8').'"> | ||
237 | +<input id="shareImg" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareImg')), ENT_QUOTES, 'UTF-8').'"> | ||
238 | +<input id="shareTitle" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareTitle')), 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> | ||
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> | ||
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> | ||
245 | +<script> | ||
246 | + (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\': | ||
247 | + new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0], | ||
248 | + j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src= | ||
249 | + \'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f); | ||
250 | + })(window,document,\'script\',\'dataLayer\',\'GTM-W958MG\'); | ||
251 | +</script> | ||
252 | +<!-- End Google Tag Manager --> | ||
253 | +<script type="text/javascript"> | ||
254 | + var _hmt = _hmt || []; | ||
255 | + (function() { | ||
256 | + var hm = document.createElement("script"); | ||
257 | + hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311"; | ||
258 | + var s = document.getElementsByTagName("script")[0]; | ||
259 | + s.parentNode.insertBefore(hm, s); | ||
260 | + })(); | ||
261 | +</script> | ||
262 | +<script> | ||
263 | + var _hmt = _hmt || []; | ||
264 | + (function() { | ||
265 | + var hm = document.createElement("script"); | ||
266 | + hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841"; | ||
267 | + var s = document.getElementsByTagName("script")[0]; | ||
268 | + s.parentNode.insertBefore(hm, s); | ||
269 | + })(); | ||
270 | +</script> | ||
271 | +'.'</body> | ||
272 | +</html>'; | ||
273 | +} | ||
274 | +?> |
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('恭喜你成功领取品牌优惠券'); | ||
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 | +} |
@@ -19,7 +19,7 @@ $('#get-all-coupon').click(function() { | @@ -19,7 +19,7 @@ $('#get-all-coupon').click(function() { | ||
19 | }); | 19 | }); |
20 | 20 | ||
21 | /* 检查是否有在领取中的券,有则直接领取 */ | 21 | /* 检查是否有在领取中的券,有则直接领取 */ |
22 | -if (userIsLogged === 'Y') { | 22 | +if (userIsLogged) { |
23 | var cookieCouponId = cookie('_Coupon' + activityId); | 23 | var cookieCouponId = cookie('_Coupon' + activityId); |
24 | if (cookieCouponId && !isNaN(cookieCouponId)) { | 24 | if (cookieCouponId && !isNaN(cookieCouponId)) { |
25 | getNamedCoupon(activityId, cookieCouponId, isApp, userIsLogged); | 25 | getNamedCoupon(activityId, cookieCouponId, isApp, userIsLogged); |
@@ -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.js"></script> | 209 | +<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/151201/coupon.mobile.1130.js"></script> |
210 | {{> layout/analysis}} | 210 | {{> layout/analysis}} |
211 | 211 | ||
212 | </body> | 212 | </body> |
@@ -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.js"></script> | 219 | +<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/151201/coupon.mobile.1130.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.js"></script> | 102 | +<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/151201/coupon.mobile.1130.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.js"></script> | 122 | +<script type="text/javascript" src="{{jsUrl}}/cuxiao/js/151201/coupon.mobile.1130.js"></script> |
123 | {{> layout/analysis}} | 123 | {{> layout/analysis}} |
124 | </body> | 124 | </body> |
125 | </html> | 125 | </html> |
-
Please register or login to post a comment