Authored by 毕凯

Merge branch 'hotfix/getCoupon' into develop

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="format-detection" content="telephone=no">  
31 - <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui">  
32 - <meta name="apple-mobile-web-app-capable" content="yes">  
33 - <meta name="apple-mobile-web-app-status-bar-style" content="grey">  
34 - <script type="text/javascript">  
35 - (function(d,c){var e=d.documentElement,a="orientationchange" in window?"orientationchange":"resize",b=function(){var f=e.clientWidth;if(!f){return}if(f>=640){e.style.fontSize="40px"}else{e.style.fontSize=40*(f/640)+"px"}};if(!d.addEventListener){return}b();c.addEventListener(a,b,false);d.addEventListener("DOMContentLoaded",b,false)})(document,window);  
36 - </script>  
37 - <link rel="stylesheet" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/2016xinshili-3/css/style.css">  
38 -</head>  
39 -<body class="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('pageType')), ENT_QUOTES, 'UTF-8').'">  
40 -'.' <div class="main-wrap home">  
41 - <div class="header">  
42 - </div>  
43 -'.Plugin\LCRun3::ifv($cx, Plugin\LCRun3::v($cx, $in, array('tab')), $in, function($cx, $in) {return ' <div class="tab type">  
44 -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('tab')), $in, false, function($cx, $in) {return ' <div class="tab-item" data-type="'.htmlentities((string)$in, ENT_QUOTES, 'UTF-8').'"></div>  
45 -';}).' <input type="hidden" id="more-brand" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('moreBrand')), ENT_QUOTES, 'UTF-8').'">  
46 - </div>  
47 -';}).' <div class="content">  
48 - </div>  
49 - <script type="text/tmpl" id="tmpl">  
50 - <div class="coupons">  
51 - {{#coupons}}  
52 - <a class="coupon" href="{{../jumpUrl}}" data-id="{{id}}">  
53 - <img class="lazy" src="" data-original="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/{{img}}">  
54 - </a>  
55 - {{/coupons}}  
56 - </div>  
57 - <div class="brands clearfix">  
58 - {{#brands}}  
59 - <a class="brand" href=\'{{url}}\'>  
60 - <img class="lazy" src="" data-original="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/{{img}}">  
61 - </a>  
62 - {{/brands}}  
63 - <div class="after"></div>  
64 - </div>  
65 - <div class="more">  
66 - <div class="more-title">  
67 - </div>  
68 - <a class="link" href=\'{{more.url}}\'>  
69 - <img class="lazy" src="" data-original="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/{{more.img}}">  
70 - </a>  
71 - </div>  
72 - </script>  
73 - </div>  
74 - <div class="footer">  
75 - </div>  
76 - <div class="tip-wrap hide">  
77 - <div class="tip hide fail">  
78 - <div class="title">  
79 - 领取失败<br>  
80 - 请刷新重新领取  
81 - </div>  
82 - <a class="button" href="">  
83 - 刷新  
84 - </a>  
85 - </div>  
86 - </div>  
87 -  
88 - <div class="tip-wrap hide">  
89 - <div class="tip hide success">  
90 - <div class="title">  
91 - 领取成功  
92 - </div>  
93 - <div class="sub-title">  
94 - 快去分享给更多<br>  
95 - 喜爱<span class="title">潮流</span>的小伙伴吧!  
96 - </div>  
97 - <a class="button close" href="">  
98 - 返回  
99 - </a>  
100 - </div>  
101 - </div>  
102 -  
103 - <div class="tip-wrap hide">  
104 - <div class="tip hide geted">  
105 - <div class="title">  
106 - 您已领取过了  
107 - </div>  
108 - <div class="sub-title">  
109 - 快去分享给更多<br>  
110 - 喜爱<span class="title">潮流</span>的小伙伴吧!  
111 - </div>  
112 - <a class="button close" href="">  
113 - 返回  
114 - </a>  
115 - </div>  
116 - </div>  
117 - <div class="loading-mask hide">  
118 - <div class="loading">  
119 - <div></div>  
120 - <div></div>  
121 - <div></div>  
122 - </div>  
123 - </div>  
124 -  
125 - <input type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('pageType')), ENT_QUOTES, 'UTF-8').'" id="page-type">  
126 - <input type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('activityId')), ENT_QUOTES, 'UTF-8').'" id="activity-id">  
127 - <input type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" id="jump-url">  
128 -'.Plugin\LCRun3::ifv($cx, Plugin\LCRun3::v($cx, $in, array('isApp')), $in, function($cx, $in) {return ' <input type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('getCouponUrl')), ENT_QUOTES, 'UTF-8').'" id="getCouponUrl">  
129 -';}).' <script type="text/javascript">  
130 - var isOnline = '.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('isOnline')), ENT_QUOTES, 'UTF-8').';  
131 -'.Plugin\LCRun3::ifv($cx, Plugin\LCRun3::v($cx, $in, array('isApp')), $in, function($cx, $in) {return ' var isApp = 1;  
132 -'.Plugin\LCRun3::ifv($cx, Plugin\LCRun3::v($cx, $in, array('isAppLogin')), $in, function($cx, $in) {return ' var isAppLogin = 1;  
133 -';}).'';}).'  
134 - </script>  
135 -'.'<input type="hidden" id="shareTitle" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareTitle')), ENT_QUOTES, 'UTF-8').'">  
136 -<input type="hidden" id="shareDesc" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'">  
137 -<input type="hidden" id="shareImg" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareImg')), ENT_QUOTES, 'UTF-8').'">  
138 -<input type="hidden" id="shareLink" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareLink')), ENT_QUOTES, 'UTF-8').'">  
139 -<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>  
140 -<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/2016xinshili-3/js/libs.js"></script>  
141 -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('staticJS')), $in, false, function($cx, $in) {return '<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $cx['scopes'][count($cx['scopes'])-1], array('jsUrl')), ENT_QUOTES, 'UTF-8').'/2016xinshili-3/js/'.htmlentities((string)$in, ENT_QUOTES, 'UTF-8').'"></script>  
142 -';}).'</body>  
143 -'.'';  
144 -}  
145 -?>  
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="format-detection" content="telephone=no">  
31 - <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui">  
32 - <meta name="apple-mobile-web-app-capable" content="yes">  
33 - <meta name="apple-mobile-web-app-status-bar-style" content="grey">  
34 - <script type="text/javascript">  
35 - (function(d,c){var e=d.documentElement,a="orientationchange" in window?"orientationchange":"resize",b=function(){var f=e.clientWidth;if(!f){return}if(f>=640){e.style.fontSize="40px"}else{e.style.fontSize=40*(f/640)+"px"}};if(!d.addEventListener){return}b();c.addEventListener(a,b,false);d.addEventListener("DOMContentLoaded",b,false)})(document,window);  
36 - </script>  
37 - <link rel="stylesheet" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/2016xinshili-3/css/style.css">  
38 -</head>  
39 -<body class="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('pageType')), ENT_QUOTES, 'UTF-8').'">  
40 -'.' <div class="main-wrap home">  
41 - <div class="header">  
42 - </div>  
43 -'.Plugin\LCRun3::ifv($cx, Plugin\LCRun3::v($cx, $in, array('tab')), $in, function($cx, $in) {return ' <div class="tab type">  
44 -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('tab')), $in, false, function($cx, $in) {return ' <div class="tab-item" data-type="'.htmlentities((string)$in, ENT_QUOTES, 'UTF-8').'"></div>  
45 -';}).' <input type="hidden" id="more-brand" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('moreBrand')), ENT_QUOTES, 'UTF-8').'">  
46 - </div>  
47 -';}).' <div class="content">  
48 - </div>  
49 - <script type="text/tmpl" id="tmpl">  
50 - <div class="coupons">  
51 - {{#coupons}}  
52 - <a class="coupon" href="{{../jumpUrl}}" data-id="{{id}}">  
53 - <img class="lazy" src="" data-original="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/{{img}}">  
54 - </a>  
55 - {{/coupons}}  
56 - </div>  
57 - <div class="brands clearfix">  
58 - {{#brands}}  
59 - <a class="brand" href=\'{{url}}\'>  
60 - <img class="lazy" src="" data-original="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/{{img}}">  
61 - </a>  
62 - {{/brands}}  
63 - <div class="after"></div>  
64 - </div>  
65 - <div class="more">  
66 - <div class="more-title">  
67 - </div>  
68 - <a class="link" href=\'{{more.url}}\'>  
69 - <img class="lazy" src="" data-original="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/{{more.img}}">  
70 - </a>  
71 - </div>  
72 - </script>  
73 - </div>  
74 - <div class="footer">  
75 - </div>  
76 - <div class="tip-wrap hide">  
77 - <div class="tip hide fail">  
78 - <div class="title">  
79 - 领取失败<br>  
80 - 请刷新重新领取  
81 - </div>  
82 - <a class="button" href="">  
83 - 刷新  
84 - </a>  
85 - </div>  
86 - </div>  
87 -  
88 - <div class="tip-wrap hide">  
89 - <div class="tip hide success">  
90 - <div class="title">  
91 - 领取成功  
92 - </div>  
93 - <div class="sub-title">  
94 - 快去分享给更多<br>  
95 - 喜爱<span class="title">潮流</span>的小伙伴吧!  
96 - </div>  
97 - <a class="button close" href="">  
98 - 返回  
99 - </a>  
100 - </div>  
101 - </div>  
102 -  
103 - <div class="tip-wrap hide">  
104 - <div class="tip hide geted">  
105 - <div class="title">  
106 - 您已领取过了  
107 - </div>  
108 - <div class="sub-title">  
109 - 快去分享给更多<br>  
110 - 喜爱<span class="title">潮流</span>的小伙伴吧!  
111 - </div>  
112 - <a class="button close" href="">  
113 - 返回  
114 - </a>  
115 - </div>  
116 - </div>  
117 - <div class="loading-mask hide">  
118 - <div class="loading">  
119 - <div></div>  
120 - <div></div>  
121 - <div></div>  
122 - </div>  
123 - </div>  
124 -  
125 - <input type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('pageType')), ENT_QUOTES, 'UTF-8').'" id="page-type">  
126 - <input type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('activityId')), ENT_QUOTES, 'UTF-8').'" id="activity-id">  
127 - <input type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" id="jump-url">  
128 -'.Plugin\LCRun3::ifv($cx, Plugin\LCRun3::v($cx, $in, array('isApp')), $in, function($cx, $in) {return ' <input type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('getCouponUrl')), ENT_QUOTES, 'UTF-8').'" id="getCouponUrl">  
129 -';}).' <script type="text/javascript">  
130 - var isOnline = '.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('isOnline')), ENT_QUOTES, 'UTF-8').';  
131 -'.Plugin\LCRun3::ifv($cx, Plugin\LCRun3::v($cx, $in, array('isApp')), $in, function($cx, $in) {return ' var isApp = 1;  
132 -'.Plugin\LCRun3::ifv($cx, Plugin\LCRun3::v($cx, $in, array('isAppLogin')), $in, function($cx, $in) {return ' var isAppLogin = 1;  
133 -';}).'';}).'  
134 - </script>  
135 -'.'<input type="hidden" id="shareTitle" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareTitle')), ENT_QUOTES, 'UTF-8').'">  
136 -<input type="hidden" id="shareDesc" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'">  
137 -<input type="hidden" id="shareImg" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareImg')), ENT_QUOTES, 'UTF-8').'">  
138 -<input type="hidden" id="shareLink" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareLink')), ENT_QUOTES, 'UTF-8').'">  
139 -<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>  
140 -<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/2016xinshili-3/js/libs.js"></script>  
141 -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('staticJS')), $in, false, function($cx, $in) {return '<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $cx['scopes'][count($cx['scopes'])-1], array('jsUrl')), ENT_QUOTES, 'UTF-8').'/2016xinshili-3/js/'.htmlentities((string)$in, ENT_QUOTES, 'UTF-8').'"></script>  
142 -';}).'</body>  
143 -'.'';  
144 -}  
145 -?>  
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="format-detection" content="telephone=no">  
31 - <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui">  
32 - <meta name="apple-mobile-web-app-capable" content="yes">  
33 - <meta name="apple-mobile-web-app-status-bar-style" content="grey">  
34 - <script type="text/javascript">  
35 - (function(d,c){var e=d.documentElement,a="orientationchange" in window?"orientationchange":"resize",b=function(){var f=e.clientWidth;if(!f){return}if(f>=640){e.style.fontSize="40px"}else{e.style.fontSize=40*(f/640)+"px"}};if(!d.addEventListener){return}b();c.addEventListener(a,b,false);d.addEventListener("DOMContentLoaded",b,false)})(document,window);  
36 - </script>  
37 - <link rel="stylesheet" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('staticFile')), ENT_QUOTES, 'UTF-8').'/css/style.css">  
38 -</head>  
39 -<body>  
40 -'.' <div class="main-wrap home">  
41 - <div class="header"></div>  
42 - <a class="coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('couponUrl')), ENT_QUOTES, 'UTF-8').'"></a>  
43 - <div class="share">  
44 - 快去分享给小伙伴吧 <span class="arrow"></span>  
45 - </div>  
46 - <a class="banner" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('banner','url')), ENT_QUOTES, 'UTF-8').'">  
47 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('banner','img')), ENT_QUOTES, 'UTF-8').'">  
48 - </a>  
49 -'.Plugin\LCRun3::unl($cx, Plugin\LCRun3::v($cx, $in, array('isApp')), $in, function($cx, $in) {return ' <div class="download">  
50 - <a class="weixin" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('weixinUrl')), ENT_QUOTES, 'UTF-8').'">  
51 - 关注有货微信 <span class="arrow"></span>  
52 - </a>  
53 - <a class="app" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('appUrl')), ENT_QUOTES, 'UTF-8').'">  
54 - 下载YOHO!BUY有货APP <span class="arrow"></span>  
55 - </a>  
56 - </div>  
57 -';}).' <div class="footer">  
58 - </div>  
59 - </div>  
60 - <div class="mask hide">  
61 - <div class="pengyouquan">  
62 - </div>  
63 - <div class="arrow">  
64 - </div>  
65 - <p>  
66 - 点击右上角<br>  
67 - 微信分享至朋友圈  
68 - </p>  
69 - </div>  
70 - <div class="tip-wrap hide">  
71 - <div class="tip hide fail">  
72 - <div class="title">  
73 - 领取失败<br>  
74 - 请刷新重新领取  
75 - </div>  
76 - <div class="desc">  
77 - 如多次领取失败,请联系客服人员<br>  
78 - 带来不便敬请谅解  
79 - </div>  
80 - <a class="button" href="">  
81 - 刷新  
82 - </a>  
83 - </div>  
84 - </div>  
85 -  
86 - <div class="tip-wrap hide">  
87 - <div class="tip hide geted">  
88 - <div class="title">  
89 - 你已领取过优惠券  
90 - </div>  
91 - <div class="sub-title">  
92 - 快去分享给更多<br>  
93 - 喜爱<span class="title">潮流</span>的小伙伴吧!  
94 - </div>  
95 - <a class="button close" href="">  
96 - 返回  
97 - </a>  
98 - </div>  
99 - </div>  
100 -  
101 -'.Plugin\LCRun3::ifv($cx, Plugin\LCRun3::v($cx, $in, array('isApp')), $in, function($cx, $in) {return ' <input type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('getCouponUrl')), ENT_QUOTES, 'UTF-8').'" id="getCouponUrl">  
102 -';}).''.'<input type="hidden" id="shareTitle" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareTitle')), ENT_QUOTES, 'UTF-8').'">  
103 -<input type="hidden" id="shareDesc" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'">  
104 -<input type="hidden" id="shareImg" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareImg')), ENT_QUOTES, 'UTF-8').'">  
105 -<input type="hidden" id="shareLink" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareLink')), ENT_QUOTES, 'UTF-8').'">  
106 -<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>  
107 -<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('staticFile')), ENT_QUOTES, 'UTF-8').'/js/libs.js"></script>  
108 -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('staticJS')), $in, false, function($cx, $in) {return '<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $cx['scopes'][count($cx['scopes'])-1], array('staticFile')), ENT_QUOTES, 'UTF-8').'/js/'.htmlentities((string)$in, ENT_QUOTES, 'UTF-8').'"></script>  
109 -';}).'</body>  
110 -'.'';  
111 -}  
112 -?>  
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 {  
41 - position: fixed;  
42 - display: none;  
43 - text-align: center;  
44 - width: 70%;  
45 - padding: 34px 0;  
46 - top: 50%;  
47 - left: 50%;  
48 - margin-left: -35%;  
49 - margin-top: -45px;  
50 - background-color: #000;  
51 - opacity: 0.9;  
52 - color: #fff;  
53 - font-size: 18px;  
54 - border: none;  
55 - border-radius: 10px;  
56 - }  
57 - </style>  
58 - <link rel="dns-prefetch" href="//cdn.yoho.cn">  
59 - <link rel="dns-prefetch" href="//static.yohobuy.com">  
60 - </head>  
61 - <body>  
62 - <div class="coupon-container" id="coupon-container" param="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('activityId')), ENT_QUOTES, 'UTF-8').'" isLogged="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('isLogged')), ENT_QUOTES, 'UTF-8').'">  
63 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/01.jpg">  
64 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/02.jpg">  
65 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/03.jpg">  
66 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/line-1.jpg">  
67 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/04.jpg">  
68 - <div class="img-box">  
69 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/05.jpg">  
70 - <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_yohope')), ENT_QUOTES, 'UTF-8').'"></a>  
71 - </div>  
72 - <div class="img-box">  
73 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/06.jpg">  
74 - <a class="href href-center" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_mycoupon')), ENT_QUOTES, 'UTF-8').'"></a>  
75 - </div>  
76 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/line-2.jpg">  
77 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/07.jpg">  
78 - <div class="img-box">  
79 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/08.jpg">  
80 - <a class="href href-left" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_more')), ENT_QUOTES, 'UTF-8').'"></a>  
81 - </div>  
82 - <div class="img-box">  
83 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/09.jpg">  
84 - <span class="href href-left get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="16567"></span>  
85 - </div>  
86 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/10.jpg">  
87 - <div class="img-box">  
88 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/11.jpg">  
89 - <a class="href href-left" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_4')), ENT_QUOTES, 'UTF-8').'"></a>  
90 - <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_343')), ENT_QUOTES, 'UTF-8').'"></a>  
91 - </div>  
92 - <div class="img-box">  
93 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/12.jpg">  
94 - <span class="href href-left get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="16547"></span>  
95 - <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="16549"></span>  
96 - </div>  
97 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/line-1.jpg">  
98 - <div class="img-box">  
99 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/13.jpg">  
100 - <a class="href href-left" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_230')), ENT_QUOTES, 'UTF-8').'"></a>  
101 - <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_536')), ENT_QUOTES, 'UTF-8').'"></a>  
102 - </div>  
103 - <div class="img-box">  
104 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/14.jpg">  
105 - <span class="href href-left get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="16551"></span>  
106 - <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="16553"></span>  
107 - </div>  
108 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/line-1.jpg">  
109 - <div class="img-box">  
110 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/15.jpg">  
111 - <a class="href href-left" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_847')), ENT_QUOTES, 'UTF-8').'"></a>  
112 - </div>  
113 - <div class="img-box">  
114 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/16.jpg">  
115 - <span class="href href-left get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="16555"></span>  
116 - </div>  
117 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/line-1.jpg">  
118 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/17.jpg">  
119 - <div class="img-box">  
120 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/18.jpg">  
121 - <a class="href href-left" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_868')), ENT_QUOTES, 'UTF-8').'"></a>  
122 - <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_1026')), ENT_QUOTES, 'UTF-8').'"></a>  
123 - </div>  
124 - <div class="img-box">  
125 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/19.jpg">  
126 - <span class="href href-left get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="16557"></span>  
127 - <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="16559"></span>  
128 - </div>  
129 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/line-1.jpg">  
130 - <div class="img-box">  
131 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/20.jpg">  
132 - <a class="href href-left" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_570')), ENT_QUOTES, 'UTF-8').'"></a>  
133 - <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_778')), ENT_QUOTES, 'UTF-8').'"></a>  
134 - </div>  
135 - <div class="img-box">  
136 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/21.jpg">  
137 - <span class="href href-left get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="16561"></span>  
138 - <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="16563"></span>  
139 - </div>  
140 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/line-1.jpg">  
141 - <div class="img-box">  
142 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/22.jpg">  
143 - <a class="href href-left" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_517')), ENT_QUOTES, 'UTF-8').'"></a>  
144 - </div>  
145 - <div class="img-box">  
146 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/23.jpg">  
147 - <span class="href href-left get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="16565"></span>  
148 - </div>  
149 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/line-1.jpg">  
150 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/line-2.jpg">  
151 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/24-1.jpg">  
152 - <div class="img-box">  
153 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/24-2.jpg">  
154 - <a class="show-more" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_help')), ENT_QUOTES, 'UTF-8').'"></a>  
155 - </div>  
156 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/24-3.jpg">  
157 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/line-2.jpg">  
158 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/25.jpg">  
159 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/26.jpg">  
160 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/27.jpg">  
161 - </div>  
162 - <script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script>  
163 - <script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/newuser/coupon.js"></script>  
164 - </body>  
165 -</html>';  
166 -}  
167 -?>  
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/160310/01.jpg">  
48 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160310/02.jpg">  
49 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160310/03.jpg">  
50 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160310/line-1.jpg">  
51 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160310/04.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/160310/05.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/160310/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/160310/line-2.jpg">  
61 -  
62 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160310/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/160310/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/160310/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="19239"></span>  
71 - <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="19241"></span>  
72 - </div>  
73 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160310/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/160310/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/160310/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="19243"></span>  
82 - <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="19245"></span>  
83 - </div>  
84 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160310/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/160310/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/160310/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="19253"></span>  
93 - <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="19257"></span>  
94 - </div>  
95 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160310/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/160310/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/160310/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="19247"></span>  
104 - <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="19249"></span>  
105 - </div>  
106 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160310/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/160310/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 - <a class="href href-right" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_7')), ENT_QUOTES, 'UTF-8').'"></a>  
111 - </div>  
112 - <div class="img-box">  
113 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160310/17.jpg">  
114 - <span class="href href-left get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="19251"></span>  
115 - <span class="href href-right get-coupon" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" param="19259"></span>  
116 - </div>  
117 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160310/line-1.jpg">  
118 -  
119 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160310/24-1.jpg">  
120 - <div class="img-box">  
121 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160310/24-2.jpg">  
122 - <a class="show-more" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url_help')), ENT_QUOTES, 'UTF-8').'"></a>  
123 - </div>  
124 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160310/24-3.jpg">  
125 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160310/line-2.jpg">  
126 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160310/25-1.jpg">  
127 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160310/25-2.jpg">  
128 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160310/25-3.jpg">  
129 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160310/26.jpg">  
130 - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/img/newuser/160310/27.jpg">  
131 - </div>  
132 - <script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/jquery.min.js"></script>  
133 - <script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/cuxiao/js/newuser/coupon2.js"></script>  
134 -</body>  
135 -</html>';  
136 -}  
137 -?>  
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="format-detection" content="telephone=no">  
31 - <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui">  
32 - <meta name="apple-mobile-web-app-capable" content="yes">  
33 - <meta name="apple-mobile-web-app-status-bar-style" content="grey">  
34 - <script type="text/javascript">  
35 - (function(d,c){var e=d.documentElement,a="orientationchange" in window?"orientationchange":"resize",b=function(){var f=e.clientWidth;if(!f){return}if(f>=640){e.style.fontSize="40px"}else{e.style.fontSize=40*(f/640)+"px"}};if(!d.addEventListener){return}b();c.addEventListener(a,b,false);d.addEventListener("DOMContentLoaded",b,false)})(document,window);  
36 - </script>  
37 - <link rel="stylesheet" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/2016xinshili-4/css/style.css">  
38 -</head>  
39 -<body class="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('pageType')), ENT_QUOTES, 'UTF-8').'">  
40 -'.' <div class="main-wrap home">  
41 - <div class="header">  
42 - </div>  
43 -'.Plugin\LCRun3::ifv($cx, Plugin\LCRun3::v($cx, $in, array('tab')), $in, function($cx, $in) {return ' <div class="tab type">  
44 -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('tab')), $in, false, function($cx, $in) {return ' <div class="tab-item" data-type="'.htmlentities((string)$in, ENT_QUOTES, 'UTF-8').'"></div>  
45 -';}).' <input type="hidden" id="more-brand" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('moreBrand')), ENT_QUOTES, 'UTF-8').'">  
46 - </div>  
47 -';}).' <div class="content">  
48 - </div>  
49 - <script type="text/tmpl" id="tmpl">  
50 - <div class="coupons">  
51 - {{#coupons}}  
52 - <a class="coupon" href="{{../jumpUrl}}" data-id="{{id}}">  
53 - <img class="lazy" src="" data-original="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/{{img}}">  
54 - </a>  
55 - {{/coupons}}  
56 - </div>  
57 - <div class="brands clearfix">  
58 - {{#brands}}  
59 - <a class="brand" href=\'{{url}}\'>  
60 - <img class="lazy" src="" data-original="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/{{img}}">  
61 - </a>  
62 - {{/brands}}  
63 - <div class="after"></div>  
64 - </div>  
65 - <div class="more">  
66 - <div class="more-title">  
67 - </div>  
68 - <a class="link" href=\'{{more.url}}\'>  
69 - <img class="lazy" src="" data-original="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('imgUrl')), ENT_QUOTES, 'UTF-8').'/{{more.img}}">  
70 - </a>  
71 - </div>  
72 - </script>  
73 - </div>  
74 - <div class="footer">  
75 - </div>  
76 - <div class="tip-wrap hide">  
77 - <div class="tip hide fail">  
78 - <div class="title">  
79 - 领取失败<br>  
80 - 请刷新重新领取  
81 - </div>  
82 - <a class="button" href="">  
83 - 刷新  
84 - </a>  
85 - </div>  
86 - </div>  
87 -  
88 - <div class="tip-wrap hide">  
89 - <div class="tip hide success">  
90 - <div class="title">  
91 - 领取成功  
92 - </div>  
93 - <div class="sub-title">  
94 - 快去分享给更多<br>  
95 - 喜爱<span class="title">潮流</span>的小伙伴吧!  
96 - </div>  
97 - <a class="button close" href="">  
98 - 返回  
99 - </a>  
100 - </div>  
101 - </div>  
102 -  
103 - <div class="tip-wrap hide">  
104 - <div class="tip hide geted">  
105 - <div class="title">  
106 - 您已领取过了  
107 - </div>  
108 - <div class="sub-title">  
109 - 快去分享给更多<br>  
110 - 喜爱<span class="title">潮流</span>的小伙伴吧!  
111 - </div>  
112 - <a class="button close" href="">  
113 - 返回  
114 - </a>  
115 - </div>  
116 - </div>  
117 - <div class="loading-mask hide">  
118 - <div class="loading">  
119 - <div></div>  
120 - <div></div>  
121 - <div></div>  
122 - </div>  
123 - </div>  
124 -  
125 - <input type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('pageType')), ENT_QUOTES, 'UTF-8').'" id="page-type">  
126 - <input type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('activityId')), ENT_QUOTES, 'UTF-8').'" id="activity-id">  
127 - <input type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jumpUrl')), ENT_QUOTES, 'UTF-8').'" id="jump-url">  
128 -'.Plugin\LCRun3::ifv($cx, Plugin\LCRun3::v($cx, $in, array('isApp')), $in, function($cx, $in) {return ' <input type="hidden" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('getCouponUrl')), ENT_QUOTES, 'UTF-8').'" id="getCouponUrl">  
129 -';}).' <script type="text/javascript">  
130 - var isOnline = '.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('isOnline')), ENT_QUOTES, 'UTF-8').';  
131 -'.Plugin\LCRun3::ifv($cx, Plugin\LCRun3::v($cx, $in, array('isApp')), $in, function($cx, $in) {return ' var isApp = 1;  
132 -'.Plugin\LCRun3::ifv($cx, Plugin\LCRun3::v($cx, $in, array('isAppLogin')), $in, function($cx, $in) {return ' var isAppLogin = 1;  
133 -';}).'';}).'  
134 - </script>  
135 -'.'<input type="hidden" id="shareTitle" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareTitle')), ENT_QUOTES, 'UTF-8').'">  
136 -<input type="hidden" id="shareDesc" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareDesc')), ENT_QUOTES, 'UTF-8').'">  
137 -<input type="hidden" id="shareImg" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareImg')), ENT_QUOTES, 'UTF-8').'">  
138 -<input type="hidden" id="shareLink" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shareLink')), ENT_QUOTES, 'UTF-8').'">  
139 -<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>  
140 -<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('jsUrl')), ENT_QUOTES, 'UTF-8').'/2016xinshili-4/js/libs.js"></script>  
141 -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('staticJS')), $in, false, function($cx, $in) {return '<script type="text/javascript" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $cx['scopes'][count($cx['scopes'])-1], array('jsUrl')), ENT_QUOTES, 'UTF-8').'/2016xinshili-4/js/'.htmlentities((string)$in, ENT_QUOTES, 'UTF-8').'"></script>  
142 -';}).'</body>  
143 -'.'';  
144 -}  
145 -?>  
@@ -36,11 +36,14 @@ class ActivityData @@ -36,11 +36,14 @@ class ActivityData
36 public static function getCouponNamed($uid, $activityId, $couponId) 36 public static function getCouponNamed($uid, $activityId, $couponId)
37 { 37 {
38 $param = array(); 38 $param = array();
  39 + $param = Yohobuy::param();
  40 + $param['method'] = 'app.activity.getCoupon';
39 $param['uid'] = $uid; 41 $param['uid'] = $uid;
40 $param['activity_id'] = $activityId; 42 $param['activity_id'] = $activityId;
41 $param['coupon_id'] = $couponId; 43 $param['coupon_id'] = $couponId;
  44 + $param['client_secret'] = Sign::getSign($param);
42 45
43 - return Yohobuy::get(Yohobuy::SERVICE_URL . self::URI_GET_NAMED_COUPON, $param); 46 + return Yohobuy::get(Yohobuy::API_URL, $param);
44 } 47 }
45 48
46 /** 49 /**
@@ -981,6 +981,9 @@ class CouponController extends HuodongAction @@ -981,6 +981,9 @@ class CouponController extends HuodongAction
981 981
982 /* 领取指定的优惠券操作 */ 982 /* 领取指定的优惠券操作 */
983 $result = ActivityData::getCouponNamed($uid, $activityId, $couponId); 983 $result = ActivityData::getCouponNamed($uid, $activityId, $couponId);
  984 + if (isset($result['code']) && isset($result['message']) && $result['message'] == '优惠券已经领取') {
  985 + $result['code'] = '201';
  986 + }
984 } while (false); 987 } while (false);
985 988
986 $this->echoJson($result); 989 $this->echoJson($result);