Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop
Showing
26 changed files
with
1882 additions
and
65 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 http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
28 | + <meta charset="utf-8"> | ||
29 | + <title>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('staticTitle')), ENT_QUOTES, 'UTF-8').'</title> | ||
30 | + <meta name="apple-mobile-web-app-title" content="SUMMER SALE"> | ||
31 | + <meta name="format-detection" content="telephone=no"> | ||
32 | + <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui" media="(device-height: 568px)"> | ||
33 | + <meta name="apple-mobile-web-app-capable" content="yes"> | ||
34 | + <meta name="apple-mobile-web-app-status-bar-style" content="grey"> | ||
35 | + <link rel="stylesheet" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/css/final/sale2.css"> | ||
36 | + <script> | ||
37 | + (function(doc, win) { | ||
38 | + var docEl = doc.documentElement; | ||
39 | + (function() { | ||
40 | + var clientWidth = docEl.clientWidth; | ||
41 | + if (!clientWidth) { | ||
42 | + return; | ||
43 | + } | ||
44 | + docEl.style.fontSize = 20 * (clientWidth / 320) + \'px\'; | ||
45 | + }()); | ||
46 | + })(document, window); | ||
47 | + </script> | ||
48 | +</head> | ||
49 | +<body class="keBody"> | ||
50 | +'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('weixinShare')))) ? '<div id="wx_pic" style="width:0px; height:0px; overflow:hidden"><img src="http://img11.static.yhbimg.com/couponImg/2016/01/07/07/016f63f5bb1f12cdb19402371323d26798.png"/></div> | ||
51 | +' : '').' | ||
52 | +<div class="coupon-christmas" show="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('showPopupFlag')), ENT_QUOTES, 'UTF-8').'"> | ||
53 | + <div class="coupon-top"> | ||
54 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/top-bg.png" alt=""> | ||
55 | + <a class="go-check" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('myCouponUrl')), ENT_QUOTES, 'UTF-8').'"></a> | ||
56 | + <a class="share-btn" href="javascript:;"></a> | ||
57 | + </div> | ||
58 | + <div class="coupon-bottom"> | ||
59 | + <div class="coupon-banner"> | ||
60 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_1')), ENT_QUOTES, 'UTF-8').'"></a> | ||
61 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_2')), ENT_QUOTES, 'UTF-8').'"></a> | ||
62 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_3')), ENT_QUOTES, 'UTF-8').'"></a> | ||
63 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_4')), ENT_QUOTES, 'UTF-8').'"></a> | ||
64 | + </div> | ||
65 | + <div class="bottom-btn"> | ||
66 | + <a class="follow-yoho" href="http://mp.weixin.qq.com/s?__biz=MjM5ODI5MDA4MA==&mid=201849402&idx=1&sn=c0089812f9769d82e0075f69d771f6e1#rd"></a> | ||
67 | + <a class="download-yoho" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('downAppUrl')), ENT_QUOTES, 'UTF-8').'"></a> | ||
68 | + </div> | ||
69 | + </div> | ||
70 | + <div class="coupon-ft"> | ||
71 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/14.png"> | ||
72 | + </div> | ||
73 | +</div> | ||
74 | +<div class="modal"></div> | ||
75 | +<div class="dialog-box geted"> | ||
76 | + <div class="dialog-inner"> | ||
77 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/geted-2.png" alt=""/> | ||
78 | + <span class="dialog-close"></span> | ||
79 | + </div> | ||
80 | +</div> | ||
81 | + | ||
82 | +<div class="dialog-box fail"> | ||
83 | + <div class="dialog-inner"> | ||
84 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/fail-2.png" alt=""/> | ||
85 | + <span class="refresh-btn"></span> | ||
86 | + </div> | ||
87 | +</div> | ||
88 | +<input id="shareLink" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareLink')), ENT_QUOTES, 'UTF-8').'"> | ||
89 | +<input id="shareImg" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareImg')), ENT_QUOTES, 'UTF-8').'"> | ||
90 | +<input id="shareTitle" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareTitle')), ENT_QUOTES, 'UTF-8').'"> | ||
91 | +<input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'"> | ||
92 | +<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script> | ||
93 | +<script> | ||
94 | + //提示分享 | ||
95 | + $(\'.share-btn\').click(function () { | ||
96 | + $(\'.modal\').fadeIn(); | ||
97 | + }); | ||
98 | + //关闭提示分享 | ||
99 | + $(\'.modal\').click(function () { | ||
100 | + $(this).fadeOut(); | ||
101 | + }); | ||
102 | + | ||
103 | + //提示已领过券 | ||
104 | + if ($(\'.coupon-christmas\').attr(\'show\') === \'1\') { | ||
105 | + $(\'.dialog-box.geted\').show(); | ||
106 | + } | ||
107 | + //提示领券失败 | ||
108 | + else if ($(\'.coupon-christmas\').attr(\'show\') === \'2\') { | ||
109 | + $(\'.dialog-box.fail\').show(); | ||
110 | + } | ||
111 | + | ||
112 | + //关闭提示 | ||
113 | + $(\'.dialog-close\').click(function(){ | ||
114 | + $(this).parents(\'.dialog-box\').fadeOut(); | ||
115 | + }); | ||
116 | + //刷新页面 | ||
117 | + $(\'.refresh-btn\').click(function() { | ||
118 | + location.reload(); | ||
119 | + }); | ||
120 | +</script> | ||
121 | +'.((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> | ||
122 | +<script type="text/javascript" charset="utf-8" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/share.weixin.js"></script> | ||
123 | +' : '').''.'<!-- Google Tag Manager --> | ||
124 | +<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> | ||
125 | +<script> | ||
126 | + (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\': | ||
127 | + new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0], | ||
128 | + j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src= | ||
129 | + \'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f); | ||
130 | + })(window,document,\'script\',\'dataLayer\',\'GTM-W958MG\'); | ||
131 | +</script> | ||
132 | +<!-- End Google Tag Manager --> | ||
133 | +<script type="text/javascript"> | ||
134 | + var _hmt = _hmt || []; | ||
135 | + (function() { | ||
136 | + var hm = document.createElement("script"); | ||
137 | + hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311"; | ||
138 | + var s = document.getElementsByTagName("script")[0]; | ||
139 | + s.parentNode.insertBefore(hm, s); | ||
140 | + })(); | ||
141 | +</script> | ||
142 | +<script> | ||
143 | + var _hmt = _hmt || []; | ||
144 | + (function() { | ||
145 | + var hm = document.createElement("script"); | ||
146 | + hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841"; | ||
147 | + var s = document.getElementsByTagName("script")[0]; | ||
148 | + s.parentNode.insertBefore(hm, s); | ||
149 | + })(); | ||
150 | +</script> | ||
151 | +'.'</body> | ||
152 | +</html>'; | ||
153 | +} | ||
154 | +?> |
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 http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
28 | + <meta charset="utf-8"> | ||
29 | + <title>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('staticTitle')), ENT_QUOTES, 'UTF-8').'</title> | ||
30 | + <meta name="apple-mobile-web-app-title" content="SUMMER SALE"> | ||
31 | + <meta name="format-detection" content="telephone=no"> | ||
32 | + <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui" media="(device-height: 568px)"> | ||
33 | + <meta name="apple-mobile-web-app-capable" content="yes"> | ||
34 | + <meta name="apple-mobile-web-app-status-bar-style" content="grey"> | ||
35 | + <link rel="stylesheet" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/css/final/sale2.css"> | ||
36 | + <script> | ||
37 | + (function(doc, win) { | ||
38 | + var docEl = doc.documentElement; | ||
39 | + (function() { | ||
40 | + var clientWidth = docEl.clientWidth; | ||
41 | + if (!clientWidth) { | ||
42 | + return; | ||
43 | + } | ||
44 | + docEl.style.fontSize = 20 * (clientWidth / 320) + \'px\'; | ||
45 | + }()); | ||
46 | + })(document, window); | ||
47 | + </script> | ||
48 | +</head> | ||
49 | +<body class="keBody"> | ||
50 | +'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('weixinShare')))) ? '<div id="wx_pic" style="width:0px; height:0px; overflow:hidden"><img src="http://img11.static.yhbimg.com/couponImg/2016/01/25/03/01245f0ab37f0c99b77d2c5b6cf11c2265.png"/></div> | ||
51 | +' : '').' | ||
52 | +<div class="coupon-christmas" show="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('showPopupFlag')), ENT_QUOTES, 'UTF-8').'"> | ||
53 | + <div class="coupon-top"> | ||
54 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/top-bg.png" alt=""> | ||
55 | + <a class="go-check" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('myCouponUrl')), ENT_QUOTES, 'UTF-8').'"></a> | ||
56 | + <a class="share-btn" href="javascript:;"></a> | ||
57 | + </div> | ||
58 | + <div class="coupon-bottom"> | ||
59 | + <div class="coupon-banner"> | ||
60 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_1')), ENT_QUOTES, 'UTF-8').'"></a> | ||
61 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_2')), ENT_QUOTES, 'UTF-8').'"></a> | ||
62 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_3')), ENT_QUOTES, 'UTF-8').'"></a> | ||
63 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_4')), ENT_QUOTES, 'UTF-8').'"></a> | ||
64 | + </div> | ||
65 | + <div class="bottom-btn"> | ||
66 | + <a class="follow-yoho" href="http://mp.weixin.qq.com/s?__biz=MjM5ODI5MDA4MA==&mid=201849402&idx=1&sn=c0089812f9769d82e0075f69d771f6e1#rd"></a> | ||
67 | + <a class="download-yoho" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('downAppUrl')), ENT_QUOTES, 'UTF-8').'"></a> | ||
68 | + </div> | ||
69 | + </div> | ||
70 | + <div class="coupon-ft"> | ||
71 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/14.png"> | ||
72 | + </div> | ||
73 | +</div> | ||
74 | +<div class="modal"></div> | ||
75 | +<div class="dialog-box geted"> | ||
76 | + <div class="dialog-inner"> | ||
77 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/geted.png" alt=""/> | ||
78 | + <span class="dialog-close"></span> | ||
79 | + </div> | ||
80 | +</div> | ||
81 | + | ||
82 | +<div class="dialog-box fail"> | ||
83 | + <div class="dialog-inner"> | ||
84 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/fail.png" alt=""/> | ||
85 | + <span class="refresh-btn"></span> | ||
86 | + </div> | ||
87 | +</div> | ||
88 | +<input id="shareLink" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareLink')), ENT_QUOTES, 'UTF-8').'"> | ||
89 | +<input id="shareImg" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareImg')), ENT_QUOTES, 'UTF-8').'"> | ||
90 | +<input id="shareTitle" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareTitle')), ENT_QUOTES, 'UTF-8').'"> | ||
91 | +<input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'"> | ||
92 | +<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script> | ||
93 | +<script> | ||
94 | + //提示分享 | ||
95 | + $(\'.share-btn\').click(function () { | ||
96 | + $(\'.modal\').fadeIn(); | ||
97 | + }); | ||
98 | + //关闭提示分享 | ||
99 | + $(\'.modal\').click(function () { | ||
100 | + $(this).fadeOut(); | ||
101 | + }); | ||
102 | + | ||
103 | + //提示已领过券 | ||
104 | + if ($(\'.coupon-christmas\').attr(\'show\') === \'1\') { | ||
105 | + $(\'.dialog-box.geted\').show(); | ||
106 | + } | ||
107 | + //提示领券失败 | ||
108 | + else if ($(\'.coupon-christmas\').attr(\'show\') === \'2\') { | ||
109 | + $(\'.dialog-box.fail\').show(); | ||
110 | + } | ||
111 | + | ||
112 | + //关闭提示 | ||
113 | + $(\'.dialog-close\').click(function(){ | ||
114 | + $(this).parents(\'.dialog-box\').fadeOut(); | ||
115 | + }); | ||
116 | + //刷新页面 | ||
117 | + $(\'.refresh-btn\').click(function() { | ||
118 | + location.reload(); | ||
119 | + }); | ||
120 | +</script> | ||
121 | +'.((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> | ||
122 | +<script type="text/javascript" charset="utf-8" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/share.weixin.js"></script> | ||
123 | +' : '').''.'<!-- Google Tag Manager --> | ||
124 | +<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> | ||
125 | +<script> | ||
126 | + (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\': | ||
127 | + new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0], | ||
128 | + j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src= | ||
129 | + \'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f); | ||
130 | + })(window,document,\'script\',\'dataLayer\',\'GTM-W958MG\'); | ||
131 | +</script> | ||
132 | +<!-- End Google Tag Manager --> | ||
133 | +<script type="text/javascript"> | ||
134 | + var _hmt = _hmt || []; | ||
135 | + (function() { | ||
136 | + var hm = document.createElement("script"); | ||
137 | + hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311"; | ||
138 | + var s = document.getElementsByTagName("script")[0]; | ||
139 | + s.parentNode.insertBefore(hm, s); | ||
140 | + })(); | ||
141 | +</script> | ||
142 | +<script> | ||
143 | + var _hmt = _hmt || []; | ||
144 | + (function() { | ||
145 | + var hm = document.createElement("script"); | ||
146 | + hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841"; | ||
147 | + var s = document.getElementsByTagName("script")[0]; | ||
148 | + s.parentNode.insertBefore(hm, s); | ||
149 | + })(); | ||
150 | +</script> | ||
151 | +'.'</body> | ||
152 | +</html>'; | ||
153 | +} | ||
154 | +?> |
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 http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
28 | + <meta charset="utf-8"> | ||
29 | + <title>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('staticTitle')), ENT_QUOTES, 'UTF-8').'</title> | ||
30 | + <meta name="apple-mobile-web-app-title" content="SUMMER SALE"> | ||
31 | + <meta name="format-detection" content="telephone=no"> | ||
32 | + <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui" media="(device-height: 568px)"> | ||
33 | + <meta name="apple-mobile-web-app-capable" content="yes"> | ||
34 | + <meta name="apple-mobile-web-app-status-bar-style" content="grey"> | ||
35 | + <link rel="stylesheet" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/css/final/sale2.css"> | ||
36 | + <script> | ||
37 | + (function(doc, win) { | ||
38 | + var docEl = doc.documentElement; | ||
39 | + (function() { | ||
40 | + var clientWidth = docEl.clientWidth; | ||
41 | + if (!clientWidth) { | ||
42 | + return; | ||
43 | + } | ||
44 | + docEl.style.fontSize = 20 * (clientWidth / 320) + \'px\'; | ||
45 | + }()); | ||
46 | + })(document, window); | ||
47 | + </script> | ||
48 | +</head> | ||
49 | +<body class="keBody"> | ||
50 | +'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('weixinShare')))) ? '<div id="wx_pic" style="width:0px; height:0px; overflow:hidden"><img src="http://img11.static.yhbimg.com/couponImg/2016/01/25/03/01245f0ab37f0c99b77d2c5b6cf11c2265.png"/></div> | ||
51 | +' : '').' | ||
52 | +<div class="coupon-christmas" show="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('showPopupFlag')), ENT_QUOTES, 'UTF-8').'"> | ||
53 | + <div class="coupon-top"> | ||
54 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/top-bg.png" alt=""> | ||
55 | + <a class="go-check" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('myCouponUrl')), ENT_QUOTES, 'UTF-8').'"></a> | ||
56 | + <a class="share-btn" href="javascript:;"></a> | ||
57 | + </div> | ||
58 | + <div class="coupon-bottom"> | ||
59 | + <div class="coupon-banner"> | ||
60 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_1')), ENT_QUOTES, 'UTF-8').'"></a> | ||
61 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_2')), ENT_QUOTES, 'UTF-8').'"></a> | ||
62 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_3')), ENT_QUOTES, 'UTF-8').'"></a> | ||
63 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_4')), ENT_QUOTES, 'UTF-8').'"></a> | ||
64 | + </div> | ||
65 | + <div class="bottom-btn"> | ||
66 | + <a class="follow-yoho" href="http://mp.weixin.qq.com/s?__biz=MjM5ODI5MDA4MA==&mid=201849402&idx=1&sn=c0089812f9769d82e0075f69d771f6e1#rd"></a> | ||
67 | + <a class="download-yoho" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('downAppUrl')), ENT_QUOTES, 'UTF-8').'"></a> | ||
68 | + </div> | ||
69 | + </div> | ||
70 | + <div class="coupon-ft"> | ||
71 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/14.png"> | ||
72 | + </div> | ||
73 | +</div> | ||
74 | +<div class="modal"></div> | ||
75 | +<div class="dialog-box geted"> | ||
76 | + <div class="dialog-inner"> | ||
77 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/geted.png" alt=""/> | ||
78 | + <span class="dialog-close"></span> | ||
79 | + </div> | ||
80 | +</div> | ||
81 | + | ||
82 | +<div class="dialog-box fail"> | ||
83 | + <div class="dialog-inner"> | ||
84 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/fail.png" alt=""/> | ||
85 | + <span class="refresh-btn"></span> | ||
86 | + </div> | ||
87 | +</div> | ||
88 | +<input id="shareLink" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareLink')), ENT_QUOTES, 'UTF-8').'"> | ||
89 | +<input id="shareImg" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareImg')), ENT_QUOTES, 'UTF-8').'"> | ||
90 | +<input id="shareTitle" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareTitle')), ENT_QUOTES, 'UTF-8').'"> | ||
91 | +<input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'"> | ||
92 | +<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script> | ||
93 | +<script> | ||
94 | + //提示分享 | ||
95 | + $(\'.share-btn\').click(function () { | ||
96 | + $(\'.modal\').fadeIn(); | ||
97 | + }); | ||
98 | + //关闭提示分享 | ||
99 | + $(\'.modal\').click(function () { | ||
100 | + $(this).fadeOut(); | ||
101 | + }); | ||
102 | + | ||
103 | + //提示已领过券 | ||
104 | + if ($(\'.coupon-christmas\').attr(\'show\') === \'1\') { | ||
105 | + $(\'.dialog-box.geted\').show(); | ||
106 | + } | ||
107 | + //提示领券失败 | ||
108 | + else if ($(\'.coupon-christmas\').attr(\'show\') === \'2\') { | ||
109 | + $(\'.dialog-box.fail\').show(); | ||
110 | + } | ||
111 | + | ||
112 | + //关闭提示 | ||
113 | + $(\'.dialog-close\').click(function(){ | ||
114 | + $(this).parents(\'.dialog-box\').fadeOut(); | ||
115 | + }); | ||
116 | + //刷新页面 | ||
117 | + $(\'.refresh-btn\').click(function() { | ||
118 | + location.reload(); | ||
119 | + }); | ||
120 | +</script> | ||
121 | +'.((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> | ||
122 | +<script type="text/javascript" charset="utf-8" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/share.weixin.js"></script> | ||
123 | +' : '').''.'<!-- Google Tag Manager --> | ||
124 | +<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> | ||
125 | +<script> | ||
126 | + (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\': | ||
127 | + new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0], | ||
128 | + j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src= | ||
129 | + \'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f); | ||
130 | + })(window,document,\'script\',\'dataLayer\',\'GTM-W958MG\'); | ||
131 | +</script> | ||
132 | +<!-- End Google Tag Manager --> | ||
133 | +<script type="text/javascript"> | ||
134 | + var _hmt = _hmt || []; | ||
135 | + (function() { | ||
136 | + var hm = document.createElement("script"); | ||
137 | + hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311"; | ||
138 | + var s = document.getElementsByTagName("script")[0]; | ||
139 | + s.parentNode.insertBefore(hm, s); | ||
140 | + })(); | ||
141 | +</script> | ||
142 | +<script> | ||
143 | + var _hmt = _hmt || []; | ||
144 | + (function() { | ||
145 | + var hm = document.createElement("script"); | ||
146 | + hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841"; | ||
147 | + var s = document.getElementsByTagName("script")[0]; | ||
148 | + s.parentNode.insertBefore(hm, s); | ||
149 | + })(); | ||
150 | +</script> | ||
151 | +'.'</body> | ||
152 | +</html>'; | ||
153 | +} | ||
154 | +?> |
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 http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
28 | + <meta charset="utf-8"> | ||
29 | + <title>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('staticTitle')), ENT_QUOTES, 'UTF-8').'</title> | ||
30 | + <meta name="apple-mobile-web-app-title" content="SUMMER SALE"> | ||
31 | + <meta name="format-detection" content="telephone=no"> | ||
32 | + <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui" media="(device-height: 568px)"> | ||
33 | + <meta name="apple-mobile-web-app-capable" content="yes"> | ||
34 | + <meta name="apple-mobile-web-app-status-bar-style" content="grey"> | ||
35 | + <link rel="stylesheet" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/css/final/sale2.css"> | ||
36 | + <script> | ||
37 | + (function(doc, win) { | ||
38 | + var docEl = doc.documentElement; | ||
39 | + (function() { | ||
40 | + var clientWidth = docEl.clientWidth; | ||
41 | + if (!clientWidth) { | ||
42 | + return; | ||
43 | + } | ||
44 | + docEl.style.fontSize = 20 * (clientWidth / 320) + \'px\'; | ||
45 | + }()); | ||
46 | + })(document, window); | ||
47 | + </script> | ||
48 | +</head> | ||
49 | +<body class="keBody"> | ||
50 | +'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('weixinShare')))) ? '<div id="wx_pic" style="width:0px; height:0px; overflow:hidden"><img src="http://img11.static.yhbimg.com/couponImg/2016/01/07/07/016f63f5bb1f12cdb19402371323d26798.png"/></div> | ||
51 | +' : '').' | ||
52 | +<div class="coupon-christmas" show="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('showPopupFlag')), ENT_QUOTES, 'UTF-8').'"> | ||
53 | + <div class="coupon-top"> | ||
54 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/top-bg.png" alt=""> | ||
55 | + <a class="go-check" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('myCouponUrl')), ENT_QUOTES, 'UTF-8').'"></a> | ||
56 | + <a class="share-btn" href="javascript:;"></a> | ||
57 | + </div> | ||
58 | + <div class="coupon-bottom"> | ||
59 | + <div class="coupon-banner"> | ||
60 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_1')), ENT_QUOTES, 'UTF-8').'"></a> | ||
61 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_2')), ENT_QUOTES, 'UTF-8').'"></a> | ||
62 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_3')), ENT_QUOTES, 'UTF-8').'"></a> | ||
63 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_4')), ENT_QUOTES, 'UTF-8').'"></a> | ||
64 | + </div> | ||
65 | + <div class="bottom-btn"> | ||
66 | + <a class="follow-yoho" href="http://mp.weixin.qq.com/s?__biz=MjM5ODI5MDA4MA==&mid=201849402&idx=1&sn=c0089812f9769d82e0075f69d771f6e1#rd"></a> | ||
67 | + <a class="download-yoho" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('downAppUrl')), ENT_QUOTES, 'UTF-8').'"></a> | ||
68 | + </div> | ||
69 | + </div> | ||
70 | + <div class="coupon-ft"> | ||
71 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/14.png"> | ||
72 | + </div> | ||
73 | +</div> | ||
74 | +<div class="modal"></div> | ||
75 | +<div class="dialog-box geted"> | ||
76 | + <div class="dialog-inner"> | ||
77 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/geted.png" alt=""/> | ||
78 | + <span class="dialog-close"></span> | ||
79 | + </div> | ||
80 | +</div> | ||
81 | + | ||
82 | +<div class="dialog-box fail"> | ||
83 | + <div class="dialog-inner"> | ||
84 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/fail.png" alt=""/> | ||
85 | + <span class="refresh-btn"></span> | ||
86 | + </div> | ||
87 | +</div> | ||
88 | +<input id="shareLink" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareLink')), ENT_QUOTES, 'UTF-8').'"> | ||
89 | +<input id="shareImg" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareImg')), ENT_QUOTES, 'UTF-8').'"> | ||
90 | +<input id="shareTitle" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareTitle')), ENT_QUOTES, 'UTF-8').'"> | ||
91 | +<input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'"> | ||
92 | +<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script> | ||
93 | +<script> | ||
94 | + //提示分享 | ||
95 | + $(\'.share-btn\').click(function () { | ||
96 | + $(\'.modal\').fadeIn(); | ||
97 | + }); | ||
98 | + //关闭提示分享 | ||
99 | + $(\'.modal\').click(function () { | ||
100 | + $(this).fadeOut(); | ||
101 | + }); | ||
102 | + | ||
103 | + //提示已领过券 | ||
104 | + if ($(\'.coupon-christmas\').attr(\'show\') === \'1\') { | ||
105 | + $(\'.dialog-box.geted\').show(); | ||
106 | + } | ||
107 | + //提示领券失败 | ||
108 | + else if ($(\'.coupon-christmas\').attr(\'show\') === \'2\') { | ||
109 | + $(\'.dialog-box.fail\').show(); | ||
110 | + } | ||
111 | + | ||
112 | + //关闭提示 | ||
113 | + $(\'.dialog-close\').click(function(){ | ||
114 | + $(this).parents(\'.dialog-box\').fadeOut(); | ||
115 | + }); | ||
116 | + //刷新页面 | ||
117 | + $(\'.refresh-btn\').click(function() { | ||
118 | + location.reload(); | ||
119 | + }); | ||
120 | +</script> | ||
121 | +'.((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> | ||
122 | +<script type="text/javascript" charset="utf-8" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/share.weixin.js"></script> | ||
123 | +' : '').''.'<!-- Google Tag Manager --> | ||
124 | +<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> | ||
125 | +<script> | ||
126 | + (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\': | ||
127 | + new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0], | ||
128 | + j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src= | ||
129 | + \'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f); | ||
130 | + })(window,document,\'script\',\'dataLayer\',\'GTM-W958MG\'); | ||
131 | +</script> | ||
132 | +<!-- End Google Tag Manager --> | ||
133 | +<script type="text/javascript"> | ||
134 | + var _hmt = _hmt || []; | ||
135 | + (function() { | ||
136 | + var hm = document.createElement("script"); | ||
137 | + hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311"; | ||
138 | + var s = document.getElementsByTagName("script")[0]; | ||
139 | + s.parentNode.insertBefore(hm, s); | ||
140 | + })(); | ||
141 | +</script> | ||
142 | +<script> | ||
143 | + var _hmt = _hmt || []; | ||
144 | + (function() { | ||
145 | + var hm = document.createElement("script"); | ||
146 | + hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841"; | ||
147 | + var s = document.getElementsByTagName("script")[0]; | ||
148 | + s.parentNode.insertBefore(hm, s); | ||
149 | + })(); | ||
150 | +</script> | ||
151 | +'.'</body> | ||
152 | +</html>'; | ||
153 | +} | ||
154 | +?> |
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 | + <title>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('staticTitle')), ENT_QUOTES, 'UTF-8').'</title> | ||
29 | + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"> | ||
30 | + <style> | ||
31 | + *{margin: 0;padding: 0;} | ||
32 | + #coupon-container {width: 100%;} | ||
33 | + #coupon-container img {width: 100%; height: auto; display: block;overflow: hidden;} | ||
34 | + .img-box {width: 100%;position: relative;} | ||
35 | + .img-box .href {width: 50%; height: 100%;position: absolute;top: 0;} | ||
36 | + .img-box .href-left {left: 0} | ||
37 | + .img-box .href-right {right: 0} | ||
38 | + .img-box .href-center {width: 90%;height: 100%;position: absolute;top: 0;left: 5%;} | ||
39 | + .show-more {height: 100%;width: 25%;position: absolute;top: 0;right: 10%;} | ||
40 | + .yoho-tip {position: fixed;display: none;text-align: center;width: 70%;padding: 34px 0;top: 50%;left: 50%;margin-left: -35%;margin-top: -45px;background-color: #000;opacity: 0.9;color: #fff;font-size: 18px;border: none;border-radius: 10px;} | ||
41 | + </style> | ||
42 | + <link rel="dns-prefetch" href="//cdn.yoho.cn"> | ||
43 | + <link rel="dns-prefetch" href="//static.yohobuy.com"> | ||
44 | +</head> | ||
45 | +<body> | ||
46 | + <div 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').'"> | ||
47 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/01.jpg"> | ||
48 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/02.jpg"> | ||
49 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/03-a.jpg"> | ||
50 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/line-1.jpg"> | ||
51 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/04-a.jpg"> | ||
52 | + <div class="img-box"> | ||
53 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/05-a.jpg"> | ||
54 | + <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_yohope')), ENT_QUOTES, 'UTF-8').'"></a> | ||
55 | + </div> | ||
56 | + <div class="img-box"> | ||
57 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/06.jpg"> | ||
58 | + <a class="href href-center" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_mycoupon')), ENT_QUOTES, 'UTF-8').'"></a> | ||
59 | + </div> | ||
60 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/line-2.jpg"> | ||
61 | + | ||
62 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/07.jpg"> | ||
63 | + <div class="img-box"> | ||
64 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/08.jpg"> | ||
65 | + <a class="href href-left" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_more')), ENT_QUOTES, 'UTF-8').'"></a> | ||
66 | + <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_more')), ENT_QUOTES, 'UTF-8').'"></a> | ||
67 | + </div> | ||
68 | + <div class="img-box"> | ||
69 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/09.jpg"> | ||
70 | + <span class="href href-left get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17443"></span> | ||
71 | + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17445"></span> | ||
72 | + </div> | ||
73 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/line-1.jpg"> | ||
74 | + <div class="img-box"> | ||
75 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/10.jpg"> | ||
76 | + <a class="href href-left" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_more')), ENT_QUOTES, 'UTF-8').'"></a> | ||
77 | + <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_1')), ENT_QUOTES, 'UTF-8').'"></a> | ||
78 | + </div> | ||
79 | + <div class="img-box"> | ||
80 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/11.jpg"> | ||
81 | + <span class="href href-left get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17463"></span> | ||
82 | + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17451"></span> | ||
83 | + </div> | ||
84 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/line-1.jpg"> | ||
85 | + <div class="img-box"> | ||
86 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/12.jpg"> | ||
87 | + <a class="href href-left" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_2')), ENT_QUOTES, 'UTF-8').'"></a> | ||
88 | + <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_3')), ENT_QUOTES, 'UTF-8').'"></a> | ||
89 | + </div> | ||
90 | + <div class="img-box"> | ||
91 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/13.jpg"> | ||
92 | + <span class="href href-left get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17461"></span> | ||
93 | + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17459"></span> | ||
94 | + </div> | ||
95 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/line-1.jpg"> | ||
96 | + <div class="img-box"> | ||
97 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/14.jpg"> | ||
98 | + <a class="href href-left" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_4')), ENT_QUOTES, 'UTF-8').'"></a> | ||
99 | + <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_5')), ENT_QUOTES, 'UTF-8').'"></a> | ||
100 | + </div> | ||
101 | + <div class="img-box"> | ||
102 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/15.jpg"> | ||
103 | + <span class="href href-left get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17453"></span> | ||
104 | + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17455"></span> | ||
105 | + </div> | ||
106 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/line-1.jpg"> | ||
107 | + <div class="img-box"> | ||
108 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/16.jpg"> | ||
109 | + <a class="href href-left" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_6')), ENT_QUOTES, 'UTF-8').'"></a> | ||
110 | + </div> | ||
111 | + <div class="img-box"> | ||
112 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/17.jpg"> | ||
113 | + <span class="href href-left get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17449"></span> | ||
114 | + </div> | ||
115 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/line-1.jpg"> | ||
116 | + | ||
117 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/24-1.jpg"> | ||
118 | + <div class="img-box"> | ||
119 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/24-2.jpg"> | ||
120 | + <a class="show-more" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_help')), ENT_QUOTES, 'UTF-8').'"></a> | ||
121 | + </div> | ||
122 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/24-3.jpg"> | ||
123 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/line-2.jpg"> | ||
124 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/25-1-a.jpg"> | ||
125 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/25-2-a.jpg"> | ||
126 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/25-3-a.jpg"> | ||
127 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/26-a.jpg"> | ||
128 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/27-a.jpg"> | ||
129 | + </div> | ||
130 | + <script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script> | ||
131 | + <script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/newuser/coupon2.js"></script> | ||
132 | +</body> | ||
133 | +</html>'; | ||
134 | +} | ||
135 | +?> |
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 http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
28 | + <meta charset="utf-8"> | ||
29 | + <title>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('staticTitle')), ENT_QUOTES, 'UTF-8').'</title> | ||
30 | + <meta name="apple-mobile-web-app-title" content="SUMMER SALE"> | ||
31 | + <meta name="format-detection" content="telephone=no"> | ||
32 | + <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui" media="(device-height: 568px)"> | ||
33 | + <meta name="apple-mobile-web-app-capable" content="yes"> | ||
34 | + <meta name="apple-mobile-web-app-status-bar-style" content="grey"> | ||
35 | + <link rel="stylesheet" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/css/final/sale2.css"> | ||
36 | + <script> | ||
37 | + (function(doc, win) { | ||
38 | + var docEl = doc.documentElement; | ||
39 | + (function() { | ||
40 | + var clientWidth = docEl.clientWidth; | ||
41 | + if (!clientWidth) { | ||
42 | + return; | ||
43 | + } | ||
44 | + docEl.style.fontSize = 20 * (clientWidth / 320) + \'px\'; | ||
45 | + }()); | ||
46 | + })(document, window); | ||
47 | + </script> | ||
48 | +</head> | ||
49 | +<body class="keBody"> | ||
50 | +'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('weixinShare')))) ? '<div id="wx_pic" style="width:0px; height:0px; overflow:hidden"><img src="http://img11.static.yhbimg.com/couponImg/2016/01/25/03/01245f0ab37f0c99b77d2c5b6cf11c2265.png"/></div> | ||
51 | +' : '').' | ||
52 | +<div class="coupon-christmas" show="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('showPopupFlag')), ENT_QUOTES, 'UTF-8').'"> | ||
53 | + <div class="coupon-top"> | ||
54 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/top-bg.png" alt=""> | ||
55 | + <a class="go-check" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('myCouponUrl')), ENT_QUOTES, 'UTF-8').'"></a> | ||
56 | + <a class="share-btn" href="javascript:;"></a> | ||
57 | + </div> | ||
58 | + <div class="coupon-bottom"> | ||
59 | + <div class="coupon-banner"> | ||
60 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_1')), ENT_QUOTES, 'UTF-8').'"></a> | ||
61 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_2')), ENT_QUOTES, 'UTF-8').'"></a> | ||
62 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_3')), ENT_QUOTES, 'UTF-8').'"></a> | ||
63 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_4')), ENT_QUOTES, 'UTF-8').'"></a> | ||
64 | + </div> | ||
65 | + <div class="bottom-btn"> | ||
66 | + <a class="follow-yoho" href="http://mp.weixin.qq.com/s?__biz=MjM5ODI5MDA4MA==&mid=201849402&idx=1&sn=c0089812f9769d82e0075f69d771f6e1#rd"></a> | ||
67 | + <a class="download-yoho" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('downAppUrl')), ENT_QUOTES, 'UTF-8').'"></a> | ||
68 | + </div> | ||
69 | + </div> | ||
70 | + <div class="coupon-ft"> | ||
71 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/14.png"> | ||
72 | + </div> | ||
73 | +</div> | ||
74 | +<div class="modal"></div> | ||
75 | +<div class="dialog-box geted"> | ||
76 | + <div class="dialog-inner"> | ||
77 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/geted.png" alt=""/> | ||
78 | + <span class="dialog-close"></span> | ||
79 | + </div> | ||
80 | +</div> | ||
81 | + | ||
82 | +<div class="dialog-box fail"> | ||
83 | + <div class="dialog-inner"> | ||
84 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/fail.png" alt=""/> | ||
85 | + <span class="refresh-btn"></span> | ||
86 | + </div> | ||
87 | +</div> | ||
88 | +<input id="shareLink" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareLink')), ENT_QUOTES, 'UTF-8').'"> | ||
89 | +<input id="shareImg" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareImg')), ENT_QUOTES, 'UTF-8').'"> | ||
90 | +<input id="shareTitle" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareTitle')), ENT_QUOTES, 'UTF-8').'"> | ||
91 | +<input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'"> | ||
92 | +<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script> | ||
93 | +<script> | ||
94 | + //提示分享 | ||
95 | + $(\'.share-btn\').click(function () { | ||
96 | + $(\'.modal\').fadeIn(); | ||
97 | + }); | ||
98 | + //关闭提示分享 | ||
99 | + $(\'.modal\').click(function () { | ||
100 | + $(this).fadeOut(); | ||
101 | + }); | ||
102 | + //提示已领过券 | ||
103 | + if ($(\'.coupon-christmas\').attr(\'show\') === \'1\') { | ||
104 | + $(\'.dialog-box.geted\').show(); | ||
105 | + } | ||
106 | + //提示领券失败 | ||
107 | + else if ($(\'.coupon-christmas\').attr(\'show\') === \'2\') { | ||
108 | + $(\'.dialog-box.fail\').show(); | ||
109 | + } | ||
110 | + //关闭提示 | ||
111 | + $(\'.dialog-close\').click(function(){ | ||
112 | + $(this).parents(\'.dialog-box\').fadeOut(); | ||
113 | + }); | ||
114 | + //刷新页面 | ||
115 | + $(\'.refresh-btn\').click(function() { | ||
116 | + location.reload(); | ||
117 | + }); | ||
118 | +</script> | ||
119 | +'.((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> | ||
120 | +<script type="text/javascript" charset="utf-8" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/share.weixin.js"></script> | ||
121 | +' : '').''.'<!-- Google Tag Manager --> | ||
122 | +<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> | ||
123 | +<script> | ||
124 | + var _hmt = _hmt || []; | ||
125 | + function async_load(){ | ||
126 | + (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\': | ||
127 | + new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0], | ||
128 | + j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src= | ||
129 | + \'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f); | ||
130 | + })(window,document,\'script\',\'dataLayer\',\'GTM-W958MG\'); | ||
131 | + (function() { | ||
132 | + var hm = document.createElement("script"); | ||
133 | + hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311"; | ||
134 | + hm.async = 1; | ||
135 | + var s = document.getElementsByTagName("script")[0]; | ||
136 | + s.parentNode.insertBefore(hm, s); | ||
137 | + })(); | ||
138 | + (function() { | ||
139 | + var hm = document.createElement("script"); | ||
140 | + hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841"; | ||
141 | + hm.async = 1; | ||
142 | + var s = document.getElementsByTagName("script")[0]; | ||
143 | + s.parentNode.insertBefore(hm, s); | ||
144 | + })(); | ||
145 | + (function() { | ||
146 | + var hm = document.createElement("script"); | ||
147 | + hm.src = "//hm.baidu.com/hm.js?e5b83a487a4458aa5abca43f5779b764"; | ||
148 | + var s = document.getElementsByTagName("script")[0]; | ||
149 | + s.parentNode.insertBefore(hm, s); | ||
150 | + })(); | ||
151 | + } | ||
152 | + window.addEventListener(\'load\', async_load, false); | ||
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> | ||
26 | +<head> | ||
27 | + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
28 | + <meta charset="utf-8"> | ||
29 | + <title>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('staticTitle')), ENT_QUOTES, 'UTF-8').'</title> | ||
30 | + <meta name="apple-mobile-web-app-title" content="SUMMER SALE"> | ||
31 | + <meta name="format-detection" content="telephone=no"> | ||
32 | + <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui" media="(device-height: 568px)"> | ||
33 | + <meta name="apple-mobile-web-app-capable" content="yes"> | ||
34 | + <meta name="apple-mobile-web-app-status-bar-style" content="grey"> | ||
35 | + <link rel="stylesheet" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/css/final/sale2.css"> | ||
36 | + <script> | ||
37 | + (function(doc, win) { | ||
38 | + var docEl = doc.documentElement; | ||
39 | + (function() { | ||
40 | + var clientWidth = docEl.clientWidth; | ||
41 | + if (!clientWidth) { | ||
42 | + return; | ||
43 | + } | ||
44 | + docEl.style.fontSize = 20 * (clientWidth / 320) + \'px\'; | ||
45 | + }()); | ||
46 | + })(document, window); | ||
47 | + </script> | ||
48 | +</head> | ||
49 | +<body class="keBody"> | ||
50 | +'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('weixinShare')))) ? '<div id="wx_pic" style="width:0px; height:0px; overflow:hidden"><img src="http://img11.static.yhbimg.com/couponImg/2016/01/25/03/01245f0ab37f0c99b77d2c5b6cf11c2265.png"/></div> | ||
51 | +' : '').' | ||
52 | +<div class="coupon-christmas" show="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('showPopupFlag')), ENT_QUOTES, 'UTF-8').'"> | ||
53 | + <div class="coupon-top"> | ||
54 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/top-bg.png" alt=""> | ||
55 | + <a class="go-check" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('myCouponUrl')), ENT_QUOTES, 'UTF-8').'"></a> | ||
56 | + <a class="share-btn" href="javascript:;"></a> | ||
57 | + </div> | ||
58 | + <div class="coupon-bottom"> | ||
59 | + <div class="coupon-banner"> | ||
60 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_1')), ENT_QUOTES, 'UTF-8').'"></a> | ||
61 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_2')), ENT_QUOTES, 'UTF-8').'"></a> | ||
62 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_3')), ENT_QUOTES, 'UTF-8').'"></a> | ||
63 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_4')), ENT_QUOTES, 'UTF-8').'"></a> | ||
64 | + </div> | ||
65 | + <div class="bottom-btn"> | ||
66 | + <a class="follow-yoho" href="http://mp.weixin.qq.com/s?__biz=MjM5ODI5MDA4MA==&mid=201849402&idx=1&sn=c0089812f9769d82e0075f69d771f6e1#rd"></a> | ||
67 | + <a class="download-yoho" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('downAppUrl')), ENT_QUOTES, 'UTF-8').'"></a> | ||
68 | + </div> | ||
69 | + </div> | ||
70 | + <div class="coupon-ft"> | ||
71 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/14.png"> | ||
72 | + </div> | ||
73 | +</div> | ||
74 | +<div class="modal"></div> | ||
75 | +<div class="dialog-box geted"> | ||
76 | + <div class="dialog-inner"> | ||
77 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/geted.png" alt=""/> | ||
78 | + <span class="dialog-close"></span> | ||
79 | + </div> | ||
80 | +</div> | ||
81 | + | ||
82 | +<div class="dialog-box fail"> | ||
83 | + <div class="dialog-inner"> | ||
84 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/160125/fail.png" alt=""/> | ||
85 | + <span class="refresh-btn"></span> | ||
86 | + </div> | ||
87 | +</div> | ||
88 | +<input id="shareLink" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareLink')), ENT_QUOTES, 'UTF-8').'"> | ||
89 | +<input id="shareImg" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareImg')), ENT_QUOTES, 'UTF-8').'"> | ||
90 | +<input id="shareTitle" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareTitle')), ENT_QUOTES, 'UTF-8').'"> | ||
91 | +<input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'"> | ||
92 | +<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script> | ||
93 | +<script> | ||
94 | + //提示分享 | ||
95 | + $(\'.share-btn\').click(function () { | ||
96 | + $(\'.modal\').fadeIn(); | ||
97 | + }); | ||
98 | + //关闭提示分享 | ||
99 | + $(\'.modal\').click(function () { | ||
100 | + $(this).fadeOut(); | ||
101 | + }); | ||
102 | + | ||
103 | + //提示已领过券 | ||
104 | + if ($(\'.coupon-christmas\').attr(\'show\') === \'1\') { | ||
105 | + $(\'.dialog-box.geted\').show(); | ||
106 | + } | ||
107 | + //提示领券失败 | ||
108 | + else if ($(\'.coupon-christmas\').attr(\'show\') === \'2\') { | ||
109 | + $(\'.dialog-box.fail\').show(); | ||
110 | + } | ||
111 | + | ||
112 | + //关闭提示 | ||
113 | + $(\'.dialog-close\').click(function(){ | ||
114 | + $(this).parents(\'.dialog-box\').fadeOut(); | ||
115 | + }); | ||
116 | + //刷新页面 | ||
117 | + $(\'.refresh-btn\').click(function() { | ||
118 | + location.reload(); | ||
119 | + }); | ||
120 | +</script> | ||
121 | +'.((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> | ||
122 | +<script type="text/javascript" charset="utf-8" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/share.weixin.js"></script> | ||
123 | +' : '').''.'<!-- Google Tag Manager --> | ||
124 | +<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> | ||
125 | +<script> | ||
126 | + (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\': | ||
127 | + new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0], | ||
128 | + j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src= | ||
129 | + \'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f); | ||
130 | + })(window,document,\'script\',\'dataLayer\',\'GTM-W958MG\'); | ||
131 | +</script> | ||
132 | +<!-- End Google Tag Manager --> | ||
133 | +<script type="text/javascript"> | ||
134 | + var _hmt = _hmt || []; | ||
135 | + (function() { | ||
136 | + var hm = document.createElement("script"); | ||
137 | + hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311"; | ||
138 | + var s = document.getElementsByTagName("script")[0]; | ||
139 | + s.parentNode.insertBefore(hm, s); | ||
140 | + })(); | ||
141 | +</script> | ||
142 | +<script> | ||
143 | + var _hmt = _hmt || []; | ||
144 | + (function() { | ||
145 | + var hm = document.createElement("script"); | ||
146 | + hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841"; | ||
147 | + var s = document.getElementsByTagName("script")[0]; | ||
148 | + s.parentNode.insertBefore(hm, s); | ||
149 | + })(); | ||
150 | +</script> | ||
151 | +'.'</body> | ||
152 | +</html>'; | ||
153 | +} | ||
154 | +?> |
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 | + <title>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('staticTitle')), ENT_QUOTES, 'UTF-8').'</title> | ||
29 | + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"> | ||
30 | + <style> | ||
31 | + *{margin: 0;padding: 0;} | ||
32 | + #coupon-container {width: 100%;} | ||
33 | + #coupon-container img {width: 100%; height: auto; display: block;overflow: hidden;} | ||
34 | + .img-box {width: 100%;position: relative;} | ||
35 | + .img-box .href {width: 50%; height: 100%;position: absolute;top: 0;} | ||
36 | + .img-box .href-left {left: 0} | ||
37 | + .img-box .href-right {right: 0} | ||
38 | + .img-box .href-center {width: 90%;height: 100%;position: absolute;top: 0;left: 5%;} | ||
39 | + .show-more {height: 100%;width: 25%;position: absolute;top: 0;right: 10%;} | ||
40 | + .yoho-tip {position: fixed;display: none;text-align: center;width: 70%;padding: 34px 0;top: 50%;left: 50%;margin-left: -35%;margin-top: -45px;background-color: #000;opacity: 0.9;color: #fff;font-size: 18px;border: none;border-radius: 10px;} | ||
41 | + </style> | ||
42 | + <link rel="dns-prefetch" href="//cdn.yoho.cn"> | ||
43 | + <link rel="dns-prefetch" href="//static.yohobuy.com"> | ||
44 | +</head> | ||
45 | +<body> | ||
46 | + <div 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').'"> | ||
47 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/01.jpg"> | ||
48 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/02.jpg"> | ||
49 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/03-a.jpg"> | ||
50 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/line-1.jpg"> | ||
51 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/04-a.jpg"> | ||
52 | + <div class="img-box"> | ||
53 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/05-a.jpg"> | ||
54 | + <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_yohope')), ENT_QUOTES, 'UTF-8').'"></a> | ||
55 | + </div> | ||
56 | + <div class="img-box"> | ||
57 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/06.jpg"> | ||
58 | + <a class="href href-center" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_mycoupon')), ENT_QUOTES, 'UTF-8').'"></a> | ||
59 | + </div> | ||
60 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/line-2.jpg"> | ||
61 | + | ||
62 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/07.jpg"> | ||
63 | + <div class="img-box"> | ||
64 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/08.jpg"> | ||
65 | + <a class="href href-left" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_more')), ENT_QUOTES, 'UTF-8').'"></a> | ||
66 | + <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_more')), ENT_QUOTES, 'UTF-8').'"></a> | ||
67 | + </div> | ||
68 | + <div class="img-box"> | ||
69 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/09.jpg"> | ||
70 | + <span class="href href-left get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17443"></span> | ||
71 | + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17445"></span> | ||
72 | + </div> | ||
73 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/line-1.jpg"> | ||
74 | + <div class="img-box"> | ||
75 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/10.jpg"> | ||
76 | + <a class="href href-left" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_more')), ENT_QUOTES, 'UTF-8').'"></a> | ||
77 | + <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_1')), ENT_QUOTES, 'UTF-8').'"></a> | ||
78 | + </div> | ||
79 | + <div class="img-box"> | ||
80 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/11.jpg"> | ||
81 | + <span class="href href-left get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17463"></span> | ||
82 | + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17451"></span> | ||
83 | + </div> | ||
84 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/line-1.jpg"> | ||
85 | + <div class="img-box"> | ||
86 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/12.jpg"> | ||
87 | + <a class="href href-left" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_2')), ENT_QUOTES, 'UTF-8').'"></a> | ||
88 | + <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_3')), ENT_QUOTES, 'UTF-8').'"></a> | ||
89 | + </div> | ||
90 | + <div class="img-box"> | ||
91 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/13.jpg"> | ||
92 | + <span class="href href-left get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17461"></span> | ||
93 | + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17459"></span> | ||
94 | + </div> | ||
95 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/line-1.jpg"> | ||
96 | + <div class="img-box"> | ||
97 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/14.jpg"> | ||
98 | + <a class="href href-left" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_4')), ENT_QUOTES, 'UTF-8').'"></a> | ||
99 | + <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_5')), ENT_QUOTES, 'UTF-8').'"></a> | ||
100 | + </div> | ||
101 | + <div class="img-box"> | ||
102 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/15.jpg"> | ||
103 | + <span class="href href-left get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17453"></span> | ||
104 | + <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17455"></span> | ||
105 | + </div> | ||
106 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/line-1.jpg"> | ||
107 | + <div class="img-box"> | ||
108 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/16.jpg"> | ||
109 | + <a class="href href-left" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_6')), ENT_QUOTES, 'UTF-8').'"></a> | ||
110 | + </div> | ||
111 | + <div class="img-box"> | ||
112 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/17.jpg"> | ||
113 | + <span class="href href-left get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="17449"></span> | ||
114 | + </div> | ||
115 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/line-1.jpg"> | ||
116 | + | ||
117 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/24-1.jpg"> | ||
118 | + <div class="img-box"> | ||
119 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/24-2.jpg"> | ||
120 | + <a class="show-more" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_help')), ENT_QUOTES, 'UTF-8').'"></a> | ||
121 | + </div> | ||
122 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/24-3.jpg"> | ||
123 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/line-2.jpg"> | ||
124 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/25-1-a.jpg"> | ||
125 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/25-2-a.jpg"> | ||
126 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/25-3-a.jpg"> | ||
127 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/26-a.jpg"> | ||
128 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160107/27-a.jpg"> | ||
129 | + </div> | ||
130 | + <script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script> | ||
131 | + <script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/newuser/coupon2.js"></script> | ||
132 | +</body> | ||
133 | +</html>'; | ||
134 | +} | ||
135 | +?> |
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 http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
28 | + <meta charset="utf-8"> | ||
29 | + <title>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('staticTitle')), ENT_QUOTES, 'UTF-8').'</title> | ||
30 | + <meta name="apple-mobile-web-app-title" content="SUMMER SALE"> | ||
31 | + <meta name="format-detection" content="telephone=no"> | ||
32 | + <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui" media="(device-height: 568px)"> | ||
33 | + <meta name="apple-mobile-web-app-capable" content="yes"> | ||
34 | + <meta name="apple-mobile-web-app-status-bar-style" content="grey"> | ||
35 | + <link rel="stylesheet" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/css/final/sale.css"> | ||
36 | + <script> | ||
37 | + (function(doc, win) { | ||
38 | + var docEl = doc.documentElement; | ||
39 | + (function() { | ||
40 | + var clientWidth = docEl.clientWidth; | ||
41 | + if (!clientWidth) { | ||
42 | + return; | ||
43 | + } | ||
44 | + docEl.style.fontSize = 20 * (clientWidth / 320) + \'px\'; | ||
45 | + }()); | ||
46 | + })(document, window); | ||
47 | + </script> | ||
48 | +</head> | ||
49 | +<body class="keBody"> | ||
50 | +'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('weixinShare')))) ? '<div id="wx_pic" style="width:0px; height:0px; overflow:hidden"><img src="http://img11.static.yhbimg.com/couponImg/2016/01/07/07/016f63f5bb1f12cdb19402371323d26798.png"/></div> | ||
51 | +' : '').' | ||
52 | +<div class="coupon-christmas" show="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('showPopupFlag')), ENT_QUOTES, 'UTF-8').'"> | ||
53 | + <div class="coupon-top"> | ||
54 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/top-bg.png" alt=""> | ||
55 | + <a class="go-check" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('myCouponUrl')), ENT_QUOTES, 'UTF-8').'"></a> | ||
56 | + <a class="share-btn" href="javascript:;"></a> | ||
57 | + </div> | ||
58 | + <div class="coupon-bottom"> | ||
59 | + <div class="coupon-banner"> | ||
60 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_1')), ENT_QUOTES, 'UTF-8').'"></a> | ||
61 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_2')), ENT_QUOTES, 'UTF-8').'"></a> | ||
62 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_3')), ENT_QUOTES, 'UTF-8').'"></a> | ||
63 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_4')), ENT_QUOTES, 'UTF-8').'"></a> | ||
64 | + </div> | ||
65 | + <div class="bottom-btn"> | ||
66 | + <a class="follow-yoho" href="http://mp.weixin.qq.com/s?__biz=MjM5ODI5MDA4MA==&mid=201849402&idx=1&sn=c0089812f9769d82e0075f69d771f6e1#rd"></a> | ||
67 | + <a class="download-yoho" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('downAppUrl')), ENT_QUOTES, 'UTF-8').'"></a> | ||
68 | + </div> | ||
69 | + </div> | ||
70 | + <div class="coupon-ft"> | ||
71 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/14.png"> | ||
72 | + </div> | ||
73 | +</div> | ||
74 | +<div class="modal"></div> | ||
75 | +<div class="dialog-box geted"> | ||
76 | + <div class="dialog-inner"> | ||
77 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/geted-2.png" alt=""/> | ||
78 | + <span class="dialog-close"></span> | ||
79 | + </div> | ||
80 | +</div> | ||
81 | + | ||
82 | +<div class="dialog-box fail"> | ||
83 | + <div class="dialog-inner"> | ||
84 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/final/fail-2.png" alt=""/> | ||
85 | + <span class="refresh-btn"></span> | ||
86 | + </div> | ||
87 | +</div> | ||
88 | +<input id="shareLink" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareLink')), ENT_QUOTES, 'UTF-8').'"> | ||
89 | +<input id="shareImg" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareImg')), ENT_QUOTES, 'UTF-8').'"> | ||
90 | +<input id="shareTitle" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareTitle')), ENT_QUOTES, 'UTF-8').'"> | ||
91 | +<input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'"> | ||
92 | +<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script> | ||
93 | +<script> | ||
94 | + //提示分享 | ||
95 | + $(\'.share-btn\').click(function () { | ||
96 | + $(\'.modal\').fadeIn(); | ||
97 | + }); | ||
98 | + //关闭提示分享 | ||
99 | + $(\'.modal\').click(function () { | ||
100 | + $(this).fadeOut(); | ||
101 | + }); | ||
102 | + | ||
103 | + //提示已领过券 | ||
104 | + if ($(\'.coupon-christmas\').attr(\'show\') === \'1\') { | ||
105 | + $(\'.dialog-box.geted\').show(); | ||
106 | + } | ||
107 | + //提示领券失败 | ||
108 | + else if ($(\'.coupon-christmas\').attr(\'show\') === \'2\') { | ||
109 | + $(\'.dialog-box.fail\').show(); | ||
110 | + } | ||
111 | + | ||
112 | + //关闭提示 | ||
113 | + $(\'.dialog-close\').click(function(){ | ||
114 | + $(this).parents(\'.dialog-box\').fadeOut(); | ||
115 | + }); | ||
116 | + //刷新页面 | ||
117 | + $(\'.refresh-btn\').click(function() { | ||
118 | + location.reload(); | ||
119 | + }); | ||
120 | +</script> | ||
121 | +'.((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> | ||
122 | +<script type="text/javascript" charset="utf-8" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/share.weixin.js"></script> | ||
123 | +' : '').''.'<!-- Google Tag Manager --> | ||
124 | +<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> | ||
125 | +<script> | ||
126 | + (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\': | ||
127 | + new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0], | ||
128 | + j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src= | ||
129 | + \'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f); | ||
130 | + })(window,document,\'script\',\'dataLayer\',\'GTM-W958MG\'); | ||
131 | +</script> | ||
132 | +<!-- End Google Tag Manager --> | ||
133 | +<script type="text/javascript"> | ||
134 | + var _hmt = _hmt || []; | ||
135 | + (function() { | ||
136 | + var hm = document.createElement("script"); | ||
137 | + hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311"; | ||
138 | + var s = document.getElementsByTagName("script")[0]; | ||
139 | + s.parentNode.insertBefore(hm, s); | ||
140 | + })(); | ||
141 | +</script> | ||
142 | +<script> | ||
143 | + var _hmt = _hmt || []; | ||
144 | + (function() { | ||
145 | + var hm = document.createElement("script"); | ||
146 | + hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841"; | ||
147 | + var s = document.getElementsByTagName("script")[0]; | ||
148 | + s.parentNode.insertBefore(hm, s); | ||
149 | + })(); | ||
150 | +</script> | ||
151 | +'.'</body> | ||
152 | +</html>'; | ||
153 | +} | ||
154 | +?> |
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 http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
28 | + <meta charset="utf-8"> | ||
29 | + <title>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('staticTitle')), ENT_QUOTES, 'UTF-8').'</title> | ||
30 | + <meta name="apple-mobile-web-app-title" content="SUMMER SALE"> | ||
31 | + <meta name="format-detection" content="telephone=no"> | ||
32 | + <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui" media="(device-height: 568px)"> | ||
33 | + <meta name="apple-mobile-web-app-capable" content="yes"> | ||
34 | + <meta name="apple-mobile-web-app-status-bar-style" content="grey"> | ||
35 | + <link rel="stylesheet" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/css/newyear/index-2.css"> | ||
36 | + <script> | ||
37 | + (function(doc, win) { | ||
38 | + var docEl = doc.documentElement; | ||
39 | + (function() { | ||
40 | + var clientWidth = docEl.clientWidth; | ||
41 | + if (!clientWidth) { | ||
42 | + return; | ||
43 | + } | ||
44 | + docEl.style.fontSize = 20 * (clientWidth / 320) + \'px\'; | ||
45 | + }()); | ||
46 | + })(document, window); | ||
47 | + </script> | ||
48 | +</head> | ||
49 | +<body class="keBody"> | ||
50 | +<div class="coupon-container" show="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('showPopupFlag')), ENT_QUOTES, 'UTF-8').'"> | ||
51 | + <div class="coupon-top"> | ||
52 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newyear/160105/top-bg.png" alt=""> | ||
53 | + <a class="go-check" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('myCouponUrl')), ENT_QUOTES, 'UTF-8').'"></a> | ||
54 | + <a class="app-btn app1" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('appUrl_1')), ENT_QUOTES, 'UTF-8').'"></a> | ||
55 | + <a class="app-btn app2" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('appUrl_2')), ENT_QUOTES, 'UTF-8').'"></a> | ||
56 | + </div> | ||
57 | + <div class="coupon-bottom"> | ||
58 | + <div class="coupon-banner"> | ||
59 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_1')), ENT_QUOTES, 'UTF-8').'"></a> | ||
60 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_2')), ENT_QUOTES, 'UTF-8').'"></a> | ||
61 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_3')), ENT_QUOTES, 'UTF-8').'"></a> | ||
62 | + <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bannerUrl_4')), ENT_QUOTES, 'UTF-8').'"></a> | ||
63 | + </div> | ||
64 | + <a class="follow-yoho" href="http://mp.weixin.qq.com/s?__biz=MjM5ODI5MDA4MA==&mid=201849402&idx=1&sn=c0089812f9769d82e0075f69d771f6e1#rd"></a> | ||
65 | + <div class="bottom-btn"> | ||
66 | + <a class="play-again" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('playAgain')), ENT_QUOTES, 'UTF-8').'"></a> | ||
67 | + <a class="share-btn" href="javascript:;"></a> | ||
68 | + </div> | ||
69 | + </div> | ||
70 | + <div class="coupon-ft"> | ||
71 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newyear/160105/14.png"> | ||
72 | + </div> | ||
73 | +</div> | ||
74 | +<div class="modal"></div> | ||
75 | +<div class="dialog-box geted"> | ||
76 | + <div class="dialog-inner"> | ||
77 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newyear/160105/geted.png" alt=""/> | ||
78 | + <span class="dialog-close"></span> | ||
79 | + </div> | ||
80 | +</div> | ||
81 | + | ||
82 | +<div class="dialog-box fail"> | ||
83 | + <div class="dialog-inner"> | ||
84 | + <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newyear/160105/fail.png" alt=""/> | ||
85 | + <span class="refresh-btn"></span> | ||
86 | + </div> | ||
87 | +</div> | ||
88 | +<input id="shareLink" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareLink')), ENT_QUOTES, 'UTF-8').'"> | ||
89 | +<input id="shareImg" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareImg')), ENT_QUOTES, 'UTF-8').'"> | ||
90 | +<input id="shareTitle" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareTitle')), ENT_QUOTES, 'UTF-8').'"> | ||
91 | +<input id="shareDesc" type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'"> | ||
92 | +<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script> | ||
93 | +<script> | ||
94 | + //提示分享 | ||
95 | + $(\'.share-btn\').click(function () { | ||
96 | + $(\'.modal\').fadeIn(); | ||
97 | + }); | ||
98 | + //关闭提示分享 | ||
99 | + $(\'.modal\').click(function () { | ||
100 | + $(this).fadeOut(); | ||
101 | + }); | ||
102 | + | ||
103 | + //提示已领过券 | ||
104 | + if ($(\'.coupon-container\').attr(\'show\') === \'1\') { | ||
105 | + $(\'.dialog-box.geted\').show(); | ||
106 | + } | ||
107 | + //提示领券失败 | ||
108 | + else if ($(\'.coupon-container\').attr(\'show\') === \'2\') { | ||
109 | + $(\'.dialog-box.fail\').show(); | ||
110 | + } | ||
111 | + | ||
112 | + //关闭提示 | ||
113 | + $(\'.dialog-close\').click(function(){ | ||
114 | + $(this).parents(\'.dialog-box\').fadeOut(); | ||
115 | + }); | ||
116 | + //刷新页面 | ||
117 | + $(\'.refresh-btn\').click(function() { | ||
118 | + location.reload(); | ||
119 | + }); | ||
120 | +</script> | ||
121 | +'.((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> | ||
122 | +<script type="text/javascript" charset="utf-8" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/share.weixin.js"></script> | ||
123 | +' : '').''.'<!-- Google Tag Manager --> | ||
124 | +<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> | ||
125 | +<script> | ||
126 | + (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\': | ||
127 | + new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0], | ||
128 | + j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src= | ||
129 | + \'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f); | ||
130 | + })(window,document,\'script\',\'dataLayer\',\'GTM-W958MG\'); | ||
131 | +</script> | ||
132 | +<!-- End Google Tag Manager --> | ||
133 | +<script type="text/javascript"> | ||
134 | + var _hmt = _hmt || []; | ||
135 | + (function() { | ||
136 | + var hm = document.createElement("script"); | ||
137 | + hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311"; | ||
138 | + var s = document.getElementsByTagName("script")[0]; | ||
139 | + s.parentNode.insertBefore(hm, s); | ||
140 | + })(); | ||
141 | +</script> | ||
142 | +<script> | ||
143 | + var _hmt = _hmt || []; | ||
144 | + (function() { | ||
145 | + var hm = document.createElement("script"); | ||
146 | + hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841"; | ||
147 | + var s = document.getElementsByTagName("script")[0]; | ||
148 | + s.parentNode.insertBefore(hm, s); | ||
149 | + })(); | ||
150 | +</script> | ||
151 | +'.'</body> | ||
152 | +</html>'; | ||
153 | +} | ||
154 | +?> |
static/huodong/cuxiao/css/final/sale2.css
0 → 100644
1 | +* { | ||
2 | + margin: 0; | ||
3 | + padding: 0; | ||
4 | +} | ||
5 | +.coupon-christmas img { | ||
6 | + display: block; | ||
7 | + max-width: 100%; | ||
8 | +} | ||
9 | + | ||
10 | +.coupon-top { | ||
11 | + position: relative; | ||
12 | +} | ||
13 | +.coupon-top .go-check { | ||
14 | + position: absolute; | ||
15 | + top: 6.95rem; | ||
16 | + width: 100%; | ||
17 | + height: 11.65rem; | ||
18 | +} | ||
19 | +.coupon-top .share-btn { | ||
20 | + position: absolute; | ||
21 | + width: 14.075rem; | ||
22 | + height: 2.275rem; | ||
23 | + bottom: 0.875rem; | ||
24 | + left: 50%; | ||
25 | + margin: 0 0 0 -7.0375rem; | ||
26 | + background-size: 100%; | ||
27 | + | ||
28 | +} | ||
29 | + | ||
30 | +.coupon-bottom { | ||
31 | + height: 10.825rem; | ||
32 | + background: url(../../img/final/160125/bottom-bg.png) no-repeat bottom center; | ||
33 | + background-size: 100% 100%; | ||
34 | +} | ||
35 | + | ||
36 | +.coupon-banner { | ||
37 | + text-align: center; | ||
38 | + font-size: 0; | ||
39 | +} | ||
40 | +.coupon-banner a { | ||
41 | + display: inline-block; | ||
42 | + width: 6.85rem; | ||
43 | + height: 3.85rem; | ||
44 | + margin: 0 0.175rem 0.1rem; | ||
45 | +} | ||
46 | +.coupon-banner img { | ||
47 | + display: block; | ||
48 | + width: 100%; | ||
49 | + height: 100%; | ||
50 | +} | ||
51 | +.bottom-btn { | ||
52 | + position: relative; | ||
53 | + margin: 0.375rem auto 0; | ||
54 | + width: 14.05rem; | ||
55 | + height: 1.775rem; | ||
56 | + font-size: 0; | ||
57 | +} | ||
58 | +.bottom-btn a{ | ||
59 | + position: absolute; | ||
60 | + top: 0; | ||
61 | + width: 7.65rem; | ||
62 | + height: 100%; | ||
63 | +} | ||
64 | +.bottom-btn a.follow-yoho { | ||
65 | + width: 6.0rem; | ||
66 | + left: 0; | ||
67 | +} | ||
68 | +.bottom-btn a.download-yoho { | ||
69 | + right: 0; | ||
70 | +} | ||
71 | +.modal { | ||
72 | + position: fixed; | ||
73 | + top: 0; | ||
74 | + right: 0; | ||
75 | + bottom: 0; | ||
76 | + left: 0; | ||
77 | + background: url(../../img/final/160125/share.png) center top no-repeat; | ||
78 | + -webkit-background-size: 100%; | ||
79 | + -moz-background-size: 100%; | ||
80 | + background-size: 100%; | ||
81 | + display: none; | ||
82 | +} | ||
83 | + | ||
84 | +.has-done { | ||
85 | + position: fixed; | ||
86 | + top: 0; | ||
87 | + right: 0; | ||
88 | + bottom: 0; | ||
89 | + left: 0; | ||
90 | + background: rgba(0,0,0,0.4) url(../../img/final/160125/11.png); | ||
91 | + background-repeat: no-repeat; | ||
92 | + background-size: 80% auto; | ||
93 | + background-position: center center; | ||
94 | + overflow: hidden; | ||
95 | + display: none; | ||
96 | +} | ||
97 | + | ||
98 | +.dialog-box { | ||
99 | + display: none; | ||
100 | + position: fixed; | ||
101 | + top: 0; | ||
102 | + right: 0; | ||
103 | + bottom: 0; | ||
104 | + left: 0; | ||
105 | + background: rgba(0,0,0,0.4); | ||
106 | + z-index: 999; | ||
107 | +} | ||
108 | + | ||
109 | +.dialog-inner { | ||
110 | + position: absolute; | ||
111 | + width: 13.425rem; | ||
112 | + height: 8.9rem; | ||
113 | + top: 50%; | ||
114 | + left: 50%; | ||
115 | + margin: -4.45rem 0 0 -6.7125rem; | ||
116 | +} | ||
117 | + | ||
118 | +.dialog-inner img { | ||
119 | + max-width: 100%; | ||
120 | +} | ||
121 | + | ||
122 | +.dialog-inner span { | ||
123 | + position: absolute; | ||
124 | + width: 6.85rem; | ||
125 | + height: 1.45rem; | ||
126 | + bottom: 0.9rem; | ||
127 | + left: 50%; | ||
128 | + margin: 0 0 0 -3.425rem; | ||
129 | + cursor: pointer; | ||
130 | +} |
5.12 KB
46.4 KB
8.27 KB
7.83 KB
23.8 KB
47.4 KB
1 | +<!DOCTYPE html> | ||
2 | +<html> | ||
3 | +<head> | ||
4 | + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
5 | + <meta charset="utf-8"> | ||
6 | + <title>{{staticTitle}}</title> | ||
7 | + <meta name="apple-mobile-web-app-title" content="SUMMER SALE"> | ||
8 | + <meta name="format-detection" content="telephone=no"> | ||
9 | + <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui" media="(device-height: 568px)"> | ||
10 | + <meta name="apple-mobile-web-app-capable" content="yes"> | ||
11 | + <meta name="apple-mobile-web-app-status-bar-style" content="grey"> | ||
12 | + <link rel="stylesheet" href="{{imgUrl}}/cuxiao/css/final/sale2.css"> | ||
13 | + <script> | ||
14 | + (function(doc, win) { | ||
15 | + var docEl = doc.documentElement; | ||
16 | + (function() { | ||
17 | + var clientWidth = docEl.clientWidth; | ||
18 | + if (!clientWidth) { | ||
19 | + return; | ||
20 | + } | ||
21 | + docEl.style.fontSize = 20 * (clientWidth / 320) + 'px'; | ||
22 | + }()); | ||
23 | + })(document, window); | ||
24 | + </script> | ||
25 | +</head> | ||
26 | +<body class="keBody"> | ||
27 | +{{#if weixinShare}} | ||
28 | +<div id="wx_pic" style="width:0px; height:0px; overflow:hidden"><img src="http://img11.static.yhbimg.com/couponImg/2016/01/25/03/01245f0ab37f0c99b77d2c5b6cf11c2265.png"/></div> | ||
29 | +{{/if}} | ||
30 | + | ||
31 | +<div class="coupon-christmas" show="{{showPopupFlag}}"> | ||
32 | + <div class="coupon-top"> | ||
33 | + <img src="{{imgUrl}}/cuxiao/img/final/160125/top-bg.png" alt=""> | ||
34 | + <a class="go-check" href="{{myCouponUrl}}"></a> | ||
35 | + <a class="share-btn" href="javascript:;"></a> | ||
36 | + </div> | ||
37 | + <div class="coupon-bottom"> | ||
38 | + <div class="coupon-banner"> | ||
39 | + <a href="{{bannerUrl_1}}"></a> | ||
40 | + <a href="{{bannerUrl_2}}"></a> | ||
41 | + <a href="{{bannerUrl_3}}"></a> | ||
42 | + <a href="{{bannerUrl_4}}"></a> | ||
43 | + </div> | ||
44 | + <div class="bottom-btn"> | ||
45 | + <a class="follow-yoho" href="http://mp.weixin.qq.com/s?__biz=MjM5ODI5MDA4MA==&mid=201849402&idx=1&sn=c0089812f9769d82e0075f69d771f6e1#rd"></a> | ||
46 | + <a class="download-yoho" href="{{downAppUrl}}"></a> | ||
47 | + </div> | ||
48 | + </div> | ||
49 | + <div class="coupon-ft"> | ||
50 | + <img src="{{imgUrl}}/cuxiao/img/final/160125/14.png"> | ||
51 | + </div> | ||
52 | +</div> | ||
53 | +<div class="modal"></div> | ||
54 | +<div class="dialog-box geted"> | ||
55 | + <div class="dialog-inner"> | ||
56 | + <img src="{{imgUrl}}/cuxiao/img/final/160125/geted.png" alt=""/> | ||
57 | + <span class="dialog-close"></span> | ||
58 | + </div> | ||
59 | +</div> | ||
60 | + | ||
61 | +<div class="dialog-box fail"> | ||
62 | + <div class="dialog-inner"> | ||
63 | + <img src="{{imgUrl}}/cuxiao/img/final/160125/fail.png" alt=""/> | ||
64 | + <span class="refresh-btn"></span> | ||
65 | + </div> | ||
66 | +</div> | ||
67 | +<input id="shareLink" type="hidden" value="{{shareLink}}"> | ||
68 | +<input id="shareImg" type="hidden" value="{{shareImg}}"> | ||
69 | +<input id="shareTitle" type="hidden" value="{{shareTitle}}"> | ||
70 | +<input id="shareDesc" type="hidden" value="{{shareDesc}}"> | ||
71 | +<script type="text/javascript" src="{{imgUrl}}/cuxiao/js/jquery.min.js"></script> | ||
72 | +<script> | ||
73 | + //提示分享 | ||
74 | + $('.share-btn').click(function () { | ||
75 | + $('.modal').fadeIn(); | ||
76 | + }); | ||
77 | + //关闭提示分享 | ||
78 | + $('.modal').click(function () { | ||
79 | + $(this).fadeOut(); | ||
80 | + }); | ||
81 | + //提示已领过券 | ||
82 | + if ($('.coupon-christmas').attr('show') === '1') { | ||
83 | + $('.dialog-box.geted').show(); | ||
84 | + } | ||
85 | + //提示领券失败 | ||
86 | + else if ($('.coupon-christmas').attr('show') === '2') { | ||
87 | + $('.dialog-box.fail').show(); | ||
88 | + } | ||
89 | + //关闭提示 | ||
90 | + $('.dialog-close').click(function(){ | ||
91 | + $(this).parents('.dialog-box').fadeOut(); | ||
92 | + }); | ||
93 | + //刷新页面 | ||
94 | + $('.refresh-btn').click(function() { | ||
95 | + location.reload(); | ||
96 | + }); | ||
97 | +</script> | ||
98 | +{{#if weixinShare}} | ||
99 | +<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="{{jsUrl}}/cuxiao/js/share.weixin.js"></script> | ||
101 | +{{/if}} | ||
102 | +{{> layout/analysis}} | ||
103 | +</body> | ||
104 | +</html> |
1 | <!-- Google Tag Manager --> | 1 | <!-- Google Tag Manager --> |
2 | <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> | 2 | <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> |
3 | <script> | 3 | <script> |
4 | - (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': | ||
5 | - new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], | ||
6 | - j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= | ||
7 | - '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); | ||
8 | - })(window,document,'script','dataLayer','GTM-W958MG'); | ||
9 | -</script> | ||
10 | -<!-- End Google Tag Manager --> | ||
11 | -<script type="text/javascript"> | ||
12 | - var _hmt = _hmt || []; | ||
13 | - (function() { | ||
14 | - var hm = document.createElement("script"); | ||
15 | - hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311"; | ||
16 | - var s = document.getElementsByTagName("script")[0]; | ||
17 | - s.parentNode.insertBefore(hm, s); | ||
18 | - })(); | ||
19 | -</script> | ||
20 | -<script> | ||
21 | var _hmt = _hmt || []; | 4 | var _hmt = _hmt || []; |
22 | - (function() { | ||
23 | - var hm = document.createElement("script"); | ||
24 | - hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841"; | ||
25 | - var s = document.getElementsByTagName("script")[0]; | ||
26 | - s.parentNode.insertBefore(hm, s); | ||
27 | - })(); | 5 | + function async_load(){ |
6 | + (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': | ||
7 | + new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], | ||
8 | + j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= | ||
9 | + '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); | ||
10 | + })(window,document,'script','dataLayer','GTM-W958MG'); | ||
11 | + (function() { | ||
12 | + var hm = document.createElement("script"); | ||
13 | + hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311"; | ||
14 | + hm.async = 1; | ||
15 | + var s = document.getElementsByTagName("script")[0]; | ||
16 | + s.parentNode.insertBefore(hm, s); | ||
17 | + })(); | ||
18 | + (function() { | ||
19 | + var hm = document.createElement("script"); | ||
20 | + hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841"; | ||
21 | + hm.async = 1; | ||
22 | + var s = document.getElementsByTagName("script")[0]; | ||
23 | + s.parentNode.insertBefore(hm, s); | ||
24 | + })(); | ||
25 | + (function() { | ||
26 | + var hm = document.createElement("script"); | ||
27 | + hm.src = "//hm.baidu.com/hm.js?e5b83a487a4458aa5abca43f5779b764"; | ||
28 | + var s = document.getElementsByTagName("script")[0]; | ||
29 | + s.parentNode.insertBefore(hm, s); | ||
30 | + })(); | ||
31 | + } | ||
32 | + window.addEventListener('load', async_load, false); | ||
28 | </script> | 33 | </script> |
@@ -19,7 +19,7 @@ | @@ -19,7 +19,7 @@ | ||
19 | </div> | 19 | </div> |
20 | <div class="item-content"> | 20 | <div class="item-content"> |
21 | <h2>{{title}}</h2> | 21 | <h2>{{title}}</h2> |
22 | - <p>¥{{# price}}<span>{{.}}</span>{{/ price}}¥{{sPrice}}</p> | 22 | + <p>{{# price}}<span>¥{{.}}</span>{{/ price}}¥{{sPrice}}</p> |
23 | </div> | 23 | </div> |
24 | </li> | 24 | </li> |
25 | {{/ list}} | 25 | {{/ list}} |
@@ -202,10 +202,8 @@ | @@ -202,10 +202,8 @@ | ||
202 | float: left; | 202 | float: left; |
203 | display: block; | 203 | display: block; |
204 | width: 110px; | 204 | width: 110px; |
205 | - height: 14px; | ||
206 | - line-height: 14px; | 205 | + line-height: 20px; |
207 | font-size: 12px; | 206 | font-size: 12px; |
208 | - margin-bottom: 5px; | ||
209 | color: #069; | 207 | color: #069; |
210 | text-decoration: underline; | 208 | text-decoration: underline; |
211 | } | 209 | } |
@@ -672,6 +672,60 @@ class CouponController extends HuodongAction | @@ -672,6 +672,60 @@ class CouponController extends HuodongAction | ||
672 | 'downAppUrl' => 'http://www.yohoshow.com/about/index/yohobuyqr', | 672 | 'downAppUrl' => 'http://www.yohoshow.com/about/index/yohobuyqr', |
673 | )); | 673 | )); |
674 | } | 674 | } |
675 | + | ||
676 | + /** | ||
677 | + * Final Sale 领券活动第二波 | ||
678 | + * | ||
679 | + * 上线时间2016/01/25 | ||
680 | + */ | ||
681 | + public function final2Action() | ||
682 | + { | ||
683 | + //获取登录者ID,未登录返回false | ||
684 | + $uid = $this->getLoggedUid(); | ||
685 | + if (!$uid || !is_numeric($uid)) { | ||
686 | + //未登录的用户访问,跳转到登录页面。并且在登陆后跳转回本页面 | ||
687 | + $this->go(Helpers::url('/signin.html', array('refer' => Helpers::url('/cuxiao/coupon/final2')), 'default')); | ||
688 | + } | ||
689 | + | ||
690 | + // 该变量用来控制和显示页面的弹出提示 | ||
691 | + $showPopupFlag = '0'; | ||
692 | + | ||
693 | + //获取跳转到个人中心-我的优惠券链接,并调用接口,完成领券操作 | ||
694 | + $myCouponUrl = Helpers::url('/home/coupons', null, 'default') . '?openby:yohobuy={"action":"go.coupon"}'; | ||
695 | + $activityId = $this->getActivityId2(); | ||
696 | + $result = ActivityData::getCouponAll($uid, $activityId); | ||
697 | + if (isset($result['code'])) { | ||
698 | + switch (intval($result['code'])) { | ||
699 | + case 200: // 领取成功, 发送站内信消息 | ||
700 | + $showPopupFlag = '0'; | ||
701 | + $this->sendMessage($uid, '【优惠券】您获得618元套券', '尊敬的客户:恭喜您成功获得618元套券!您可以在个人中心查看优惠券信息。'); | ||
702 | + break; | ||
703 | + case 201: // 已领取过, 提示重复领券 | ||
704 | + $showPopupFlag = '1'; | ||
705 | + break; | ||
706 | + default: // 领取失败, 提示领券失败 | ||
707 | + $showPopupFlag = '2'; | ||
708 | + break; | ||
709 | + } | ||
710 | + } | ||
711 | + | ||
712 | + $this->_view->display('final-2', array( | ||
713 | + 'staticTitle' => 'YOHO!BUY有货【Final Sale】年终热促', | ||
714 | + 'weixinShare' => $this->_isApp ? false : true, // 是否需要微信分享 | ||
715 | + 'shareLink' => 'http://feature.yohobuy.com/0/0/775/index.html', | ||
716 | + 'shareTitle' => 'YOHO!BUY有货【FINAL SALE】年终热促,新年特辑全开启!618元优惠券限时领取中!', | ||
717 | + 'shareDesc' => '800+潮牌限时5折封顶,折上最高直减¥1000!更有新年超值礼包299元起!', | ||
718 | + 'shareImg' => 'http://img11.static.yhbimg.com/couponImg/2016/01/25/03/01245f0ab37f0c99b77d2c5b6cf11c2265.png', | ||
719 | + 'showPopupFlag' => $showPopupFlag, | ||
720 | + 'myCouponUrl' => $myCouponUrl, | ||
721 | + 'bannerUrl_1' => 'http://feature.yoho.cn/0125/0125APPHOMEBOY/index.html?openby:yohobuy={"action":"go.h5","params":{"title":"FINAL SALE","url":"http://feature.yoho.cn/0125/0125APPHOMEBOY/index.html?","share":"\/operations\/api\/v5\/webshare\/getShare","shareparam":{"share_id":"374"},"param":{"share_id":"374"}}}', | ||
722 | + 'bannerUrl_2' => 'http://feature.yoho.cn/0125/0125APPHOMEGIRL/index.html?openby:yohobuy={"action":"go.h5","params":{"title":"FINAL SALE","url":"http://feature.yoho.cn/0125/0125APPHOMEGIRL/index.html?","share":"\/operations\/api\/v5\/webshare\/getShare","shareparam":{"share_id":"372"},"param":{"share_id":"372"}}}', | ||
723 | + 'bannerUrl_3' => 'http://feature.yoho.cn/0125/0125APPHOMEKIDS/index.html?openby:yohobuy={"action":"go.h5","params":{"title":"FINAL SALE","url":"http://feature.yoho.cn/0125/0125APPHOMEKIDS/index.html?","share":"\/operations\/api\/v5\/webshare\/getShare","shareparam":{"share_id":"370"},"param":{"share_id":"370"}}}', | ||
724 | + 'bannerUrl_4' => 'http://feature.yoho.cn/0125/0125APPHOMELIFE/index.html?openby:yohobuy={"action":"go.h5","params":{"title":"FINAL SALE","url":"http://feature.yoho.cn/0125/0125APPHOMELIFE/index.html?","share":"\/operations\/api\/v5\/webshare\/getShare","shareparam":{"share_id":"368"},"param":{"share_id":"368"}}}', | ||
725 | + 'downAppUrl' => 'http://www.yohoshow.com/about/index/yohobuyqr', | ||
726 | + )); | ||
727 | + } | ||
728 | + | ||
675 | 729 | ||
676 | /** | 730 | /** |
677 | * 领取指定的优惠券 | 731 | * 领取指定的优惠券 |
@@ -836,5 +890,25 @@ class CouponController extends HuodongAction | @@ -836,5 +890,25 @@ class CouponController extends HuodongAction | ||
836 | return 89; | 890 | return 89; |
837 | } | 891 | } |
838 | } | 892 | } |
893 | + | ||
894 | + /** | ||
895 | + * 根据环境来获取活动ID | ||
896 | + * | ||
897 | + * @return int | ||
898 | + */ | ||
899 | + private function getActivityId2() | ||
900 | + { | ||
901 | + // 设置环境变量 | ||
902 | + switch (APPLICATION_ENV) { | ||
903 | + case 'production': // 生产 | ||
904 | + return 468; | ||
905 | + case 'preview': // 预览 | ||
906 | + return 468; | ||
907 | + case 'testing': // 测试 | ||
908 | + case 'develop': // 开发 | ||
909 | + default: | ||
910 | + return 483; | ||
911 | + } | ||
912 | + } | ||
839 | 913 | ||
840 | } | 914 | } |
@@ -39,7 +39,7 @@ class ClassModel | @@ -39,7 +39,7 @@ class ClassModel | ||
39 | 39 | ||
40 | do { | 40 | do { |
41 | $data = ClassData::getClassesData(); | 41 | $data = ClassData::getClassesData(); |
42 | - if (empty($data['data'])) { | 42 | + if (empty($data['data']) || $data['code'] != 200) { |
43 | break; | 43 | break; |
44 | } | 44 | } |
45 | 45 | ||
@@ -82,18 +82,18 @@ class ClassModel | @@ -82,18 +82,18 @@ class ClassModel | ||
82 | 82 | ||
83 | $result[] = $oneClass; | 83 | $result[] = $oneClass; |
84 | } | 84 | } |
85 | + } while (false); | ||
85 | 86 | ||
86 | - if (USE_CACHE) { | ||
87 | - // 接口调用异常时, 不害怕,从我们的二级缓存(slave)里再取数据. | ||
88 | - if (empty($result)) { | ||
89 | - $result = Cache::get($key, 'slave'); | ||
90 | - } | ||
91 | - // 接口调用正常,数据封装完成, 则设置一级(master)和二级(slave)数据缓存 | ||
92 | - else { | ||
93 | - Cache::set($key, $result); | ||
94 | - } | 87 | + if (USE_CACHE) { |
88 | + // 接口调用异常时, 不害怕,从我们的二级缓存(slave)里再取数据. | ||
89 | + if (empty($result)) { | ||
90 | + $result = Cache::get($key, 'slave'); | ||
95 | } | 91 | } |
96 | - } while (false); | 92 | + // 接口调用正常,数据封装完成, 则设置一级(master)和二级(slave)数据缓存 |
93 | + else { | ||
94 | + Cache::set($key, $result); | ||
95 | + } | ||
96 | + } | ||
97 | 97 | ||
98 | return $result; | 98 | return $result; |
99 | } | 99 | } |
@@ -464,36 +464,37 @@ class UserModel | @@ -464,36 +464,37 @@ class UserModel | ||
464 | public static function getCouponData($uid, $status, $page) | 464 | public static function getCouponData($uid, $status, $page) |
465 | { | 465 | { |
466 | $result = array(); | 466 | $result = array(); |
467 | - | ||
468 | - // 调用接口获取优惠券数据 | ||
469 | - $coupons = UserData::couponData($uid, $status, $page); | ||
470 | - | ||
471 | - // 没有获取到优惠券时 | ||
472 | - if (!$coupons) { | ||
473 | - $result['noRecord'] = true; | ||
474 | - | ||
475 | - return $result; | ||
476 | - } | ||
477 | - | ||
478 | - // 处理优惠券数据 | ||
479 | - if (isset($coupons['data'])) { | ||
480 | - | ||
481 | - // 不能再查到结果了 | ||
482 | - if ($page == 1 && $coupons['data']['total'] === 0) { | 467 | + |
468 | + do { | ||
469 | + // 调用接口获取优惠券数据 | ||
470 | + $coupons = UserData::couponData($uid, $status, $page); | ||
471 | + | ||
472 | + // 没有获取到优惠券时 | ||
473 | + if (empty($coupons)) { | ||
483 | $result['noRecord'] = true; | 474 | $result['noRecord'] = true; |
484 | - } else { | ||
485 | - $couponArr = array(); | ||
486 | - isset($coupons['data']['info']) && $couponArr = $coupons['data']['info']; | 475 | + break; |
476 | + } | ||
487 | 477 | ||
488 | - foreach ($couponArr as &$val) { | ||
489 | - // 处理已使用的优惠券 | ||
490 | - if ($status == 1) { | ||
491 | - $val['used'] = true; | ||
492 | - } | 478 | + if ($page == 1 && isset($coupons['data']['total']) && $coupons['data']['total'] === 0) { |
479 | + $result['noRecord'] = true; | ||
480 | + break; | ||
481 | + } | ||
482 | + | ||
483 | + // 判断是否有优惠券 | ||
484 | + if (empty($coupons['data']['info'])) { | ||
485 | + break; | ||
486 | + } | ||
487 | + | ||
488 | + // 处理已使用的优惠券 | ||
489 | + if ($status == 1) { | ||
490 | + foreach ($coupons['data']['info'] as &$value) { | ||
491 | + $value['used'] = true; | ||
493 | } | 492 | } |
494 | - !empty($couponArr) && $result['coupons'] = $couponArr; | ||
495 | } | 493 | } |
494 | + | ||
495 | + $result['coupons'] = $coupons['data']['info']; | ||
496 | } | 496 | } |
497 | + while (false); | ||
497 | 498 | ||
498 | return $result; | 499 | return $result; |
499 | } | 500 | } |
@@ -51,7 +51,7 @@ class BackController extends AbstractAction | @@ -51,7 +51,7 @@ class BackController extends AbstractAction | ||
51 | // 发送邮箱验证码 | 51 | // 发送邮箱验证码 |
52 | $result = BackData::sendCodeToEmail($email); | 52 | $result = BackData::sendCodeToEmail($email); |
53 | if ($result['code'] === 200) { | 53 | if ($result['code'] === 200) { |
54 | - $result['data'] = Helpers::url('/passport/back/resendemail', array( | 54 | + $result['data'] = Helpers::url('/passport/back/success', array( |
55 | 'email' => $email, | 55 | 'email' => $email, |
56 | )); | 56 | )); |
57 | } | 57 | } |
-
Please register or login to post a comment