Showing
9 changed files
with
157 additions
and
1308 deletions
1 | -<?php return function ($in, $debugopt = 1) { | ||
2 | - $cx = array( | ||
3 | - 'flags' => array( | ||
4 | - 'jstrue' => false, | ||
5 | - 'jsobj' => false, | ||
6 | - 'spvar' => true, | ||
7 | - 'prop' => false, | ||
8 | - 'method' => false, | ||
9 | - 'mustlok' => true, | ||
10 | - 'echo' => false, | ||
11 | - 'debug' => $debugopt, | ||
12 | - ), | ||
13 | - 'constants' => array(), | ||
14 | - 'helpers' => array(), | ||
15 | - 'blockhelpers' => array(), | ||
16 | - 'hbhelpers' => array(), | ||
17 | - 'partials' => array(), | ||
18 | - 'scopes' => array(), | ||
19 | - 'sp_vars' => array('root' => $in), | ||
20 | - 'lcrun' => 'Plugin\LCRun3', | ||
21 | - | ||
22 | - ); | ||
23 | - | ||
24 | - return ''.'<!DOCTYPE html> | ||
25 | -<html> | ||
26 | -<head> | ||
27 | -<meta charset="utf-8"> | ||
28 | -<title>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('title')), ENT_QUOTES, 'UTF-8').'</title> | ||
29 | -<meta name="keywords" content="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('keywords')), ENT_QUOTES, 'UTF-8').'"> | ||
30 | -<meta name="description" content="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('description')), ENT_QUOTES, 'UTF-8').'"> | ||
31 | -<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"> | ||
32 | -<meta http-equiv="cleartype" content="on"> | ||
33 | -<meta name="apple-mobile-web-app-status-bar-style" content="black" /> | ||
34 | -<meta content="telephone=no" name="format-detection" /> | ||
35 | -<meta content="email=no" name="format-detection" /> | ||
36 | -<script type="text/javascript"> | ||
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 | -'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('rlsEnv')))) ? '<link rel="stylesheet" href="http://cdn.yoho.cn/myohobuy/'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('version')), ENT_QUOTES, 'UTF-8').'/index.css"> | ||
49 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('preEnv')))) ? '<link rel="stylesheet" href="http://cdn.yoho.cn/myohobuy/'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('version')), ENT_QUOTES, 'UTF-8').'/index.css"> | ||
50 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('testEnv')))) ? '<link rel="stylesheet" href="http://static.buy.test.yoho.cn/dist/myohobuy/'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('version')), ENT_QUOTES, 'UTF-8').'/index.css"> | ||
51 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('devEnv')))) ? '<link rel="stylesheet" href="http://static.dev.yohobuy.com/css/index.css"> | ||
52 | -' : '').'</head> | ||
53 | -<body '.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('isPassportPage')))) ? 'class=passport-body' : '').'> | ||
54 | - '.''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('pageHeader')), $in, false, function($cx, $in) {return ''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('isShow')), $in, false, function($cx, $in) {return '<header class="yoho-header'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('boys')))) ? ' boys' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('girls')))) ? ' girls' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('kids')))) ? ' kids' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('lifeStyle')))) ? ' life-style' : '').'"> | ||
55 | -'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('navBack')))) ? ' <a href="javascript:history.go(-1);" class="nav-back"></a> | ||
56 | -' : '').''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('navHome')), $in, false, function($cx, $in) {return ' <a href="'.htmlentities((string)$in, ENT_QUOTES, 'UTF-8').'" class="nav-home"></a> | ||
57 | -';}).''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('navTitle')), $in, false, function($cx, $in) {return ' <p class="nav-title">'.htmlentities((string)$in, ENT_QUOTES, 'UTF-8').'</p> | ||
58 | -';}).'</header> | ||
59 | -';}).'';}).''.''.'<div class="good-list-page yoho-page"> | ||
60 | -'.''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('goodList')), $in, false, function($cx, $in) {return ''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('search')), $in, false, function($cx, $in) {return ' <div id="search-input" class="search-input"> | ||
61 | - <form id="search-form" action="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url')), ENT_QUOTES, 'UTF-8').'" method="get"> | ||
62 | - <i class="search-icon iconfont"></i> | ||
63 | - <input type="text" value="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('default')), ENT_QUOTES, 'UTF-8').'" name="query"> | ||
64 | - <input type="hidden" value="search" name="from"> | ||
65 | - <i class="clear-input iconfont hide"></i> | ||
66 | - <span id="search" class="search" type="submit">搜索</span> | ||
67 | - </form> | ||
68 | - </div> | ||
69 | -';}).' | ||
70 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('brandWay')), $in, false, function($cx, $in) {return ' <div class="brand-way"> | ||
71 | - <a href='.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url')), ENT_QUOTES, 'UTF-8').'> | ||
72 | - <img class="brand-thumb" src='.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('thumb')), ENT_QUOTES, 'UTF-8').'> | ||
73 | - <span>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('name')), ENT_QUOTES, 'UTF-8').'</span> | ||
74 | - <span class="entry"> | ||
75 | - 进入品牌 | ||
76 | - <i class="iconfont"></i> | ||
77 | - </span> | ||
78 | - </a> | ||
79 | - </div> | ||
80 | -';}).' | ||
81 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('brandHome')), $in, false, function($cx, $in) {return ' <div id="brand-header" class="brand-header" data-id='.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('id')), ENT_QUOTES, 'UTF-8').'> | ||
82 | - <img class="lazy" data-original='.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('banner')), ENT_QUOTES, 'UTF-8').'> | ||
83 | - <a class="btn-intro" href="javascript:void(0);"> | ||
84 | - 品牌介绍 | ||
85 | - </a> | ||
86 | - <a class="btn-col'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('collected')))) ? ' coled' : '').'" href="javascript:void(0);"> | ||
87 | - <span class="iconfont"></span> | ||
88 | - <span class="txt"></span> | ||
89 | - </a> | ||
90 | - </div> | ||
91 | - <div id="intro-box" class="brand-intro-box hide"> | ||
92 | - <div id="brand-intro" class="brand-intro"> | ||
93 | - <h2>品牌介绍</h2> | ||
94 | - <div class="con"> | ||
95 | - '.Plugin\LCRun3::v($cx, $in, array('intro')).' | ||
96 | - </div> | ||
97 | - <p class="fo"> | ||
98 | - <span class="iconfont"></span> | ||
99 | - 100%品牌授权正品 | ||
100 | - </p> | ||
101 | - <span class="iconfont close-intro"></span> | ||
102 | - </div> | ||
103 | - </div> | ||
104 | -';}).' | ||
105 | - <ul id="list-nav" class="list-nav clearfix"> | ||
106 | - <li class="new active"> | ||
107 | - <a href="javascript:void(0);"> | ||
108 | - <span class="nav-txt">最新</span> | ||
109 | - <span class="iconfont cur"></span> | ||
110 | - </a> | ||
111 | - </li> | ||
112 | - <li class="price"> | ||
113 | - <a href="javascript:void(0);"> | ||
114 | - <span class="nav-txt">价格</span> | ||
115 | - <span class="icon"> | ||
116 | - <i class="iconfont up"></i> | ||
117 | - <i class="iconfont down cur"></i> | ||
118 | - </span> | ||
119 | - </a> | ||
120 | - </li> | ||
121 | - <li class="discount"> | ||
122 | - <a href="javascript:void(0);"> | ||
123 | - <span class="nav-txt">折扣</span> | ||
124 | - <span class="icon"> | ||
125 | - <i class="iconfont up"></i> | ||
126 | - <i class="iconfont down cur"></i> | ||
127 | - </span> | ||
128 | - </a> | ||
129 | - </li> | ||
130 | - <li class="filter"> | ||
131 | - <a href="javascript:void(0);"> | ||
132 | - <span class="nav-txt">筛选</span> | ||
133 | - <span class="iconfont"></span> | ||
134 | - </a> | ||
135 | - </li> | ||
136 | - </ul> | ||
137 | - <div id="goods-container" class="goods-container"> | ||
138 | - <div class="new-goods container clearfix"></div> | ||
139 | - <div class="price-goods container clearfix hide"></div> | ||
140 | - <div class="discount-goods container clearfix hide"></div> | ||
141 | - | ||
142 | -'.''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('filter')), $in, false, function($cx, $in) {return ' <div class="filter-mask hide"> | ||
143 | - <div class="filter-body"> | ||
144 | - <ul class="classify"> | ||
145 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('classify')), $in, true, function($cx, $in) {return ' <li class="classify-item'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $cx['sp_vars'], array('first')))) ? ' active' : '').'"> | ||
146 | - <p class="shower'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('default')))) ? ' default' : '').'"> | ||
147 | - <span class="title">'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('title')), ENT_QUOTES, 'UTF-8').':</span> | ||
148 | - '.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('name')), ENT_QUOTES, 'UTF-8').' | ||
149 | - </p> | ||
150 | - <ul class="sub-classify" data-type='.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('dataType')), ENT_QUOTES, 'UTF-8').'> | ||
151 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('subs')), $in, false, function($cx, $in) {return ' <li class="sub-item'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('chosed')))) ? ' chosed' : '').'" data-id='.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('dataId')), ENT_QUOTES, 'UTF-8').'> | ||
152 | - '.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('name')), ENT_QUOTES, 'UTF-8').' | ||
153 | - <i class="iconfont chosed-icon"></i> | ||
154 | - </li> | ||
155 | -';}).' </ul> | ||
156 | - </li> | ||
157 | -';}).' </ul> | ||
158 | - </div> | ||
159 | - </div> | ||
160 | - ';}).''.' </div> | ||
161 | - | ||
162 | -'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('brand')))) ? ' <input id="brand" type="hidden" value='.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('brand')), ENT_QUOTES, 'UTF-8').'> | ||
163 | -' : '').' | ||
164 | -'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('gender')))) ? ' <input id="gender" type="hidden" value='.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('gender')), ENT_QUOTES, 'UTF-8').'> | ||
165 | -' : '').' | ||
166 | -'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('sort')))) ? ' <input id="sort" type="hidden" value='.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('sort')), ENT_QUOTES, 'UTF-8').'> | ||
167 | -' : '').' | ||
168 | -'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('msort')))) ? ' <input id="msort" type="hidden" value='.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('msort')), ENT_QUOTES, 'UTF-8').'> | ||
169 | -' : '').' | ||
170 | -'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('misort')))) ? ' <input id="misort" type="hidden" value='.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('misort')), ENT_QUOTES, 'UTF-8').'> | ||
171 | -' : '').' | ||
172 | -'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('color')))) ? ' <input id="color" type="hidden" value='.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('color')), ENT_QUOTES, 'UTF-8').'> | ||
173 | -' : '').' | ||
174 | -'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('size')))) ? ' <input id="size" type="hidden" value='.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('size')), ENT_QUOTES, 'UTF-8').'> | ||
175 | -' : '').' | ||
176 | -'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('price')))) ? ' <input id="price" type="hidden" value='.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('price')), ENT_QUOTES, 'UTF-8').'> | ||
177 | -' : '').' | ||
178 | -'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('discount')))) ? ' <input id="discount" type="hidden" value='.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('discount')), ENT_QUOTES, 'UTF-8').'> | ||
179 | -' : '').' | ||
180 | -'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('query')))) ? ' <input id="query" type="hidden" value='.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('query')), ENT_QUOTES, 'UTF-8').'> | ||
181 | -' : '').' | ||
182 | -'.' <div id="suspend-cart" class="suspend-cart"> | ||
183 | - <a href='.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('cartUrl')), ENT_QUOTES, 'UTF-8').'> | ||
184 | - <span class="iconfont"></span> | ||
185 | - </a> | ||
186 | - <span class="cart-count hide">0</span> | ||
187 | - </div>'.' ';}).''.'</div> | ||
188 | -'.''.''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('pageFooter')), $in, false, function($cx, $in) {return ' <footer id="yoho-footer" class="yoho-footer hide"> | ||
189 | - <p class="op-row"> | ||
190 | - <span class="back-to-top"> | ||
191 | - Back to top | ||
192 | - <i class="iconfont"></i> | ||
193 | - </span> | ||
194 | - </p> | ||
195 | - <address class="copyright"> | ||
196 | - CopyRight©2007-2016 南京新与力文化传播有限公司 | ||
197 | - </address> | ||
198 | - </footer> | ||
199 | -';}).' | ||
200 | - '.''.''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('showDownloadApp')), $in, false, function($cx, $in) {return '<div class="float-layer hide" id="float-layer-app"> | ||
201 | - <div class="float-layer-left"> | ||
202 | - <span class="yoho-icon iconfont"></span> | ||
203 | - <p>新用户首单减10元</p> | ||
204 | - </div> | ||
205 | - <a href="javascript:void(0);" id="float-layer-close" > | ||
206 | - <i class="close-icon iconfont"></i> | ||
207 | - <div class="circle-rightbottom"></div> | ||
208 | - </a> | ||
209 | - <a href="http://m.yohobuy.com/download/hyapp" id="float-layer-btn"> | ||
210 | - 立即下载 | ||
211 | - </a> | ||
212 | -</div> | ||
213 | -';}).' | ||
214 | - | ||
215 | - '.''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('hasWxShare')))) ? ' <script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> | ||
216 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('rlsEnv')))) ? '<script src="http://cdn.yoho.cn/myohobuy/'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('version')), ENT_QUOTES, 'UTF-8').'/lib.js"></script> | ||
217 | -<script src="http://cdn.yoho.cn/myohobuy/'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('version')), ENT_QUOTES, 'UTF-8').'/index.js"></script> | ||
218 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('preEnv')))) ? '<script src="http://cdn.yoho.cn/myohobuy/'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('version')), ENT_QUOTES, 'UTF-8').'/lib.js"></script> | ||
219 | -<script src="http://cdn.yoho.cn/myohobuy/'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('version')), ENT_QUOTES, 'UTF-8').'/index.js"></script> | ||
220 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('testEnv')))) ? '<script src="http://static.buy.test.yoho.cn/dist/myohobuy/'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('version')), ENT_QUOTES, 'UTF-8').'/lib.js"></script> | ||
221 | -<script src="http://static.buy.test.yoho.cn/dist/myohobuy/'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('version')), ENT_QUOTES, 'UTF-8').'/index-debug.js"></script> | ||
222 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('devEnv')))) ? '<script src="http://localhost:8000/static/js/sea.js?nowrap"></script> | ||
223 | -<script>seajs.config({base: \'http://localhost:8000/\'});</script> | ||
224 | -' : '').' | ||
225 | -<script type="text/javascript"> | ||
226 | - (function(w,d,s,j,f){ | ||
227 | - w[\'YohoAcquisitionObject\']=f; | ||
228 | - w[f]=function(){w[f].p=arguments;}; | ||
229 | - var a=d.createElement(s); | ||
230 | - var m=d.getElementsByTagName(s)[0]; | ||
231 | - a.async=1; | ||
232 | - a.src=j; | ||
233 | - m.parentNode.insertBefore(a,m); | ||
234 | - })(window,document,\'script\',\'http://cdn.yoho.cn/yas-jssdk/1.0.8/yas.js\',\'_yas\'); | ||
235 | -</script> | ||
236 | - | ||
237 | -'.'<script> | ||
238 | - seajs.use(\'js/common\'); | ||
239 | -</script> | ||
240 | -'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('psList')))) ? '<script> | ||
241 | - seajs.use(\'js/guang/plus-star/list\'); | ||
242 | -</script> | ||
243 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('psDetail')))) ? '<script> | ||
244 | - seajs.use(\'js/guang/plus-star/detail\'); | ||
245 | -</script> | ||
246 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('guangHome')))) ? '<script> | ||
247 | - seajs.use(\'js/guang/home\'); | ||
248 | -</script> | ||
249 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('guangList')))) ? '<script> | ||
250 | - seajs.use(\'js/guang/list\'); | ||
251 | -</script> | ||
252 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('guangDetail')))) ? '<script> | ||
253 | - seajs.use(\'js/guang/detail\', function(d) { | ||
254 | - d.i(true); | ||
255 | - }); | ||
256 | -</script> | ||
257 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('guangEzine')))) ? '<script> | ||
258 | - seajs.use(\'js/guang/detail\', function(d) { | ||
259 | - d.i(false); | ||
260 | - }); | ||
261 | -</script> | ||
262 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('regIndex')))) ? '<script> | ||
263 | - seajs.use(\'js/passport/register/register\'); | ||
264 | -</script> | ||
265 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('regCode')))) ? '<script> | ||
266 | - seajs.use(\'js/passport/register/code\'); | ||
267 | -</script> | ||
268 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('regPwd')))) ? '<script> | ||
269 | - seajs.use(\'js/passport/register/password\'); | ||
270 | -</script> | ||
271 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('loginIndex')))) ? '<script> | ||
272 | - seajs.use(\'js/passport/login/login\'); | ||
273 | -</script> | ||
274 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('loginInternational')))) ? '<script> | ||
275 | - seajs.use(\'js/passport/login/international\'); | ||
276 | -</script> | ||
277 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('backEmail')))) ? '<script> | ||
278 | - seajs.use(\'js/passport/back/email\'); | ||
279 | -</script> | ||
280 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('backEmailSuccess')))) ? '<script> | ||
281 | - seajs.use(\'js/passport/back/email-success\'); | ||
282 | -</script> | ||
283 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('backMobile')))) ? '<script> | ||
284 | - seajs.use(\'js/passport/back/mobile\'); | ||
285 | -</script> | ||
286 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('backCode')))) ? '<script> | ||
287 | - seajs.use(\'js/passport/back/code\'); | ||
288 | -</script> | ||
289 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('backNewPwd')))) ? '<script> | ||
290 | - seajs.use(\'js/passport/back/new-password\'); | ||
291 | -</script> | ||
292 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('channelPage')))) ? '<script> | ||
293 | - seajs.use(\'js/index/channel\'); | ||
294 | - seajs.use(\'js/index/footer\'); | ||
295 | -</script> | ||
296 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('grilsHomePage')))) ? '<script> | ||
297 | - seajs.use(\'js/home/home\', function(h) { | ||
298 | - h.set(\'girls\'); | ||
299 | - }); | ||
300 | - seajs.use(\'js/index/footer\'); | ||
301 | -</script> | ||
302 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('boysHomePage')))) ? '<script> | ||
303 | - seajs.use(\'js/home/home\', function(h) { | ||
304 | - h.set(\'boys\'); | ||
305 | - }); | ||
306 | - seajs.use(\'js/index/footer\'); | ||
307 | -</script> | ||
308 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('kidsHomePage')))) ? '<script> | ||
309 | - seajs.use(\'js/home/home\', function(h) { | ||
310 | - h.set(\'kids\'); | ||
311 | - }); | ||
312 | - seajs.use(\'js/index/footer\'); | ||
313 | -</script> | ||
314 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('lifestyleHomePage')))) ? '<script> | ||
315 | - seajs.use(\'js/home/home\', function(h) { | ||
316 | - h.set(\'lifestyle\'); | ||
317 | - }); | ||
318 | - seajs.use(\'js/index/footer\'); | ||
319 | -</script> | ||
320 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('newArrivalPage')))) ? '<script> | ||
321 | - seajs.use(\'js/product/newsale/newarrival\'); | ||
322 | - seajs.use(\'js/index/footer\'); | ||
323 | -</script> | ||
324 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('discountPage')))) ? '<script> | ||
325 | - seajs.use(\'js/product/newsale/discount\'); | ||
326 | - seajs.use(\'js/index/footer\'); | ||
327 | -</script> | ||
328 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('hotrankPage')))) ? '<script> | ||
329 | - seajs.use(\'js/product/newsale/hot-rank\'); | ||
330 | - seajs.use(\'js/index/footer\'); | ||
331 | -</script> | ||
332 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('goodListPage')))) ? '<script> | ||
333 | - seajs.use(\'js/product/list\'); | ||
334 | - seajs.use(\'js/index/footer\'); | ||
335 | -</script> | ||
336 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('goodsDetailPage')))) ? '<script> | ||
337 | - seajs.use(\'js/product/detail/detail\'); | ||
338 | -</script> | ||
339 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('categoryPage')))) ? '<script> | ||
340 | - seajs.use(\'js/category/index\'); | ||
341 | - seajs.use(\'js/index/footer\'); | ||
342 | -</script> | ||
343 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('brandPage')))) ? '<script> | ||
344 | - seajs.use(\'js/category/brand\'); | ||
345 | - seajs.use(\'js/index/footer\'); | ||
346 | -</script> | ||
347 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('searchPage')))) ? '<script> | ||
348 | - seajs.use(\'js/index/search\'); | ||
349 | - seajs.use(\'js/index/footer\'); | ||
350 | -</script> | ||
351 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('shoppingCartPage')))) ? '<script> | ||
352 | - seajs.use(\'js/shopping-cart/cart\'); | ||
353 | -</script> | ||
354 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('giftAdvancePage')))) ? '<script> | ||
355 | - seajs.use(\'js/shopping-cart/gift-advance\'); | ||
356 | -</script> | ||
357 | -' : '').' | ||
358 | -'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('orderPage')))) ? '<script> | ||
359 | - seajs.use(\'js/me/order\'); | ||
360 | -</script> | ||
361 | -' : '').''.' | ||
362 | -'.' <!-- Google Tag Manager --> | ||
363 | - <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> | ||
364 | - <script> | ||
365 | - (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\': | ||
366 | - new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0], | ||
367 | - j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src= | ||
368 | - \'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f); | ||
369 | - })(window,document,\'script\',\'dataLayer\',\'GTM-W958MG\'); | ||
370 | - </script> | ||
371 | - <!-- End Google Tag Manager --> | ||
372 | - | ||
373 | -<script type="text/javascript"> | ||
374 | - var _hmt = _hmt || []; | ||
375 | - (function() { | ||
376 | - var hm = document.createElement("script"); | ||
377 | - hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311"; | ||
378 | - var s = document.getElementsByTagName("script")[0]; | ||
379 | - s.parentNode.insertBefore(hm, s); | ||
380 | - })(); | ||
381 | -</script> | ||
382 | - | ||
383 | -<script> | ||
384 | - var _hmt = _hmt || []; | ||
385 | - (function() { | ||
386 | - var hm = document.createElement("script"); | ||
387 | - hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841"; | ||
388 | - var s = document.getElementsByTagName("script")[0]; | ||
389 | - s.parentNode.insertBefore(hm, s); | ||
390 | - })(); | ||
391 | -</script> | ||
392 | - | ||
393 | -<script src="http://static.yohobuy.com/js/analytics/analysis.js"></script> | ||
394 | - | ||
395 | -<script src="http://static.yohobuy.com/m/v1/js/om_code.js"></script>'.'</body> | ||
396 | -</html>'.''; | ||
397 | -} | ||
398 | -?> |
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('title')), ENT_QUOTES, 'UTF-8').'</title> | ||
29 | -<meta name="keywords" content="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('keywords')), ENT_QUOTES, 'UTF-8').'"> | ||
30 | -<meta name="description" content="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('description')), ENT_QUOTES, 'UTF-8').'"> | ||
31 | -<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"> | ||
32 | -<meta http-equiv="cleartype" content="on"> | ||
33 | -<meta name="apple-mobile-web-app-status-bar-style" content="black" /> | ||
34 | -<meta content="telephone=no" name="format-detection" /> | ||
35 | -<meta content="email=no" name="format-detection" /> | ||
36 | -<script type="text/javascript"> | ||
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 | -'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('rlsEnv')))) ? '<link rel="stylesheet" href="http://cdn.yoho.cn/myohobuy/'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('version')), ENT_QUOTES, 'UTF-8').'/index.css"> | ||
49 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('preEnv')))) ? '<link rel="stylesheet" href="http://cdn.yoho.cn/myohobuy/'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('version')), ENT_QUOTES, 'UTF-8').'/index.css"> | ||
50 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('testEnv')))) ? '<link rel="stylesheet" href="http://static.buy.test.yoho.cn/dist/myohobuy/'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('version')), ENT_QUOTES, 'UTF-8').'/index.css"> | ||
51 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('devEnv')))) ? '<link rel="stylesheet" href="http://static.dev.yohobuy.com/css/index.css"> | ||
52 | -' : '').'</head> | ||
53 | -<body '.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('isPassportPage')))) ? 'class=passport-body' : '').'> | ||
54 | - '.''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('pageHeader')), $in, false, function($cx, $in) {return ''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('isShow')), $in, false, function($cx, $in) {return '<header class="yoho-header'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('boys')))) ? ' boys' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('girls')))) ? ' girls' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('kids')))) ? ' kids' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('lifeStyle')))) ? ' life-style' : '').'"> | ||
55 | -'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('navBack')))) ? ' <a href="javascript:history.go(-1);" class="nav-back"></a> | ||
56 | -' : '').''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('navHome')), $in, false, function($cx, $in) {return ' <a href="'.htmlentities((string)$in, ENT_QUOTES, 'UTF-8').'" class="nav-home"></a> | ||
57 | -';}).''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('navTitle')), $in, false, function($cx, $in) {return ' <p class="nav-title">'.htmlentities((string)$in, ENT_QUOTES, 'UTF-8').'</p> | ||
58 | -';}).'</header> | ||
59 | -';}).'';}).''.''.'<div class="index-page yoho-page"> | ||
60 | - <div class="index-container"> | ||
61 | - <div class="index-header clearfix"> | ||
62 | - <div class="index-logo"> | ||
63 | - </div> | ||
64 | - <div class="box"> | ||
65 | - <a href="javascript:void(0);" class="no-search">取消</a> | ||
66 | - <form action="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('searchUrl')), ENT_QUOTES, 'UTF-8').'" class="index-search"> | ||
67 | - <div class="search-box"> | ||
68 | - <input type="hidden" name="from" value="search"> | ||
69 | - <input type="text" name="query" placeholder="搜索" autocomplete="off"> | ||
70 | - <span class="iconfont clear-text"></span> | ||
71 | - <span class="iconfont search-icon empty"></span> | ||
72 | - </div> | ||
73 | - </form> | ||
74 | - </div> | ||
75 | - </div> | ||
76 | - <div class="index-channel"> | ||
77 | - <img class="img" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('background')), ENT_QUOTES, 'UTF-8').'"> | ||
78 | - <div class="index-channel-list"> | ||
79 | - <a href="/boys" class="list-item">男生 <span class="lighter">BOYS</span> <span class="iconfont right-icon"></span></a> | ||
80 | - <a href="/girls" class="list-item">女生 <span class="lighter">GIRLS</span> <span class="iconfont right-icon"></span></a> | ||
81 | - <a href="/kids" class="list-item">潮童 <span class="lighter">KIDS</span> <span class="iconfont right-icon"></span></a> | ||
82 | - <a href="/lifestyle" class="list-item">创意生活 <span class="lighter">LIFESTYLE</span> <span class="iconfont right-icon"></span></a> | ||
83 | - </div> | ||
84 | - </div> | ||
85 | - </div> | ||
86 | -</div> | ||
87 | -'.''.''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('pageFooter')), $in, false, function($cx, $in) {return ' <footer id="yoho-footer" class="yoho-footer hide"> | ||
88 | - <p class="op-row"> | ||
89 | - <span class="back-to-top"> | ||
90 | - Back to top | ||
91 | - <i class="iconfont"></i> | ||
92 | - </span> | ||
93 | - </p> | ||
94 | - <address class="copyright"> | ||
95 | - CopyRight©2007-2016 南京新与力文化传播有限公司 | ||
96 | - </address> | ||
97 | - </footer> | ||
98 | -';}).' | ||
99 | - '.''.''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('showDownloadApp')), $in, false, function($cx, $in) {return '<div class="float-layer hide" id="float-layer-app"> | ||
100 | - <div class="float-layer-left"> | ||
101 | - <span class="yoho-icon iconfont"></span> | ||
102 | - <p>新用户首单减10元</p> | ||
103 | - </div> | ||
104 | - <a href="javascript:void(0);" id="float-layer-close" > | ||
105 | - <i class="close-icon iconfont"></i> | ||
106 | - <div class="circle-rightbottom"></div> | ||
107 | - </a> | ||
108 | - <a href="http://m.yohobuy.com/download/hyapp" id="float-layer-btn"> | ||
109 | - 立即下载 | ||
110 | - </a> | ||
111 | -</div> | ||
112 | -';}).' | ||
113 | - | ||
114 | - '.''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('hasWxShare')))) ? ' <script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> | ||
115 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('rlsEnv')))) ? '<script src="http://cdn.yoho.cn/myohobuy/'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('version')), ENT_QUOTES, 'UTF-8').'/lib.js"></script> | ||
116 | -<script src="http://cdn.yoho.cn/myohobuy/'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('version')), ENT_QUOTES, 'UTF-8').'/index.js"></script> | ||
117 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('preEnv')))) ? '<script src="http://cdn.yoho.cn/myohobuy/'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('version')), ENT_QUOTES, 'UTF-8').'/lib.js"></script> | ||
118 | -<script src="http://cdn.yoho.cn/myohobuy/'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('version')), ENT_QUOTES, 'UTF-8').'/index.js"></script> | ||
119 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('testEnv')))) ? '<script src="http://static.buy.test.yoho.cn/dist/myohobuy/'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('version')), ENT_QUOTES, 'UTF-8').'/lib.js"></script> | ||
120 | -<script src="http://static.buy.test.yoho.cn/dist/myohobuy/'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('version')), ENT_QUOTES, 'UTF-8').'/index-debug.js"></script> | ||
121 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('devEnv')))) ? '<script src="http://localhost:8000/static/js/sea.js?nowrap"></script> | ||
122 | -<script>seajs.config({base: \'http://localhost:8000/\'});</script> | ||
123 | -' : '').' | ||
124 | -<script type="text/javascript"> | ||
125 | - (function(w,d,s,j,f){ | ||
126 | - w[\'YohoAcquisitionObject\']=f; | ||
127 | - w[f]=function(){w[f].p=arguments;}; | ||
128 | - var a=d.createElement(s); | ||
129 | - var m=d.getElementsByTagName(s)[0]; | ||
130 | - a.async=1; | ||
131 | - a.src=j; | ||
132 | - m.parentNode.insertBefore(a,m); | ||
133 | - })(window,document,\'script\',\'http://cdn.yoho.cn/yas-jssdk/1.0.8/yas.js\',\'_yas\'); | ||
134 | -</script> | ||
135 | - | ||
136 | -'.'<script> | ||
137 | - seajs.use(\'js/common\'); | ||
138 | -</script> | ||
139 | -'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('psList')))) ? '<script> | ||
140 | - seajs.use(\'js/guang/plus-star/list\'); | ||
141 | -</script> | ||
142 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('psDetail')))) ? '<script> | ||
143 | - seajs.use(\'js/guang/plus-star/detail\'); | ||
144 | -</script> | ||
145 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('guangHome')))) ? '<script> | ||
146 | - seajs.use(\'js/guang/home\'); | ||
147 | -</script> | ||
148 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('guangList')))) ? '<script> | ||
149 | - seajs.use(\'js/guang/list\'); | ||
150 | -</script> | ||
151 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('guangDetail')))) ? '<script> | ||
152 | - seajs.use(\'js/guang/detail\', function(d) { | ||
153 | - d.i(true); | ||
154 | - }); | ||
155 | -</script> | ||
156 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('guangEzine')))) ? '<script> | ||
157 | - seajs.use(\'js/guang/detail\', function(d) { | ||
158 | - d.i(false); | ||
159 | - }); | ||
160 | -</script> | ||
161 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('regIndex')))) ? '<script> | ||
162 | - seajs.use(\'js/passport/register/register\'); | ||
163 | -</script> | ||
164 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('regCode')))) ? '<script> | ||
165 | - seajs.use(\'js/passport/register/code\'); | ||
166 | -</script> | ||
167 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('regPwd')))) ? '<script> | ||
168 | - seajs.use(\'js/passport/register/password\'); | ||
169 | -</script> | ||
170 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('loginIndex')))) ? '<script> | ||
171 | - seajs.use(\'js/passport/login/login\'); | ||
172 | -</script> | ||
173 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('loginInternational')))) ? '<script> | ||
174 | - seajs.use(\'js/passport/login/international\'); | ||
175 | -</script> | ||
176 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('backEmail')))) ? '<script> | ||
177 | - seajs.use(\'js/passport/back/email\'); | ||
178 | -</script> | ||
179 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('backEmailSuccess')))) ? '<script> | ||
180 | - seajs.use(\'js/passport/back/email-success\'); | ||
181 | -</script> | ||
182 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('backMobile')))) ? '<script> | ||
183 | - seajs.use(\'js/passport/back/mobile\'); | ||
184 | -</script> | ||
185 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('backCode')))) ? '<script> | ||
186 | - seajs.use(\'js/passport/back/code\'); | ||
187 | -</script> | ||
188 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('backNewPwd')))) ? '<script> | ||
189 | - seajs.use(\'js/passport/back/new-password\'); | ||
190 | -</script> | ||
191 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('channelPage')))) ? '<script> | ||
192 | - seajs.use(\'js/index/channel\'); | ||
193 | - seajs.use(\'js/index/footer\'); | ||
194 | -</script> | ||
195 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('grilsHomePage')))) ? '<script> | ||
196 | - seajs.use(\'js/home/home\', function(h) { | ||
197 | - h.set(\'girls\'); | ||
198 | - }); | ||
199 | - seajs.use(\'js/index/footer\'); | ||
200 | -</script> | ||
201 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('boysHomePage')))) ? '<script> | ||
202 | - seajs.use(\'js/home/home\', function(h) { | ||
203 | - h.set(\'boys\'); | ||
204 | - }); | ||
205 | - seajs.use(\'js/index/footer\'); | ||
206 | -</script> | ||
207 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('kidsHomePage')))) ? '<script> | ||
208 | - seajs.use(\'js/home/home\', function(h) { | ||
209 | - h.set(\'kids\'); | ||
210 | - }); | ||
211 | - seajs.use(\'js/index/footer\'); | ||
212 | -</script> | ||
213 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('lifestyleHomePage')))) ? '<script> | ||
214 | - seajs.use(\'js/home/home\', function(h) { | ||
215 | - h.set(\'lifestyle\'); | ||
216 | - }); | ||
217 | - seajs.use(\'js/index/footer\'); | ||
218 | -</script> | ||
219 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('newArrivalPage')))) ? '<script> | ||
220 | - seajs.use(\'js/product/newsale/newarrival\'); | ||
221 | - seajs.use(\'js/index/footer\'); | ||
222 | -</script> | ||
223 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('discountPage')))) ? '<script> | ||
224 | - seajs.use(\'js/product/newsale/discount\'); | ||
225 | - seajs.use(\'js/index/footer\'); | ||
226 | -</script> | ||
227 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('hotrankPage')))) ? '<script> | ||
228 | - seajs.use(\'js/product/newsale/hot-rank\'); | ||
229 | - seajs.use(\'js/index/footer\'); | ||
230 | -</script> | ||
231 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('goodListPage')))) ? '<script> | ||
232 | - seajs.use(\'js/product/list\'); | ||
233 | - seajs.use(\'js/index/footer\'); | ||
234 | -</script> | ||
235 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('goodsDetailPage')))) ? '<script> | ||
236 | - seajs.use(\'js/product/detail/detail\'); | ||
237 | -</script> | ||
238 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('categoryPage')))) ? '<script> | ||
239 | - seajs.use(\'js/category/index\'); | ||
240 | - seajs.use(\'js/index/footer\'); | ||
241 | -</script> | ||
242 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('brandPage')))) ? '<script> | ||
243 | - seajs.use(\'js/category/brand\'); | ||
244 | - seajs.use(\'js/index/footer\'); | ||
245 | -</script> | ||
246 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('searchPage')))) ? '<script> | ||
247 | - seajs.use(\'js/index/search\'); | ||
248 | - seajs.use(\'js/index/footer\'); | ||
249 | -</script> | ||
250 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('shoppingCartPage')))) ? '<script> | ||
251 | - seajs.use(\'js/shopping-cart/cart\'); | ||
252 | -</script> | ||
253 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('giftAdvancePage')))) ? '<script> | ||
254 | - seajs.use(\'js/shopping-cart/gift-advance\'); | ||
255 | -</script> | ||
256 | -' : '').' | ||
257 | -'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('orderPage')))) ? '<script> | ||
258 | - seajs.use(\'js/me/order\'); | ||
259 | -</script> | ||
260 | -' : '').''.' | ||
261 | -'.' <!-- Google Tag Manager --> | ||
262 | - <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> | ||
263 | - <script> | ||
264 | - (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\': | ||
265 | - new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0], | ||
266 | - j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src= | ||
267 | - \'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f); | ||
268 | - })(window,document,\'script\',\'dataLayer\',\'GTM-W958MG\'); | ||
269 | - </script> | ||
270 | - <!-- End Google Tag Manager --> | ||
271 | - | ||
272 | -<script type="text/javascript"> | ||
273 | - var _hmt = _hmt || []; | ||
274 | - (function() { | ||
275 | - var hm = document.createElement("script"); | ||
276 | - hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311"; | ||
277 | - var s = document.getElementsByTagName("script")[0]; | ||
278 | - s.parentNode.insertBefore(hm, s); | ||
279 | - })(); | ||
280 | -</script> | ||
281 | - | ||
282 | -<script> | ||
283 | - var _hmt = _hmt || []; | ||
284 | - (function() { | ||
285 | - var hm = document.createElement("script"); | ||
286 | - hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841"; | ||
287 | - var s = document.getElementsByTagName("script")[0]; | ||
288 | - s.parentNode.insertBefore(hm, s); | ||
289 | - })(); | ||
290 | -</script> | ||
291 | - | ||
292 | -<script src="http://static.yohobuy.com/js/analytics/analysis.js"></script> | ||
293 | - | ||
294 | -<script src="http://static.yohobuy.com/m/v1/js/om_code.js"></script>'.'</body> | ||
295 | -</html>'.''; | ||
296 | -} | ||
297 | -?> |
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('title')), ENT_QUOTES, 'UTF-8').'</title> | ||
29 | -<meta name="keywords" content="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('keywords')), ENT_QUOTES, 'UTF-8').'"> | ||
30 | -<meta name="description" content="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('description')), ENT_QUOTES, 'UTF-8').'"> | ||
31 | -<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"> | ||
32 | -<meta http-equiv="cleartype" content="on"> | ||
33 | -<meta name="apple-mobile-web-app-status-bar-style" content="black" /> | ||
34 | -<meta content="telephone=no" name="format-detection" /> | ||
35 | -<meta content="email=no" name="format-detection" /> | ||
36 | -<script type="text/javascript"> | ||
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 | -'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('rlsEnv')))) ? '<link rel="stylesheet" href="http://cdn.yoho.cn/myohobuy/'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('version')), ENT_QUOTES, 'UTF-8').'/index.css"> | ||
49 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('preEnv')))) ? '<link rel="stylesheet" href="http://cdn.yoho.cn/myohobuy/'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('version')), ENT_QUOTES, 'UTF-8').'/index.css"> | ||
50 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('testEnv')))) ? '<link rel="stylesheet" href="http://static.buy.test.yoho.cn/dist/myohobuy/'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('version')), ENT_QUOTES, 'UTF-8').'/index.css"> | ||
51 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('devEnv')))) ? '<link rel="stylesheet" href="http://static.dev.yohobuy.com/css/index.css"> | ||
52 | -' : '').'</head> | ||
53 | -<body '.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('isPassportPage')))) ? 'class=passport-body' : '').'> | ||
54 | - '.''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('pageHeader')), $in, false, function($cx, $in) {return ''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('isShow')), $in, false, function($cx, $in) {return '<header class="yoho-header'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('boys')))) ? ' boys' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('girls')))) ? ' girls' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('kids')))) ? ' kids' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('lifeStyle')))) ? ' life-style' : '').'"> | ||
55 | -'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('navBack')))) ? ' <a href="javascript:history.go(-1);" class="nav-back"></a> | ||
56 | -' : '').''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('navHome')), $in, false, function($cx, $in) {return ' <a href="'.htmlentities((string)$in, ENT_QUOTES, 'UTF-8').'" class="nav-home"></a> | ||
57 | -';}).''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('navTitle')), $in, false, function($cx, $in) {return ' <p class="nav-title">'.htmlentities((string)$in, ENT_QUOTES, 'UTF-8').'</p> | ||
58 | -';}).'</header> | ||
59 | -';}).'';}).''.''.' <div class="mobile-container"> | ||
60 | - <div class="mobile-wrap boys-wrap yoho-page"> | ||
61 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('homeHeader')), $in, false, function($cx, $in) {return ''.' <div class="home-header clearfix" '.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('bgColor')), $in, false, function($cx, $in) {return 'style="background-color:'.htmlentities((string)$in, ENT_QUOTES, 'UTF-8').';background-image:none"';}).'> | ||
62 | - <span class="nav-btn iconfont"></span> | ||
63 | - <span class="logo"></span> | ||
64 | - <span class="search-btn iconfont"><a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('searchUrl')), ENT_QUOTES, 'UTF-8').'"></a></span> | ||
65 | - </div>'.'';}).' | ||
66 | -'.''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('content')), $in, false, function($cx, $in) {return ''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('bannerTop')), $in, false, function($cx, $in) {return ''.' <div class="banner-top"> | ||
67 | - <div class="banner-swiper swiper-container"> | ||
68 | - <ul class="swiper-wrapper"> | ||
69 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('list')), $in, true, function($cx, $in) {return ''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $cx['sp_vars'], array('first')))) ? ' <li class="swiper-slide"> | ||
70 | - <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url')), ENT_QUOTES, 'UTF-8').'"> | ||
71 | - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('img')), ENT_QUOTES, 'UTF-8').'"> | ||
72 | - </a> | ||
73 | - </li> | ||
74 | -' : ' <li class="swiper-slide"> | ||
75 | - <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url')), ENT_QUOTES, 'UTF-8').'"> | ||
76 | - <img class="swiper-lazy" data-src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('img')), ENT_QUOTES, 'UTF-8').'"> | ||
77 | - </a> | ||
78 | - <div class="swiper-lazy-preloader"></div> | ||
79 | - </li> | ||
80 | -').'';}).' </ul> | ||
81 | - </div> | ||
82 | - <div class="swiper-pagination"> | ||
83 | - <div class="pagination-inner"> | ||
84 | - </div> | ||
85 | - </div> | ||
86 | - </div>'.'';}).' | ||
87 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('iconsEnter')), $in, false, function($cx, $in) {return ''.' <div class="icons-wrapper"> | ||
88 | - <ul class="icons-list clearfix"> | ||
89 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('list')), $in, false, function($cx, $in) {return ' <li class="icons-item"><a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url')), ENT_QUOTES, 'UTF-8').'" class="imagebar"><img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('img')), ENT_QUOTES, 'UTF-8').'" alt=""></a><a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url')), ENT_QUOTES, 'UTF-8').'" class="linkbar">'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('title')), ENT_QUOTES, 'UTF-8').'</a></li> | ||
90 | -';}).' </ul> | ||
91 | - </div> | ||
92 | -'.'';}).' | ||
93 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('banner')), $in, false, function($cx, $in) {return ''.' <div class="banner-center"> | ||
94 | - <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url')), ENT_QUOTES, 'UTF-8').'"> | ||
95 | - <img class="lazy" data-original="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('img')), ENT_QUOTES, 'UTF-8').'" alt=""> | ||
96 | - </a> | ||
97 | - </div>'.'';}).' | ||
98 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('hotCategory')), $in, false, function($cx, $in) {return ''.' <div class="hot-category"> | ||
99 | -'.''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('name')), $in, false, function($cx, $in) {return ' <div class="floor-header"> | ||
100 | - <h2>'.htmlentities((string)$in, ENT_QUOTES, 'UTF-8').'</h2> | ||
101 | - </div> | ||
102 | -';}).''.' | ||
103 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('banner')), $in, false, function($cx, $in) {return ' <a class="category-banner" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url')), ENT_QUOTES, 'UTF-8').'"> | ||
104 | - <img class="lazy" data-original="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('img')), ENT_QUOTES, 'UTF-8').'"> | ||
105 | - </a> | ||
106 | -';}).' <ul class="category-list clearfix"> | ||
107 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('list')), $in, false, function($cx, $in) {return ' <li> | ||
108 | - <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url')), ENT_QUOTES, 'UTF-8').'"> | ||
109 | - <div class="img-box"> | ||
110 | - <img class="lazy" data-original="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('img')), ENT_QUOTES, 'UTF-8').'" alt=""> | ||
111 | - </div> | ||
112 | - </a> | ||
113 | - </li> | ||
114 | -';}).' </ul> | ||
115 | - </div>'.'';}).' | ||
116 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('hotBrands')), $in, false, function($cx, $in) {return ''.' <ul class="hot-brands clearfix"> | ||
117 | -'.''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('name')), $in, false, function($cx, $in) {return ' <div class="floor-header"> | ||
118 | - <h2>'.htmlentities((string)$in, ENT_QUOTES, 'UTF-8').'</h2> | ||
119 | - </div> | ||
120 | -';}).''.''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('list')), $in, false, function($cx, $in) {return ' <li class="brand"> | ||
121 | - <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url')), ENT_QUOTES, 'UTF-8').'"> | ||
122 | - <div class="brand-logo"> | ||
123 | - <img class="lazy" data-original="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('img')), ENT_QUOTES, 'UTF-8').'"> | ||
124 | - </div> | ||
125 | - <p class="brand-name">'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('name')), ENT_QUOTES, 'UTF-8').'</p> | ||
126 | - </a> | ||
127 | - </li> | ||
128 | -';}).' <li class="more"> | ||
129 | - <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('more')), ENT_QUOTES, 'UTF-8').'"></a> | ||
130 | - </li> | ||
131 | - </ul>'.'';}).' | ||
132 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('hotBrandsScroll')), $in, false, function($cx, $in) {return ''.' <div class="hot-brands"> | ||
133 | -'.''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('name')), $in, false, function($cx, $in) {return ' <div class="floor-header"> | ||
134 | - <h2>'.htmlentities((string)$in, ENT_QUOTES, 'UTF-8').'</h2> | ||
135 | - </div> | ||
136 | -';}).''.' <div class="brands-swiper"> | ||
137 | - <ul class="brands-list swiper-wrapper clearfix"> | ||
138 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('list')), $in, false, function($cx, $in) {return ' <li class="swiper-slide"> | ||
139 | - <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url')), ENT_QUOTES, 'UTF-8').'"> | ||
140 | - <img src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('img')), ENT_QUOTES, 'UTF-8').'" alt=""> | ||
141 | - <span class="brands-title">'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('textCn')), ENT_QUOTES, 'UTF-8').'</span> | ||
142 | - </a> | ||
143 | - </li> | ||
144 | -';}).' </ul> | ||
145 | - </div> | ||
146 | - </div>'.'';}).' | ||
147 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('trendColloaction')), $in, false, function($cx, $in) {return ''.' <div class="trend-coll-wrapper"> | ||
148 | -'.''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('title')), $in, false, function($cx, $in) {return ' <div class="floor-header-more"> | ||
149 | - <h2>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('title')), ENT_QUOTES, 'UTF-8').'</h2> | ||
150 | - <a class="more-btn iconfont" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('more_url')), ENT_QUOTES, 'UTF-8').'"></a> | ||
151 | - </div> | ||
152 | - ';}).''.' <div class="trend-coll-content clearfix"> | ||
153 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('article')), $in, false, function($cx, $in) {return ' <div class="lspan"> | ||
154 | - <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url')), ENT_QUOTES, 'UTF-8').'"><img class="lazy rspanimg" data-original="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('img')), ENT_QUOTES, 'UTF-8').'" ></a> | ||
155 | - </div> | ||
156 | -';}).' </div> | ||
157 | - <div class="trend-coll-tail"> | ||
158 | - <h3 class="recommend-title">推荐搭配</h3> | ||
159 | - <div class="recommend-swiper"> | ||
160 | - <ul class="recommend-list swiper-wrapper clearfix"> | ||
161 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('recommend_collocation')), $in, false, function($cx, $in) {return ' <li class="recommend-item swiper-slide"><a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url')), ENT_QUOTES, 'UTF-8').'"><img class="img" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('img')), ENT_QUOTES, 'UTF-8').'" alt="" /></a></li> | ||
162 | -';}).' </ul> | ||
163 | - </div> | ||
164 | - </div> | ||
165 | - </div> | ||
166 | - | ||
167 | - | ||
168 | -'.'';}).' | ||
169 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('trendTopics')), $in, false, function($cx, $in) {return ''.' <div class="trend-topic-wrapper"> | ||
170 | -'.''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('title')), $in, false, function($cx, $in) {return ' <div class="floor-header-more"> | ||
171 | - <h2>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('title')), ENT_QUOTES, 'UTF-8').'</h2> | ||
172 | - <a class="more-btn iconfont" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('more_url')), ENT_QUOTES, 'UTF-8').'"></a> | ||
173 | - </div> | ||
174 | - ';}).''.' <div class="trend-topic-content"> | ||
175 | - <div class="trend-topic-swiper"> | ||
176 | - <ul class="swiper-wrapper"> | ||
177 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('list')), $in, false, function($cx, $in) {return ' <li class="swiper-slide"> | ||
178 | - <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url')), ENT_QUOTES, 'UTF-8').'"> | ||
179 | - <div class="img-box"> | ||
180 | - <img class="lazy" data-original="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('img')), ENT_QUOTES, 'UTF-8').'" src="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('img')), ENT_QUOTES, 'UTF-8').'" alt=""> | ||
181 | - </div> | ||
182 | - <div class="item-content"> | ||
183 | - <p class="title">'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('title')), ENT_QUOTES, 'UTF-8').'</p> | ||
184 | - <p class="time"> | ||
185 | - <span class="iconfont time-icon"></span> | ||
186 | - <span>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('publish_time')), ENT_QUOTES, 'UTF-8').'</span> | ||
187 | - </p> | ||
188 | - </div> | ||
189 | - </a> | ||
190 | - </li> | ||
191 | -';}).' </ul> | ||
192 | - </div> | ||
193 | - <div class="swiper-pagination"> | ||
194 | - <div class="pagination-inner clearfix"> | ||
195 | - </div> | ||
196 | - </div> | ||
197 | - </div> | ||
198 | - </div> | ||
199 | -'.'';}).' | ||
200 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('goodsCategory')), $in, false, function($cx, $in) {return ''.''.''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('title')), $in, false, function($cx, $in) {return ' <div class="floor-header-more"> | ||
201 | - <h2>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('title')), ENT_QUOTES, 'UTF-8').'</h2> | ||
202 | - <a class="more-btn iconfont" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('more_url')), ENT_QUOTES, 'UTF-8').'"></a> | ||
203 | - </div> | ||
204 | - ';}).''.' <div class="goods-category"> | ||
205 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('big_image')), $in, false, function($cx, $in) {return ' <div class="category-swiper"> | ||
206 | - <ul class="swiper-wrapper"> | ||
207 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('list')), $in, false, function($cx, $in) {return ' <li class="swiper-slide"> | ||
208 | - <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url')), ENT_QUOTES, 'UTF-8').'"> | ||
209 | - <img class="lazy" data-original="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('img')), ENT_QUOTES, 'UTF-8').'" alt="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('title')), ENT_QUOTES, 'UTF-8').'"> | ||
210 | - </a> | ||
211 | - </li> | ||
212 | -';}).' </ul> | ||
213 | - <div class="swiper-pagination"> | ||
214 | - <div class="pagination-inner clearfix"> | ||
215 | - </div> | ||
216 | - </div> | ||
217 | - </div> | ||
218 | -';}).' <ul class="category-list clearfix"> | ||
219 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('list')), $in, false, function($cx, $in) {return ' <li> | ||
220 | - <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url')), ENT_QUOTES, 'UTF-8').'"> | ||
221 | - <div class="img-box"> | ||
222 | - <img class="lazy" data-original="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('img')), ENT_QUOTES, 'UTF-8').'" alt=""> | ||
223 | - </div> | ||
224 | - <p class="category-name">'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('textCn')), ENT_QUOTES, 'UTF-8').'</p> | ||
225 | - </a> | ||
226 | - </li> | ||
227 | -';}).' </ul> | ||
228 | - </div>'.'';}).' | ||
229 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('creativeLife')), $in, false, function($cx, $in) {return ''.''.''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('title')), $in, false, function($cx, $in) {return ' <div class="floor-header-more"> | ||
230 | - <h2>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('title')), ENT_QUOTES, 'UTF-8').'</h2> | ||
231 | - <a class="more-btn iconfont" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('more_url')), ENT_QUOTES, 'UTF-8').'"></a> | ||
232 | - </div> | ||
233 | - ';}).''.' <div class="creative-life"> | ||
234 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('banner')), $in, false, function($cx, $in) {return ' <a class="banner" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url')), ENT_QUOTES, 'UTF-8').'"> | ||
235 | - <img class="lazy" data-original="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('img')), ENT_QUOTES, 'UTF-8').'"> | ||
236 | - </a> | ||
237 | -';}).' <ul class="classify-list clearfix"> | ||
238 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('list')), $in, false, function($cx, $in) {return ' <li class="classify"> | ||
239 | - <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url')), ENT_QUOTES, 'UTF-8').'"> | ||
240 | - <div class="classify-logo"> | ||
241 | - <img class="lazy" data-original="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('img')), ENT_QUOTES, 'UTF-8').'"> | ||
242 | - </div> | ||
243 | - <p class="classify-name">'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('name')), ENT_QUOTES, 'UTF-8').'</p> | ||
244 | - </a> | ||
245 | - </li> | ||
246 | -';}).' </ul> | ||
247 | - </div>'.'';}).' | ||
248 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('plusStar')), $in, false, function($cx, $in) {return ''.' | ||
249 | - <div class="plus-star"> | ||
250 | -'.''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('name')), $in, false, function($cx, $in) {return ' <div class="floor-header"> | ||
251 | - <h2>'.htmlentities((string)$in, ENT_QUOTES, 'UTF-8').'</h2> | ||
252 | - </div> | ||
253 | -';}).''.' <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url')), ENT_QUOTES, 'UTF-8').'"> | ||
254 | - <img class="lazy" data-original="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('img')), ENT_QUOTES, 'UTF-8').'"> | ||
255 | - </a> | ||
256 | - </div>'.'';}).'';}).' | ||
257 | - '.'<div class="maybe-like"> | ||
258 | - <p class="title"> | ||
259 | - <i class="icon"></i> | ||
260 | - <span>你可能喜欢</span> | ||
261 | - </p> | ||
262 | - | ||
263 | - <div id="goods-list" class="goods-list clearfix"></div> | ||
264 | - | ||
265 | -</div> | ||
266 | -<div class="load-more-img hide" id="load-more-img"> | ||
267 | - <a href=""> | ||
268 | - <img src=""> | ||
269 | - </a> | ||
270 | -</div> | ||
271 | -'.''.' | ||
272 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('twoColumnGoods')), $in, false, function($cx, $in) {return ''.' <div class="two-column-goods"> | ||
273 | - <ul class="column-nav clearfix"> | ||
274 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('columnNav')), $in, false, function($cx, $in) {return ' <li data-url="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url')), ENT_QUOTES, 'UTF-8').'">'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('textCn')), ENT_QUOTES, 'UTF-8').'</li> | ||
275 | -';}).' </ul> | ||
276 | - <div class="goods-list clearfix"> | ||
277 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('goods')), $in, false, function($cx, $in) {return ''.' '.((Plugin\LCRun3::ifvar($cx, $in)) ? ' | ||
278 | - <div class="good-info" data-id="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('id')), ENT_QUOTES, 'UTF-8').'"> | ||
279 | - <div class="tag-container clearfix"> | ||
280 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('tags')), $in, false, function($cx, $in) {return ''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('is_new')), $in, false, function($cx, $in) {return ' <p class="good-tag new-tag">NEW</p> | ||
281 | -';}).''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('is_advance')), $in, false, function($cx, $in) {return ' <p class="good-tag renew-tag">再到着</p> | ||
282 | -';}).''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('is_discount')), $in, false, function($cx, $in) {return ' <p class="good-tag sale-tag">SALE</p> | ||
283 | -';}).''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('is_yohoood')), $in, false, function($cx, $in) {return ' <div class="good-tag yohood-tag"></div> | ||
284 | -';}).''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('is_limited')), $in, false, function($cx, $in) {return ' <p class="good-tag limit-tag">限量商品</p> | ||
285 | -';}).'';}).' </div> | ||
286 | - <div class="good-detail-img"> | ||
287 | - <a class="good-thumb" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url')), ENT_QUOTES, 'UTF-8').'"> | ||
288 | - <img class="lazy" data-original="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('thumb')), ENT_QUOTES, 'UTF-8').'"> | ||
289 | - </a> | ||
290 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('is_soon_sold_out')), $in, false, function($cx, $in) {return ' <p class="few-tag">即将售罄</p> | ||
291 | -';}).' </div> | ||
292 | - <div class="good-detail-text"> | ||
293 | - <div class="name"> | ||
294 | - <a href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('url')), ENT_QUOTES, 'UTF-8').'">'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('name')), ENT_QUOTES, 'UTF-8').'</a> | ||
295 | - </div> | ||
296 | - <div class="price"> | ||
297 | - <span class="sale-price '.((Plugin\LCRun3::isec($cx, Plugin\LCRun3::v($cx, $in, array('price')))) ? 'no-price' : '').'">¥'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('salePrice')), ENT_QUOTES, 'UTF-8').'</span> | ||
298 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('price')), $in, false, function($cx, $in) {return ' <span class="market-price">¥'.htmlentities((string)$in, ENT_QUOTES, 'UTF-8').'</span> | ||
299 | -';}).' </div> | ||
300 | - </div> | ||
301 | - </div> | ||
302 | - ' : '').''.'';}).' </div> | ||
303 | - </div>'.'';}).' | ||
304 | - <div class="overlay"></div> | ||
305 | -'.''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('showFooterTab')), $in, false, function($cx, $in) {return ' <div class="footer-tab"> | ||
306 | - <a class="tab-item '.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('grilsHomePage')))) ? 'current' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('boysHomePage')))) ? 'current' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('kidsHomePage')))) ? 'current' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('lifestyleHomePage')))) ? 'current' : '').'" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('indexUrl')), ENT_QUOTES, 'UTF-8').'"> | ||
307 | - <p class="iconfont tab-icon"></p> | ||
308 | - <p class="tab-name">首页</p> | ||
309 | - </a> | ||
310 | - <a class="tab-item '.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('categoryPage')))) ? 'current' : '').'" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('categoryUrl')), ENT_QUOTES, 'UTF-8').'"> | ||
311 | - <p class="iconfont tab-icon"></p> | ||
312 | - <p class="tab-name">分类</p> | ||
313 | - </a> | ||
314 | - <a class="tab-item '.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('guangHome')))) ? 'current' : '').'" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('guangUrl')), ENT_QUOTES, 'UTF-8').'"> | ||
315 | - <p class="iconfont tab-icon"></p> | ||
316 | - <p class="tab-name">逛</p> | ||
317 | - </a> | ||
318 | - <a class="tab-item '.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('shoppingCartPage')))) ? 'current' : '').'" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('shoppingCartUrl')), ENT_QUOTES, 'UTF-8').'"> | ||
319 | - <p class="iconfont tab-icon"></p> | ||
320 | - <p class="tab-name">购物车</p> | ||
321 | - </a> | ||
322 | - <a class="tab-item '.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('minePage')))) ? 'current' : '').'" href="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('mineUrl')), ENT_QUOTES, 'UTF-8').'"> | ||
323 | - <p class="iconfont tab-icon"></p> | ||
324 | - <p class="tab-name">我的</p> | ||
325 | - </a> | ||
326 | - </div> | ||
327 | -';}).' '.' </div> | ||
328 | -'.' <div class="side-nav"> | ||
329 | - <ul> | ||
330 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('sideNav')), $in, false, function($cx, $in) {return ' <li class="'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('styleClass')), ENT_QUOTES, 'UTF-8').'"> | ||
331 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('url')), $in, false, function($cx, $in) {return ' <a href="'.htmlentities((string)$in, ENT_QUOTES, 'UTF-8').'"> | ||
332 | -';}).''.((Plugin\LCRun3::isec($cx, Plugin\LCRun3::v($cx, $in, array('url')))) ? ' <a href="javascript:;"> | ||
333 | -' : '').''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('img')), $in, false, function($cx, $in) {return ' <span class="nav-img" style="background-image: url('.htmlentities((string)$in, ENT_QUOTES, 'UTF-8').')"></span> | ||
334 | -';}).''.((Plugin\LCRun3::isec($cx, Plugin\LCRun3::v($cx, $in, array('img')))) ? ' <i class="nav-icon"></i> | ||
335 | -' : '').' <em>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('textCn')), ENT_QUOTES, 'UTF-8').'</em>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('textEn')), ENT_QUOTES, 'UTF-8').' | ||
336 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('subNav')), $in, false, function($cx, $in) {return ' <span class="enter-subnav iconfont"></span> | ||
337 | -';}).' </a> | ||
338 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('subNav')), $in, false, function($cx, $in) {return ' <ul class="sub-nav"> | ||
339 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('list')), $in, false, function($cx, $in) {return ' <li class="'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('isSelect')), $in, false, function($cx, $in) {return 'current';}).'" style="background-color:'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('bgColor')), ENT_QUOTES, 'UTF-8').'"> | ||
340 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('url')), $in, false, function($cx, $in) {return ' <a href="'.htmlentities((string)$in, ENT_QUOTES, 'UTF-8').'"> | ||
341 | -';}).''.((Plugin\LCRun3::isec($cx, Plugin\LCRun3::v($cx, $in, array('url')))) ? ' <a href="javascript:;"> | ||
342 | -' : '').''.((Plugin\LCRun3::isec($cx, Plugin\LCRun3::v($cx, $in, array('back')))) ? ' <span class="nav-point iconfont"></span> | ||
343 | -' : '').''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('back')), $in, false, function($cx, $in) {return ' <i class="nav-back iconfont"></i> | ||
344 | -';}).' <em>'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('textCn')), ENT_QUOTES, 'UTF-8').'</em> | ||
345 | - '.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('textEn')), ENT_QUOTES, 'UTF-8').' | ||
346 | - </a> | ||
347 | - </li> | ||
348 | -';}).' </ul> | ||
349 | -';}).' </li> | ||
350 | -';}).' </ul> | ||
351 | - </div>'.' </div> | ||
352 | -'.''.''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('pageFooter')), $in, false, function($cx, $in) {return ' <footer id="yoho-footer" class="yoho-footer hide"> | ||
353 | - <p class="op-row"> | ||
354 | - <span class="back-to-top"> | ||
355 | - Back to top | ||
356 | - <i class="iconfont"></i> | ||
357 | - </span> | ||
358 | - </p> | ||
359 | - <address class="copyright"> | ||
360 | - CopyRight©2007-2016 南京新与力文化传播有限公司 | ||
361 | - </address> | ||
362 | - </footer> | ||
363 | -';}).' | ||
364 | - '.''.''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('showDownloadApp')), $in, false, function($cx, $in) {return '<div class="float-layer hide" id="float-layer-app"> | ||
365 | - <div class="float-layer-left"> | ||
366 | - <span class="yoho-icon iconfont"></span> | ||
367 | - <p>新用户首单减10元</p> | ||
368 | - </div> | ||
369 | - <a href="javascript:void(0);" id="float-layer-close" > | ||
370 | - <i class="close-icon iconfont"></i> | ||
371 | - <div class="circle-rightbottom"></div> | ||
372 | - </a> | ||
373 | - <a href="http://m.yohobuy.com/download/hyapp" id="float-layer-btn"> | ||
374 | - 立即下载 | ||
375 | - </a> | ||
376 | -</div> | ||
377 | -';}).' | ||
378 | - | ||
379 | - '.''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('hasWxShare')))) ? ' <script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> | ||
380 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('rlsEnv')))) ? '<script src="http://cdn.yoho.cn/myohobuy/'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('version')), ENT_QUOTES, 'UTF-8').'/lib.js"></script> | ||
381 | -<script src="http://cdn.yoho.cn/myohobuy/'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('version')), ENT_QUOTES, 'UTF-8').'/index.js"></script> | ||
382 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('preEnv')))) ? '<script src="http://cdn.yoho.cn/myohobuy/'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('version')), ENT_QUOTES, 'UTF-8').'/lib.js"></script> | ||
383 | -<script src="http://cdn.yoho.cn/myohobuy/'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('version')), ENT_QUOTES, 'UTF-8').'/index.js"></script> | ||
384 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('testEnv')))) ? '<script src="http://static.buy.test.yoho.cn/dist/myohobuy/'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('version')), ENT_QUOTES, 'UTF-8').'/lib.js"></script> | ||
385 | -<script src="http://static.buy.test.yoho.cn/dist/myohobuy/'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('version')), ENT_QUOTES, 'UTF-8').'/index-debug.js"></script> | ||
386 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('devEnv')))) ? '<script src="http://localhost:8000/static/js/sea.js?nowrap"></script> | ||
387 | -<script>seajs.config({base: \'http://localhost:8000/\'});</script> | ||
388 | -' : '').' | ||
389 | -<script type="text/javascript"> | ||
390 | - (function(w,d,s,j,f){ | ||
391 | - w[\'YohoAcquisitionObject\']=f; | ||
392 | - w[f]=function(){w[f].p=arguments;}; | ||
393 | - var a=d.createElement(s); | ||
394 | - var m=d.getElementsByTagName(s)[0]; | ||
395 | - a.async=1; | ||
396 | - a.src=j; | ||
397 | - m.parentNode.insertBefore(a,m); | ||
398 | - })(window,document,\'script\',\'http://cdn.yoho.cn/yas-jssdk/1.0.8/yas.js\',\'_yas\'); | ||
399 | -</script> | ||
400 | - | ||
401 | -'.'<script> | ||
402 | - seajs.use(\'js/common\'); | ||
403 | -</script> | ||
404 | -'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('psList')))) ? '<script> | ||
405 | - seajs.use(\'js/guang/plus-star/list\'); | ||
406 | -</script> | ||
407 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('psDetail')))) ? '<script> | ||
408 | - seajs.use(\'js/guang/plus-star/detail\'); | ||
409 | -</script> | ||
410 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('guangHome')))) ? '<script> | ||
411 | - seajs.use(\'js/guang/home\'); | ||
412 | -</script> | ||
413 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('guangList')))) ? '<script> | ||
414 | - seajs.use(\'js/guang/list\'); | ||
415 | -</script> | ||
416 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('guangDetail')))) ? '<script> | ||
417 | - seajs.use(\'js/guang/detail\', function(d) { | ||
418 | - d.i(true); | ||
419 | - }); | ||
420 | -</script> | ||
421 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('guangEzine')))) ? '<script> | ||
422 | - seajs.use(\'js/guang/detail\', function(d) { | ||
423 | - d.i(false); | ||
424 | - }); | ||
425 | -</script> | ||
426 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('regIndex')))) ? '<script> | ||
427 | - seajs.use(\'js/passport/register/register\'); | ||
428 | -</script> | ||
429 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('regCode')))) ? '<script> | ||
430 | - seajs.use(\'js/passport/register/code\'); | ||
431 | -</script> | ||
432 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('regPwd')))) ? '<script> | ||
433 | - seajs.use(\'js/passport/register/password\'); | ||
434 | -</script> | ||
435 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('loginIndex')))) ? '<script> | ||
436 | - seajs.use(\'js/passport/login/login\'); | ||
437 | -</script> | ||
438 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('loginInternational')))) ? '<script> | ||
439 | - seajs.use(\'js/passport/login/international\'); | ||
440 | -</script> | ||
441 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('backEmail')))) ? '<script> | ||
442 | - seajs.use(\'js/passport/back/email\'); | ||
443 | -</script> | ||
444 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('backEmailSuccess')))) ? '<script> | ||
445 | - seajs.use(\'js/passport/back/email-success\'); | ||
446 | -</script> | ||
447 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('backMobile')))) ? '<script> | ||
448 | - seajs.use(\'js/passport/back/mobile\'); | ||
449 | -</script> | ||
450 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('backCode')))) ? '<script> | ||
451 | - seajs.use(\'js/passport/back/code\'); | ||
452 | -</script> | ||
453 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('backNewPwd')))) ? '<script> | ||
454 | - seajs.use(\'js/passport/back/new-password\'); | ||
455 | -</script> | ||
456 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('channelPage')))) ? '<script> | ||
457 | - seajs.use(\'js/index/channel\'); | ||
458 | - seajs.use(\'js/index/footer\'); | ||
459 | -</script> | ||
460 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('grilsHomePage')))) ? '<script> | ||
461 | - seajs.use(\'js/home/home\', function(h) { | ||
462 | - h.set(\'girls\'); | ||
463 | - }); | ||
464 | - seajs.use(\'js/index/footer\'); | ||
465 | -</script> | ||
466 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('boysHomePage')))) ? '<script> | ||
467 | - seajs.use(\'js/home/home\', function(h) { | ||
468 | - h.set(\'boys\'); | ||
469 | - }); | ||
470 | - seajs.use(\'js/index/footer\'); | ||
471 | -</script> | ||
472 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('kidsHomePage')))) ? '<script> | ||
473 | - seajs.use(\'js/home/home\', function(h) { | ||
474 | - h.set(\'kids\'); | ||
475 | - }); | ||
476 | - seajs.use(\'js/index/footer\'); | ||
477 | -</script> | ||
478 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('lifestyleHomePage')))) ? '<script> | ||
479 | - seajs.use(\'js/home/home\', function(h) { | ||
480 | - h.set(\'lifestyle\'); | ||
481 | - }); | ||
482 | - seajs.use(\'js/index/footer\'); | ||
483 | -</script> | ||
484 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('newArrivalPage')))) ? '<script> | ||
485 | - seajs.use(\'js/product/newsale/newarrival\'); | ||
486 | - seajs.use(\'js/index/footer\'); | ||
487 | -</script> | ||
488 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('discountPage')))) ? '<script> | ||
489 | - seajs.use(\'js/product/newsale/discount\'); | ||
490 | - seajs.use(\'js/index/footer\'); | ||
491 | -</script> | ||
492 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('hotrankPage')))) ? '<script> | ||
493 | - seajs.use(\'js/product/newsale/hot-rank\'); | ||
494 | - seajs.use(\'js/index/footer\'); | ||
495 | -</script> | ||
496 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('goodListPage')))) ? '<script> | ||
497 | - seajs.use(\'js/product/list\'); | ||
498 | - seajs.use(\'js/index/footer\'); | ||
499 | -</script> | ||
500 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('goodsDetailPage')))) ? '<script> | ||
501 | - seajs.use(\'js/product/detail/detail\'); | ||
502 | -</script> | ||
503 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('categoryPage')))) ? '<script> | ||
504 | - seajs.use(\'js/category/index\'); | ||
505 | - seajs.use(\'js/index/footer\'); | ||
506 | -</script> | ||
507 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('brandPage')))) ? '<script> | ||
508 | - seajs.use(\'js/category/brand\'); | ||
509 | - seajs.use(\'js/index/footer\'); | ||
510 | -</script> | ||
511 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('searchPage')))) ? '<script> | ||
512 | - seajs.use(\'js/index/search\'); | ||
513 | - seajs.use(\'js/index/footer\'); | ||
514 | -</script> | ||
515 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('shoppingCartPage')))) ? '<script> | ||
516 | - seajs.use(\'js/shopping-cart/cart\'); | ||
517 | -</script> | ||
518 | -' : '').''.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('giftAdvancePage')))) ? '<script> | ||
519 | - seajs.use(\'js/shopping-cart/gift-advance\'); | ||
520 | -</script> | ||
521 | -' : '').' | ||
522 | -'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('orderPage')))) ? '<script> | ||
523 | - seajs.use(\'js/me/order\'); | ||
524 | -</script> | ||
525 | -' : '').''.' | ||
526 | -'.' <!-- Google Tag Manager --> | ||
527 | - <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> | ||
528 | - <script> | ||
529 | - (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\': | ||
530 | - new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0], | ||
531 | - j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src= | ||
532 | - \'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f); | ||
533 | - })(window,document,\'script\',\'dataLayer\',\'GTM-W958MG\'); | ||
534 | - </script> | ||
535 | - <!-- End Google Tag Manager --> | ||
536 | - | ||
537 | -<script type="text/javascript"> | ||
538 | - var _hmt = _hmt || []; | ||
539 | - (function() { | ||
540 | - var hm = document.createElement("script"); | ||
541 | - hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311"; | ||
542 | - var s = document.getElementsByTagName("script")[0]; | ||
543 | - s.parentNode.insertBefore(hm, s); | ||
544 | - })(); | ||
545 | -</script> | ||
546 | - | ||
547 | -<script> | ||
548 | - var _hmt = _hmt || []; | ||
549 | - (function() { | ||
550 | - var hm = document.createElement("script"); | ||
551 | - hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841"; | ||
552 | - var s = document.getElementsByTagName("script")[0]; | ||
553 | - s.parentNode.insertBefore(hm, s); | ||
554 | - })(); | ||
555 | -</script> | ||
556 | - | ||
557 | -<script src="http://static.yohobuy.com/js/analytics/analysis.js"></script> | ||
558 | - | ||
559 | -<script src="http://static.yohobuy.com/m/v1/js/om_code.js"></script>'.'</body> | ||
560 | -</html>'.''; | ||
561 | -} | ||
562 | -?> |
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 ''.''.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('filter')), $in, false, function($cx, $in) {return ' <div class="filter-mask hide"> | ||
25 | - <div class="filter-body"> | ||
26 | - <ul class="classify"> | ||
27 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('classify')), $in, true, function($cx, $in) {return ' <li class="classify-item'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $cx['sp_vars'], array('first')))) ? ' active' : '').'"> | ||
28 | - <p class="shower'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('default')))) ? ' default' : '').'"> | ||
29 | - <span class="title">'.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('title')), ENT_QUOTES, 'UTF-8').':</span> | ||
30 | - '.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('name')), ENT_QUOTES, 'UTF-8').' | ||
31 | - </p> | ||
32 | - <ul class="sub-classify" data-type='.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('dataType')), ENT_QUOTES, 'UTF-8').'> | ||
33 | -'.Plugin\LCRun3::sec($cx, Plugin\LCRun3::v($cx, $in, array('subs')), $in, false, function($cx, $in) {return ' <li class="sub-item'.((Plugin\LCRun3::ifvar($cx, Plugin\LCRun3::v($cx, $in, array('chosed')))) ? ' chosed' : '').'" data-id='.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('dataId')), ENT_QUOTES, 'UTF-8').'> | ||
34 | - '.htmlentities((string)Plugin\LCRun3::v($cx, $in, array('name')), ENT_QUOTES, 'UTF-8').' | ||
35 | - <i class="iconfont chosed-icon"></i> | ||
36 | - </li> | ||
37 | -';}).' </ul> | ||
38 | - </li> | ||
39 | -';}).' </ul> | ||
40 | - </div> | ||
41 | - </div> | ||
42 | -';}).''.''; | ||
43 | -} | ||
44 | -?> |
@@ -21,10 +21,7 @@ class CacheConfig | @@ -21,10 +21,7 @@ class CacheConfig | ||
21 | 21 | ||
22 | const KEY_ACTION_BOYS_BOTTOM_BANNER = 'key_action_boys_bottom_banner'; // 男生首页底部banner | 22 | const KEY_ACTION_BOYS_BOTTOM_BANNER = 'key_action_boys_bottom_banner'; // 男生首页底部banner |
23 | const KEY_ACTION_GRILS_BOTTOM_BANNER = 'key_action_girls_bottom_banner';// 女生首页底部banner | 23 | const KEY_ACTION_GRILS_BOTTOM_BANNER = 'key_action_girls_bottom_banner';// 女生首页底部banner |
24 | - | ||
25 | - const KEY_ACTION_GUANG_PLUSSTAR_INDEX = 'key_action_guang_plusstar_index'; // 国际优选 | ||
26 | - const KEY_ACTION_GUANG_PLUSSTAR_LIST = 'key_action_guang_plusstar_list'; // 明星原创 | ||
27 | - | 24 | + |
28 | const KEY_ACTION_PRODUCT_NEWSALE_INDEX = 'key_action_product_newsale_index'; // 新品到着 | 25 | const KEY_ACTION_PRODUCT_NEWSALE_INDEX = 'key_action_product_newsale_index'; // 新品到着 |
29 | const KEY_ACTION_PRODUCT_NEWSALE_DISCOUNT = 'key_action_product_newsale_discount'; // 热卖排行 | 26 | const KEY_ACTION_PRODUCT_NEWSALE_DISCOUNT = 'key_action_product_newsale_discount'; // 热卖排行 |
30 | 27 | ||
@@ -38,7 +35,10 @@ class CacheConfig | @@ -38,7 +35,10 @@ class CacheConfig | ||
38 | const KEY_ACTION_SEARCH_SEARCH = 'key_action_search_search'; // 搜索的数据 | 35 | const KEY_ACTION_SEARCH_SEARCH = 'key_action_search_search'; // 搜索的数据 |
39 | const KEY_ACTION_SEARCH_FILTER = 'key_action_search_filter'; // 搜索的过滤条件 | 36 | const KEY_ACTION_SEARCH_FILTER = 'key_action_search_filter'; // 搜索的过滤条件 |
40 | 37 | ||
38 | + const KEY_ACTION_GUANG_PLUSSTAR_INDEX = 'key_action_guang_plusstar_index'; // 国际优选 | ||
39 | + const KEY_ACTION_GUANG_PLUSSTAR_LIST = 'key_action_guang_plusstar_list'; // 明星原创 | ||
41 | const KEY_ACTION_GUANG_PLUSTAR_DATA = 'key_action_guang_plustar_data'; // 逛PLUSTAR | 40 | const KEY_ACTION_GUANG_PLUSTAR_DATA = 'key_action_guang_plustar_data'; // 逛PLUSTAR |
42 | const KEY_ACTION_GUANG_DETAIL_DATA = 'key_action_guang_detail_data'; // 逛内容详情 | 41 | const KEY_ACTION_GUANG_DETAIL_DATA = 'key_action_guang_detail_data'; // 逛内容详情 |
42 | + const KEY_ACTION_GUANG_RSS_DATA = 'key_action_guang_detail_data'; // 逛订阅内容 | ||
43 | 43 | ||
44 | } | 44 | } |
@@ -140,5 +140,13 @@ class DetailData | @@ -140,5 +140,13 @@ class DetailData | ||
140 | 140 | ||
141 | return $result; | 141 | return $result; |
142 | } | 142 | } |
143 | + | ||
144 | + /** | ||
145 | + * 获取详情信息 | ||
146 | + */ | ||
147 | + public static function intro($id) | ||
148 | + { | ||
149 | + return Yohobuy::yarClient(Yohobuy::SERVICE_URL . self::URI_PACKAGE_ARTICLE, 'getArticleContent', array($id, 'h5')); | ||
150 | + } | ||
143 | 151 | ||
144 | } | 152 | } |
@@ -46,9 +46,11 @@ class ListData | @@ -46,9 +46,11 @@ class ListData | ||
46 | * @param int $page 分页第几页, 默认第1页 | 46 | * @param int $page 分页第几页, 默认第1页 |
47 | * @param string $tag 标签 | 47 | * @param string $tag 标签 |
48 | * @param int $authorId 作者ID | 48 | * @param int $authorId 作者ID |
49 | + * @param int $limit 返回的限制数 | ||
50 | + * @param bool $useCache 是否使用缓存 | ||
49 | * @return array | 51 | * @return array |
50 | */ | 52 | */ |
51 | - public static function article($gender, $sortId, $uid = 0, $udid = '', $page = 1, $tag = null, $authorId = null) | 53 | + public static function article($gender, $sortId, $uid = 0, $udid = '', $page = 1, $tag = null, $authorId = null, $limit = null, $useCache = true) |
52 | { | 54 | { |
53 | $param = Yohobuy::param(); | 55 | $param = Yohobuy::param(); |
54 | $param['gender'] = $gender; | 56 | $param['gender'] = $gender; |
@@ -64,9 +66,14 @@ class ListData | @@ -64,9 +66,14 @@ class ListData | ||
64 | if (isset($authorId) && is_numeric($authorId)) { | 66 | if (isset($authorId) && is_numeric($authorId)) { |
65 | $param['author_id'] = $authorId; | 67 | $param['author_id'] = $authorId; |
66 | } | 68 | } |
69 | + if (isset($limit)) { | ||
70 | + $param['limit'] = $limit; | ||
71 | + } | ||
67 | $param['client_secret'] = Sign::getSign($param); | 72 | $param['client_secret'] = Sign::getSign($param); |
68 | 73 | ||
69 | - return Yohobuy::get(Yohobuy::SERVICE_URL . self::URI_ARTICLELIST, $param, 300); // 缓存5分钟 | 74 | + $cache = $useCache ? 300 : false; |
75 | + | ||
76 | + return Yohobuy::get(Yohobuy::SERVICE_URL . self::URI_ARTICLELIST, $param, $cache); // 缓存5分钟 | ||
70 | } | 77 | } |
71 | 78 | ||
72 | /** | 79 | /** |
@@ -3,7 +3,9 @@ | @@ -3,7 +3,9 @@ | ||
3 | namespace Guang; | 3 | namespace Guang; |
4 | 4 | ||
5 | use LibModels\Wap\Guang\ListData; | 5 | use LibModels\Wap\Guang\ListData; |
6 | +use LibModels\Wap\Guang\DetailData; | ||
6 | use Plugin\Helpers; | 7 | use Plugin\Helpers; |
8 | +use Configs\CacheConfig; | ||
7 | 9 | ||
8 | /** | 10 | /** |
9 | * | 11 | * |
@@ -178,11 +180,100 @@ class IndexModel | @@ -178,11 +180,100 @@ class IndexModel | ||
178 | 180 | ||
179 | // 显示底部 | 181 | // 显示底部 |
180 | $data['pageFooter'] = true; | 182 | $data['pageFooter'] = true; |
181 | - | 183 | + |
182 | $category = array(); | 184 | $category = array(); |
183 | $article = array(); | 185 | $article = array(); |
184 | 186 | ||
185 | return $data; | 187 | return $data; |
186 | } | 188 | } |
187 | 189 | ||
190 | + /** | ||
191 | + * 获取订阅的资讯文章列表 | ||
192 | + * | ||
193 | + * @param string $gender 性别参数(1,3表示男, 2,3表示女, 默认为所有) | ||
194 | + * @return array | ||
195 | + */ | ||
196 | + public static function getRssArticle($gender) | ||
197 | + { | ||
198 | + $result = array(); | ||
199 | + | ||
200 | + if (USE_CACHE) { | ||
201 | + $key = CacheConfig::KEY_ACTION_GUANG_RSS_DATA; | ||
202 | + // 先尝试获取一级缓存(master), 有数据则直接返回. | ||
203 | + $result = Cache::get($key, 'master'); | ||
204 | + if (!empty($result)) { | ||
205 | + return $result; | ||
206 | + } | ||
207 | + } | ||
208 | + | ||
209 | + $article = array(); | ||
210 | + switch ($gender) { | ||
211 | + case '1,3': | ||
212 | + $article = ListData::article('1,3', 0, 0, '', 1, null, null, 100, false); | ||
213 | + break; | ||
214 | + case '2,3': | ||
215 | + $article = ListData::article('2,3', 0, 0, '', 1, null, null, 100, false); | ||
216 | + break; | ||
217 | + default: | ||
218 | + $article = ListData::article('1,2,3', 0, 0, '', 1, null, null, 100, false); | ||
219 | + break; | ||
220 | + } | ||
221 | + | ||
222 | + // 内容列表 | ||
223 | + if (!empty($article['data']['list']['artList'])) { | ||
224 | + $build = array(); | ||
225 | + foreach ($article['data']['list']['artList'] as $value) { | ||
226 | + if (!isset($value['id'])) { | ||
227 | + continue; | ||
228 | + } | ||
229 | + $build = Helpers::formatArticle($value, false, false, false); | ||
230 | + $build['intro'] = DetailData::intro($value['id']); | ||
231 | + } | ||
232 | + } | ||
233 | + | ||
234 | + if (USE_CACHE) { | ||
235 | + // 接口调用异常时, 不害怕,从我们的二级缓存(slave)里再取数据. | ||
236 | + if (empty($result)) { | ||
237 | + $result = Cache::get($key, 'slave'); | ||
238 | + } | ||
239 | + // 接口调用正常,数据封装完成, 则设置一级(master)和二级(slave)数据缓存 | ||
240 | + else { | ||
241 | + Cache::set($key, $result); | ||
242 | + } | ||
243 | + } | ||
244 | + | ||
245 | + return $result; | ||
246 | + } | ||
247 | + | ||
248 | + /** | ||
249 | + * | ||
250 | + * @param array $data | ||
251 | + * @return array | ||
252 | + */ | ||
253 | + private static function buildIntro($data) | ||
254 | + { | ||
255 | + foreach ($data as $value) { | ||
256 | + $build = array(); | ||
257 | + // 文字 | ||
258 | + if (isset($value['text'])) { | ||
259 | + $build['text'] = $value['text']['data']['text']; | ||
260 | + } | ||
261 | + // 单张图 | ||
262 | + elseif (isset($value['singleImage'])) { | ||
263 | + $build['bigImage'] = Helpers::getImageUrl($value['singleImage']['data'][0]['src'], 640, 640); | ||
264 | + } | ||
265 | + elseif (isset($value['smallPic']['data'])) { | ||
266 | + $imgs = $value['smallPic']['data']; | ||
267 | + $build['smallImage'] = array( | ||
268 | + array( | ||
269 | + 'src' => Helpers::getImageUrl($imgs[0]['src'], 315, 420) | ||
270 | + ), | ||
271 | + array( | ||
272 | + 'src' => Helpers::getImageUrl($imgs[1]['src'], 315, 420) | ||
273 | + ) | ||
274 | + ); | ||
275 | + } | ||
276 | + } | ||
277 | + } | ||
278 | + | ||
188 | } | 279 | } |
1 | +<?php | ||
2 | +use Action\AbstractAction; | ||
3 | + | ||
4 | +/** | ||
5 | + * RSS订阅 | ||
6 | + * | ||
7 | + * @name RssController | ||
8 | + * @package Guang | ||
9 | + * @copyright yoho.inc | ||
10 | + * @version 1.0 (2015-11-16 17:25:09) | ||
11 | + * @author fei.hong <fei.hong@yoho.cn> | ||
12 | + */ | ||
13 | +class RssController extends AbstractAction | ||
14 | +{ | ||
15 | + | ||
16 | + public function indexAction() | ||
17 | + { | ||
18 | + headers_sent() || header('Content-Type: text/xml; charset=utf-8'); | ||
19 | + | ||
20 | + $time = date('D, d M Y H:i:s O'); | ||
21 | + | ||
22 | + // 输出顶部公共的信息 | ||
23 | + echo <<<RSS | ||
24 | +<?xml version="1.0" encoding="UTF-8"?> | ||
25 | +<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> | ||
26 | +<channel> | ||
27 | + <title>有货逛</title> | ||
28 | + <link>http://guang.m.yohobuy.com</link> | ||
29 | + <description>Yoho!Buy有货 | 年轻人潮流购物中心</description> | ||
30 | + <atom:link href="http://guang.m.yohobuy.com/rss" rel="self"></atom:link> | ||
31 | + <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/> | ||
32 | + <language>zh-cn</language> | ||
33 | + <copyright>2015 yoho.inc</copyright> | ||
34 | + <lastBuildDate>{$time}</lastBuildDate> | ||
35 | + <ttl>30</ttl> | ||
36 | +RSS; | ||
37 | + | ||
38 | + | ||
39 | + | ||
40 | + | ||
41 | + | ||
42 | + } | ||
43 | + | ||
44 | +} |
-
Please register or login to post a comment