do modify domain to mtesth5.yohobuy.com
Showing
100 changed files
with
5 additions
and
3079 deletions
Too many changes to show.
To preserve performance only 100 of 100+ files are displayed.
@@ -51,6 +51,9 @@ class AbstractAction extends Controller_Abstract | @@ -51,6 +51,9 @@ class AbstractAction extends Controller_Abstract | ||
51 | case 'production': // 生产 | 51 | case 'production': // 生产 |
52 | $this->_view->assign('rlsEnv', true); | 52 | $this->_view->assign('rlsEnv', true); |
53 | break; | 53 | break; |
54 | + case 'preview': // 预览 | ||
55 | + $this->_view->assign('preEnv', true); | ||
56 | + break; | ||
54 | case 'testing': // 测试 | 57 | case 'testing': // 测试 |
55 | $this->_view->assign('testEnv', true); | 58 | $this->_view->assign('testEnv', true); |
56 | break; | 59 | break; |
@@ -232,7 +235,7 @@ class AbstractAction extends Controller_Abstract | @@ -232,7 +235,7 @@ class AbstractAction extends Controller_Abstract | ||
232 | protected function getUdid() | 235 | protected function getUdid() |
233 | { | 236 | { |
234 | $udid = ''; | 237 | $udid = ''; |
235 | - | 238 | + |
236 | $realIP = $this->_request->getServer('HTTP_X_REAL_IP'); | 239 | $realIP = $this->_request->getServer('HTTP_X_REAL_IP'); |
237 | if ($realIP) { | 240 | if ($realIP) { |
238 | $udid = md5($realIP); | 241 | $udid = md5($realIP); |
@@ -240,7 +243,7 @@ class AbstractAction extends Controller_Abstract | @@ -240,7 +243,7 @@ class AbstractAction extends Controller_Abstract | ||
240 | $realIP = $this->_request->getServer('REMOTE_ADDR', ''); | 243 | $realIP = $this->_request->getServer('REMOTE_ADDR', ''); |
241 | $udid = md5($realIP); | 244 | $udid = md5($realIP); |
242 | } | 245 | } |
243 | - | 246 | + |
244 | return $udid; | 247 | return $udid; |
245 | } | 248 | } |
246 | 249 |
static/.gitignore
deleted
100644 → 0
1 | -*.iml | ||
2 | -.idea/ | ||
3 | -.ipr | ||
4 | -.iws | ||
5 | -*~ | ||
6 | -~* | ||
7 | -*.diff | ||
8 | -*.patch | ||
9 | -*.bak | ||
10 | -.DS_Store | ||
11 | -Thumbs.db | ||
12 | -.project | ||
13 | -.*proj | ||
14 | -.svn/ | ||
15 | -*.swp | ||
16 | -*.swo | ||
17 | -*.pyc | ||
18 | -*.pyo | ||
19 | -.build | ||
20 | -node_modules | ||
21 | -_site | ||
22 | -sea-modules | ||
23 | -spm_modules | ||
24 | -.cache | ||
25 | -dist | ||
26 | -coverage | ||
27 | -css/ | ||
28 | -.sass-cache/ | ||
29 | -script/nginx/logs/ |
static/.spmignore
deleted
100644 → 0
static/config.rb
deleted
100644 → 0
1 | -require 'compass/import-once/activate' | ||
2 | -# Require any additional compass plugins here. | ||
3 | - | ||
4 | -# Set this to the root of your project when deployed: | ||
5 | -http_path = "/" | ||
6 | -css_dir = "css" | ||
7 | -sass_dir = "sass" | ||
8 | -images_dir = "img" | ||
9 | -javascripts_dir = "js" | ||
10 | -fonts_dir = "font" | ||
11 | - | ||
12 | -# You can select your preferred output style here (can be overridden via the command line): | ||
13 | -# output_style = :expanded or :nested or :compact or :compressed | ||
14 | -output_style = :expanded | ||
15 | -# To enable relative paths to assets via compass helper functions. Uncomment: | ||
16 | -relative_assets = true | ||
17 | - | ||
18 | -# To disable debugging comments that display the original location of your selectors. Uncomment: | ||
19 | -line_comments = false | ||
20 | - | ||
21 | - | ||
22 | -# If you prefer the indented syntax, you might want to regenerate this | ||
23 | -# project again passing --syntax sass, or you can uncomment this: | ||
24 | -# preferred_syntax = :sass | ||
25 | -# and then run: | ||
26 | -# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass | ||
27 | -Encoding.default_external = "utf-8" |
1 | -define("index", ["zepto","lazyload","swiper","mlellipsis","index"], function(require, exports, module){ | ||
2 | -var yohobuy; | ||
3 | - | ||
4 | -require("js/common"); | ||
5 | - | ||
6 | -require("js/passport/index"); | ||
7 | -require("js/guang/index"); | ||
8 | -require("js/home/index"); | ||
9 | -require("js/product/index"); | ||
10 | -require("js/index/index"); | ||
11 | - | ||
12 | -module.exports = yohobuy; | ||
13 | - | ||
14 | -}); | ||
15 | -define("js/common", ["zepto"], function(require, exports, module){ | ||
16 | -/** | ||
17 | - * 页面公共逻辑 | ||
18 | - * @author: xuqi<qi.xu@yoho.cn> | ||
19 | - * @date: 2015/10/21 | ||
20 | - */ | ||
21 | -var $ = require("zepto"); | ||
22 | - | ||
23 | -function cookie(name) { | ||
24 | - var cookies = document.cookie, | ||
25 | - cookieVal, | ||
26 | - offset; | ||
27 | - | ||
28 | - if (document.cookie && document.cookie !== '') { | ||
29 | - offset = cookies.indexOf(name + '='); | ||
30 | - if (offset > -1) { | ||
31 | - offset += name.length + 1; | ||
32 | - | ||
33 | - cookieVal = decodeURIComponent($.trim(cookies.substring(offset, cookies.indexOf(';', offset)))); | ||
34 | - } | ||
35 | - } | ||
36 | - | ||
37 | - return cookieVal; | ||
38 | -} | ||
39 | - | ||
40 | -function getUser() { | ||
41 | - var c = cookie('_UID'), | ||
42 | - user; | ||
43 | - | ||
44 | - if (typeof c === 'undefined') { | ||
45 | - return 0; | ||
46 | - } | ||
47 | - | ||
48 | - user = c.split('::'); | ||
49 | - | ||
50 | - if (typeof user === 'undefined' || user.length < 4) { | ||
51 | - return 0; | ||
52 | - } | ||
53 | - | ||
54 | - return user; | ||
55 | -} | ||
56 | - | ||
57 | -function getUid() { | ||
58 | - var user = getUser(); | ||
59 | - | ||
60 | - if (user === 0) { | ||
61 | - return 0; | ||
62 | - } | ||
63 | - | ||
64 | - return user[1]; | ||
65 | -} | ||
66 | - | ||
67 | -function getShoppingKey() { | ||
68 | - var c = cookie('_g'); | ||
69 | - | ||
70 | - if (typeof c === 'undefined') { | ||
71 | - return ''; | ||
72 | - } | ||
73 | - | ||
74 | - return JSON.parse(c).k; | ||
75 | -} | ||
76 | - | ||
77 | -//页面通用底部位置及status设置 | ||
78 | -(function() { | ||
79 | - var $footer = $('#yoho-footer'), | ||
80 | - $op = $footer.children('.op-row'); | ||
81 | - | ||
82 | - var user = getUser(); | ||
83 | - | ||
84 | - if ($('body').height() < $(window).height()) { | ||
85 | - $footer.addClass('bottom'); | ||
86 | - } | ||
87 | - | ||
88 | - if (user === 0) { | ||
89 | - | ||
90 | - //未登录 | ||
91 | - $op.prepend( | ||
92 | - '<a href="http://m.yohobuy.com/signin.html">登录</a>' + | ||
93 | - '<span class="sep-line">|</span>' + | ||
94 | - '<a href="http://m.yohobuy.com/reg.html">注册</a>' | ||
95 | - ); | ||
96 | - } else { | ||
97 | - | ||
98 | - //已登录 | ||
99 | - $op.prepend( | ||
100 | - 'Hi,' + | ||
101 | - '<a class="user-name" href="http://m.yohobuy.com/home?tmp=' + Math.random() + '">' + user[0] + '</a>' + | ||
102 | - '<a href="http://m.yohobuy.com/passport/signout/index?token=' + user[3] + '">退出</a>' | ||
103 | - ); | ||
104 | - } | ||
105 | - | ||
106 | - $footer.removeClass('hide'); | ||
107 | -}()); | ||
108 | - | ||
109 | -//暴露公共接口 | ||
110 | -window.cookie = cookie; | ||
111 | - | ||
112 | -window.getUser = getUser; | ||
113 | - | ||
114 | -window.getUid = getUid; | ||
115 | - | ||
116 | -window.getShoppingKey = getShoppingKey; | ||
117 | -}); | ||
118 | -define("js/passport/index", ["zepto"], function(require, exports, module){ | ||
119 | -/** | ||
120 | - * 注册、登录、密码找回打包入口 | ||
121 | - * @author: xuqi<qi.xu@yoho.cn> | ||
122 | - * @date: 2015/10/8 | ||
123 | - */ | ||
124 | - | ||
125 | -//注册 | ||
126 | -require("js/passport/register/register"); | ||
127 | -require("js/passport/register/code"); | ||
128 | -require("js/passport/register/password"); | ||
129 | - | ||
130 | -//登录 | ||
131 | -require("js/passport/login/login"); | ||
132 | -require("js/passport/login/international"); | ||
133 | - | ||
134 | -//密码找回 | ||
135 | -require("js/passport/back/mobile"); | ||
136 | -require("js/passport/back/code"); | ||
137 | -require("js/passport/back/email"); | ||
138 | -require("js/passport/back/email-success"); | ||
139 | -require("js/passport/back/new-password"); | ||
140 | -}); | ||
141 | -define("js/passport/register/register", ["zepto"], function(require, exports, module){ | ||
142 | -/** | ||
143 | - * 注册 | ||
144 | - * @author: xuqi<qi.xu@yoho.cn> | ||
145 | - * @date: 2015/10/8 | ||
146 | - */ | ||
147 | -var $ = require("zepto"); | ||
148 | - | ||
149 | -var $phoneNum = $('#phone-num'), | ||
150 | - $countrySelect = $('#country-select'), | ||
151 | - $areaCode = $('#area-code'), | ||
152 | - $btnNext = $('#btn-next'); | ||
153 | - | ||
154 | -var api = require("js/passport/api"); | ||
155 | -var tip = require("js/plugin/tip"); | ||
156 | - | ||
157 | -var trim = $.trim; | ||
158 | -var showErrTip = tip.show; | ||
159 | - | ||
160 | -api.selectCssHack($('#country-select')); | ||
161 | - | ||
162 | -api.bindClearEvt(); | ||
163 | - | ||
164 | -$phoneNum.bind('input', function() { | ||
165 | - if (trim($phoneNum.val()) === '') { | ||
166 | - $btnNext.addClass('disable'); | ||
167 | - } else { | ||
168 | - $btnNext.removeClass('disable'); | ||
169 | - } | ||
170 | -}); | ||
171 | - | ||
172 | -$countrySelect.change(function() { | ||
173 | - $areaCode.text($countrySelect.val()); | ||
174 | -}); | ||
175 | - | ||
176 | -$btnNext.on('touchstart', function() { | ||
177 | - var pn = trim($phoneNum.val()), | ||
178 | - areaCode = $countrySelect.val(); | ||
179 | - | ||
180 | - if ($btnNext.hasClass('disable')) { | ||
181 | - return; | ||
182 | - } | ||
183 | - | ||
184 | - if (api.phoneRegx[areaCode].test(pn)) { | ||
185 | - $.ajax({ | ||
186 | - url: '/passport/reg/verifymobile', | ||
187 | - type: 'POST', | ||
188 | - data: { | ||
189 | - areaCode: areaCode.replace('+', ''), | ||
190 | - phoneNum: pn | ||
191 | - }, | ||
192 | - success: function(data) { | ||
193 | - if (data.code === 200) { | ||
194 | - location.href = data.data; | ||
195 | - } else { | ||
196 | - showErrTip(data.message); | ||
197 | - } | ||
198 | - } | ||
199 | - }); | ||
200 | - } else { | ||
201 | - showErrTip('手机号格式不正确,请重新输入'); | ||
202 | - } | ||
203 | -}); | ||
204 | -}); | ||
205 | -define("js/passport/api", ["zepto"], function(require, exports, module){ | ||
206 | -/** | ||
207 | - * 登录注册公用API | ||
208 | - * @author: xuqi<qi.xu@yoho.cn> | ||
209 | - * @date: 2015/10/8 | ||
210 | - */ | ||
211 | -var $ = require("zepto"); | ||
212 | - | ||
213 | -var trim = $.trim; | ||
214 | - | ||
215 | -//邮箱验证规则 | ||
216 | -var emailRegx = /^([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/; | ||
217 | - | ||
218 | -//手机号码验证规则 | ||
219 | -var phoneRegx = { | ||
220 | - '+86': /^1[35847]{1}[0-9]{9}$/, | ||
221 | - '+852': /^[965]{1}[0-9]{7}$/, | ||
222 | - '+853': /^[0-9]{8}$/, | ||
223 | - '+886': /^[0-9]{10}$/, | ||
224 | - '+65': /^[98]{1}[0-9]{7}$/, | ||
225 | - '+60': /^1[1234679]{1}[0-9]{8}$/, | ||
226 | - '+1': /^[0-9]{10}$/, | ||
227 | - '+82': /^01[0-9]{9}$/, | ||
228 | - '+44': /^7[789][0-9]{8}$/, | ||
229 | - '+81': /^0[9|8|7][0-9]{9}$/, | ||
230 | - '+61': /^[0-9]{11}$/ | ||
231 | -}; | ||
232 | - | ||
233 | -//密码显示隐藏 | ||
234 | -function bindEyesEvt() { | ||
235 | - var $hasEye = $('.has-eye'), | ||
236 | - $eye; | ||
237 | - | ||
238 | - $hasEye.append('<div class="eye close"></div>'); | ||
239 | - $eye = $hasEye.children('.eye'); | ||
240 | - | ||
241 | - $eye.on('touchstart', function(e) { | ||
242 | - var $this = $(this), | ||
243 | - $pwd = $this.siblings('.pwd'); | ||
244 | - | ||
245 | - e.preventDefault(); | ||
246 | - $this.toggleClass('close'); | ||
247 | - | ||
248 | - //切换密码显示和文本显示 | ||
249 | - if ($this.hasClass('close')) { | ||
250 | - $pwd.attr('type', 'password'); | ||
251 | - } else { | ||
252 | - $pwd.attr('type', 'text'); | ||
253 | - } | ||
254 | - $pwd.focus(); | ||
255 | - }); | ||
256 | -} | ||
257 | - | ||
258 | -// 清空账号显示 | ||
259 | -function bindClearEvt() { | ||
260 | - var $hasClear = $('.has-clear'), | ||
261 | - $clear; | ||
262 | - | ||
263 | - $hasClear.append('<div class="clear-input"></div>'); | ||
264 | - $clear = $hasClear.children('.clear-input'); | ||
265 | - | ||
266 | - $clear.on('touchstart', function(e) { | ||
267 | - var $input = $clear.siblings('.input'); | ||
268 | - | ||
269 | - $input.val('').trigger('input').focus(); | ||
270 | - e.preventDefault(); | ||
271 | - }); | ||
272 | - | ||
273 | - //反向逻辑 | ||
274 | - $hasClear.children('.input').bind('input', function() { | ||
275 | - var $this = $(this), | ||
276 | - $thisClear = $this.siblings('.clear-input'), | ||
277 | - val = trim($this.val()); | ||
278 | - | ||
279 | - if (val === '') { | ||
280 | - $thisClear.hide(); | ||
281 | - } else { | ||
282 | - $thisClear.show(); | ||
283 | - } | ||
284 | - }); | ||
285 | -} | ||
286 | - | ||
287 | -// 密码长度验证 | ||
288 | -function pwdValidate(pwd) { | ||
289 | - if (pwd.length >= 6 && pwd.length <= 20) { | ||
290 | - return true; | ||
291 | - } | ||
292 | - return false; | ||
293 | -} | ||
294 | - | ||
295 | -// hack for resolving direction:rtl didn't work in android uc | ||
296 | -function selectCssHack($countrySelect) { | ||
297 | - var u = navigator.userAgent; | ||
298 | - | ||
299 | - function autoSelectWidth() { | ||
300 | - var wordCount = $countrySelect.find('option:selected').text().length; | ||
301 | - | ||
302 | - switch (wordCount) { | ||
303 | - | ||
304 | - //分别有2,3,4个汉字的情况 | ||
305 | - case 2: | ||
306 | - $countrySelect.outerWidth(90); | ||
307 | - break; | ||
308 | - case 3: | ||
309 | - $countrySelect.outerWidth(110); | ||
310 | - break; | ||
311 | - default: | ||
312 | - $countrySelect.outerWidth(130); | ||
313 | - } | ||
314 | - } | ||
315 | - | ||
316 | - if (u.match(/uc/i) && u.match(/android/i)) { | ||
317 | - $countrySelect.change(function() { | ||
318 | - autoSelectWidth(); | ||
319 | - }); | ||
320 | - } else { | ||
321 | - $countrySelect.removeClass('in-android-uc'); | ||
322 | - } | ||
323 | -} | ||
324 | - | ||
325 | -//Exports APIs | ||
326 | -module.exports = { | ||
327 | - emailRegx: emailRegx, | ||
328 | - phoneRegx: phoneRegx, | ||
329 | - bindEyesEvt: bindEyesEvt, | ||
330 | - bindClearEvt: bindClearEvt, | ||
331 | - pwdValidate: pwdValidate, | ||
332 | - selectCssHack: selectCssHack | ||
333 | -}; | ||
334 | -}); | ||
335 | -define("js/plugin/tip", ["zepto"], function(require, exports, module){ | ||
336 | -/** | ||
337 | - * 弹框提示 | ||
338 | - * @author: xuqi<qi.xu@yoho.cn> | ||
339 | - * @date: 2015/10/10 | ||
340 | - */ | ||
341 | -var $ = require("zepto"); | ||
342 | - | ||
343 | -var $tip, tipItime; | ||
344 | - | ||
345 | -/** | ||
346 | - * 初始化提示框 | ||
347 | - */ | ||
348 | -(function() { | ||
349 | - var tipHtml = '<div id="yoho-tip" class="yoho-tip"></div>'; | ||
350 | - | ||
351 | - //插入提示HTML | ||
352 | - $('.yoho-page').append(tipHtml); | ||
353 | - | ||
354 | - $tip = $('#yoho-tip'); | ||
355 | - $tip.on('touchstart', function() { | ||
356 | - $tip.hide(); | ||
357 | - | ||
358 | - //清除Timeout | ||
359 | - clearTimeout(tipItime); | ||
360 | - }); | ||
361 | -}()); | ||
362 | - | ||
363 | -/** | ||
364 | - * 显示提示 | ||
365 | - */ | ||
366 | -function show(con, dur) { | ||
367 | - var content, duration; | ||
368 | - | ||
369 | - if (typeof con === 'undefined') { | ||
370 | - return; | ||
371 | - } | ||
372 | - | ||
373 | - content = con.toString(); | ||
374 | - duration = (dur && dur > 0) ? dur : 2000; | ||
375 | - | ||
376 | - $tip.text(content).show(); | ||
377 | - | ||
378 | - tipItime = setTimeout(function() { | ||
379 | - if ($tip.css('display') === 'block') { | ||
380 | - $tip.hide(); | ||
381 | - } | ||
382 | - }, duration); | ||
383 | -} | ||
384 | - | ||
385 | -exports.show = show; | ||
386 | -}); | ||
387 | -define("js/passport/register/code", ["zepto"], function(require, exports, module){ | ||
388 | -/** | ||
389 | - * 注册-验证码 | ||
390 | - * @author: xuqi<qi.xu@yoho.cn> | ||
391 | - * @date: 2015/10/8 | ||
392 | - */ | ||
393 | - | ||
394 | -require("js/passport/code")(true); | ||
395 | -}); | ||
396 | -define("js/passport/code", ["zepto"], function(require, exports, module){ | ||
397 | -/** | ||
398 | - * 注册/找回密码-验证码 | ||
399 | - * @author: xuqi<qi.xu@yoho.cn> | ||
400 | - * @date: 2015/10/8 | ||
401 | - */ | ||
402 | -var $ = require("zepto"); | ||
403 | - | ||
404 | -module.exports = function(useInRegister) { | ||
405 | - var $captcha = $('#captcha'), | ||
406 | - $btnNext = $('#btn-next'), | ||
407 | - $captchaTip = $('#captcha-tip'), | ||
408 | - phoneNum = $('#phone-num').val(), | ||
409 | - areaCode = $('#area-code').val().replace('+', ''); | ||
410 | - | ||
411 | - var api = require("js/passport/api"); | ||
412 | - var tip = require("js/plugin/tip"); | ||
413 | - | ||
414 | - var trim = $.trim; | ||
415 | - var showErrTip = tip.show; | ||
416 | - | ||
417 | - var urlMid = useInRegister ? 'reg' : 'back'; | ||
418 | - | ||
419 | - function countDown() { | ||
420 | - var count = 59, | ||
421 | - itime; | ||
422 | - | ||
423 | - itime = setInterval(function() { | ||
424 | - if (count === 0) { | ||
425 | - $captchaTip.text('重发验证码').removeClass('disable'); | ||
426 | - clearInterval(itime); | ||
427 | - } else { | ||
428 | - $captchaTip.text('重发验证码 (' + count-- + '秒)'); | ||
429 | - } | ||
430 | - }, 1000); | ||
431 | - } | ||
432 | - | ||
433 | - api.bindClearEvt(); | ||
434 | - | ||
435 | - $captcha.bind('input', function() { | ||
436 | - if (trim($captcha.val()) !== '') { | ||
437 | - $btnNext.removeClass('disable'); | ||
438 | - } else { | ||
439 | - $btnNext.addClass('disable'); | ||
440 | - } | ||
441 | - }); | ||
442 | - | ||
443 | - //重新发送验证码 | ||
444 | - $captchaTip.on('touchstart', function() { | ||
445 | - if ($captchaTip.hasClass('disable')) { | ||
446 | - return; | ||
447 | - } | ||
448 | - | ||
449 | - $.ajax({ | ||
450 | - type: 'POST', | ||
451 | - url: '/passport/' + urlMid + '/sendcode', | ||
452 | - data: { | ||
453 | - phoneNum: phoneNum, | ||
454 | - areaCode: areaCode | ||
455 | - }, | ||
456 | - success: function(data) { | ||
457 | - if (data.code === 200) { | ||
458 | - $captchaTip.text('重发验证码 (60秒)').addClass('disable'); | ||
459 | - countDown(); | ||
460 | - } else { | ||
461 | - | ||
462 | - //验证码不正确,显示提示 | ||
463 | - showErrTip(data.message); | ||
464 | - } | ||
465 | - } | ||
466 | - }); | ||
467 | - }); | ||
468 | - | ||
469 | - $btnNext.on('touchstart', function() { | ||
470 | - if ($btnNext.hasClass('disable')) { | ||
471 | - return; | ||
472 | - } | ||
473 | - | ||
474 | - $.ajax({ | ||
475 | - type: 'POST', | ||
476 | - url: '/passport/' + urlMid + '/verifycode', | ||
477 | - data: { | ||
478 | - phoneNum: phoneNum, | ||
479 | - areaCode: areaCode, | ||
480 | - code: trim($captcha.val()), | ||
481 | - token: $('#token').val() | ||
482 | - }, | ||
483 | - success: function(data) { | ||
484 | - if (data.code === 200) { | ||
485 | - location.href = data.data; | ||
486 | - } else { | ||
487 | - | ||
488 | - //验证码不正确,显示提示 | ||
489 | - showErrTip(data.message); | ||
490 | - } | ||
491 | - } | ||
492 | - }); | ||
493 | - }); | ||
494 | - | ||
495 | - countDown(); | ||
496 | -}; | ||
497 | -}); | ||
498 | -define("js/passport/register/password", ["zepto"], function(require, exports, module){ | ||
499 | -/** | ||
500 | - * 注册-密码 | ||
501 | - * @author: xuqi<qi.xu@yoho.cn> | ||
502 | - * @date: 2015/10/8 | ||
503 | - */ | ||
504 | -var $ = require("zepto"); | ||
505 | - | ||
506 | -var $pwd = $('#pwd'), | ||
507 | - $btnSure = $('#btn-sure'); | ||
508 | - | ||
509 | -var api = require("js/passport/api"); | ||
510 | -var tip = require("js/plugin/tip"); | ||
511 | - | ||
512 | -var trim = $.trim; | ||
513 | -var showErrTip = tip.show; | ||
514 | - | ||
515 | -api.bindEyesEvt(); | ||
516 | - | ||
517 | -$pwd.bind('input', function() { | ||
518 | - if (trim($pwd.val()) === '') { | ||
519 | - $btnSure.addClass('disable'); | ||
520 | - } else { | ||
521 | - $btnSure.removeClass('disable'); | ||
522 | - } | ||
523 | -}); | ||
524 | - | ||
525 | -$btnSure.on('touchstart', function() { | ||
526 | - var pwd = trim($pwd.val()); | ||
527 | - | ||
528 | - if ($btnSure.hasClass('disable')) { | ||
529 | - return; | ||
530 | - } | ||
531 | - | ||
532 | - if (api.pwdValidate(pwd) === false) { | ||
533 | - showErrTip('密码6-20位,请重新输入'); | ||
534 | - } else { | ||
535 | - $.ajax({ | ||
536 | - type: 'POST', | ||
537 | - url: '/passport/reg/setpassword', | ||
538 | - data: { | ||
539 | - password: pwd, | ||
540 | - phoneNum: $('#phone-num').val(), | ||
541 | - areaCode: $('#area-code').val(), | ||
542 | - token: $('#token').val() | ||
543 | - }, | ||
544 | - success: function(data) { | ||
545 | - if (data.code === 200) { | ||
546 | - showErrTip('注册成功'); | ||
547 | - | ||
548 | - //1000ms后跳转页面 | ||
549 | - setTimeout(function() { | ||
550 | - location.href = data.data; | ||
551 | - }, 1000); | ||
552 | - } else { | ||
553 | - if (data.code === 401 || data.code === 404 || data.code === 505) { | ||
554 | - showErrTip(data.message); | ||
555 | - } else { | ||
556 | - showErrTip(data.message); | ||
557 | - setTimeout(function() { | ||
558 | - location.href = data.data; | ||
559 | - }, 1000); | ||
560 | - } | ||
561 | - } | ||
562 | - } | ||
563 | - }); | ||
564 | - } | ||
565 | -}); | ||
566 | -}); | ||
567 | -define("js/passport/login/login", ["zepto"], function(require, exports, module){ | ||
568 | -/** | ||
569 | - * 登录 | ||
570 | - * @author: xuqi<qi.xu@yoho.cn> | ||
571 | - * @date: 2015/9/30 | ||
572 | - */ | ||
573 | -var $ = require("zepto"); | ||
574 | - | ||
575 | -var $account = $('#account'), | ||
576 | - $pwd = $('#pwd'), | ||
577 | - $loginBtn = $('#btn-login'), | ||
578 | - | ||
579 | - $mask = $('#retrive-pwd-mask'), | ||
580 | - $ways = $('#retrive-pwd-ways'), | ||
581 | - | ||
582 | - accPass = false, | ||
583 | - pwdPass = false; | ||
584 | - | ||
585 | -var api = require("js/passport/api"); | ||
586 | -var tip = require("js/plugin/tip"); | ||
587 | - | ||
588 | -var trim = $.trim; | ||
589 | -var showErrTip = tip.show; | ||
590 | - | ||
591 | -//登录按钮状态切换 | ||
592 | -function switchLoginBtnStatus() { | ||
593 | - if (accPass && pwdPass) { | ||
594 | - $loginBtn.removeClass('disable'); | ||
595 | - } else { | ||
596 | - $loginBtn.addClass('disable'); | ||
597 | - } | ||
598 | -} | ||
599 | - | ||
600 | -//显示找回密码面板 | ||
601 | -function showRetrivePanel() { | ||
602 | - $mask.show(); | ||
603 | - $ways.show(); | ||
604 | -} | ||
605 | - | ||
606 | -//隐藏找回密码面板 | ||
607 | -function hideRetrivePanel() { | ||
608 | - $mask.hide(); | ||
609 | - $ways.hide(); | ||
610 | -} | ||
611 | - | ||
612 | -//密码显示与隐藏 | ||
613 | -api.bindEyesEvt(); | ||
614 | - | ||
615 | -//清空账号输入框 | ||
616 | -api.bindClearEvt(); | ||
617 | - | ||
618 | -$account.bind('input', function() { | ||
619 | - if (trim($account.val()) !== '') { | ||
620 | - accPass = true; | ||
621 | - } else { | ||
622 | - accPass = false; | ||
623 | - } | ||
624 | - switchLoginBtnStatus(); | ||
625 | -}); | ||
626 | - | ||
627 | -$pwd.bind('input', function() { | ||
628 | - if (trim($pwd.val()) === '') { | ||
629 | - pwdPass = false; | ||
630 | - } else { | ||
631 | - pwdPass = true; | ||
632 | - } | ||
633 | - switchLoginBtnStatus(); | ||
634 | -}); | ||
635 | - | ||
636 | - | ||
637 | -// Login | ||
638 | -$loginBtn.on('touchstart', function() { | ||
639 | - var acc = trim($account.val()), | ||
640 | - pwd = trim($pwd.val()); | ||
641 | - | ||
642 | - if ($loginBtn.hasClass('disable')) { | ||
643 | - return; | ||
644 | - } | ||
645 | - | ||
646 | - //验证账号(数字或者邮箱)和密码合理性 | ||
647 | - if ((/^[0-9]+$/.test(acc) || api.emailRegx.test(acc)) && api.pwdValidate(pwd)) { | ||
648 | - $.ajax({ | ||
649 | - type: 'POST', | ||
650 | - url: '/passport/login/auth', | ||
651 | - data: { | ||
652 | - account: acc, | ||
653 | - password: pwd | ||
654 | - }, | ||
655 | - success: function(data) { | ||
656 | - if (data.code === 200) { | ||
657 | - showErrTip('登录成功'); | ||
658 | - | ||
659 | - //1s后跳转页面 | ||
660 | - setTimeout(function() { | ||
661 | - location.href = data.data; | ||
662 | - }, 1000); | ||
663 | - } else { | ||
664 | - showErrTip(data.message); | ||
665 | - } | ||
666 | - }, | ||
667 | - error: function() { | ||
668 | - showErrTip('网络断开连接啦~'); | ||
669 | - } | ||
670 | - }); | ||
671 | - } else { | ||
672 | - showErrTip('账号或密码有错误,请重新输入'); | ||
673 | - } | ||
674 | -}); | ||
675 | - | ||
676 | - | ||
677 | -$('#forget-pwd').on('touchstart', function() { | ||
678 | - showRetrivePanel(); | ||
679 | -}); | ||
680 | - | ||
681 | -$mask.on('touchstart', function() { | ||
682 | - hideRetrivePanel(); | ||
683 | -}); | ||
684 | - | ||
685 | -$('#cancel-retrive').on('touchstart', function(e) { | ||
686 | - e.preventDefault(); | ||
687 | - hideRetrivePanel(); | ||
688 | -}); | ||
689 | - | ||
690 | -//对初始有默认值的情况去初始化登录按钮状态 | ||
691 | -$account.trigger('input'); | ||
692 | -$pwd.trigger('input'); | ||
693 | -}); | ||
694 | -define("js/passport/login/international", ["zepto"], function(require, exports, module){ | ||
695 | -/** | ||
696 | - * 国际账号登录 | ||
697 | - * @author: xuqi<qi.xu@yoho.cn> | ||
698 | - * @date: 2015/10/8 | ||
699 | - */ | ||
700 | -var $ = require("zepto"); | ||
701 | - | ||
702 | -var $phoneNum = $('#phone-num'), | ||
703 | - $countrySelect = $('#country-select'), | ||
704 | - $areaCode = $('#area-code'), | ||
705 | - $pwd = $('#pwd'), | ||
706 | - $loginBtn = $('#btn-login'), | ||
707 | - | ||
708 | - pnPass = false, | ||
709 | - pwdPass = false; | ||
710 | - | ||
711 | -var api = require("js/passport/api"); | ||
712 | -var tip = require("js/plugin/tip"); | ||
713 | - | ||
714 | -var trim = $.trim; | ||
715 | -var showErrTip = tip.show; | ||
716 | - | ||
717 | -//登录按钮状态切换 | ||
718 | -function switchLoginBtnStatus() { | ||
719 | - if (pnPass && pwdPass) { | ||
720 | - $loginBtn.removeClass('disable'); | ||
721 | - } else { | ||
722 | - $loginBtn.addClass('disable'); | ||
723 | - } | ||
724 | -} | ||
725 | - | ||
726 | -//Android-UC下显示select的direction:rtl无效的临时解决办法 | ||
727 | -api.selectCssHack($countrySelect); | ||
728 | - | ||
729 | -//显示隐藏密码 | ||
730 | -api.bindEyesEvt(); | ||
731 | - | ||
732 | -//清空手机号码 | ||
733 | -api.bindClearEvt(); | ||
734 | - | ||
735 | -$phoneNum.bind('input', function() { | ||
736 | - if (trim($phoneNum.val()) === '') { | ||
737 | - pnPass = false; | ||
738 | - } else { | ||
739 | - pnPass = true; | ||
740 | - } | ||
741 | - | ||
742 | - switchLoginBtnStatus(); | ||
743 | -}); | ||
744 | - | ||
745 | -$pwd.bind('input', function() { | ||
746 | - var pwd = trim($pwd.val()); | ||
747 | - | ||
748 | - if (pwd === '') { | ||
749 | - pwdPass = false; | ||
750 | - } else { | ||
751 | - pwdPass = true; | ||
752 | - } | ||
753 | - | ||
754 | - switchLoginBtnStatus(); | ||
755 | -}); | ||
756 | - | ||
757 | -$countrySelect.change(function() { | ||
758 | - $areaCode.text($countrySelect.val()); | ||
759 | -}); | ||
760 | - | ||
761 | -$loginBtn.on('touchstart', function() { | ||
762 | - var pn = trim($phoneNum.val()), | ||
763 | - areaCode = $countrySelect.val(), | ||
764 | - pwd = trim($pwd.val()); | ||
765 | - | ||
766 | - if ($loginBtn.hasClass('disable')) { | ||
767 | - return; | ||
768 | - } | ||
769 | - | ||
770 | - if (api.phoneRegx[areaCode].test(pn) && api.pwdValidate(pwd)) { | ||
771 | - $.ajax({ | ||
772 | - type: 'POST', | ||
773 | - url: '/passport/login/auth', | ||
774 | - data: { | ||
775 | - areaCode: areaCode.replace('+', ''), | ||
776 | - account: pn, | ||
777 | - password: pwd | ||
778 | - }, | ||
779 | - success: function(data) { | ||
780 | - if (data.code === 200) { | ||
781 | - showErrTip('登录成功'); | ||
782 | - | ||
783 | - //1000ms后跳转页面 | ||
784 | - setTimeout(function() { | ||
785 | - location.href = data.data; | ||
786 | - }, 1000); | ||
787 | - } else { | ||
788 | - showErrTip(data.message); | ||
789 | - } | ||
790 | - }, | ||
791 | - error: function() { | ||
792 | - showErrTip('网络断开连接啦~'); | ||
793 | - } | ||
794 | - }); | ||
795 | - } else { | ||
796 | - showErrTip('账号或密码有错误,请重新输入'); | ||
797 | - } | ||
798 | -}); | ||
799 | - | ||
800 | -//对初始有默认值的情况去初始化登录按钮状态 | ||
801 | -$phoneNum.trigger('input'); | ||
802 | -$pwd.trigger('input'); | ||
803 | -}); | ||
804 | -define("js/passport/back/mobile", ["zepto"], function(require, exports, module){ | ||
805 | -/** | ||
806 | - * 找回密码-手机 | ||
807 | - * @author: xuqi<qi.xu@yoho.cn> | ||
808 | - * @date: 2015/10/8 | ||
809 | - */ | ||
810 | -var $ = require("zepto"); | ||
811 | - | ||
812 | -var $phoneNum = $('#phone-num'), | ||
813 | - $countrySelect = $('#country-select'), | ||
814 | - $areaCode = $('#area-code'), | ||
815 | - $btnNext = $('#btn-next'); | ||
816 | - | ||
817 | -var api = require("js/passport/api"); | ||
818 | -var tip = require("js/plugin/tip"); | ||
819 | - | ||
820 | -var trim = $.trim; | ||
821 | -var showErrTip = tip.show; | ||
822 | - | ||
823 | -api.selectCssHack($('#country-select')); | ||
824 | - | ||
825 | -api.bindClearEvt(); | ||
826 | - | ||
827 | -$phoneNum.bind('input', function() { | ||
828 | - if (trim($phoneNum.val()) === '') { | ||
829 | - $btnNext.addClass('disable'); | ||
830 | - } else { | ||
831 | - $btnNext.removeClass('disable'); | ||
832 | - } | ||
833 | -}); | ||
834 | - | ||
835 | -$countrySelect.change(function() { | ||
836 | - $areaCode.text($countrySelect.val()); | ||
837 | -}); | ||
838 | - | ||
839 | -$btnNext.on('touchstart', function() { | ||
840 | - var pn = trim($phoneNum.val()), | ||
841 | - area = $countrySelect.val(); | ||
842 | - | ||
843 | - if ($btnNext.hasClass('disable')) { | ||
844 | - return; | ||
845 | - } | ||
846 | - | ||
847 | - if (api.phoneRegx[area].test(pn)) { | ||
848 | - $.ajax({ | ||
849 | - url: '/passport/back/sendcode', | ||
850 | - type: 'POST', | ||
851 | - data: { | ||
852 | - areaCode: area.replace('+', ''), | ||
853 | - phoneNum: pn | ||
854 | - }, | ||
855 | - success: function(data) { | ||
856 | - if (data.code === 200) { | ||
857 | - location.href = data.data; | ||
858 | - } else { | ||
859 | - showErrTip(data.message); | ||
860 | - } | ||
861 | - } | ||
862 | - }); | ||
863 | - } else { | ||
864 | - showErrTip('手机号格式不正确,请重新输入'); | ||
865 | - } | ||
866 | -}); | ||
867 | -}); | ||
868 | -define("js/passport/back/code", ["zepto"], function(require, exports, module){ | ||
869 | -/** | ||
870 | - * 找回密码-验证码 | ||
871 | - * @author: xuqi<qi.xu@yoho.cn> | ||
872 | - * @date: 2015/10/8 | ||
873 | - */ | ||
874 | - | ||
875 | -require("js/passport/code")(false); | ||
876 | -}); | ||
877 | -define("js/passport/back/email", ["zepto"], function(require, exports, module){ | ||
878 | -/** | ||
879 | - * 找回密码-邮箱找回 | ||
880 | - * @author: xuqi<qi.xu@yoho.cn> | ||
881 | - * @date: 2015/10/8 | ||
882 | - */ | ||
883 | -var $ = require("zepto"); | ||
884 | - | ||
885 | -var $email = $('#email'), | ||
886 | - $btnSure = $('#btn-sure'); | ||
887 | - | ||
888 | -var api = require("js/passport/api"); | ||
889 | -var tip = require("js/plugin/tip"); | ||
890 | - | ||
891 | -var trim = $.trim; | ||
892 | -var showErrTip = tip.show; | ||
893 | - | ||
894 | -api.bindClearEvt(); | ||
895 | - | ||
896 | -$email.bind('input', function() { | ||
897 | - if (trim($email.val()) === '') { | ||
898 | - $btnSure.addClass('disable'); | ||
899 | - } else { | ||
900 | - $btnSure.removeClass('disable'); | ||
901 | - } | ||
902 | -}); | ||
903 | - | ||
904 | -$btnSure.on('touchstart', function() { | ||
905 | - var email = trim($email.val()); | ||
906 | - | ||
907 | - if ($btnSure.hasClass('disable')) { | ||
908 | - return; | ||
909 | - } | ||
910 | - | ||
911 | - if (api.emailRegx.test(email)) { | ||
912 | - $.ajax({ | ||
913 | - url: '/passport/back/sendemail', | ||
914 | - type: 'POST', | ||
915 | - data: { | ||
916 | - email: email | ||
917 | - }, | ||
918 | - success: function(data) { | ||
919 | - if (data.code === 200) { | ||
920 | - location.href = data.data; | ||
921 | - } else { | ||
922 | - showErrTip(data.message); | ||
923 | - } | ||
924 | - } | ||
925 | - }); | ||
926 | - } else { | ||
927 | - showErrTip('邮箱格式不正确,请重新输入'); | ||
928 | - } | ||
929 | -}); | ||
930 | -}); | ||
931 | -define("js/passport/back/email-success", ["zepto"], function(require, exports, module){ | ||
932 | -/** | ||
933 | - * 找回密码-邮箱找回成功 | ||
934 | - * @author: xuqi<qi.xu@yoho.cn> | ||
935 | - * @date: 2015/10/8 | ||
936 | - */ | ||
937 | - | ||
938 | -var $ = require("zepto"); | ||
939 | - | ||
940 | -var $resend = $('#resend'); | ||
941 | - | ||
942 | -var tip = require("js/plugin/tip"), | ||
943 | - showErrTip = tip.show; | ||
944 | - | ||
945 | -$resend.on('touchstart', function(e) { | ||
946 | - e.preventDefault(); | ||
947 | - | ||
948 | - $.ajax({ | ||
949 | - url: $resend.data('url'), | ||
950 | - type: 'GET', | ||
951 | - success: function(data) { | ||
952 | - if (data.code === 200) { | ||
953 | - showErrTip(data.message); | ||
954 | - } else { | ||
955 | - showErrTip(data.message); | ||
956 | - } | ||
957 | - } | ||
958 | - }); | ||
959 | -}); | ||
960 | -}); | ||
961 | -define("js/passport/back/new-password", ["zepto"], function(require, exports, module){ | ||
962 | -/** | ||
963 | - * 密码找回-新密码 | ||
964 | - * @author: xuqi<qi.xu@yoho.cn> | ||
965 | - * @date: 2015/10/8 | ||
966 | - */ | ||
967 | -var $ = require("zepto"); | ||
968 | - | ||
969 | -var $pwd = $('#pwd'), | ||
970 | - $btnOk = $('#btn-ok'); | ||
971 | - | ||
972 | -var api = require("js/passport/api"); | ||
973 | -var tip = require("js/plugin/tip"); | ||
974 | - | ||
975 | -var trim = $.trim; | ||
976 | -var showErrTip = tip.show; | ||
977 | - | ||
978 | -var $phoneNum = $('#phone-num'); | ||
979 | - | ||
980 | -api.bindEyesEvt(); | ||
981 | - | ||
982 | -$pwd.bind('input', function() { | ||
983 | - if (trim($pwd.val()) === '') { | ||
984 | - $btnOk.addClass('disable'); | ||
985 | - } else { | ||
986 | - $btnOk.removeClass('disable'); | ||
987 | - } | ||
988 | -}); | ||
989 | - | ||
990 | -$btnOk.on('touchstart', function() { | ||
991 | - var pwd = trim($pwd.val()), | ||
992 | - mobileBack = true, | ||
993 | - setting, | ||
994 | - url; | ||
995 | - | ||
996 | - if ($btnOk.hasClass('disable')) { | ||
997 | - return; | ||
998 | - } | ||
999 | - | ||
1000 | - setting = { | ||
1001 | - password: pwd | ||
1002 | - }; | ||
1003 | - | ||
1004 | - if ($phoneNum.length === 0) { | ||
1005 | - mobileBack = false; | ||
1006 | - } | ||
1007 | - | ||
1008 | - if (mobileBack) { | ||
1009 | - $.extend(setting, { | ||
1010 | - phoneNum: $phoneNum.val(), | ||
1011 | - areaCode: $('#areaCode').val(), | ||
1012 | - token: $('#token').val() | ||
1013 | - }); | ||
1014 | - | ||
1015 | - url = '/passport/back/passwordByMobile'; | ||
1016 | - } else { | ||
1017 | - $.extend(setting, { | ||
1018 | - code: $('#email-code').val() | ||
1019 | - }); | ||
1020 | - | ||
1021 | - url = '/passport/back/passwordByEmail'; | ||
1022 | - } | ||
1023 | - | ||
1024 | - | ||
1025 | - if (api.pwdValidate(pwd)) { | ||
1026 | - $.ajax({ | ||
1027 | - type: 'POST', | ||
1028 | - url: url, | ||
1029 | - data: setting, | ||
1030 | - success: function(data) { | ||
1031 | - if (data.code === 200) { | ||
1032 | - showErrTip('密码修改成功'); | ||
1033 | - | ||
1034 | - //1000ms后跳转页面 | ||
1035 | - setTimeout(function() { | ||
1036 | - location.href = data.data; | ||
1037 | - }, 1000); | ||
1038 | - } else { | ||
1039 | - showErrTip(data.message); | ||
1040 | - } | ||
1041 | - } | ||
1042 | - }); | ||
1043 | - } else { | ||
1044 | - showErrTip('密码6-20位,请重新输入'); | ||
1045 | - } | ||
1046 | -}); | ||
1047 | -}); | ||
1048 | -define("js/guang/index", ["zepto","lazyload","swiper","mlellipsis","index"], function(require, exports, module){ | ||
1049 | -/** | ||
1050 | - * 逛打包入口 | ||
1051 | - * @author: xuqi<qi.xu@yoho.cn> | ||
1052 | - * @date: 2015/10/9 | ||
1053 | - */ | ||
1054 | - | ||
1055 | -require("js/guang/plus-star/list"); | ||
1056 | -require("js/guang/plus-star/detail"); | ||
1057 | - | ||
1058 | -require("js/guang/home"); | ||
1059 | -require("js/guang/list"); | ||
1060 | -}); | ||
1061 | -define("js/guang/plus-star/list", ["zepto","lazyload","swiper","index"], function(require, exports, module){ | ||
1062 | -/** | ||
1063 | - * PLUS+STAR列表页 | ||
1064 | - * @author: xuqi<qi.xu@yoho.cn> | ||
1065 | - * @date: 2015/10/10 | ||
1066 | - */ | ||
1067 | - | ||
1068 | -var $ = require("zepto"), | ||
1069 | - lazyLoad = require("lazyload"), | ||
1070 | - Swiper = require("swiper"); | ||
1071 | - | ||
1072 | -var $navs = $('#nav-tab > li'), | ||
1073 | - $contents = $('#ps-content > .content'); | ||
1074 | - | ||
1075 | -var mySwiper; | ||
1076 | - | ||
1077 | -lazyLoad($('img.lazy')); | ||
1078 | - | ||
1079 | -mySwiper = new Swiper('.swiper-container', { | ||
1080 | - lazyLoading: true, | ||
1081 | - pagination: '.swiper-pagination' | ||
1082 | -}); | ||
1083 | - | ||
1084 | -$('#nav-tab').delegate('li', 'touchstart', function() { | ||
1085 | - if ($(this).hasClass('focus')) { | ||
1086 | - return; | ||
1087 | - } | ||
1088 | - | ||
1089 | - $navs.toggleClass('focus'); | ||
1090 | - $contents.toggleClass('hide'); | ||
1091 | - | ||
1092 | - $(document).trigger('scroll'); //Trigger lazyLoad | ||
1093 | -}); | ||
1094 | -}); | ||
1095 | -define("js/guang/plus-star/detail", ["zepto","mlellipsis","lazyload"], function(require, exports, module){ | ||
1096 | -/** | ||
1097 | - * PLUS+STAR详情页 | ||
1098 | - * @author: xuqi<qi.xu@yoho.cn> | ||
1099 | - * @date: 2015/10/10 | ||
1100 | - */ | ||
1101 | - | ||
1102 | -var $ = require("zepto"), | ||
1103 | - ellipsis = require("mlellipsis"), | ||
1104 | - lazyLoad = require("lazyload"); | ||
1105 | - | ||
1106 | -var $intro = $('#intro'), | ||
1107 | - $imt = $('#intro-more-txt'), | ||
1108 | - $infosContainer = $('#related-infos-container'); | ||
1109 | - | ||
1110 | -var info = require("js/guang/info"); | ||
1111 | - | ||
1112 | -var tip = require("js/plugin/tip"); | ||
1113 | - | ||
1114 | -var brandId = $('#brand-info').data('id'); | ||
1115 | - | ||
1116 | -var mIntro, aIntro; | ||
1117 | - | ||
1118 | -ellipsis.init(); | ||
1119 | - | ||
1120 | -//Init LazyLoad | ||
1121 | -lazyLoad($('img.lazy')); | ||
1122 | - | ||
1123 | -//文字介绍文字截取 | ||
1124 | -$intro[0].mlellipsis(3); | ||
1125 | - | ||
1126 | -//获取截取文字和完整文字 | ||
1127 | -setTimeout(function() { | ||
1128 | - mIntro = $intro.text(); | ||
1129 | - aIntro = $intro.attr('title'); | ||
1130 | -}); | ||
1131 | - | ||
1132 | -info.initInfosEvt($infosContainer); | ||
1133 | - | ||
1134 | -//文字介绍收起与展开 | ||
1135 | -$('#more-intro').bind('touchstart', function() { | ||
1136 | - var $this = $(this); | ||
1137 | - | ||
1138 | - $this.toggleClass('spread'); | ||
1139 | - | ||
1140 | - if ($this.hasClass('spread')) { | ||
1141 | - | ||
1142 | - //显示 | ||
1143 | - $intro.text(aIntro); | ||
1144 | - $imt.text('收起'); | ||
1145 | - } else { | ||
1146 | - | ||
1147 | - //隐藏 | ||
1148 | - $intro.text(mIntro); | ||
1149 | - $imt.text('more'); | ||
1150 | - } | ||
1151 | -}); | ||
1152 | - | ||
1153 | -//品牌收藏 | ||
1154 | -$('#brand-like').bind('touchstart', function(e) { | ||
1155 | - var opt = 'ok', | ||
1156 | - $this = $(this); | ||
1157 | - | ||
1158 | - e.preventDefault(); | ||
1159 | - | ||
1160 | - if ($this.hasClass('like')) { | ||
1161 | - opt = 'cancel'; | ||
1162 | - } | ||
1163 | - | ||
1164 | - $.ajax({ | ||
1165 | - type: 'POST', | ||
1166 | - url: '/guang/opt/favoriteBrand', | ||
1167 | - data: { | ||
1168 | - id: brandId, | ||
1169 | - opt: opt | ||
1170 | - }, | ||
1171 | - success: function(data) { | ||
1172 | - if (data.code === 200) { | ||
1173 | - $this.toggleClass('like'); | ||
1174 | - } else if (data.code === 400) { | ||
1175 | - tip.show('未登录'); | ||
1176 | - } | ||
1177 | - }, | ||
1178 | - error: function() { | ||
1179 | - tip.show('网络断开连接了~'); | ||
1180 | - } | ||
1181 | - }); | ||
1182 | -}); | ||
1183 | -}); | ||
1184 | -define("js/guang/info", ["zepto","mlellipsis","lazyload"], function(require, exports, module){ | ||
1185 | -/** | ||
1186 | - * 资讯相关API | ||
1187 | - * @author: xuqi<qi.xu@yoho.cn> | ||
1188 | - * @date: 2015/10/10 | ||
1189 | - */ | ||
1190 | - | ||
1191 | -var $ = require("zepto"), | ||
1192 | - ellipsis = require("mlellipsis"), | ||
1193 | - lazyLoad = require("lazyload"); | ||
1194 | - | ||
1195 | -var tip = require("js/plugin/tip"); | ||
1196 | - | ||
1197 | -var $loadMoreInfo = $('#load-more-info'); | ||
1198 | -var $loading = $(''), | ||
1199 | - $noMore = $(''); | ||
1200 | - | ||
1201 | -var loading = false; | ||
1202 | - | ||
1203 | -ellipsis.init(); | ||
1204 | - | ||
1205 | -if ($loadMoreInfo.length > 0) { | ||
1206 | - $loading = $loadMoreInfo.children('.loading'); | ||
1207 | - $noMore = $loadMoreInfo.children('.no-more'); | ||
1208 | -} | ||
1209 | - | ||
1210 | -/** | ||
1211 | - * 设置指定资讯项的Lazyload和文字截取 | ||
1212 | - * @params $infos 资讯项 | ||
1213 | - */ | ||
1214 | -function setLazyLoadAndMellipsis($infos) { | ||
1215 | - lazyLoad($infos.find('img.lazy')); | ||
1216 | - | ||
1217 | - $infos.each(function() { | ||
1218 | - var $this = $(this), | ||
1219 | - $title = $this.find('.info-title'), | ||
1220 | - $text = $this.find('.info-text'); | ||
1221 | - | ||
1222 | - $title[0].mlellipsis(2); | ||
1223 | - $text[0].mlellipsis(2); | ||
1224 | - }); | ||
1225 | -} | ||
1226 | - | ||
1227 | -/** | ||
1228 | - * 初始化资讯列表事件绑定 | ||
1229 | - * @params $container 逛资讯列表容器 | ||
1230 | - */ | ||
1231 | -function initInfosEvt($container) { | ||
1232 | - $container.delegate('.like-btn', 'touchstart', function(e) { | ||
1233 | - var $likeBtn = $(e.currentTarget), | ||
1234 | - $info = $likeBtn.closest('.guang-info'), | ||
1235 | - opt = 'ok'; | ||
1236 | - | ||
1237 | - if ($likeBtn.hasClass('like')) { | ||
1238 | - opt = 'cancel'; | ||
1239 | - } | ||
1240 | - | ||
1241 | - $.ajax({ | ||
1242 | - type: 'POST', | ||
1243 | - url: '/guang/opt/praiseArticle', | ||
1244 | - data: { | ||
1245 | - id: $info.data('id'), | ||
1246 | - opt: opt | ||
1247 | - }, | ||
1248 | - success: function(data) { | ||
1249 | - var code = data.code; | ||
1250 | - | ||
1251 | - if (code === 200) { | ||
1252 | - $likeBtn.next('.like-count').text(data.data); | ||
1253 | - | ||
1254 | - //切换点赞状态 | ||
1255 | - $likeBtn.toggleClass('like'); | ||
1256 | - } | ||
1257 | - }, | ||
1258 | - error: function() { | ||
1259 | - tip.show('网络断开连接了~'); | ||
1260 | - } | ||
1261 | - }); | ||
1262 | - }); | ||
1263 | - | ||
1264 | - setLazyLoadAndMellipsis($container.find('.guang-info')); | ||
1265 | -} | ||
1266 | - | ||
1267 | -/** | ||
1268 | - * 资讯LoadMore | ||
1269 | - */ | ||
1270 | -function loadMore($container, opt) { | ||
1271 | - if (loading) { | ||
1272 | - return; | ||
1273 | - } | ||
1274 | - | ||
1275 | - if (opt.end) { | ||
1276 | - return; | ||
1277 | - } | ||
1278 | - | ||
1279 | - loading = true; | ||
1280 | - $.ajax({ | ||
1281 | - type: 'GET', | ||
1282 | - url: ' /guang/list/page', | ||
1283 | - data: opt, | ||
1284 | - success: function(data) { | ||
1285 | - if (data === ' ') { | ||
1286 | - opt.end = true; | ||
1287 | - loading = false; | ||
1288 | - | ||
1289 | - // | ||
1290 | - $loading.addClass('hide'); | ||
1291 | - $noMore.removeClass('hide'); | ||
1292 | - | ||
1293 | - return; | ||
1294 | - } | ||
1295 | - $container.append(data); | ||
1296 | - | ||
1297 | - setLazyLoadAndMellipsis($container.find('.guang-info')); | ||
1298 | - | ||
1299 | - opt.page++; | ||
1300 | - | ||
1301 | - loading = false; | ||
1302 | - }, | ||
1303 | - error: function() { | ||
1304 | - tip.show('网络断开连接了~'); | ||
1305 | - loading = false; | ||
1306 | - } | ||
1307 | - }); | ||
1308 | -} | ||
1309 | - | ||
1310 | -exports.initInfosEvt = initInfosEvt; | ||
1311 | -exports.setLazyLoadAndMellipsis = setLazyLoadAndMellipsis; | ||
1312 | -exports.loadMore = loadMore; | ||
1313 | -}); | ||
1314 | -define("js/guang/home", ["zepto","swiper","mlellipsis","lazyload","index"], function(require, exports, module){ | ||
1315 | -/** | ||
1316 | - * 逛首页 | ||
1317 | - * @author: xuqi<qi.xu@yoho.cn> | ||
1318 | - * @date: 2015/10/10 | ||
1319 | - */ | ||
1320 | - | ||
1321 | -var $ = require("zepto"), | ||
1322 | - Swiper = require("swiper"); | ||
1323 | - | ||
1324 | -var info = require("js/guang/info"), | ||
1325 | - setLazyLoadAndMellipsis = info.setLazyLoadAndMellipsis, | ||
1326 | - loadMore = info.loadMore; | ||
1327 | - | ||
1328 | -var $loadMoreInfo = $('#load-more-info'); | ||
1329 | -var $loading = $(''), | ||
1330 | - $noMore = $(''); | ||
1331 | - | ||
1332 | -var winH = $(window).height(), | ||
1333 | - loadMoreH = $loadMoreInfo.height(); | ||
1334 | - | ||
1335 | -var $infoList = $('#info-list'), | ||
1336 | - $infos = $infoList.children('.info-list'), | ||
1337 | - $nav = $('#guang-nav'), | ||
1338 | - $curNav = $nav.children('.focus'), | ||
1339 | - curType = $curNav.data('type'); | ||
1340 | - | ||
1341 | -var state = {}; | ||
1342 | - | ||
1343 | -var mySwiper; | ||
1344 | - | ||
1345 | -if ($loadMoreInfo.length > 0) { | ||
1346 | - $loading = $loadMoreInfo.children('.loading'); | ||
1347 | - $noMore = $loadMoreInfo.children('.no-more'); | ||
1348 | -} | ||
1349 | - | ||
1350 | -mySwiper = new Swiper('.swiper-container', { | ||
1351 | - lazyLoading: true, | ||
1352 | - pagination: '.swiper-pagination' | ||
1353 | -}); | ||
1354 | - | ||
1355 | -info.initInfosEvt($infoList); | ||
1356 | - | ||
1357 | -//初始化各Nav下资讯加载的状态 | ||
1358 | -(function() { | ||
1359 | - var gender = $('#gender').val(); | ||
1360 | - | ||
1361 | - $nav.children('.guang-nav-item').each(function() { | ||
1362 | - var type = $(this).data('type'); | ||
1363 | - | ||
1364 | - state[type] = { | ||
1365 | - page: 1, | ||
1366 | - gender: gender, | ||
1367 | - type: type, | ||
1368 | - end: false | ||
1369 | - }; | ||
1370 | - }); | ||
1371 | -}()); | ||
1372 | - | ||
1373 | -$nav.delegate('.guang-nav-item', 'touchstart', function() { | ||
1374 | - var $this = $(this), | ||
1375 | - $content, | ||
1376 | - index; | ||
1377 | - | ||
1378 | - if ($this.hasClass('focus')) { | ||
1379 | - return; | ||
1380 | - } | ||
1381 | - | ||
1382 | - index = $this.index(); | ||
1383 | - | ||
1384 | - $this.addClass('focus'); | ||
1385 | - $curNav.removeClass('focus'); | ||
1386 | - | ||
1387 | - $infos.not('.hide').addClass('hide'); | ||
1388 | - | ||
1389 | - $content = $infos.eq(index); | ||
1390 | - $content.removeClass('hide'); | ||
1391 | - | ||
1392 | - //lazyload & mellipsis | ||
1393 | - setLazyLoadAndMellipsis($content.children('.guang-info')); | ||
1394 | - | ||
1395 | - $curNav = $this; | ||
1396 | - curType = $this.data('type'); | ||
1397 | - | ||
1398 | - //重置当前Tab的load-more | ||
1399 | - if (state[curType].end) { | ||
1400 | - $loading.addClass('hide'); | ||
1401 | - $noMore.removeClass('hide'); | ||
1402 | - } else { | ||
1403 | - $loading.removeClass('hide'); | ||
1404 | - $noMore.addClass('hide'); | ||
1405 | - } | ||
1406 | -}); | ||
1407 | - | ||
1408 | -$(document).scroll(function() { | ||
1409 | - if ($(window).scrollTop() + winH >= $(document).height() - loadMoreH) { | ||
1410 | - loadMore($infos, state[curType]); | ||
1411 | - } | ||
1412 | -}); | ||
1413 | -}); | ||
1414 | -define("js/guang/list", ["zepto","mlellipsis","lazyload"], function(require, exports, module){ | ||
1415 | -/** | ||
1416 | - * 列表页,编辑页 | ||
1417 | - * @author: xuqi<qi.xu@yoho.cn> | ||
1418 | - * @date: 2015/10/10 | ||
1419 | - */ | ||
1420 | - | ||
1421 | -var $ = require("zepto"); | ||
1422 | - | ||
1423 | -var info = require("js/guang/info"), | ||
1424 | - loadMore = info.loadMore; | ||
1425 | - | ||
1426 | -var winH = $(window).height(), | ||
1427 | - loadMoreH = $('#load-more').height(); | ||
1428 | - | ||
1429 | -var $author = $('#author-infos'); | ||
1430 | -var $tag = $('#tag'); | ||
1431 | - | ||
1432 | -var setting = { | ||
1433 | - page: 1, | ||
1434 | - end: false | ||
1435 | -}; | ||
1436 | - | ||
1437 | -var $infos = $('#info-list'); | ||
1438 | - | ||
1439 | -info.initInfosEvt($infos); | ||
1440 | - | ||
1441 | -if ($author.length > 0) { | ||
1442 | - $.extend(setting, { | ||
1443 | - authorId: $author.data('id') | ||
1444 | - }); | ||
1445 | -} | ||
1446 | - | ||
1447 | -if ($tag.length > 0) { | ||
1448 | - $.extend(setting, { | ||
1449 | - tag: $tag.val() | ||
1450 | - }); | ||
1451 | -} | ||
1452 | - | ||
1453 | -$(document).scroll(function() { | ||
1454 | - if ($(window).scrollTop() + winH >= $(document).height() - loadMoreH) { | ||
1455 | - loadMore($infos, setting); | ||
1456 | - } | ||
1457 | -}); | ||
1458 | -}); | ||
1459 | -define("js/home/index", ["zepto","swiper","lazyload","index"], function(require, exports, module){ | ||
1460 | -/** | ||
1461 | - * 首页打包入口 | ||
1462 | - * @author: liangzhifeng<zhifeng.liang@yoho.cn> | ||
1463 | - * @date: 2015/10/12 | ||
1464 | - */ | ||
1465 | - | ||
1466 | -require("js/home/home"); | ||
1467 | -require("js/home/maybe-like"); | ||
1468 | -}); | ||
1469 | -define("js/home/home", ["zepto","swiper","lazyload","index"], function(require, exports, module){ | ||
1470 | -/** | ||
1471 | - * 首页 | ||
1472 | - * @author: liangzhifeng<zhifeng.liang@yoho.cn> | ||
1473 | - * @date: 2015/10/12 | ||
1474 | - */ | ||
1475 | -var $ = require("zepto"), | ||
1476 | - Swiper = require("swiper"), | ||
1477 | - lazyLoad = require("lazyload"), | ||
1478 | - bannerSwiper, | ||
1479 | - recommendSwiper, | ||
1480 | - hotBrandsSwiper, | ||
1481 | - trendTopicSwiper, | ||
1482 | - goodsSwiper; | ||
1483 | - | ||
1484 | -var requestFrame, | ||
1485 | - thisFunc, | ||
1486 | - start = 0, | ||
1487 | - i, | ||
1488 | - swiperClass, | ||
1489 | - supportCss3, | ||
1490 | - $logotrans = $('.home-header .logo'), | ||
1491 | - isen = true; | ||
1492 | - | ||
1493 | -require("js/home/maybe-like"); | ||
1494 | - | ||
1495 | -lazyLoad($('img.lazy')); | ||
1496 | - | ||
1497 | -//$('img:in-viewport').trigger('appear'); | ||
1498 | - | ||
1499 | -//点击首页汉堡menu图标,滑出侧栏导航 | ||
1500 | -$('.nav-btn').on('click', function (event) { | ||
1501 | - if (!$(this).hasClass('menu-open')) { | ||
1502 | - $('.mobile-wrap').addClass('menu-open'); | ||
1503 | - $('.overlay').addClass('show'); | ||
1504 | - $('.side-nav').addClass('on'); | ||
1505 | - | ||
1506 | - //设置boy高宽,页面不能上下滑动 | ||
1507 | - $('body').css({ | ||
1508 | - height: $(window).height(), | ||
1509 | - width: '100%', | ||
1510 | - overflow: 'hidden' | ||
1511 | - }); | ||
1512 | - } | ||
1513 | - event.stopPropagation(); | ||
1514 | -}); | ||
1515 | - | ||
1516 | -//点击页面主体,收起侧栏导航及二级导航 | ||
1517 | -$('.mobile-wrap').on('click', function () { | ||
1518 | - if ($(this).hasClass('menu-open')) { | ||
1519 | - $('.mobile-wrap').removeClass('menu-open'); | ||
1520 | - $('.overlay').removeClass('show'); | ||
1521 | - $('.sub-nav').removeClass('show'); | ||
1522 | - $('.side-nav').removeClass('on'); | ||
1523 | - $('body').css({ | ||
1524 | - height: 'auto', | ||
1525 | - overflow: 'auto' | ||
1526 | - }); | ||
1527 | - } | ||
1528 | -}); | ||
1529 | - | ||
1530 | -//点击一级导航,弹出二级导航 | ||
1531 | -$('.side-nav').on('click', 'li', function () { | ||
1532 | - if ($(this).find('.sub-nav').size() > 0) { | ||
1533 | - $('.sub-nav').removeClass('show'); | ||
1534 | - $(this).find('.sub-nav').addClass('show'); | ||
1535 | - } | ||
1536 | -}); | ||
1537 | - | ||
1538 | -//返回一级导航,收起二级导航 | ||
1539 | -$('.sub-nav').each(function () { | ||
1540 | - $(this).find('li').eq(0).on('click', function (e) { | ||
1541 | - $('.sub-nav').removeClass('show'); | ||
1542 | - e.stopPropagation(); | ||
1543 | - }); | ||
1544 | -}); | ||
1545 | - | ||
1546 | -//二级导航样式控制 | ||
1547 | -$('.sub-nav').on('mouseenter', 'li', function () { | ||
1548 | - if ($(this).index() !== 0) { | ||
1549 | - $(this).addClass('current').siblings().removeClass('current'); | ||
1550 | - } | ||
1551 | -}); | ||
1552 | - | ||
1553 | -//头部banner轮播 | ||
1554 | -if ($('.banner-swiper').find('li').size() > 1) { | ||
1555 | - bannerSwiper = new Swiper('.banner-swiper', { | ||
1556 | - loop: true, | ||
1557 | - autoplay: 3000, | ||
1558 | - autoplayDisableOnInteraction: false, | ||
1559 | - paginationClickable: true, | ||
1560 | - slideElement: 'li', | ||
1561 | - pagination: '.banner-top .pagination-inner' | ||
1562 | - }); | ||
1563 | -} | ||
1564 | - | ||
1565 | -//热门品牌滑动 | ||
1566 | -hotBrandsSwiper = new Swiper('.brands-swiper', { | ||
1567 | - grabCursor: true, | ||
1568 | - slidesPerView: 'auto', | ||
1569 | - wrapperClass: 'brands-list', | ||
1570 | - slideElement: 'li' | ||
1571 | -}); | ||
1572 | - | ||
1573 | -//推荐搭配滑动 | ||
1574 | -recommendSwiper = new Swiper('.recommend-swiper', { | ||
1575 | - grabCursor: true, | ||
1576 | - slidesPerView: 'auto', | ||
1577 | - wrapperClass: 'recommend-list', | ||
1578 | - slideElement: 'li' | ||
1579 | -}); | ||
1580 | - | ||
1581 | -//潮品话题轮播 | ||
1582 | -if ($('.trend-topic-swiper').find('li').size() > 1) { | ||
1583 | - trendTopicSwiper = new Swiper('.trend-topic-swiper', { | ||
1584 | - loop: true, | ||
1585 | - autoplay: 3000, | ||
1586 | - autoplayDisableOnInteraction: false, | ||
1587 | - paginationClickable: true, | ||
1588 | - slideElement: 'li', | ||
1589 | - pagination: '.trend-topic-content .pagination-inner' | ||
1590 | - }); | ||
1591 | -} | ||
1592 | - | ||
1593 | -//潮流上装/经典裤装等轮播 | ||
1594 | -$('.category-swiper').each(function (i, index) { | ||
1595 | - swiperClass = 'category-swiper' + i; | ||
1596 | - $(this).addClass(swiperClass); | ||
1597 | - if ($('.' + swiperClass).find('.swiper-slide').size() > 1) { | ||
1598 | - goodsSwiper = new Swiper('.' + swiperClass, { | ||
1599 | - loop: true, | ||
1600 | - autoplay: 3000, | ||
1601 | - autoplayDisableOnInteraction: false, | ||
1602 | - paginationClickable: true, | ||
1603 | - slideElement: 'li', | ||
1604 | - pagination: '.' + swiperClass + ' .pagination-inner' | ||
1605 | - }); | ||
1606 | - } | ||
1607 | -}); | ||
1608 | - | ||
1609 | - | ||
1610 | -//回到顶部 | ||
1611 | -// $('.back-to-top').bind('touchstart', function (e) { | ||
1612 | -// e.preventDefault(); | ||
1613 | -// $(window).scrollTop(0); | ||
1614 | -// }); | ||
1615 | - | ||
1616 | -//关闭头部下载浮层 | ||
1617 | -$('.header-download').on('click', '.close-btn', function () { | ||
1618 | - $(this).parent().remove(); | ||
1619 | -}); | ||
1620 | - | ||
1621 | - | ||
1622 | -//logo动画 | ||
1623 | -requestFrame = (function () { | ||
1624 | - var tempFunc = null, | ||
1625 | - prefixList = ['webkit', 'moz', 'ms']; | ||
1626 | - | ||
1627 | - for (i = 0; i < prefixList.length; i++) { | ||
1628 | - thisFunc = prefixList[i] + 'RequestAnimationFrame'; | ||
1629 | - if (window[thisFunc]) { | ||
1630 | - supportCss3 = true; | ||
1631 | - tempFunc = thisFunc; | ||
1632 | - } | ||
1633 | - } | ||
1634 | - | ||
1635 | - if (supportCss3) { | ||
1636 | - return function (callback) { | ||
1637 | - window[tempFunc](callback); | ||
1638 | - }; | ||
1639 | - } | ||
1640 | - return function (callback) { | ||
1641 | - window.setTimeout(callback, 67); | ||
1642 | - }; | ||
1643 | -})(); | ||
1644 | - | ||
1645 | -function tsAnimate() { | ||
1646 | - start = start + 10; | ||
1647 | - $logotrans.css({ | ||
1648 | - transform: 'rotateX(' + start + 'deg)', | ||
1649 | - '-webkit-transform': 'rotateX(' + start + 'deg)', | ||
1650 | - '-moz-transform': 'rotateX(' + start + 'deg)' | ||
1651 | - }); | ||
1652 | - if (start / 90 % 2 === 1) { | ||
1653 | - if (isen) { | ||
1654 | - $logotrans.addClass('animate'); | ||
1655 | - isen = false; | ||
1656 | - } else { | ||
1657 | - $logotrans.removeClass('animate'); | ||
1658 | - isen = true; | ||
1659 | - } | ||
1660 | - } | ||
1661 | - if (start / 90 % 2 === 0 && start % 360 !== 0) { | ||
1662 | - window.setTimeout(tsAnimate, 3000); | ||
1663 | - } else { | ||
1664 | - if (start % 360 === 0) { | ||
1665 | - window.setTimeout(tsAnimate, 3 * 60 * 1000); | ||
1666 | - } else { | ||
1667 | - requestFrame(function () { | ||
1668 | - tsAnimate(); | ||
1669 | - }); | ||
1670 | - } | ||
1671 | - } | ||
1672 | -} | ||
1673 | - | ||
1674 | -tsAnimate(); | ||
1675 | - | ||
1676 | - | ||
1677 | -}); | ||
1678 | -define("js/home/maybe-like", ["zepto","lazyload"], function(require, exports, module){ | ||
1679 | -/** | ||
1680 | - * “你可能喜欢”模块JS | ||
1681 | - * @author: liangzhifeng<zhifeng.liang@yoho.cn> | ||
1682 | - * @date: 2015/10/12 | ||
1683 | - */ | ||
1684 | - | ||
1685 | -var $ = require("zepto"), | ||
1686 | - tip = require("js/plugin/tip"), | ||
1687 | - lazyLoad = require("lazyload"); | ||
1688 | - | ||
1689 | -var winH = $(window).height(), | ||
1690 | - loadMoreH = $('#load-more').height(), | ||
1691 | - $goodList = $('#goods-list'), | ||
1692 | - loading = false, | ||
1693 | - page = 0, | ||
1694 | - gender = $('.mobile-wrap').hasClass('boys-wrap') ? '1,3' : '2,3', | ||
1695 | - kidsType = $('.mobile-wrap').hasClass('kids-wrap') ? true : false, | ||
1696 | - lifestyleType = $('.mobile-wrap').hasClass('lifestyle-wrap') ? true : false, | ||
1697 | - num, | ||
1698 | - url; | ||
1699 | - | ||
1700 | -var $curNav, | ||
1701 | - index, | ||
1702 | - $navList = $('#maybe-like-nav'); | ||
1703 | - | ||
1704 | -//ajax url | ||
1705 | -if (kidsType) { | ||
1706 | - url = '/product/recom/maylikekids'; | ||
1707 | -} else if (lifestyleType) { | ||
1708 | - url = '/product/recom/maylikelife'; | ||
1709 | -} else { | ||
1710 | - url = '/product/recom/maylike?gender=' + gender; | ||
1711 | -} | ||
1712 | - | ||
1713 | -$curNav = $navList.children('.focus'); | ||
1714 | - | ||
1715 | -$('#maybe-like-nav').delegate('li', 'touchstart', function() { | ||
1716 | - var $this = $(this), | ||
1717 | - $goods = $('.goods-list'), | ||
1718 | - $content; | ||
1719 | - | ||
1720 | - | ||
1721 | - if ($this.hasClass('focus')) { | ||
1722 | - return; | ||
1723 | - } | ||
1724 | - | ||
1725 | - index = $this.index(); | ||
1726 | - | ||
1727 | - $this.addClass('focus'); | ||
1728 | - $curNav.removeClass('focus'); | ||
1729 | - | ||
1730 | - $goods.not('.hide').addClass('hide'); | ||
1731 | - $content = $goods.eq(index); | ||
1732 | - $content.removeClass('hide'); | ||
1733 | - | ||
1734 | - $curNav = $this; | ||
1735 | - | ||
1736 | - $(document).trigger('scroll'); //Trigger lazyLoad | ||
1737 | -}); | ||
1738 | - | ||
1739 | -//srcoll to load more | ||
1740 | -$(window).scroll(function () { | ||
1741 | - if ($(window).scrollTop() + winH >= $(document).height() - loadMoreH) { | ||
1742 | - if (loading) { | ||
1743 | - return; | ||
1744 | - } | ||
1745 | - loading = true; | ||
1746 | - num = $goodList.children('.good-info').length; | ||
1747 | - $.ajax({ | ||
1748 | - type: 'GET', | ||
1749 | - url: url, | ||
1750 | - data: { | ||
1751 | - page: page + 1 | ||
1752 | - }, | ||
1753 | - success: function(data) { | ||
1754 | - if (data === ' ') { | ||
1755 | - loading = true; | ||
1756 | - return; | ||
1757 | - } | ||
1758 | - $goodList.append(data); | ||
1759 | - | ||
1760 | - //lazyLoad | ||
1761 | - //lazyLoad($goodList.children('.good-info:gt(' + (num - 1) + ')').find('img.lazy')); | ||
1762 | - lazyLoad($('.good-info').find('img.lazy')); | ||
1763 | - | ||
1764 | - loading = false; | ||
1765 | - page++; | ||
1766 | - }, | ||
1767 | - error: function() { | ||
1768 | - tip.show('网络断开连接了~'); | ||
1769 | - loading = false; | ||
1770 | - } | ||
1771 | - }); | ||
1772 | - } | ||
1773 | - | ||
1774 | -}); | ||
1775 | -}); | ||
1776 | -define("js/product/index", ["zepto","swiper","lazyload","index"], function(require, exports, module){ | ||
1777 | -/** | ||
1778 | - * 产品打包入口 | ||
1779 | - * @author: liangzhifeng<zhifeng.liang@yoho.cn> | ||
1780 | - * @date: 2015/10/12 | ||
1781 | - */ | ||
1782 | - | ||
1783 | -require("js/product/newsale/newarrival"); | ||
1784 | -require("js/product/newsale/discount"); | ||
1785 | -require("js/product/list"); | ||
1786 | -require("js/product/detail/detail"); | ||
1787 | -}); | ||
1788 | -define("js/product/newsale/newarrival", ["zepto","swiper","lazyload","index"], function(require, exports, module){ | ||
1789 | -var $ = require("zepto"), | ||
1790 | - tip = require("js/plugin/tip"), | ||
1791 | - Swiper = require("swiper"), | ||
1792 | - lazyLoad = require("lazyload"); | ||
1793 | - | ||
1794 | -var $curNav, | ||
1795 | - $navList = $('#newarrival-nav'), | ||
1796 | - $newArrivalList = $('#newarrival-goods-list'), | ||
1797 | - $goods = $newArrivalList.children('.goods-list'); | ||
1798 | - | ||
1799 | -var winH = $(window).height(), | ||
1800 | - loadMoreH = $('#load-more').height(), | ||
1801 | - $goodList = $('.goods-list'), | ||
1802 | - loading = false, | ||
1803 | - page = 0, | ||
1804 | - index = 0; | ||
1805 | - | ||
1806 | -var swiper; | ||
1807 | - | ||
1808 | -swiper = new Swiper('.swiper-container', { | ||
1809 | - lazyLoading: true, | ||
1810 | - pagination: '.swiper-pagination' | ||
1811 | -}); | ||
1812 | - | ||
1813 | -lazyLoad($('img.lazy')); | ||
1814 | -$curNav = $navList.children('.focus'); | ||
1815 | - | ||
1816 | -$('#newarrival-nav').delegate('li', 'touchstart', function() { | ||
1817 | - var $this = $(this), | ||
1818 | - $content; | ||
1819 | - | ||
1820 | - if ($this.hasClass('focus')) { | ||
1821 | - return; | ||
1822 | - } | ||
1823 | - | ||
1824 | - index = $this.index(); | ||
1825 | - | ||
1826 | - $this.addClass('focus'); | ||
1827 | - $curNav.removeClass('focus'); | ||
1828 | - | ||
1829 | - $goods.not('.hide').addClass('hide'); | ||
1830 | - $content = $goods.eq(index); | ||
1831 | - $content.removeClass('hide'); | ||
1832 | - | ||
1833 | - $curNav = $this; | ||
1834 | - | ||
1835 | - $(document).trigger('scroll'); //Trigger lazyLoad | ||
1836 | -}); | ||
1837 | - | ||
1838 | -//srcoll to load more | ||
1839 | -$(window).scroll(function () { | ||
1840 | - if ($(window).scrollTop() + winH >= $(document).height() - loadMoreH) { | ||
1841 | - if (loading) { | ||
1842 | - return; | ||
1843 | - } | ||
1844 | - loading = true; | ||
1845 | - | ||
1846 | - //num = $goodList.children('.good-info').length; | ||
1847 | - $.ajax({ | ||
1848 | - type: 'GET', | ||
1849 | - url: '/product/newsale/selectNewSale', | ||
1850 | - data: { | ||
1851 | - dayLimit: index + 1, | ||
1852 | - page: page + 1 | ||
1853 | - }, | ||
1854 | - success: function(data) { | ||
1855 | - if (data === ' ') { | ||
1856 | - loading = true; | ||
1857 | - return; | ||
1858 | - } | ||
1859 | - | ||
1860 | - $goodList.append(data); | ||
1861 | - | ||
1862 | - //lazyLoad | ||
1863 | - //lazyLoad($goodList.children('.good-info:gt(' + (num - 1) + ')').find('img.lazy')); | ||
1864 | - lazyLoad($('.good-info').find('img.lazy')); | ||
1865 | - | ||
1866 | - loading = false; | ||
1867 | - page++; | ||
1868 | - }, | ||
1869 | - error: function() { | ||
1870 | - tip.show('网络断开连接了~'); | ||
1871 | - loading = false; | ||
1872 | - } | ||
1873 | - }); | ||
1874 | - } | ||
1875 | - | ||
1876 | -}); | ||
1877 | -}); | ||
1878 | -define("js/product/newsale/discount", ["zepto","swiper","lazyload","index"], function(require, exports, module){ | ||
1879 | -var $ = require("zepto"), | ||
1880 | - Swiper = require("swiper"), | ||
1881 | - lazyLoad = require("lazyload"); | ||
1882 | - | ||
1883 | -var $curNav, | ||
1884 | - $navList = $('#discount-nav'), | ||
1885 | - $newArrivalList = $('#discount-goods-list'), | ||
1886 | - $goods = $newArrivalList.children('.goods-list'), | ||
1887 | - $goodList = $('.goods-list'); | ||
1888 | - | ||
1889 | -var swiper; | ||
1890 | -var index = 0, | ||
1891 | - winH = $(window).height(), | ||
1892 | - loadMoreH = $('#load-more').height(), | ||
1893 | - loading = false, | ||
1894 | - page = 0, | ||
1895 | - pd = ""; | ||
1896 | - | ||
1897 | -swiper = new Swiper('.swiper-container', { | ||
1898 | - lazyLoading: true, | ||
1899 | - pagination: '.swiper-pagination' | ||
1900 | -}); | ||
1901 | - | ||
1902 | -lazyLoad($('img.lazy')); | ||
1903 | -$curNav = $navList.children('.focus'); | ||
1904 | - | ||
1905 | -$('#discount-nav').delegate('li', 'touchstart', function() { | ||
1906 | - var $this = $(this), | ||
1907 | - $content; | ||
1908 | - | ||
1909 | - if ($this.hasClass('focus')) { | ||
1910 | - return; | ||
1911 | - } | ||
1912 | - | ||
1913 | - index = $this.index(); | ||
1914 | - pd = getSalePdByChoose(index); | ||
1915 | - | ||
1916 | - $this.addClass('focus'); | ||
1917 | - $curNav.removeClass('focus'); | ||
1918 | - | ||
1919 | - $goods.not('.hide').addClass('hide'); | ||
1920 | - $content = $goods.eq(index); | ||
1921 | - $content.removeClass('hide'); | ||
1922 | - | ||
1923 | - $curNav = $this; | ||
1924 | - | ||
1925 | - $(document).trigger('scroll'); //Trigger lazyLoad | ||
1926 | -}); | ||
1927 | - | ||
1928 | -//srcoll to load more | ||
1929 | -$(window).scroll(function () { | ||
1930 | - if ($(window).scrollTop() + winH >= $(document).height() - loadMoreH) { | ||
1931 | - if (loading) { | ||
1932 | - return; | ||
1933 | - } | ||
1934 | - loading = true; | ||
1935 | - | ||
1936 | - // num = $goodList.children('.good-info').length; | ||
1937 | - $.ajax({ | ||
1938 | - type: 'GET', | ||
1939 | - url: '/product/newsale/selectNewSale', | ||
1940 | - data: { | ||
1941 | - p_d: pd, | ||
1942 | - page: page + 1 | ||
1943 | - }, | ||
1944 | - success: function(data) { | ||
1945 | - if (data === ' ') { | ||
1946 | - | ||
1947 | - //opt.end = true; | ||
1948 | - loading = false; | ||
1949 | - return; | ||
1950 | - } | ||
1951 | - | ||
1952 | - $goodList.append(data); | ||
1953 | - | ||
1954 | - //lazyLoad | ||
1955 | - //lazyLoad($goodList.children('.good-info:gt(' + (num - 1) + ')').find('img.lazy')); | ||
1956 | - lazyLoad($('.good-info').find('img.lazy')); | ||
1957 | - | ||
1958 | - loading = false; | ||
1959 | - page++; | ||
1960 | - }, | ||
1961 | - error: function() { | ||
1962 | - tip.show('网络断开连接了~'); | ||
1963 | - loading = false; | ||
1964 | - } | ||
1965 | - }); | ||
1966 | - } | ||
1967 | - | ||
1968 | -}); | ||
1969 | - | ||
1970 | -/** | ||
1971 | - * 根据用户的选择获取商品折扣值 | ||
1972 | - * | ||
1973 | - * @param int index | ||
1974 | - * @return string | ||
1975 | - */ | ||
1976 | -function getSalePdByChoose(index) { | ||
1977 | - var pd = "0.1,0.3"; | ||
1978 | - switch (index) { | ||
1979 | - case 0: | ||
1980 | - pd = "0.1,0.3"; | ||
1981 | - break; | ||
1982 | - case 1: | ||
1983 | - pd = "0.4,0.6"; | ||
1984 | - break; | ||
1985 | - case 2: | ||
1986 | - pd = "0.7,0.9"; | ||
1987 | - break; | ||
1988 | - case 3: | ||
1989 | - pd = "0.1,0.9"; | ||
1990 | - break; | ||
1991 | - } | ||
1992 | - return pd; | ||
1993 | -} | ||
1994 | -}); | ||
1995 | -define("js/product/list", ["zepto","lazyload"], function(require, exports, module){ | ||
1996 | -/** | ||
1997 | - * 商品列表页 | ||
1998 | - * @author: xuqi<qi.xu@yoho.cn> | ||
1999 | - * @date: 2015/10/20 | ||
2000 | - */ | ||
2001 | - | ||
2002 | -var $ = require("zepto"), | ||
2003 | - lazyLoad = require("lazyload"); | ||
2004 | - | ||
2005 | -//品牌页参数 | ||
2006 | -var $brandHeader = $('#brand-header'), | ||
2007 | - $introBox = $('#intro-box'); | ||
2008 | - | ||
2009 | -var filter = require("js/plugin/filter"); | ||
2010 | - | ||
2011 | -var $goodsContainer = $('#goods-container'), | ||
2012 | - $ngc = $goodsContainer.children('.new-goods'), | ||
2013 | - $pgc = $goodsContainer.children('.price-goods'), | ||
2014 | - $dgc = $goodsContainer.children('.discount-goods'); | ||
2015 | - | ||
2016 | -var winH = $(window).height(); | ||
2017 | - | ||
2018 | -//默认筛选条件 | ||
2019 | -var defaultOpt = { | ||
2020 | - gender: $('#gender').val(), | ||
2021 | - brand: $('#brand').val(), | ||
2022 | - msort: $('#msort').val(), | ||
2023 | - color: $('#color').val(), | ||
2024 | - size: $('#size').val(), | ||
2025 | - price: $('#price').val(), | ||
2026 | - discount: $('#discount').val() | ||
2027 | -}; | ||
2028 | - | ||
2029 | -var $listNav = $('#list-nav'), | ||
2030 | - | ||
2031 | - //导航数据信息 | ||
2032 | - navInfo = { | ||
2033 | - newest: { | ||
2034 | - order: 1, | ||
2035 | - reload: true, | ||
2036 | - page: 0, | ||
2037 | - end: false | ||
2038 | - }, | ||
2039 | - price: { | ||
2040 | - order: 0, | ||
2041 | - reload: true, | ||
2042 | - page: 0, | ||
2043 | - end: false | ||
2044 | - }, | ||
2045 | - discount: { | ||
2046 | - order: 0, | ||
2047 | - reload: true, | ||
2048 | - page: 0, | ||
2049 | - end: false | ||
2050 | - } | ||
2051 | - }, | ||
2052 | - $pre, //纪录进入筛选前的active项 | ||
2053 | - searching; | ||
2054 | - | ||
2055 | -/** | ||
2056 | - * 筛选注册的回调,筛选子项点击后逻辑 | ||
2057 | - * 需要执行search的场景:1.点选筛选项;2.relaod为true时切换导航;3.下拉加载 | ||
2058 | - * @param opt {type, id} | ||
2059 | - */ | ||
2060 | -function search(opt) { | ||
2061 | - var setting = {}, | ||
2062 | - ext, | ||
2063 | - att, | ||
2064 | - nav, navType, | ||
2065 | - page; | ||
2066 | - | ||
2067 | - if (opt) { | ||
2068 | - | ||
2069 | - //筛选项变更则重置reload为true | ||
2070 | - for (att in navInfo) { | ||
2071 | - if (navInfo.hasOwnProperty(att)) { | ||
2072 | - navInfo[att].reload = true; | ||
2073 | - } | ||
2074 | - } | ||
2075 | - | ||
2076 | - switch (opt.type) { | ||
2077 | - case 'gender': | ||
2078 | - ext = { | ||
2079 | - gender: opt.id | ||
2080 | - }; | ||
2081 | - break; | ||
2082 | - case 'brand': | ||
2083 | - ext = { | ||
2084 | - brand: opt.id | ||
2085 | - }; | ||
2086 | - break; | ||
2087 | - case 'msort': | ||
2088 | - ext = { | ||
2089 | - msort: opt.id | ||
2090 | - }; | ||
2091 | - break; | ||
2092 | - case 'color': | ||
2093 | - ext = { | ||
2094 | - color: opt.id | ||
2095 | - }; | ||
2096 | - break; | ||
2097 | - case 'size': | ||
2098 | - ext = { | ||
2099 | - size: opt.id | ||
2100 | - }; | ||
2101 | - break; | ||
2102 | - case 'price': | ||
2103 | - ext = { | ||
2104 | - price: opt.id | ||
2105 | - }; | ||
2106 | - break; | ||
2107 | - case 'discount': | ||
2108 | - ext = { | ||
2109 | - discount: opt.id | ||
2110 | - }; | ||
2111 | - break; | ||
2112 | - } | ||
2113 | - | ||
2114 | - $.extend(defaultOpt, ext); //扩展筛选项 | ||
2115 | - } | ||
2116 | - | ||
2117 | - if (searching) { | ||
2118 | - return; | ||
2119 | - } | ||
2120 | - | ||
2121 | - //导航类别 | ||
2122 | - if ($pre.hasClass('new')) { | ||
2123 | - navType = 'newest'; | ||
2124 | - } else if ($pre.hasClass('price')) { | ||
2125 | - navType = 'price'; | ||
2126 | - } else if ($pre.hasClass('discount')) { | ||
2127 | - navType = 'discount'; | ||
2128 | - } | ||
2129 | - | ||
2130 | - nav = navInfo[navType]; | ||
2131 | - | ||
2132 | - page = nav.page + 1; | ||
2133 | - if (nav.reload) { | ||
2134 | - page = 1; | ||
2135 | - } else if (nav.end) { | ||
2136 | - | ||
2137 | - //不需要重新加载并且数据请求结束 | ||
2138 | - return; | ||
2139 | - } | ||
2140 | - | ||
2141 | - $.extend(setting, defaultOpt, { | ||
2142 | - type: navType, | ||
2143 | - order: nav.order, | ||
2144 | - page: page | ||
2145 | - }); | ||
2146 | - | ||
2147 | - searching = true; | ||
2148 | - | ||
2149 | - $.ajax({ | ||
2150 | - type: 'GET', | ||
2151 | - url: '/product/list/search', | ||
2152 | - data: setting, | ||
2153 | - success: function(data) { | ||
2154 | - var noResult = '<p class="no-result">未找到相关搜索结果</p>', | ||
2155 | - $container; | ||
2156 | - | ||
2157 | - switch (navType) { | ||
2158 | - case 'newest': | ||
2159 | - $container = $ngc; | ||
2160 | - break; | ||
2161 | - case 'price': | ||
2162 | - $container = $pgc; | ||
2163 | - break; | ||
2164 | - case 'discount': | ||
2165 | - $container = $dgc; | ||
2166 | - break; | ||
2167 | - } | ||
2168 | - | ||
2169 | - if (data === ' ') { | ||
2170 | - nav.end = true; | ||
2171 | - | ||
2172 | - if (nav.reload) { | ||
2173 | - $container.html(noResult); | ||
2174 | - } | ||
2175 | - } else { | ||
2176 | - if (nav.reload) { | ||
2177 | - $container.html(data); | ||
2178 | - } else { | ||
2179 | - $container.append(data); | ||
2180 | - } | ||
2181 | - | ||
2182 | - lazyLoad($container.find('.lazy')); | ||
2183 | - } | ||
2184 | - | ||
2185 | - nav.reload = true; | ||
2186 | - nav.page = page; | ||
2187 | - | ||
2188 | - searching = false; | ||
2189 | - } | ||
2190 | - }); | ||
2191 | - | ||
2192 | -} | ||
2193 | - | ||
2194 | -lazyLoad($('.lazy')); | ||
2195 | - | ||
2196 | -filter.registerCbFn(search); | ||
2197 | - | ||
2198 | -//导航栏点击逻辑说明: | ||
2199 | -//1.点击非active项时切换active状态 | ||
2200 | -//2.价格和折扣active状态时继续点击切换排序 | ||
2201 | -//3.筛选无active时点击展开筛选面板 | ||
2202 | -//4.筛选有active时点击隐藏筛选面板并恢复点击筛选前active项的active状态 | ||
2203 | -//5.当前active为筛选并且点击其他项时,隐藏筛选面板 | ||
2204 | -$listNav.delegate('li', 'touchstart', function() { | ||
2205 | - var $this = $(this), | ||
2206 | - nav, | ||
2207 | - navType, | ||
2208 | - $active; | ||
2209 | - | ||
2210 | - if ($this.hasClass('filter')) { | ||
2211 | - | ||
2212 | - //筛选面板切换状态 | ||
2213 | - if ($this.hasClass('active')) { | ||
2214 | - filter.hideFilter(); | ||
2215 | - | ||
2216 | - //点击筛选钱的active项回复active | ||
2217 | - $pre.addClass('active'); | ||
2218 | - $this.removeClass('active'); | ||
2219 | - } else { | ||
2220 | - $pre = $this.siblings('.active'); | ||
2221 | - | ||
2222 | - $pre.removeClass('active'); | ||
2223 | - $this.addClass('active'); | ||
2224 | - | ||
2225 | - filter.showFilter(); | ||
2226 | - } | ||
2227 | - } else { | ||
2228 | - | ||
2229 | - if ($this.hasClass('new')) { | ||
2230 | - navType = 'newest'; | ||
2231 | - } else if ($this.hasClass('price')) { | ||
2232 | - navType = 'price'; | ||
2233 | - } else if ($this.hasClass('discount')) { | ||
2234 | - navType = 'discount'; | ||
2235 | - } | ||
2236 | - | ||
2237 | - nav = navInfo[navType]; | ||
2238 | - | ||
2239 | - if ($this.hasClass('active')) { | ||
2240 | - | ||
2241 | - //最新无排序切换 | ||
2242 | - if ($this.hasClass('new')) { | ||
2243 | - return; | ||
2244 | - } | ||
2245 | - | ||
2246 | - if ($this.hasClass('price') || $this.hasClass('discount')) { | ||
2247 | - | ||
2248 | - // 价格/折扣切换排序状态 | ||
2249 | - $this.find('.icon > .iconfont').toggleClass('cur'); | ||
2250 | - $pre = $this; //更新pre为当前项 | ||
2251 | - nav.reload = true; //重置reload,HTML会被替换为逆序的HTML | ||
2252 | - nav.order = nav.order === 0 ? 1 : 0; //切换排序 | ||
2253 | - } | ||
2254 | - } else { | ||
2255 | - $active = $this.siblings('.active'); | ||
2256 | - | ||
2257 | - $pre = $this; //$pre为除筛选导航的其他导航项,若当前active的为筛选,则把$pre置为当前点击项 | ||
2258 | - | ||
2259 | - if ($active.hasClass('filter')) { | ||
2260 | - | ||
2261 | - //若之前active项为筛选,则隐藏筛选面板 | ||
2262 | - filter.hideFilter(); | ||
2263 | - } else { | ||
2264 | - | ||
2265 | - //切换container显示 | ||
2266 | - $goodsContainer.children('.container:not(.hide)').addClass('hide'); | ||
2267 | - | ||
2268 | - switch (navType) { | ||
2269 | - case 'newest': | ||
2270 | - $ngc.removeClass('hide'); | ||
2271 | - break; | ||
2272 | - | ||
2273 | - case 'price': | ||
2274 | - $pgc.removeClass('hide'); | ||
2275 | - break; | ||
2276 | - | ||
2277 | - case 'discount': | ||
2278 | - $dgc.removeClass('hide'); | ||
2279 | - break; | ||
2280 | - } | ||
2281 | - } | ||
2282 | - | ||
2283 | - $active.removeClass('active'); | ||
2284 | - $this.addClass('active'); | ||
2285 | - } | ||
2286 | - | ||
2287 | - if (nav.reload) { | ||
2288 | - search(); | ||
2289 | - } | ||
2290 | - } | ||
2291 | -}); | ||
2292 | - | ||
2293 | -$(window).scroll(function() { | ||
2294 | - | ||
2295 | - //当scroll到1/4$goodsContainer高度后继续请求下一页数据 | ||
2296 | - if ($(window).scrollTop() + winH > | ||
2297 | - $(document).height() - 0.25 * $goodsContainer.height()) { | ||
2298 | - search(); | ||
2299 | - } | ||
2300 | -}); | ||
2301 | - | ||
2302 | -//品牌介绍 | ||
2303 | -$brandHeader.children('.btn-intro').bind('touchstart', function() { | ||
2304 | - $introBox.removeClass('hide'); | ||
2305 | -}); | ||
2306 | - | ||
2307 | -$('.close-intro, .brand-intro-box').click(function() { | ||
2308 | - $introBox.addClass('hide'); | ||
2309 | -}); | ||
2310 | - | ||
2311 | -$('#brand-intro').click(function(e) { | ||
2312 | - e.stopPropagation(); | ||
2313 | -}); | ||
2314 | - | ||
2315 | -//品牌收藏 | ||
2316 | -$brandHeader.children('.btn-col').bind('touchstart', function() { | ||
2317 | - $(this).toggleClass('coled'); | ||
2318 | -}); | ||
2319 | -}); | ||
2320 | -define("js/plugin/filter", ["zepto"], function(require, exports, module){ | ||
2321 | -/** | ||
2322 | - * 筛选JS | ||
2323 | - * 暴露三个接口:注册回调、显示filter、隐藏filter | ||
2324 | - * @author: xuqi<qi.xu@yoho.cn> | ||
2325 | - * @date: 2015/10/19 | ||
2326 | - */ | ||
2327 | - | ||
2328 | -var $ = require("zepto"); | ||
2329 | - | ||
2330 | -var $filter = $('.filter-mask, .filter-body'); | ||
2331 | - | ||
2332 | -var $classify = $filter.find('.classify'), | ||
2333 | - $subClassify = $filter.find('.sub-classify'); | ||
2334 | - | ||
2335 | -var cbFn; | ||
2336 | - | ||
2337 | -//隐藏筛选界面 | ||
2338 | -function hideFilter() { | ||
2339 | - $filter.addClass('hide'); | ||
2340 | -} | ||
2341 | - | ||
2342 | -//显示筛选界面 | ||
2343 | -function showFilter() { | ||
2344 | - $filter.removeClass('hide'); | ||
2345 | -} | ||
2346 | - | ||
2347 | -//注册sub-classify点击后的回调 | ||
2348 | -function registerCbFn(cb) { | ||
2349 | - cbFn = cb; | ||
2350 | -} | ||
2351 | - | ||
2352 | -//设置完高度后显示sub并设置选中 | ||
2353 | -$classify.children(':first-child').addClass('active'); //T:不在HTML中使用{{#if @first}}active{{/if}}来初始化active为避免sub设置高度时的闪烁 | ||
2354 | - | ||
2355 | -//classify switch | ||
2356 | -$classify.delegate('.classify-item', 'touchstart', function() { | ||
2357 | - var $this = $(this); | ||
2358 | - | ||
2359 | - if ($this.hasClass('active')) { | ||
2360 | - return; | ||
2361 | - } | ||
2362 | - | ||
2363 | - $this.siblings('.active').removeClass('active'); | ||
2364 | - | ||
2365 | - $this.addClass('active'); | ||
2366 | -}); | ||
2367 | - | ||
2368 | -//点击Mask隐藏筛选界面 | ||
2369 | -$filter.filter('.filter-mask').click(function() { | ||
2370 | - hideFilter(); | ||
2371 | -}); | ||
2372 | - | ||
2373 | -$subClassify.delegate('li', 'click', function(e) { | ||
2374 | - var $this = $(this), | ||
2375 | - id = $this.data('id'); | ||
2376 | - | ||
2377 | - var $sub = $this.closest('.sub-classify'); | ||
2378 | - | ||
2379 | - var $shower = $sub.siblings('.shower'); | ||
2380 | - | ||
2381 | - var html, shower; | ||
2382 | - | ||
2383 | - e.stopPropagation(); | ||
2384 | - | ||
2385 | - if ($this.hasClass('chosed')) { | ||
2386 | - return; | ||
2387 | - } | ||
2388 | - | ||
2389 | - $sub.children('.chosed').removeClass('chosed'); | ||
2390 | - $this.addClass('chosed'); | ||
2391 | - | ||
2392 | - html = $.trim($this.html()); | ||
2393 | - | ||
2394 | - shower = $.trim($shower.html()); | ||
2395 | - | ||
2396 | - $shower.html( | ||
2397 | - shower.substring(0, shower.indexOf('</span>') + 7) + //拆分出shower的title | ||
2398 | - html.substring(0, html.indexOf('<i')) //拆分选中筛选值 | ||
2399 | - ); | ||
2400 | - | ||
2401 | - if ($this.index() === 0) { | ||
2402 | - $shower.addClass('default'); | ||
2403 | - } else { | ||
2404 | - $shower.removeClass('default'); | ||
2405 | - } | ||
2406 | - | ||
2407 | - if (cbFn) { | ||
2408 | - cbFn({ | ||
2409 | - type: $sub.data('type'), | ||
2410 | - id: id | ||
2411 | - }); | ||
2412 | - } | ||
2413 | - | ||
2414 | - hideFilter(); | ||
2415 | -}); | ||
2416 | - | ||
2417 | - | ||
2418 | -exports.showFilter = showFilter; | ||
2419 | - | ||
2420 | -exports.hideFilter = hideFilter; | ||
2421 | - | ||
2422 | -exports.registerCbFn = registerCbFn; | ||
2423 | -}); | ||
2424 | -define("js/product/detail/detail", ["zepto","swiper","lazyload","index"], function(require, exports, module){ | ||
2425 | -/** | ||
2426 | - * 产品打包入口 | ||
2427 | - * @author: liangzhifeng<zhifeng.liang@yoho.cn> | ||
2428 | - * @date: 2015/10/20 | ||
2429 | - */ | ||
2430 | - var $ = require("zepto"), | ||
2431 | - Swiper = require("swiper"), | ||
2432 | - lazyLoad = require("lazyload"), | ||
2433 | - goodsSwiper; | ||
2434 | - | ||
2435 | -lazyLoad($('img.lazy')); | ||
2436 | - | ||
2437 | -goodsSwiper = new Swiper('.banner-swiper', { | ||
2438 | - loop: true, | ||
2439 | - pagination: '.banner-top .pagination-inner', | ||
2440 | - slideElement: 'div', | ||
2441 | - nextButton: '.swiper-button-next', | ||
2442 | - prevButton: '.swiper-button-prev' | ||
2443 | -}); | ||
2444 | -}); | ||
2445 | -define("js/index/index", ["zepto"], function(require, exports, module){ | ||
2446 | -/** | ||
2447 | - * Index打包入口 | ||
2448 | - * @author: xuqi<qi.xu@yoho.cn> | ||
2449 | - * @date: 2015/10/19 | ||
2450 | - */ | ||
2451 | - | ||
2452 | -require("js/index/search"); | ||
2453 | -require("js/index/channel"); | ||
2454 | -}); | ||
2455 | -define("js/index/search", ["zepto"], function(require, exports, module){ | ||
2456 | -/** | ||
2457 | - * 搜索JS | ||
2458 | - * @author: xuqi<qi.xu@yoho.cn> | ||
2459 | - * @date: 2015/10/19 | ||
2460 | - */ | ||
2461 | - | ||
2462 | -var $ = require("zepto"); | ||
2463 | - | ||
2464 | -var $input = $('#search-input > input'); | ||
2465 | - | ||
2466 | -var $clear = $('#search-input > .clear-input'); | ||
2467 | - | ||
2468 | -var $history = $('.history'); | ||
2469 | - | ||
2470 | -$('#clear-history').bind('touchstart', function() { | ||
2471 | - $.ajax({ | ||
2472 | - type: 'POST', | ||
2473 | - url: '/search/clearHistory', | ||
2474 | - success: function(data) { | ||
2475 | - if (data.code === 200) { | ||
2476 | - $history.html(''); //clear search history items | ||
2477 | - } | ||
2478 | - } | ||
2479 | - }); | ||
2480 | -}); | ||
2481 | - | ||
2482 | -$('#search').bind('touchstart', function() { | ||
2483 | - var val = $input.val(); | ||
2484 | - | ||
2485 | - $.ajax({ | ||
2486 | - type: 'POST', | ||
2487 | - url: '/search', | ||
2488 | - data: { | ||
2489 | - val: val | ||
2490 | - }, | ||
2491 | - success: function(data) { | ||
2492 | - if (data.code === 200) { | ||
2493 | - location.href = data.data; | ||
2494 | - } | ||
2495 | - } | ||
2496 | - }); | ||
2497 | -}); | ||
2498 | - | ||
2499 | -$input.bind('input', function() { | ||
2500 | - if ($input.val() === '') { | ||
2501 | - $clear.addClass('hide'); | ||
2502 | - } else { | ||
2503 | - $clear.removeClass('hide'); | ||
2504 | - } | ||
2505 | -}); | ||
2506 | - | ||
2507 | -$clear.bind('touchstart', function() { | ||
2508 | - $input.val('').trigger('input'); | ||
2509 | -}); | ||
2510 | -}); | ||
2511 | -define("js/index/channel", [], function(require, exports, module){ | ||
2512 | -/** | ||
2513 | - * 频道选择 | ||
2514 | - * @author: liangzhifeng<zhifeng.liang@yoho.cn> | ||
2515 | - * @date: 2015/10/12 | ||
2516 | - */ | ||
2517 | - | ||
2518 | -}); |
static/dist/myohobuy/0.0.1/index.css
deleted
100644 → 0
1 | -html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font:inherit;font-size:100%;vertical-align:baseline}html{line-height:1}ol,ul{list-style:none}table{border-collapse:collapse;border-spacing:0}caption,th,td{text-align:left;font-weight:normal;vertical-align:middle}q,blockquote{quotes:none}q:before,q:after,blockquote:before,blockquote:after{content:"";content:none}a img{border:none}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}*{-webkit-tap-highlight-color:transparent;-moz-tap-highlight-color:transparent;tap-highlight-color:transparent}html,body{font-family:helvetica,Arial,"黑体";width:100%;font-size:12px;line-height:1.4}.clearfix:before,.clearfix:after{content:"";display:table}.clearfix:after{clear:both}.clearfix{*zoom:1}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0}img{max-width:100%;display:block;border:0;margin:0 auto}a{text-decoration:none;outline:none;color:#000}*:focus{outline:none}.hide{display:none}@font-face{font-family:"iconfont";src:url('../assets/font/iconfont.eot?1445490903');src:url('../assets/font/iconfont.eot?&1445490903#iefix') format("embedded-opentype"),url('../assets/font/iconfont.woff?1445490825') format("woff"),url('../assets/font/iconfont.ttf?1445490903') format("truetype"),url('../assets/font/iconfont.svg?1445490903#iconfont') format("svg")}.iconfont{font-family:"iconfont" !important;font-size:16px;font-style:normal;text-decoration:none;-webkit-font-smoothing:antialiased;-webkit-text-stroke-width:0.2px;-moz-osx-font-smoothing:grayscale}.yoho-tip{position:absolute;display:none;text-align:center;width:70%;padding:34px 0;top:50%;left:50%;margin-left:-35%;margin-top:-45px;background-color:#000;opacity:0.7;color:#fff;font-size:18px;border:none;-moz-border-radius:10px;-webkit-border-radius:10px;border-radius:10px}.yoho-header{position:relative;background-color:#000;color:#fff;width:100%;overflow:hidden;height:44px;line-height:44px}.yoho-header .nav-back{position:absolute;left:17px;top:14px;width:9px;height:16px;background:url('../../../img/layout/back.png?1445072968') no-repeat;background-size:100% 100%;outline:none}.yoho-header .nav-home{position:absolute;top:14px;right:17px;width:20px;height:20px;background:url('../../../img/layout/home.png?1445072968') no-repeat;background-size:100% 100%;outline:none}.yoho-header .nav-title{position:absolute;margin-left:26px;margin-right:32px;height:100%;font-size:18px;color:#fff;font-weight:bold;top:0;right:0;left:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:center}.yoho-footer{font-size:12px;background-color:#fff}.yoho-footer .op-row{position:relative;padding:0 30px;height:60px;line-height:60px}.yoho-footer .op-row .user-name{text-decoration:underline;margin-left:.3em;margin-right:1em}.yoho-footer .op-row .back-to-top{position:absolute;right:20px}.yoho-footer .op-row .sep-line{margin:0 0.3em}.yoho-footer .copyright{height:60px;line-height:60px;border-top:1px solid #ccc;text-align:center;color:#666;background-color:#eee}.yoho-footer.bottom{position:absolute;width:100%;bottom:0}.good-info{float:left;width:6.9rem;height:12.15rem;margin:0.7rem 0.375rem 0}.good-info .tag-container{height:0.7rem;width:100%}.good-info .tag-container .good-tag{display:block;float:left;height:0.7rem;font-size:0.45rem;text-align:center;line-height:0.8rem;margin-right:0.1rem}.good-info .tag-container .good-tag:last-child{margin-right:0}.good-info .tag-container .new-tag{width:1.5rem;background-color:#78dc7e;color:#fff}.good-info .tag-container .renew-tag{width:2.25rem;background-color:#78dc7e;color:#fff}.good-info .tag-container .sale-tag{width:1.5rem;background-color:#ff575c;color:#fff}.good-info .tag-container .new-festival-tag{width:2.25rem;background-color:#000;color:#fff}.good-info .tag-container .limit-tag{box-sizing:border-box;width:2.25rem;border:1px solid #000;color:#000;line-height:0.6rem}.good-detail-img{position:relative}.good-detail-img img{display:block;width:100%;height:9.15rem}.good-detail-img .few-tag{position:absolute;bottom:0;width:100%;height:0.7rem;background:#ffac5b;font-size:0.45rem;color:#fff;line-height:0.7rem;text-align:center}.good-detail-text .name a{display:block;line-height:1.4rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-decoration:none;font-size:0.55rem;color:#444}.good-detail-text .price{line-height:0.55rem;font-size:0.55rem}.good-detail-text .price .sale-price{color:#d62927}.good-detail-text .price .sale-price.no-price{color:#000}.good-detail-text .price .market-price{margin:0 0 0 0.125rem;color:#b0b0b0;text-decoration:line-through}.filter-mask,.filter-body{position:absolute;left:0;right:0;top:0}.filter-mask{height:100%;background:rgba(0,0,0,0.1)}.filter-body{background:#fff;color:#000;cursor:pointer;font-size:14px;height:440px}.filter-body .classify{width:50%;height:100%;background:#f8f8f8}.filter-body .classify>li{height:60px;line-height:60px}.filter-body .classify>li>*{box-sizing:border-box}.filter-body .classify>li.active{background:#fff}.filter-body .classify>li .shower{padding-left:20px;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.filter-body .classify>li .default{color:#999}.filter-body .classify>li .title{float:left;color:#000}.filter-body .sub-classify{position:absolute;display:none;width:50%;height:440px;padding-left:15px;left:50%;top:0;overflow:auto}.filter-body .sub-classify>li{height:60px;line-height:60px;border-bottom:1px solid #e6e6e6;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.filter-body .sub-classify .chosed-icon{display:none}.filter-body .sub-classify .chosed .chosed-icon{display:inline}.filter-body .active>.sub-classify{display:block}body.passport-body{background-color:#444;font-family:"MicroSoft YaHei",SimSun,sans-serif}body.passport-body *{box-sizing:border-box}.passport-page{text-align:center;padding:0 6%}.passport-page .header{position:relative;height:40px;margin:20px 0 30px}.passport-page .header .go-back{display:block;position:absolute;height:30px;width:30px;top:5px;left:0;background:url('../../../img/passport/go-back.png?1445072968') no-repeat;background-size:100% 100%}.passport-page .header .title{font-size:20px;line-height:40px;color:#fff}.passport-page .header .img-header{width:68px;height:40px;background:url('../../../img/passport/yoho-family.png?1445072968') no-repeat;background-size:100% 100%;margin:0 auto}.passport-page .input-container,.passport-page .select-container{position:relative;width:100%;height:52px;font-size:20px;background-color:#575757;border:1px solid #606060;border-radius:5px;text-align:left;color:#fff}.passport-page .select-container .select{position:absolute;height:50px;padding-right:40px;right:0;color:#fff;background-color:transparent;border:0;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;-moz-appearance:none;-webkit-appearance:none;direction:rtl}.passport-page .select-container .select:focus{outline:0;border:none}.passport-page .select-container .select:-moz-focusring{color:transparent;text-shadow:0 0 0 #fff}.passport-page .select-container .select-title{line-height:2.5;margin-left:15px}.passport-page .select-container .arrow-right{position:absolute;width:13px;height:20px;right:15px;top:16px;background-image:url("http://static.dev.yohobuy.com/img/passport/arrow-right.png");background-size:100% 100%}.passport-page .has-eye,.passport-page .has-clear{padding-right:30px}.passport-page .area-code{position:absolute;left:15px;line-height:2.5}.passport-page .phone-container{padding-left:55px}.passport-page .input{width:100%;line-height:26px;padding:12px 0;padding-left:15px;border-radius:5px;color:#fff;background-color:transparent;border:none}.passport-page .btn{display:block;width:100%;font-size:20px;line-height:2.5;background-color:#36a74c;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;color:#fff}.passport-page .btn.disable{background-color:#a2a2a2}.passport-page .country-select.in-android-uc{width:90px}.passport-page .clear-input{position:absolute;display:none;top:18px;right:10px;width:16px;height:16px;background-image:url("http://static.dev.yohobuy.com/img/passport/clear-input.png");background-size:100% 100%}.passport-page .eye{position:absolute;top:20px;right:10px;width:19px;height:12px;background-image:url("http://static.dev.yohobuy.com/img/passport/eye.png");background-size:100% 100%}.passport-page .eye.close{background-image:url("http://static.dev.yohobuy.com/img/passport/eye-close.png")}.passport-page .row{margin-bottom:10px}.reg-page .register-tip{color:#fff;font-size:15px}.login-page .yoho-logo{position:absolute;height:31px;width:26px;background:url('../../../img/passport/yoho.png?1445072968');background-size:100% 100%;top:10px;left:15px}.login-page .acc-container{padding-left:45px}.login-page .op-container{position:relative;width:100%;margin:20px 0;text-align:left;font-size:16px}.login-page .op-container .go-register{text-decoration:underline;color:#858585}.login-page .op-container .forget-pwd{position:absolute;right:0;text-decoration:underline;color:#858585}.login-page .third-party-login{text-align:left}.login-page .third-party-login>span{font-size:16px;color:#858585}.login-page .third-party-login .tp-link{text-align:center;padding:20px 0}.login-page .third-party-login .tp-link>a{display:inline-block;width:44px;height:44px;margin:0 7px;-moz-border-radius:50%;-webkit-border-radius:50%;border-radius:50%;background-color:#333;background-repeat:no-repeat;background-size:100% 100%}.login-page .third-party-login .tp-link .alipay{background-image:url('../../../img/passport/alipay.png?1445072968')}.login-page .third-party-login .tp-link .weibo{background-image:url('../../../img/passport/weibo.png?1445072968')}.login-page .third-party-login .tp-link .weixin{background-image:url('../../../img/passport/weixin.png?1445072968')}.login-page .third-party-login .tp-link .qq{background-image:url('../../../img/passport/qq.png?1445072968')}.login-page .interational{display:block;width:200px;padding:5px 10px;background-color:#333;border:none;border-radius:20px;margin:0 auto;font-size:16px;color:#d8d8d8}.login-page .login-tip{font-size:16px;position:relative;color:#d8d8d8;margin:15px 0}.login-page .login-tip .info-icon{display:inline-block;height:12px;width:12px;background-image:url('../../../img/passport/info.png?1445072968');background-size:100% 100%}.login-page .mask{position:fixed;display:none;top:0;bottom:0;right:0;left:0;background-color:rgba(0,0,0,0.5)}.login-page .retrive-pwd-ways{position:fixed;display:none;bottom:5px;left:10px;right:10px;font-size:16px}.login-page .retrive-pwd-ways li{background-color:#fff;width:100%;height:40px;line-height:40px;text-align:center}.login-page .retrive-pwd-ways li:nth-child(1){-moz-border-radius-topleft:5px;-webkit-border-top-left-radius:5px;border-top-left-radius:5px;-moz-border-radius-topright:5px;-webkit-border-top-right-radius:5px;border-top-right-radius:5px;border-bottom:1px solid #9f9f9f}.login-page .retrive-pwd-ways li:nth-child(2){-moz-border-radius-bottomleft:5px;-webkit-border-bottom-left-radius:5px;border-bottom-left-radius:5px;-moz-border-radius-bottomright:5px;-webkit-border-bottom-right-radius:5px;border-bottom-right-radius:5px}.login-page .retrive-pwd-ways li:last-child{margin-top:10px;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px}.back-email-success-page .tip{font-size:20px;color:#fff;margin-top:30px}.back-email-success-page .sub-tip,.back-email-success-page .resend{color:#939393;font-size:16px}.back-email-success-page .go-email{margin:20px 0 10px}.back-email-success-page .resend{float:right}.reg-code-page .captcha-tip,.back-code-page .captcha-tip{position:absolute;width:148px;text-align:center;right:15px;top:8px;color:#36a74c;padding:5px 0;border:1px solid #36a74c;border-radius:20px;font-size:16px}.reg-code-page .captcha-tip.disable,.back-code-page .captcha-tip.disable{color:#8f8f8f;border-color:#8f8f8f}.reg-code-page .input-container,.back-code-page .input-container{padding-right:190px}.reg-code-page .text-container,.back-code-page .text-container{color:#fff;font-size:16px;margin-bottom:20px}.reg-code-page .phone,.back-code-page .phone{color:#4ecae8}.reg-code-page .clear-input,.back-code-page .clear-input{right:170px}.time-view-like-share{color:#b0b0b0;line-height:0.95rem;height:0.95rem;font-size:0.6rem}.time-view-like-share .iconfont{vertical-align:9%;margin-right:0.1rem;font-size:0.6rem}.time-view-like-share .like-share-container{display:inline-block;float:right}.time-view-like-share .like-share-container>*{float:left}.time-view-like-share .like-share-container .iconfont{position:relative;height:1.5rem;line-height:1.5rem;display:inline-block;color:#b0b0b0;width:1.5rem;top:-0.35rem;font-size:0.85rem;text-align:center;margin-right:0;outline:none}.time-view-like-share .like-share-container .share-btn{margin-left:0.5rem}.time-view-like-share .like-share-container .like-btn.like{color:#444}.time-view-like-share .like-share-container .collect-btn{margin-left:0.5rem}.time-view-like-share .like-share-container .collect-btn.collected{color:#444}.guang-info{margin-bottom:0.75rem;padding:0 0 0.6rem 0;border-top:1px solid #e0e0e0;border-bottom:1px solid #e0e0e0;background:#fff}.guang-info .info-author{display:block;width:100%}.guang-info .info-author .avatar{float:left;margin-top:0.5rem;width:1.25rem;height:1.25rem;margin-left:0.75rem;-moz-border-radius:50%;-webkit-border-radius:50%;border-radius:50%}.guang-info .info-author .name{float:left;margin-left:0.75rem;padding:0.75rem 0;font-size:0.7rem;color:#000}.guang-info:last-child{margin-bottom:0}.guang-info .info-img{position:relative;width:100%}.guang-info .info-img img{display:block;width:100%}.guang-info .info-match{position:absolute;top:0;left:0;width:3.25rem;height:1.25rem;line-height:1.25rem;font-size:0.7rem;color:#fff;background:#000;text-align:center;text-decoration:none}.guang-info .info-tag{position:absolute;top:0;left:2.625rem;height:1.25rem;width:1.25rem}.guang-info .info-tag.collocation{background:url('../../../img/guang/info/collocation.png?1445072968');background-size:100% 100%}.guang-info .info-tag.fashion-good{background:url('../../../img/guang/info/fashion-good.png?1445072968');background-size:100% 100%}.guang-info .info-tag.fashion-man{background:url('../../../img/guang/info/fashion-man.png?1445072968');background-size:100% 100%}.guang-info .info-tag.tip{background:url('../../../img/guang/info/tip.png?1445072968');background-size:100% 100%}.guang-info .info-tag.topic{background:url('../../../img/guang/info/topic.png?1445072968');background-size:100% 100%}.guang-info .info-deps{margin:0.8rem 0 0 0;padding:0 1rem 0 0.75rem}.guang-info .info-deps .info-title-container{text-decoration:none;color:#000}.guang-info .info-deps .info-title{line-height:1.1rem;color:#000;font-size:1rem;font-weight:bold}.guang-info .info-deps .info-text{margin:0.4rem 0 0 0;line-height:1.15rem;font-size:0.7rem;color:#444}.guang-info .info-deps .time-view-like-share{margin-top:0.4rem}.ps-list-page{background-color:#f0f0f0}.ps-list-page .nav-tab,.ps-list-page .ps-content{width:100%}.ps-list-page .nav-tab{height:1.5rem;padding:0.25rem 0;background-color:#fff}.ps-list-page .star-nav,.ps-list-page .plus-nav{box-sizing:border-box;float:left;width:50%;height:1.5rem;line-height:1.5rem;font-size:16px;text-align:center;color:#ccc}.ps-list-page .star-nav.focus,.ps-list-page .plus-nav.focus{color:#000}.ps-list-page .star-nav{border-right:1px solid #ccc}.ps-list-page .plus-star-row{margin-bottom:0.25rem}.ps-list-page .plus-star-row:last-child{margin-bottom:0}.ps-list-page .plus-star-row>a{display:block;height:7.75rem}.ps-list-page .content.hide{display:none}.ps-list-page .swiper-container{height:7.75rem}.ps-list-page .swiper-pagination-bullet-active{background:#fff}.ps-list-page .brand-deps{height:1rem;line-height:1rem;padding-left:0.25rem;font-size:14px;background:#fff;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ps-detail-page{background-color:#f0f0f0}.ps-detail-page .ps-block{margin-bottom:0.75rem;border-bottom:1px solid #e0e0e0;border-top:1px solid #e0e0e0;background-color:#fff}.ps-detail-page .ps-block.header,.ps-detail-page .ps-block.related-infos{border-top:none}.ps-detail-page .ps-block.related-infos{margin-bottom:0;background-color:#f0f0f0}.ps-detail-page .header{position:relative}.ps-detail-page .header .banner{width:100%;height:7.75rem}.ps-detail-page .header .logo{position:absolute;border:1px solid #b5b5b5;height:4.2rem;width:4.2rem;top:5.65rem;left:1.25rem}.ps-detail-page .header .header-content{padding:0 0.75rem}.ps-detail-page .header .name-islike-container{padding-left:6.2rem;margin-top:0.6rem;font-size:0.85rem}.ps-detail-page .header .name{color:#000;height:1.025rem;width:7.375rem}.ps-detail-page .header .brand-islike{position:relative;float:right;color:#b0b0b0;height:1.5rem;width:1.5rem;line-height:1.5rem;text-align:center;top:-0.25rem;left:-0.25rem}.ps-detail-page .header .brand-islike.like{color:#f00}.ps-detail-page .intro{margin-top:1.225rem;font-size:0.6rem;color:#444;line-height:150%}.ps-detail-page .more-intro{padding:0.75rem 0;font-size:0.7rem;line-height:104%;color:#bbb;float:right}.ps-detail-page .more-intro .icon{display:inline-block;height:100%;width:1rem;-moz-transition:-moz-transform 0.1s ease-in;-o-transition:-o-transform 0.1s ease-in;-webkit-transition:-webkit-transform 0.1s ease-in;transition:transform 0.1s ease-in}.ps-detail-page .more-intro.spread .icon{-moz-transform:rotate(-180deg);-ms-transform:rotate(-180deg);-webkit-transform:rotate(-180deg);transform:rotate(-180deg);-moz-transform:scale(0.83, 0.83);-ms-transform:scale(0.83, 0.83);-webkit-transform:scale(0.83, 0.83);transform:scale(0.83, 0.83)}.ps-detail-page .new-arrival{padding-left:0 0.75rem}.ps-detail-page .new-arrival .new-arrival-content{padding:0.5rem 0.35rem}.ps-detail-page .new-arrival .more-goods-container{height:2.25rem;padding:0 0.75rem;border-top:1px solid #e0e0e0;color:#000}.ps-detail-page .new-arrival .mg-text{height:100%;line-height:2.25rem;color:#000;text-decoration:none;display:block;font-size:16px}.ps-detail-page .new-arrival .more-prods{float:right;color:#b0b0b0}.ps-detail-page .new-arrival .new-arrival-header .more-prods{margin-right:0.75rem;margin-top:0.25rem}.ps-detail-page .new-arrival-header{padding-left:5.55rem;padding-top:0.825rem}.ps-detail-page .new-arrival-header .header-text{font-size:0.7rem;color:#000;line-height:122%;font-weight:bold}.ps-detail-page .related-info-title{margin:0 0.725rem;border:1px solid #e0e0e0;border-bottom:none;line-height:1.8rem;font-size:0.75rem;color:#b0b0b0;text-align:center;background-color:#fff}.ps-detail-page .related-infos-container .guang-info:first-child{margin-top:0}.guang-list-page .editor-header{margin-bottom:0.75rem;padding-top:0.9rem;padding-bottom:1rem;background:#fff;border-bottom:1px solid #e0e0e0}.guang-list-page .avatar{float:left;margin-left:0.75rem}.guang-list-page .avatar img{width:2.5rem;height:2.5rem;-moz-border-radius:50%;-webkit-border-radius:50%;border-radius:50%}.guang-list-page .text{float:left;margin-left:0.8rem;width:11.875rem}.guang-list-page .text .name{font-size:0.8rem;line-height:1rem}.guang-list-page .text .info{margin-top:0.15rem;color:#bdbdbf;font-size:0.6rem;line-height:0.8rem}.guang-list-page .swiper-container{width:100%;height:7.75rem}.guang-list-page .swiper-container img{height:100%;width:100%}.guang-list-page .swiper-container .swiper-pagination{bottom:0;left:0;width:100%}.guang-list-page .swiper-container .swiper-pagination-bullet-active{background:#fff}.guang-list-page .guang-nav{background-color:#fff;overflow:hidden;height:2rem}.guang-list-page .guang-nav-item{float:left;color:#ccc;font-size:0.7rem;padding:0 0.55rem;line-height:2rem}.guang-list-page .guang-nav-item.focus{color:#000}.guang-list-page .info-list.hide{display:none}.guang-list-page .load-more-info{width:100%;height:1.75rem;line-height:1.75rem;text-align:center;font-size:14px;overflow:hidden}.guang-list-page .load-more-info .status.hide{display:none}.clothes-sprite{background-image:url('../../../img/guang/clothes-s7f658d7d2c.png');background-repeat:no-repeat}.guang-detail-page #wrapper.ios{position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.guang-detail-page .author{border-bottom:1px solid #e0e0e0;background:#fff}.guang-detail-page .author>a{display:block;height:100%}.guang-detail-page .author .avatar{float:left;margin-top:0.5rem;margin-left:0.75rem;width:1.25rem;height:1.25rem;-moz-border-radius:50%;-webkit-border-radius:50%;border-radius:50%}.guang-detail-page .author .name{float:left;font-size:0.7rem;color:#000;padding:0.75rem 0;margin-left:0.75rem}.guang-detail-page .author .intro{float:left;font-size:0.7rem;color:#b0b0b0;padding:0.75rem 0;margin-left:0.75rem}.guang-detail-page .post-title{padding:0.4rem 0 0.65rem 0.75rem;background:#fff}.guang-detail-page .post-title .title{line-height:1.5rem;font-size:1rem;color:#000;font-weight:bold}.guang-detail-page .text-block{padding:0.5rem 0.75rem;line-height:1.15rem;font-size:0.7rem;background:#fff;color:#444}.guang-detail-page .big-img-block{padding-bottom:0.125rem;background:#fff}.guang-detail-page .big-img-block img{width:100%;height:16rem}.guang-detail-page .small-img-block{padding-bottom:0.2rem;background:#fff}.guang-detail-page .small-img-block img{float:right;width:7.875rem;height:10.5rem}.guang-detail-page .small-img-block img:first-child{float:left}.guang-detail-page .collocation-block{background:#fff}.guang-detail-page .collocation-block .good-list{padding-left:0.375rem}.guang-detail-page .thumb-container{padding-top:0.75rem;padding-left:0.75rem;background:transparent url('../../../img/guang/thumb-container-bg.png?1445072968') no-repeat;background-size:200% 100%}.guang-detail-page .thumb-container.fixed-top{position:fixed;left:0;right:0;top:0}.guang-detail-page .thumb-container.fixed-bottom{position:fixed;left:0;right:0;bottom:0;background:rgba(255,255,255,0.9)}.guang-detail-page .thumb-container.absolute{position:absolute;left:0;right:0}.guang-detail-page .thumb-container.static{position:static}.guang-detail-page .thumb-container.hide{display:none}.guang-detail-page .clothe-type{position:absolute;right:0.15rem;bottom:0.85rem;width:20px;height:20px;-moz-border-radius:50%;-webkit-border-radius:50%;border-radius:50%}.guang-detail-page .clothe-type.bag{background:url('../../../img/guang/clothes-se45f5825d0.png') 0 0 no-repeat;-moz-background-size:20px auto;-o-background-size:20px auto;-webkit-background-size:20px auto;background-size:20px auto;display:block;background-color:#fff;background-size:100%}.guang-detail-page .clothe-type.cloth{background:url('../../../img/guang/clothes-se45f5825d0.png') 0 -20px no-repeat;-moz-background-size:20px auto;-o-background-size:20px auto;-webkit-background-size:20px auto;background-size:20px auto;display:block;background-color:#fff;background-size:100%}.guang-detail-page .clothe-type.dress{background:url('../../../img/guang/clothes-se45f5825d0.png') 0 -40px no-repeat;-moz-background-size:20px auto;-o-background-size:20px auto;-webkit-background-size:20px auto;background-size:20px auto;display:block;background-color:#fff;background-size:100%}.guang-detail-page .clothe-type.headset{background:url('../../../img/guang/clothes-se45f5825d0.png') 0 -60px no-repeat;-moz-background-size:20px auto;-o-background-size:20px auto;-webkit-background-size:20px auto;background-size:20px auto;display:block;background-color:#fff;background-size:100%}.guang-detail-page .clothe-type.lamp{background:url('../../../img/guang/clothes-se45f5825d0.png') 0 -80px no-repeat;-moz-background-size:20px auto;-o-background-size:20px auto;-webkit-background-size:20px auto;background-size:20px auto;display:block;background-color:#fff;background-size:100%}.guang-detail-page .clothe-type.pants{background:url('../../../img/guang/clothes-se45f5825d0.png') 0 -100px no-repeat;-moz-background-size:20px auto;-o-background-size:20px auto;-webkit-background-size:20px auto;background-size:20px auto;display:block;background-color:#fff;background-size:100%}.guang-detail-page .clothe-type.shoe{background:url('../../../img/guang/clothes-se45f5825d0.png') 0 -120px no-repeat;-moz-background-size:20px auto;-o-background-size:20px auto;-webkit-background-size:20px auto;background-size:20px auto;display:block;background-color:#fff;background-size:100%}.guang-detail-page .clothe-type.swim-suit{background:url('../../../img/guang/clothes-se45f5825d0.png') 0 -140px no-repeat;-moz-background-size:20px auto;-o-background-size:20px auto;-webkit-background-size:20px auto;background-size:20px auto;display:block;background-color:#fff;background-size:100%}.guang-detail-page .clothe-type.under{background:url('../../../img/guang/clothes-se45f5825d0.png') 0 -160px no-repeat;-moz-background-size:20px auto;-o-background-size:20px auto;-webkit-background-size:20px auto;background-size:20px auto;display:block;background-color:#fff;background-size:100%}.guang-detail-page .clothe-type.watch{background:url('../../../img/guang/clothes-se45f5825d0.png') 0 -180px no-repeat;-moz-background-size:20px auto;-o-background-size:20px auto;-webkit-background-size:20px auto;background-size:20px auto;display:block;background-color:#fff;background-size:100%}.guang-detail-page .thumb{display:inline-block;position:relative;margin-right:0.55rem;padding-bottom:0.75rem}.guang-detail-page .thumb:last-child{margin-right:0}.guang-detail-page .thumb.focus .thumb-img{border-color:#000}.guang-detail-page .thumb-img{height:3.35rem;width:2.4rem;border:1px solid transparent}.guang-detail-page .related-reco-block{background:#fff;padding-left:0.375rem;border-top:1px solid #e0e0e0}.guang-detail-page .related-reco-block h2{margin-left:-0.375rem;line-height:2.6rem;font-size:0.75rem;color:#b0b0b0;text-align:center}.guang-detail-page .related-reco-block .one-good{padding-left:0.375rem;padding-right:0.75rem;margin-bottom:0.5rem}.guang-detail-page .related-reco-block .one-good .thumb{float:left;height:3.35rem;width:2.4rem}.guang-detail-page .related-reco-block .one-good .content-container{padding-left:3rem;height:3.35rem;line-height:1;font-size:0.6rem}.guang-detail-page .related-reco-block .one-good .content-container>p{height:50%;line-height:2.35rem}.guang-detail-page .related-reco-block .one-good .content-container span{display:inline-block;line-height:0.6rem}.guang-detail-page .related-reco-block .one-good .content-container .price{line-height:1.175rem}.guang-detail-page .related-reco-block .one-good .sale-price{color:#d62927;line-height:1.5}.guang-detail-page .related-reco-block .one-good .sale-price.no-price{color:#000}.guang-detail-page .related-reco-block .one-good .market-price{margin-left:0.125rem;color:#b0b0b0;text-decoration:line-through;line-height:1.5}.guang-detail-page .related-reco-block .one-good .check-detail{display:inline-block;color:#000;border:1px solid;border-radius:2px;float:right;padding:0 5px;line-height:1.5}.guang-detail-page .related-brand{margin-top:0.75rem}.guang-detail-page .related-brand h2{margin:0 0.725rem;background:#fff;border:1px solid #e0e0e0;border-bottom:none;line-height:1.8rem;font-size:0.75rem;color:#b0b0b0;text-align:center}.guang-detail-page .related-brand .brand-list{border-top:1px solid #e0e0e0;border-bottom:1px solid #e0e0e0;padding:0.75rem 0 0.75rem;background:#fff}.guang-detail-page .related-brand .brand{float:left;width:3.95rem;height:3.2rem;border-right:1px solid #e0e0e0;margin-bottom:0.25rem}.guang-detail-page .related-brand .brand a{display:block}.guang-detail-page .related-brand .brand:nth-child(4n){border-right:none}.guang-detail-page .related-brand .brand-logo{display:table-cell;width:3.95rem;height:2.35rem;vertical-align:middle}.guang-detail-page .related-brand .brand-logo img{display:block;max-width:3.95rem;max-height:2.35rem;vertical-align:middle;margin:0 auto}.guang-detail-page .related-brand .brand-name{margin:0.25rem 0 0 0;line-height:0.6rem;font-size:0.45rem;color:#babac2;text-align:center;text-decoration:none;border-bottom:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.guang-detail-page .related-tag{position:relative;padding-bottom:0.75rem;border-bottom:1px solid #e0e0e0;background:#fff}.guang-detail-page .related-tag .tag-bg{position:absolute;height:1rem;width:1rem;background:url('../../../img/guang/tag.png?1445072968') no-repeat;background-size:100% 100%;top:0.875rem;left:0.5rem}.guang-detail-page .related-tag .tag-list{margin-left:1.25rem}.guang-detail-page .related-tag li{float:left;margin-top:0.775rem;margin-left:0.775rem}.guang-detail-page .related-tag a{height:1.25rem;line-height:1.25rem;font-size:0.75rem;color:#000;text-decoration:underline;white-space:nowrap}.guang-detail-page .related-info{margin-top:0.75rem}.guang-detail-page .related-info h2{margin:0 0.725rem;background:#fff;border:1px solid #e0e0e0;border-bottom:none;line-height:1.8rem;font-size:0.75rem;color:#b0b0b0;text-align:center}.guang-detail-page .related-info .info-list{background:#fff;padding-bottom:0.75rem;border-top:1px solid #e0e0e0}.guang-detail-page .related-info li{padding-top:0.75rem;margin-bottom:0.25rem}.guang-detail-page .related-info li a{display:block}.guang-detail-page .related-info li img{float:left;margin-left:0.75rem;width:4.55rem;height:2.85rem}.guang-detail-page .related-info li img.square{height:4.55rem}.guang-detail-page .related-info .title,.guang-detail-page .related-info .publish-time{float:left;width:9rem;margin-left:0.75rem;line-height:1rem;color:#444;font-size:0.7rem}.guang-detail-page .related-info .publish-time{font-size:0.45rem;margin-top:0;color:#b0b0b0}.guang-detail-page .related-info .publish-time .iconfont{font-size:0.45rem}.header-download{position:relative;height:5.3rem;padding:1.2rem 0 0;overflow:hidden}.header-download .download-bg{position:absolute;left:0;top:0;width:100%;z-index:-1}.header-download .yoho-logo{height:1.425rem;background:url('../../../img/app-logo.png?1445072968') no-repeat center center;background-size:auto 100%}.header-download p{line-height:1.2rem;font-size:0.7rem;color:#fff;text-align:center}.header-download .download-btn{display:block;margin:0.45rem auto 0;width:7.35rem;height:1.6rem;line-height:1.6rem;border:0.075rem solid #fff;font-size:0.9rem;text-align:center;color:#fff}.header-download .close-btn{position:absolute;top:0.425rem;right:0.325rem;width:1.25rem;height:1.25rem;background:url('../../../img/close-icon.png?1445072968');background-size:100% 100%}.banner-top{position:relative}.banner-top .swiper-pagination{position:absolute;left:0;right:0;bottom:0.5rem;text-align:center}.banner-top .swiper-pagination .pagination-inner{display:inline-block}.banner-top .swiper-pagination .pagination-inner span{display:inline-block;width:0.35rem;height:0.35rem;background:#fff;opacity:0.5;margin:0 0.225rem;border-radius:50%}.banner-top .swiper-pagination .pagination-inner span.swiper-active-switch{opacity:1}.banner-swiper{height:7.725rem;overflow:hidden}.banner-swiper ul{position:relative;height:100%}.banner-swiper ul li{float:left;height:100%}.banner-swiper ul li img{width:100%;height:100%}.banner-center{margin:0.75rem 0 0;height:5rem;overflow:hidden}.banner-center img{display:block;width:100%}.banner-bottom{margin:0.75rem 0 0;height:4rem;overflow:hidden}.banner-bottom img{display:block;width:100%}.side-nav{display:none;background:#fff;position:fixed;top:0;right:2.5rem;bottom:0;left:0;z-index:1;overflow:hidden}.side-nav ul{background:#f0f0f0}.side-nav li{position:relative;height:3.2rem;line-height:3.2rem;border-bottom:1px solid #e0e0e0;background:#fff}.side-nav li a{display:block;height:100%;padding-left:2.75rem;color:#444;font-size:0.6rem}.side-nav li .nav-icon,.side-nav li .nav-img{position:absolute;width:1.5rem;height:1.5rem;top:50%;margin-top:-0.75rem;left:0.6rem}.side-nav li .enter-subnav{position:absolute;right:0.75rem;top:0;bottom:0;font-size:0.9rem;color:#b0b0b0;font-weight:lighter}.side-nav li em{margin-right:0.25rem;font-weight:bold;font-size:0.85rem}.side-nav li.boys i{background:url('../../../img/side-nav/boys.png?1445072968') no-repeat left center;background-size:100% 100%}.side-nav li.girls i{background:url('../../../img/side-nav/girls.png?1445072968') no-repeat left center;background-size:100% 100%}.side-nav li.kids i{background:url('../../../img/side-nav/kids.png?1445072968') no-repeat left center;background-size:100% 100%}.side-nav li.life i{background:url('../../../img/side-nav/life.png?1445072968') no-repeat left center;background-size:100% 100%}.side-nav li.new{margin:0.475rem 0 0;border-top:1px solid #e0e0e0}.side-nav li.new i{background:url('../../../img/side-nav/new.png?1445072968') no-repeat left center;background-size:100% 100%}.side-nav li.guang .nav-icon,.side-nav li.trendfinder .nav-icon{background:url('../../../img/side-nav/guang.png?1445072968') no-repeat left center;background-size:100% 100%}.side-nav.on{display:block}.sub-nav{position:fixed;top:0;right:2.5rem;left:0;bottom:0;background:#fff !important;z-index:2;-moz-transform:translateX(100%);-ms-transform:translateX(100%);-webkit-transform:translateX(100%);transform:translateX(100%);-moz-transition:-moz-transform 0.3s;-o-transition:-o-transform 0.3s;-webkit-transition:-webkit-transform 0.3s;transition:transform 0.3s}.sub-nav li{height:2.725rem;line-height:2.725rem;border:none}.sub-nav li a{position:relative;display:block;margin:0 0 0 0.75rem;padding-left:1.25rem;border-bottom:1px solid #e0e0e0;font-size:0.9rem;z-index:2}.sub-nav li .nav-point{position:absolute;left:0rem;font-size:0.4rem;color:#f0f0f0}.sub-nav li em{font-weight:normal;font-size:0.9rem}.sub-nav li:hover .nav-point,.sub-nav li.current .nav-point{color:#3e3e3e}.sub-nav li:first-child{height:2.2rem;line-height:2.2rem;background:#3e3e3e}.sub-nav li:first-child a{color:#fff;border-bottom:none;padding-left:2.75rem}.sub-nav li:first-child .nav-back{position:absolute;left:0}.sub-nav.show{-moz-transform:translateX(0);-ms-transform:translateX(0);-webkit-transform:translateX(0);transform:translateX(0);-moz-transition:-moz-transform 0.3s;-o-transition:-o-transform 0.3s;-webkit-transition:-webkit-transform 0.3s;transition:transform 0.3s}.floor-header{margin:0.725rem 0.75rem 0;background:#fff;border:1px solid #e0e0e0;border-bottom:none;height:1.75rem;line-height:1.75rem;text-align:center;font-size:0.75rem;color:#b1b1b1}.floor-header-more{position:relative;height:2.475rem;line-height:2.475rem;margin:0.725rem 0 0;background:#fff;border-top:1px solid #e0e0e0;text-align:center;font-size:0.8rem;color:#444}.floor-header-more .more-btn{position:absolute;right:0.75rem;top:0;bottom:0;color:#b0b0b0}.hot-brands{background:#fff;border-bottom:1px solid #e0e0e0}.hot-brands a{display:block;text-decoration:none;height:100%}.hot-brands .brand{float:left;width:3.95rem;height:4.35rem;border-right:1px solid #e0e0e0;border-top:1px solid #e0e0e0;overflow:hidden}.hot-brands .brand .brand-logo{width:100%;height:3.2rem;line-height:3.2rem;text-align:center;font-size:0}.hot-brands .brand .brand-logo img{vertical-align:middle;max-width:100%;max-height:100%}.hot-brands .brand .brand-name{line-height:1.1rem;font-size:0.45rem;color:#babac2;text-align:center;text-decoration:none;border-bottom:none;overflow:hidden;text-overflow:ellipsis;-o-text-overflow:ellipsis;white-space:nowrap}.hot-brands .brand:nth-child(5n){border-right:none}.hot-brands .more{float:left;width:7.925rem;height:4.35rem;border-top:1px solid #e0e0e0}.hot-brands .more a{display:block;width:100%;height:100%;background:url('../../../img/more-brand.png?1445400172') no-repeat;background-size:100% 100%}.brands-swiper{background:#fff;width:100%;height:3.5rem;margin-bottom:0.7rem;overflow:hidden}.brands-swiper .brands-list{position:relative;height:3.5rem}.brands-swiper .brands-list li{float:left;padding-left:5%;width:21.875%;height:3.5rem}.brands-swiper .brands-list li a{position:relative;display:block;width:100%;height:100%;line-height:3.5rem;font-size:0}.brands-swiper .brands-list li img{max-width:100%;max-height:100%;vertical-align:middle}.brands-swiper .brands-list li .brands-title{position:absolute;left:0.2rem;right:0.2rem;bottom:0.2rem;height:0.7rem;line-height:0.7rem;text-align:center;font-size:0.45rem;color:#444;background:rgba(255,255,255,0.5);overflow:hidden;text-overflow:ellipsis;-o-text-overflow:ellipsis;white-space:nowrap}.fine-brands{background:#fff;border-top:1px solid #e0e0e0}.fine-brands a{display:block;text-decoration:none}.fine-brands .brand{float:left;width:3.95rem;height:4.35rem;border-right:1px solid #e0e0e0;border-bottom:1px solid #e0e0e0}.fine-brands .brand .brand-logo{display:table-cell;width:3.95rem;height:3.25rem;vertical-align:middle}.fine-brands .brand .brand-logo img{display:block;max-width:3.95rem;max-height:3.25rem;vertical-align:middle;margin:0 auto}.fine-brands .brand .brand-name{line-height:1.1rem;font-size:0.45rem;color:#babac2;text-align:center;text-decoration:none;border-bottom:none;overflow:hidden}.fine-brands .brand:nth-child(4n){border-right:none}.creative-life{background:#fff}.creative-life .banner{display:block}.creative-life .banner img{width:100%;height:10.1rem}.creative-life .classify-list>li{float:left;width:5.3rem;height:4.8rem;border-bottom:1px solid #e0e0e0;border-right:1px solid #e0e0e0}.creative-life .classify-logo{display:table-cell;width:5.3rem;height:3.5rem;vertical-align:middle}.creative-life .classify-logo img{display:block;max-width:5.3rem;max-height:3.5rem;vertical-align:middle;margin:0 auto}.creative-life .classify-name{line-height:1.3rem;font-size:0.65rem;color:#000;text-align:center;text-decoration:none;border-bottom:none;overflow:hidden}.creative-life .classify:nth-child(3n){border-right:0}.plus-star img{display:block;width:100%;height:4.95rem}.h5-footer{font-size:12px;background-color:#fff;z-index:100}.h5-footer a{color:#000}.h5-footer .user-name{text-decoration:underline}.h5-footer .op-row{position:relative;padding:0 0.75rem;height:1.5rem;line-height:1.5rem}.h5-footer .back-to-top{position:absolute;right:0.5rem}.h5-footer .copyright{height:1.5rem;line-height:1.5rem;text-align:center;color:#666;border-top:1px solid #ccc;background-color:#eee}.maybe-like{background:#fff;padding-left:0.375rem;border-top:1px solid #ccc;border-bottom:1px solid #ccc;margin-top:0.75rem}.maybe-like .title{height:2.6rem;line-height:2.6rem;text-align:center;color:#dadada}.maybe-like .icon{display:inline-block;height:0.775rem;width:0.775rem;background:url('../../../img/up-icon.png?1445072968') no-repeat;background-size:100% 100%}.maybe-like .maybe-like-nav{width:100%;height:1.5rem;padding:0.25rem 0;background-color:#fff}.maybe-like .maybe-like-nav-item{box-sizing:border-box;float:left;width:50%;height:1.5rem;line-height:1.5rem;text-align:center;color:#ccc;border-right:1px solid #ccc}.maybe-like .maybe-like-nav-item.focus{color:#000}.maybe-like .load-more-info{width:100%;height:14.25rem;line-height:1.75rem;text-align:center;font-size:14px;overflow:hidden}.maybe-like .load-more-info .status.hide{display:none}.icons-wrapper{box-sizing:border-box;padding:0.75rem 0 0.4rem;background:#fff;border-bottom:1px solid #e0e0e0}.icons-item{float:left;margin-bottom:0.25rem;width:25%;height:3.65rem;text-align:center}.imagebar{margin:0 auto;display:flex;display:-webkit-flex;width:2.45rem;height:2.45rem;overflow:hidden;align-items:center;justify-content:center}.imagebar img{max-width:80%;max-height:80%}.linkbar{display:block;line-height:1.1rem;font-size:0.6rem;color:#444}.trend-coll-wrapper{background:#fff;height:16.125rem;border-bottom:1px solid #e0e0e0}.trend-coll-header{position:relative;widows:100%}.trend-coll-header .trend-coll-title{width:100%;height:2.5rem;line-height:2.5rem;text-align:center;font-size:0.85rem;color:#747474}.trend-coll-header .more{position:absolute;right:0.6rem;top:0.5rem}.trend-coll-content{padding:0 0.375rem}.trend-coll-content .lspan{float:left;margin:0 0.375rem}.trend-coll-content .rspan{float:right;margin:0 0.375rem}.lspanimg{display:block;float:right;width:6.875rem;height:6.875rem}.rspanimg{display:block;float:right;width:6.875rem;height:6.875rem}.trend-coll-tail{box-sizing:border-box;width:100%;height:6.675rem;clear:both}.recommend-title{widows:100%;height:2.5rem;line-height:2.5rem;text-align:center;font-size:0.85rem}.recommend-swiper{width:100%;height:3.5rem;overflow:hidden}.recommend-list{position:relative}.recommend-list .recommend-item{float:left;padding-left:0.75rem;width:3.5rem;height:3.5rem}.recommend-list .recommend-item a{display:block;width:100%;height:100%}.recommend-list .recommend-item a img{width:100%;height:100%}.trend-topic-wrapper{background:#fff}.trend-topic-content{position:relative;width:100%;border-bottom:1px solid #e0e0e0}.trend-topic-content .swiper-pagination{position:absolute;left:0;right:0;bottom:0.55rem;text-align:center}.trend-topic-content .swiper-pagination .pagination-inner{display:inline-block}.trend-topic-content .swiper-pagination span{float:left;width:0.4rem;height:0.4rem;margin:0 0.2rem;background:#efefef;border-radius:50%}.trend-topic-content .swiper-pagination span.swiper-active-switch{background:#b0b0b0}.trend-topic-swiper{height:13.35rem;overflow:hidden}.trend-topic-swiper ul{position:relative}.trend-topic-swiper ul li{float:left;height:13.35rem}.trend-topic-swiper ul li .img-box{display:flex;display:-webkit-flex;height:9rem;margin:0 0.75rem;align-items:center;justify-content:center}.trend-topic-swiper ul li .img-box img{max-width:100%;max-height:100%}.trend-topic-swiper ul li .item-content{margin:0.5rem 0.75rem 0}.trend-topic-swiper ul li .item-content .title{line-height:1.3rem;font-size:0.75rem;color:#000}.trend-topic-swiper ul li .item-content .time{margin:0.4rem 0 0;line-height:0.6rem;color:#afafaf;font-size:0.45rem}.trend-topic-swiper ul li .item-content .time .time-icon{margin-right:0.2rem;font-size:0.35rem}.category-swiper{position:relative;height:10.075rem;overflow:hidden}.category-swiper ul li{float:left;width:100%}.category-swiper ul li a,.category-swiper ul li img{display:block;width:100%;height:100%}.category-swiper .swiper-pagination{position:absolute;left:0;right:0;bottom:0.5rem;text-align:center}.category-swiper .swiper-pagination .pagination-inner{display:inline-block}.category-swiper .swiper-pagination .pagination-inner span{display:inline-block;width:0.35rem;height:0.35rem;background:#fff;opacity:0.5;margin:0 0.225rem;border-radius:50%}.category-swiper .swiper-pagination .pagination-inner span.swiper-active-switch{opacity:1}.goods-category .category-list{background:#f5f7f6;height:9.575rem}.goods-category .category-list li{float:left;width:4.775rem;height:4.525rem;padding:0.25rem 0 0;border-left:1px solid #e0e0e0;border-bottom:1px solid #e0e0e0}.goods-category .category-list li .first-show{display:none}.goods-category .category-list li .img-box{display:flex;display:-webkit-flex;height:3.5rem;align-items:center;justify-content:center}.goods-category .category-list li .img-box img{max-width:100%;max-height:100%}.goods-category .category-list li .category-name{line-height:0.8rem;font-size:0.5rem;color:#444;text-align:center}.goods-category .category-list li:first-child{width:6.325rem;height:8.375rem;border-left:none;padding:1.2rem 0 0 0}.goods-category .category-list li:first-child .first-show{display:block;line-height:1.1rem;font-size:0.75rem;color:#444;text-align:center}.goods-category .category-list li:first-child .img-box{height:5.5rem}.goods-category .category-list li:first-child .category-name{line-height:1rem;font-size:0.55rem}.hot-category{margin:0.75rem 0 0;border-top:1px solid #e0e0e0}.hot-category .category-banner{height:4.95rem}.hot-category .category-banner img{display:block;width:100%;height:100%}.hot-category .category-list{background:#fff;border-top:1px solid #e0e0e0}.hot-category .category-list li{float:left;width:3.95rem;height:4.35rem;border-bottom:1px solid #e0e0e0;border-left:1px solid #e0e0e0}.hot-category .category-list li .img-box{width:100%;height:3.45rem;text-align:center;vertical-align:middle}.hot-category .category-list li .img-box img{max-width:100%;max-height:100%;vertical-align:middle}.home-header{height:2.2rem;line-height:2.2rem;background-image:url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzMyMzIzMiIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzQxNDE0MSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==');background-size:100%;background-image:-webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #323232),color-stop(100%, #414141));background-image:-moz-linear-gradient(#323232,#414141);background-image:-webkit-linear-gradient(#323232,#414141);background-image:linear-gradient(#323232,#414141);position:relative}.home-header .iconfont{color:#fff}.home-header .nav-btn{position:absolute;left:0.8rem;top:0;bottom:0;z-index:2}.home-header .logo{display:block;margin:0 auto;width:5.2rem;height:2.175rem;background:url('../../../img/yohologo02.png?1445072968') no-repeat center center;background-size:100%}.home-header .logo.animate{background:url('../../../img/yohologo01.png?1445072968') no-repeat center center;background-size:100%}.home-header .search-btn{position:absolute;right:0.8rem;top:0;bottom:0}.home-header .search-btn a{color:#fff}.girls-wrap .home-header{background:#FF88AE}.kids-wrap .logo{font-style:italic;font-family:"helvetica","Arial","榛戜綋";font-weight:bold;color:#fff}.mobile-container{width:100%;overflow:hidden}.mobile-wrap{position:relative;z-index:2;background:#f0f0f0;-moz-transition:-moz-transform 0.3s;-o-transition:-o-transform 0.3s;-webkit-transition:-webkit-transform 0.3s;transition:transform 0.3s}.mobile-wrap.menu-open{-moz-transform:translateX(13.5rem);-ms-transform:translateX(13.5rem);-webkit-transform:translateX(13.5rem);transform:translateX(13.5rem);-moz-transition:-moz-transform 0.3s;-o-transition:-o-transform 0.3s;-webkit-transition:-webkit-transform 0.3s;transition:transform 0.3s}.overlay{display:none;position:absolute;top:0;left:0;right:0;bottom:0;background:#000;opacity:0.3;z-index:99}.overlay.show{display:block}.login-tip{display:none}.brand-page .newbrand-search{width:93.75%;height:30px;padding:7px 3.125%;background-color:#f8f8f8;left:0;z-index:10}.brand-page .newbrand-search .search-box{position:relative;height:30px;background-color:#FFF;border-radius:15px;padding:0 16px 0 26px}.brand-page .newbrand-search .search-box .search-input{width:100%;height:30px;border:0}.brand-page .newbrand-search .search-box .search-icon{position:absolute;font-size:12px;top:16px;left:24px}.brand-page .hot-brand{margin:0.75rem 0 0}.brand-page .hot-brand .hot-brand-list{background:#fff}.brand-page .hot-brand .hot-brand-list li{float:left;width:3.95rem;height:3.95rem}.brand-page .hot-brand .hot-brand-list li .img-box{width:100%;height:100%}.brand-page .brand-list{width:100%}.brand-page .brand-list .title-bar{width:100%;background:#eeeeee;color:#999999;font-weight:bold;position:relative}.brand-page .brand-list .title-bar h2{width:100%;height:25px;line-height:25px;font-size:17px;border-top:1px solid #e6e6e6;background-color:#f4f4f4}.brand-page .brand-list p{cursor:pointer;height:25px;padding-right:10px}.brand-page .brand-list p a{display:block;font-size:17px;border-bottom:1px solid #f3f3f3;border-top:1px solid #f9f9f9}.brand-page .brand-list p a i{position:relative;top:1px;color:#ff0000;padding-left:16px}.brand-page .right-bar{width:30px;top:120px !important;overflow:hidden;position:fixed;right:1px;border-radius:6px;background:rgba(0,0,0,0.8)}.brand-page .right-bar b{height:16px;line-height:14px;text-align:center;display:block;color:#999999;font-weight:bold}.brand-page .con{padding-top:5px}.category-page{font-size:0.75rem}.category-page .search-input{position:relative;background-color:#f8f8f8;padding:0.325rem 0.5rem}.category-page .search-input p{box-sizing:border-box;width:100%;height:1.5rem;line-height:1.5rem;border:none;padding-left:1.325rem;border-radius:1.5rem;font-size:0.75rem;background:#fff;color:#999}.category-page .search-icon{position:absolute;top:0;bottom:0;left:1.075rem;line-height:2.15rem;color:#999}.category-page .category-nav{height:1.775rem;border-bottom:1px solid #e6e6e6}.category-page .category-nav li{display:block;box-sizing:border-box;float:left;height:100%;line-height:1.775rem;width:25%;text-align:center;border-right:1px solid #e6e6e6;color:#999}.category-page .category-nav li:last-child{border-right:none}.category-page .category-nav li.focus{color:#000}.category-page .content.hide{display:none}.category-page .primary-level{float:left;box-sizing:border-box;width:40%;background:#f8f8f8}.category-page .primary-level>li{height:1.725rem;line-height:1.725rem;padding-left:0.8rem}.category-page .primary-level>li.focus{background-color:#fff}.category-page .sub-level-container{float:left;box-sizing:border-box;padding-left:0.5rem;background:#fff;width:60%}.category-page .sub-level{width:100%}.category-page .sub-level.hide{display:none}.category-page .sub-level>li{height:1.775rem;line-height:1.775rem;border-bottom:1px solid #e6e6e6}.category-page .sub-level>li:last-child{border-bottom:none}.newarrival-page{background-color:#f0f0f0}.newarrival-page .swiper-container{width:100%;height:7.75rem}.newarrival-page .swiper-container img{height:100%;width:100%}.newarrival-page .swiper-container .swiper-pagination{bottom:0;left:0;width:100%}.newarrival-page .swiper-container .swiper-pagination-bullet-active{background:#fff}.newarrival-page .newarrival-nav{width:100%;height:1.5rem;padding:0.25rem 0;background-color:#fff}.newarrival-page .newarrival-nav-item{box-sizing:border-box;float:left;width:33.333333%;height:1.5rem;line-height:1.5rem;text-align:center;color:#ccc;border-right:1px solid #ccc}.newarrival-page .newarrival-nav-item.focus{color:#000}.newarrival-page .goods-list.hide{display:none}.discount-page{background-color:#f0f0f0}.discount-page .swiper-container{width:100%;height:7.75rem}.discount-page .swiper-container img{height:100%;width:100%}.discount-page .swiper-container .swiper-pagination{bottom:0;left:0;width:100%}.discount-page .swiper-container .swiper-pagination-bullet-active{background:#fff}.discount-page .discount-nav{width:100%;height:1.5rem;padding:0.25rem 0;background-color:#fff}.discount-page .discount-nav-item{box-sizing:border-box;float:left;width:25%;height:1.5rem;line-height:1.5rem;text-align:center;color:#ccc;border-right:1px solid #ccc}.discount-page .discount-nav-item.focus{color:#000}.discount-page .goods-list.hide{display:none}.good-list-page .search-input{position:relative;padding:7px 46px 7px 15px;background:#f8f8f8}.good-list-page .search-input .search-icon{position:absolute;font-size:12px;top:16px;left:24px}.good-list-page .search-input input{height:30px;width:100%;border-radius:15px;text-indent:26px;background:#fff;border:none}.good-list-page .search-input .clear-input{position:absolute;top:12px;right:50px}.good-list-page .search-input .search{position:absolute;top:12px;right:0;border:none;background:transparent;font-size:16px}.good-list-page .brand-way{padding-bottom:10px;background:#f4f4f4}.good-list-page .brand-way>a{display:block;height:40px;line-height:40px;padding:0 10px;border-bottom:1px solid #e6e6e6;border-top:1px solid #e6e6e6;font-size:17px;background:#fff}.good-list-page .brand-way .brand-thumb{display:block;float:left;width:75px;height:40px;margin:0}.good-list-page .brand-way .entry{color:#999;font-size:14px;float:right}.good-list-page .brand-header{position:relative;height:3.75rem}.good-list-page .brand-header>img{display:block;height:100%}.good-list-page .btn-intro,.good-list-page .btn-col{position:absolute;display:block;width:62px;height:24px;line-height:24px;text-align:center;border:1px solid #fff;color:#fff;top:50%;margin-top:-12px}.good-list-page .btn-intro{right:90px}.good-list-page .btn-col{right:15px}.good-list-page .btn-col .iconfont{font-size:12px}.good-list-page .brand-intro-box{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.3);padding:44px 0;z-index:1;overflow:auto}.good-list-page .brand-intro-box .brand-intro{position:relative;box-sizing:border-box;width:85%;margin:0 7.5%;background:#fff;padding:10px 8%}.good-list-page .brand-intro-box h2{text-align:center;font-size:17px;line-height:40px}.good-list-page .brand-intro-box .con{font-size:12px;line-height:16px;padding:20px 0;border-top:1px solid #e6e6e6;border-bottom:1px solid #e6e6e6;overflow-x:hidden}.good-list-page .brand-intro-box .fo{font-size:18px;height:40px;line-height:40px;text-align:center}.good-list-page .brand-intro-box .close-intro{position:absolute;top:6px;right:6px}.good-list-page .list-nav>li{float:left;width:25%;height:33px;line-height:33px;text-align:center;font-size:14px}.good-list-page .list-nav a{display:block;box-sizing:border-box;width:100%;height:100%;color:#999}.good-list-page .list-nav .active>a{border-bottom:2px solid #000;color:#000}.good-list-page .list-nav .active>a .iconfont{color:#999}.good-list-page .list-nav .active>a .iconfont.cur{color:#000}.good-list-page .list-nav .new .iconfont{-moz-transform:scale(0.8, 0.8);-ms-transform:scale(0.8, 0.8);-webkit-transform:scale(0.8, 0.8);transform:scale(0.8, 0.8);font-weight:bold}.good-list-page .list-nav .filter .iconfont{font-size:12px;-moz-transition:-moz-transform ease-in;-o-transition:-o-transform ease-in;-webkit-transition:-webkit-transform ease-in;transition:transform ease-in}.good-list-page .list-nav .filter.active .iconfont{-moz-transform:rotate(-180deg);-ms-transform:rotate(-180deg);-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}.good-list-page .list-nav .icon{position:relative}.good-list-page .list-nav .icon i{position:absolute;-moz-transform:scale(0.8, 0.8);-ms-transform:scale(0.8, 0.8);-webkit-transform:scale(0.8, 0.8);transform:scale(0.8, 0.8);font-weight:bold}.good-list-page .list-nav .icon .up{top:-11px}.good-list-page .list-nav .icon .down{top:-4px}.good-list-page .no-result{text-align:center;vertical-align:middle;color:#ccc;font-size:1.2em;margin-top:220px}.good-list-page .goods-container{position:relative;min-height:440px}.good-detail-page .banner-top{position:relative}.good-detail-page .banner-top .swiper-pagination{position:absolute;left:0;right:0;bottom:0.5rem;text-align:center}.good-detail-page .banner-top .swiper-pagination .pagination-inner{display:inline-block}.good-detail-page .banner-top .swiper-pagination .pagination-inner span{display:inline-block;width:0.35rem;height:0.35rem;background:#fff;opacity:0.5;margin:0 0.225rem;border-radius:50%}.good-detail-page .banner-top .swiper-pagination .pagination-inner span.swiper-active-switch{opacity:1}.good-detail-page .banner-top .good-banner-swiper{height:14.95rem;overflow:hidden}.good-detail-page .banner-top .good-banner-swiper ul{position:relative;height:100%}.good-detail-page .banner-top .good-banner-swiper ul li{float:left;height:100%}.good-detail-page .banner-top .good-banner-swiper ul li img{width:11.2rem;height:100%}.index-page{width:100%;overflow:hidden;margin:0 auto}.index-page .index-container{position:relative;-moz-transition:-moz-transform 0.5s;-o-transition:-o-transform 0.5s;-webkit-transition:-webkit-transform 0.5s;transition:transform 0.5s;background-color:white}.index-page .index-container .index_header{height:2rem;line-height:2rem;overflow:hidden;padding:0 0.25rem}.index-page .index-container .index-channel{color:#FFF;text-align:center;position:relative;background-color:#000000}.index-page .index-container .index-channel .index-channel-list{padding-top:50%;width:100%;position:absolute;top:0}.index-page .index-container .index-channel .index-channel-list .homestyle{margin-bottom:1.25rem;width:7.1825rem}.search-page .search-input{position:relative;padding:7px 46px 7px 15px;background:#f8f8f8}.search-page .search-input .search-icon{position:absolute;font-size:12px;top:16px;left:24px}.search-page .search-input input{height:30px;width:100%;border-radius:15px;text-indent:26px;background:#fff;border:none}.search-page .search-input .clear-input{position:absolute;top:12px;right:50px}.search-page .search-input .search{position:absolute;top:12px;right:0;border:none;background:transparent;font-size:16px}.search-page .search-items{padding:20px 10px}.search-page .search-items h3{font-size:12px;margin-bottom:10px}.search-page .search-items li{float:left;height:34px;line-height:34px;font-size:14px;height:34px;line-height:34px;margin-right:10px;margin-bottom:10px;padding:0 10px;background:#f8f8f8;color:#000}.search-page .search-items .clear-history{height:32px;line-height:32px;border:1px solid #e6e6e6;background:#fff;font-size:14px}.shopping-cart-good{position:relative;padding-left:0.4rem}.shopping-cart-good .checkbox{position:absolute;top:50%;margin-top:-0.35rem;font-size:0.7rem;color:#f0f0f0}.shopping-cart-good .checkbox.icon-cb-checked{color:#000}.shopping-cart-good .info{float:left;margin-left:1.25rem;padding:0.4rem 0;border-bottom:1px solid #e0e0e0}.shopping-cart-good .thumb{float:left;width:3rem;height:4rem}.shopping-cart-good .deps{margin-left:3.375rem;padding-right:0.5rem}.shopping-cart-good .name{font-size:0.7rem}.shopping-cart-good .row:nth-child(2){font-size:0.55rem;height:1.125rem;line-height:1.125rem}.shopping-cart-good .row:nth-child(2)>span{margin-right:0.375rem}.shopping-cart-good .row:nth-child(3){position:relative}.shopping-cart-good .color,.shopping-cart-good .size{color:#b6b6b6}.shopping-cart-good .appear-date{color:#e01}.shopping-cart-good .price{font-size:0.6rem;color:#000}.shopping-cart-good .count{font-size:0.5rem;color:#999;margin-left:0.55rem}.shopping-cart-good .sold-out,.shopping-cart-good .low-stocks{display:inline-block;width:2.5rem;height:0.75rem;line-height:0.75rem;font-size:0.55rem;border:none;color:#fff;text-align:center;margin-left:0.4rem}.shopping-cart-good .sold-out{background:#999}.shopping-cart-good .low-stocks{background:#e01}.shopping-cart-good .icon-del,.shopping-cart-good .icon-edit{position:absolute;color:#ccc;font-size:0.75rem}.shopping-cart-good .icon-del{right:0.35rem}.shopping-cart-good .icon-edit{right:1.8rem}.shopping-cart-good .opt-panel{display:none;width:5.5rem;height:4.75rem;color:#fff}.shopping-cart-good .opt-panel .put-in-favorite{background:#bbb}.shopping-cart-good .opt-panel .del{background:#999}.chose-panel{position:absolute;top:0;bottom:0;left:0;right:0;background:rgba(0,0,0,0.3)}.chose-panel .main{position:absolute;height:15.25rem;bottom:0;left:0;right:0;background:#fff}.chose-panel .infos{height:11.5rem;padding:0 0.55rem;padding-top:0.75rem}.chose-panel .chose-items{height:8.125rem;overflow:auto}.chose-panel .basic-info{margin-bottom:0.75rem}.chose-panel .thumb{float:left;width:2rem;height:2.65rem}.chose-panel .text-info{margin-left:2.55rem}.chose-panel .text-info .name{font-size:0.7rem}.chose-panel .text-info .sale-price{color:#e10}.chose-panel .text-info .sale-price.no-price{color:#000}.chose-panel .text-info .market-price{color:#b0b0b0;text-decoration:line-through}.chose-panel .color-list,.chose-panel .size-list,.chose-panel .num{position:relative;font-size:0.7rem;padding-left:2rem}.chose-panel .color-list>span,.chose-panel .size-list>span,.chose-panel .num>span{position:absolute;left:0;top:0.5rem}.chose-panel .block{float:left;display:block;width:2rem;height:2rem;border:1px solid #000;margin-right:0.75rem;margin-bottom:0.75rem;line-height:2rem;text-align:center}.chose-panel .block.chosed{border-color:#e10;background:url('../../../img/shopping-cart/right.png?1445480248') no-repeat;background-size:0.95rem;background-position:bottom right;color:#e10}.chose-panel .num{margin-bottom:0.5rem}.chose-panel .num .btn{float:left;display:block;height:2rem;width:2rem;text-align:center;line-height:2rem;border:1px solid #e6e6e6}.chose-panel .num .btn.disable{color:#e6e6e6}.chose-panel .good-num{float:left;width:2.65rem;height:2rem;line-height:2rem;padding:0;border:none;border-top:1px solid #e6e6e6;border-bottom:1px solid #e6e6e6;text-align:center}.chose-panel .btn-wrap{height:3rem;border-top:1px solid #e6e6e6;padding:0.5rem;text-align:center;box-sizing:border-box}.chose-panel .btn-wrap .btn-sure{width:6.5rem;height:2rem;background:#e10;color:#fff;font-size:0.8rem;border:none}.icon-checkbox:before{content:"\e61c"}.icon-cb-checked:before{content:"\e61d"}.cart-nav{height:0.75rem;color:#c6c6c6;border-bottom:1px solid #e0e0e0;padding:0.75rem 0}.cart-nav li{float:left;width:50%}.cart-nav li.active{color:#000}.cart-nav span{display:block;box-sizing:border-box;width:100%;height:0.75rem;line-height:0.75rem;font-size:0.75rem;text-align:center}.cart-nav li:first-child span{border-right:1px solid #e0e0e0}.cart-goods{border-bottom:1px solid #e0e0e0}.cart-goods .shopping-cart-good:last-child .info{border-bottom:none}.freebie-and-advance-buy{padding:0.5rem;font-size:0.6rem;border-bottom:1px solid #e0e0e0}.freebie-and-advance-buy>li{box-sizing:border-box;height:2.25rem;line-height:2.25rem;margin-bottom:0.25rem;background:#f8f8f8;padding:0 0.5rem}.freebie-and-advance-buy>li:last-child{margin-bottom:0}.freebie-and-advance-buy>li a{float:right}.freebie-and-advance-buy .count{color:#f00}.freebie-and-advance-buy .icon-right-arrow{color:#8f8f8f}.price-compute{padding:0.5rem;border-bottom:1px solid #e0e0e0;font-size:0.65rem}.price-compute .title{display:inline-block;width:4.375rem}.price-compute .minus{float:right}.balance{position:fixed;box-sizing:border-box;bottom:0;width:100%;padding:0.5rem;height:3rem;border-top:1px solid #e0e0e0}.balance .iconfont{position:absolute;top:50%;margin-top:-0.35rem;font-size:0.7rem}.balance p{float:left;margin-left:1.25rem;font-size:0.65rem}.balance p span{display:block;height:1rem;line-height:1rem}.balance p .tip{color:#666;font-size:0.55rem}.balance .btn-balance{float:right;width:3.5rem;height:2rem;line-height:2rem;text-align:center;background:#e01;color:#fff;border:none;font-size:0.7rem} |
static/dist/myohobuy/0.0.1/index.js
deleted
100644 → 0
1 | -define("index",["zepto","lazyload","swiper","mlellipsis","index"],function(e,a,s){var t;e("js/common"),e("js/passport/index"),e("js/guang/index"),e("js/home/index"),e("js/product/index"),e("js/index/index"),s.exports=t}),define("js/common",["zepto"],function(e,a,s){function t(e){var a,s,t=document.cookie;return document.cookie&&""!==document.cookie&&(s=t.indexOf(e+"="),s>-1&&(s+=e.length+1,a=decodeURIComponent(r.trim(t.substring(s,t.indexOf(";",s)))))),a}function n(){var e,a=t("_UID");return"undefined"==typeof a?0:(e=a.split("::"),"undefined"==typeof e||e.length<4?0:e)}function i(){var e=n();return 0===e?0:e[1]}function o(){var e=t("_g");return"undefined"==typeof e?"":JSON.parse(e).k}var r=e("zepto");!function(){var e=r("#yoho-footer"),a=e.children(".op-row"),s=n();r("body").height()<r(window).height()&&e.addClass("bottom"),0===s?a.prepend('<a href="http://m.yohobuy.com/signin.html">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):a.prepend('Hi,<a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+s[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index?token='+s[3]+'">退出</a>'),e.removeClass("hide")}(),window.cookie=t,window.getUser=n,window.getUid=i,window.getShoppingKey=o}),define("js/passport/index",["zepto"],function(e,a,s){e("js/passport/register/register"),e("js/passport/register/code"),e("js/passport/register/password"),e("js/passport/login/login"),e("js/passport/login/international"),e("js/passport/back/mobile"),e("js/passport/back/code"),e("js/passport/back/email"),e("js/passport/back/email-success"),e("js/passport/back/new-password")}),define("js/passport/register/register",["zepto"],function(e,a,s){var t=e("zepto"),n=t("#phone-num"),i=t("#country-select"),o=t("#area-code"),r=t("#btn-next"),l=e("js/passport/api"),d=e("js/plugin/tip"),c=t.trim,p=d.show;l.selectCssHack(t("#country-select")),l.bindClearEvt(),n.bind("input",function(){""===c(n.val())?r.addClass("disable"):r.removeClass("disable")}),i.change(function(){o.text(i.val())}),r.on("touchstart",function(){var e=c(n.val()),a=i.val();r.hasClass("disable")||(l.phoneRegx[a].test(e)?t.ajax({url:"/passport/reg/verifymobile",type:"POST",data:{areaCode:a.replace("+",""),phoneNum:e},success:function(e){200===e.code?location.href=e.data:p(e.message)}}):p("手机号格式不正确,请重新输入"))})}),define("js/passport/api",["zepto"],function(e,a,s){function t(){var e,a=r(".has-eye");a.append('<div class="eye close"></div>'),e=a.children(".eye"),e.on("touchstart",function(e){var a=r(this),s=a.siblings(".pwd");e.preventDefault(),a.toggleClass("close"),a.hasClass("close")?s.attr("type","password"):s.attr("type","text"),s.focus()})}function n(){var e,a=r(".has-clear");a.append('<div class="clear-input"></div>'),e=a.children(".clear-input"),e.on("touchstart",function(a){var s=e.siblings(".input");s.val("").trigger("input").focus(),a.preventDefault()}),a.children(".input").bind("input",function(){var e=r(this),a=e.siblings(".clear-input"),s=l(e.val());""===s?a.hide():a.show()})}function i(e){return e.length>=6&&e.length<=20?!0:!1}function o(e){function a(){var a=e.find("option:selected").text().length;switch(a){case 2:e.outerWidth(90);break;case 3:e.outerWidth(110);break;default:e.outerWidth(130)}}var s=navigator.userAgent;s.match(/uc/i)&&s.match(/android/i)?e.change(function(){a()}):e.removeClass("in-android-uc")}var r=e("zepto"),l=r.trim,d=/^([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/,c={"+86":/^1[35847]{1}[0-9]{9}$/,"+852":/^[965]{1}[0-9]{7}$/,"+853":/^[0-9]{8}$/,"+886":/^[0-9]{10}$/,"+65":/^[98]{1}[0-9]{7}$/,"+60":/^1[1234679]{1}[0-9]{8}$/,"+1":/^[0-9]{10}$/,"+82":/^01[0-9]{9}$/,"+44":/^7[789][0-9]{8}$/,"+81":/^0[9|8|7][0-9]{9}$/,"+61":/^[0-9]{11}$/};s.exports={emailRegx:d,phoneRegx:c,bindEyesEvt:t,bindClearEvt:n,pwdValidate:i,selectCssHack:o}}),define("js/plugin/tip",["zepto"],function(e,a,s){function t(e,a){var s,t;"undefined"!=typeof e&&(s=e.toString(),t=a&&a>0?a:2e3,n.text(s).show(),i=setTimeout(function(){"block"===n.css("display")&&n.hide()},t))}var n,i,o=e("zepto");!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';o(".yoho-page").append(e),n=o("#yoho-tip"),n.on("touchstart",function(){n.hide(),clearTimeout(i)})}(),a.show=t}),define("js/passport/register/code",["zepto"],function(e,a,s){e("js/passport/code")(!0)}),define("js/passport/code",["zepto"],function(e,a,s){var t=e("zepto");s.exports=function(a){function s(){var e,a=59;e=setInterval(function(){0===a?(o.text("重发验证码").removeClass("disable"),clearInterval(e)):o.text("重发验证码 ("+a--+"秒)")},1e3)}var n=t("#captcha"),i=t("#btn-next"),o=t("#captcha-tip"),r=t("#phone-num").val(),l=t("#area-code").val().replace("+",""),d=e("js/passport/api"),c=e("js/plugin/tip"),p=t.trim,u=c.show,h=a?"reg":"back";d.bindClearEvt(),n.bind("input",function(){""!==p(n.val())?i.removeClass("disable"):i.addClass("disable")}),o.on("touchstart",function(){o.hasClass("disable")||t.ajax({type:"POST",url:"/passport/"+h+"/sendcode",data:{phoneNum:r,areaCode:l},success:function(e){200===e.code?(o.text("重发验证码 (60秒)").addClass("disable"),s()):u(e.message)}})}),i.on("touchstart",function(){i.hasClass("disable")||t.ajax({type:"POST",url:"/passport/"+h+"/verifycode",data:{phoneNum:r,areaCode:l,code:p(n.val()),token:t("#token").val()},success:function(e){200===e.code?location.href=e.data:u(e.message)}})}),s()}}),define("js/passport/register/password",["zepto"],function(e,a,s){var t=e("zepto"),n=t("#pwd"),i=t("#btn-sure"),o=e("js/passport/api"),r=e("js/plugin/tip"),l=t.trim,d=r.show;o.bindEyesEvt(),n.bind("input",function(){""===l(n.val())?i.addClass("disable"):i.removeClass("disable")}),i.on("touchstart",function(){var e=l(n.val());i.hasClass("disable")||(o.pwdValidate(e)===!1?d("密码6-20位,请重新输入"):t.ajax({type:"POST",url:"/passport/reg/setpassword",data:{password:e,phoneNum:t("#phone-num").val(),areaCode:t("#area-code").val(),token:t("#token").val()},success:function(e){200===e.code?(d("注册成功"),setTimeout(function(){location.href=e.data},1e3)):401===e.code||404===e.code||505===e.code?d(e.message):(d(e.message),setTimeout(function(){location.href=e.data},1e3))}}))})}),define("js/passport/login/login",["zepto"],function(e,a,s){function t(){u&&h?d.removeClass("disable"):d.addClass("disable")}function n(){c.show(),p.show()}function i(){c.hide(),p.hide()}var o=e("zepto"),r=o("#account"),l=o("#pwd"),d=o("#btn-login"),c=o("#retrive-pwd-mask"),p=o("#retrive-pwd-ways"),u=!1,h=!1,f=e("js/passport/api"),g=e("js/plugin/tip"),v=o.trim,m=g.show;f.bindEyesEvt(),f.bindClearEvt(),r.bind("input",function(){u=""!==v(r.val())?!0:!1,t()}),l.bind("input",function(){h=""===v(l.val())?!1:!0,t()}),d.on("touchstart",function(){var e=v(r.val()),a=v(l.val());d.hasClass("disable")||((/^[0-9]+$/.test(e)||f.emailRegx.test(e))&&f.pwdValidate(a)?o.ajax({type:"POST",url:"/passport/login/auth",data:{account:e,password:a},success:function(e){200===e.code?(m("登录成功"),setTimeout(function(){location.href=e.data},1e3)):m(e.message)},error:function(){m("网络断开连接啦~")}}):m("账号或密码有错误,请重新输入"))}),o("#forget-pwd").on("touchstart",function(){n()}),c.on("touchstart",function(){i()}),o("#cancel-retrive").on("touchstart",function(e){e.preventDefault(),i()}),r.trigger("input"),l.trigger("input")}),define("js/passport/login/international",["zepto"],function(e,a,s){function t(){c&&p?d.removeClass("disable"):d.addClass("disable")}var n=e("zepto"),i=n("#phone-num"),o=n("#country-select"),r=n("#area-code"),l=n("#pwd"),d=n("#btn-login"),c=!1,p=!1,u=e("js/passport/api"),h=e("js/plugin/tip"),f=n.trim,g=h.show;u.selectCssHack(o),u.bindEyesEvt(),u.bindClearEvt(),i.bind("input",function(){c=""===f(i.val())?!1:!0,t()}),l.bind("input",function(){var e=f(l.val());p=""===e?!1:!0,t()}),o.change(function(){r.text(o.val())}),d.on("touchstart",function(){var e=f(i.val()),a=o.val(),s=f(l.val());d.hasClass("disable")||(u.phoneRegx[a].test(e)&&u.pwdValidate(s)?n.ajax({type:"POST",url:"/passport/login/auth",data:{areaCode:a.replace("+",""),account:e,password:s},success:function(e){200===e.code?(g("登录成功"),setTimeout(function(){location.href=e.data},1e3)):g(e.message)},error:function(){g("网络断开连接啦~")}}):g("账号或密码有错误,请重新输入"))}),i.trigger("input"),l.trigger("input")}),define("js/passport/back/mobile",["zepto"],function(e,a,s){var t=e("zepto"),n=t("#phone-num"),i=t("#country-select"),o=t("#area-code"),r=t("#btn-next"),l=e("js/passport/api"),d=e("js/plugin/tip"),c=t.trim,p=d.show;l.selectCssHack(t("#country-select")),l.bindClearEvt(),n.bind("input",function(){""===c(n.val())?r.addClass("disable"):r.removeClass("disable")}),i.change(function(){o.text(i.val())}),r.on("touchstart",function(){var e=c(n.val()),a=i.val();r.hasClass("disable")||(l.phoneRegx[a].test(e)?t.ajax({url:"/passport/back/sendcode",type:"POST",data:{areaCode:a.replace("+",""),phoneNum:e},success:function(e){200===e.code?location.href=e.data:p(e.message)}}):p("手机号格式不正确,请重新输入"))})}),define("js/passport/back/code",["zepto"],function(e,a,s){e("js/passport/code")(!1)}),define("js/passport/back/email",["zepto"],function(e,a,s){var t=e("zepto"),n=t("#email"),i=t("#btn-sure"),o=e("js/passport/api"),r=e("js/plugin/tip"),l=t.trim,d=r.show;o.bindClearEvt(),n.bind("input",function(){""===l(n.val())?i.addClass("disable"):i.removeClass("disable")}),i.on("touchstart",function(){var e=l(n.val());i.hasClass("disable")||(o.emailRegx.test(e)?t.ajax({url:"/passport/back/sendemail",type:"POST",data:{email:e},success:function(e){200===e.code?location.href=e.data:d(e.message)}}):d("邮箱格式不正确,请重新输入"))})}),define("js/passport/back/email-success",["zepto"],function(e,a,s){var t=e("zepto"),n=t("#resend"),i=e("js/plugin/tip"),o=i.show;n.on("touchstart",function(e){e.preventDefault(),t.ajax({url:n.data("url"),type:"GET",success:function(e){o(200===e.code?e.message:e.message)}})})}),define("js/passport/back/new-password",["zepto"],function(e,a,s){var t=e("zepto"),n=t("#pwd"),i=t("#btn-ok"),o=e("js/passport/api"),r=e("js/plugin/tip"),l=t.trim,d=r.show,c=t("#phone-num");o.bindEyesEvt(),n.bind("input",function(){""===l(n.val())?i.addClass("disable"):i.removeClass("disable")}),i.on("touchstart",function(){var e,a,s=l(n.val()),r=!0;i.hasClass("disable")||(e={password:s},0===c.length&&(r=!1),r?(t.extend(e,{phoneNum:c.val(),areaCode:t("#areaCode").val(),token:t("#token").val()}),a="/passport/back/passwordByMobile"):(t.extend(e,{code:t("#email-code").val()}),a="/passport/back/passwordByEmail"),o.pwdValidate(s)?t.ajax({type:"POST",url:a,data:e,success:function(e){200===e.code?(d("密码修改成功"),setTimeout(function(){location.href=e.data},1e3)):d(e.message)}}):d("密码6-20位,请重新输入"))})}),define("js/guang/index",["zepto","lazyload","swiper","mlellipsis","index"],function(e,a,s){e("js/guang/plus-star/list"),e("js/guang/plus-star/detail"),e("js/guang/home"),e("js/guang/list")}),define("js/guang/plus-star/list",["zepto","lazyload","swiper","index"],function(e,a,s){var t,n=e("zepto"),i=e("lazyload"),o=e("swiper"),r=n("#nav-tab > li"),l=n("#ps-content > .content");i(n("img.lazy")),t=new o(".swiper-container",{lazyLoading:!0,pagination:".swiper-pagination"}),n("#nav-tab").delegate("li","touchstart",function(){n(this).hasClass("focus")||(r.toggleClass("focus"),l.toggleClass("hide"),n(document).trigger("scroll"))})}),define("js/guang/plus-star/detail",["zepto","mlellipsis","lazyload"],function(e,a,s){var t,n,i=e("zepto"),o=e("mlellipsis"),r=e("lazyload"),l=i("#intro"),d=i("#intro-more-txt"),c=i("#related-infos-container"),p=e("js/guang/info"),u=e("js/plugin/tip"),h=i("#brand-info").data("id");o.init(),r(i("img.lazy")),l[0].mlellipsis(3),setTimeout(function(){t=l.text(),n=l.attr("title")}),p.initInfosEvt(c),i("#more-intro").bind("touchstart",function(){var e=i(this);e.toggleClass("spread"),e.hasClass("spread")?(l.text(n),d.text("收起")):(l.text(t),d.text("more"))}),i("#brand-like").bind("touchstart",function(e){var a="ok",s=i(this);e.preventDefault(),s.hasClass("like")&&(a="cancel"),i.ajax({type:"POST",url:"/guang/opt/favoriteBrand",data:{id:h,opt:a},success:function(e){200===e.code?s.toggleClass("like"):400===e.code&&u.show("未登录")},error:function(){u.show("网络断开连接了~")}})})}),define("js/guang/info",["zepto","mlellipsis","lazyload"],function(e,a,s){function t(e){l(e.find("img.lazy")),e.each(function(){var e=o(this),a=e.find(".info-title"),s=e.find(".info-text");a[0].mlellipsis(2),s[0].mlellipsis(2)})}function n(e){e.delegate(".like-btn","touchstart",function(e){var a=o(e.currentTarget),s=a.closest(".guang-info"),t="ok";a.hasClass("like")&&(t="cancel"),o.ajax({type:"POST",url:"/guang/opt/praiseArticle",data:{id:s.data("id"),opt:t},success:function(e){var s=e.code;200===s&&(a.next(".like-count").text(e.data),a.toggleClass("like"))},error:function(){d.show("网络断开连接了~")}})}),t(e.find(".guang-info"))}function i(e,a){h||a.end||(h=!0,o.ajax({type:"GET",url:" /guang/list/page",data:a,success:function(s){return" "===s?(a.end=!0,h=!1,p.addClass("hide"),void u.removeClass("hide")):(e.append(s),t(e.find(".guang-info")),a.page++,void(h=!1))},error:function(){d.show("网络断开连接了~"),h=!1}}))}var o=e("zepto"),r=e("mlellipsis"),l=e("lazyload"),d=e("js/plugin/tip"),c=o("#load-more-info"),p=o(""),u=o(""),h=!1;r.init(),c.length>0&&(p=c.children(".loading"),u=c.children(".no-more")),a.initInfosEvt=n,a.setLazyLoadAndMellipsis=t,a.loadMore=i}),define("js/guang/home",["zepto","swiper","mlellipsis","lazyload","index"],function(e,a,s){var t,n=e("zepto"),i=e("swiper"),o=e("js/guang/info"),r=o.setLazyLoadAndMellipsis,l=o.loadMore,d=n("#load-more-info"),c=n(""),p=n(""),u=n(window).height(),h=d.height(),f=n("#info-list"),g=f.children(".info-list"),v=n("#guang-nav"),m=v.children(".focus"),w=m.data("type"),b={};d.length>0&&(c=d.children(".loading"),p=d.children(".no-more")),t=new i(".swiper-container",{lazyLoading:!0,pagination:".swiper-pagination"}),o.initInfosEvt(f),function(){var e=n("#gender").val();v.children(".guang-nav-item").each(function(){var a=n(this).data("type");b[a]={page:1,gender:e,type:a,end:!1}})}(),v.delegate(".guang-nav-item","touchstart",function(){var e,a,s=n(this);s.hasClass("focus")||(a=s.index(),s.addClass("focus"),m.removeClass("focus"),g.not(".hide").addClass("hide"),e=g.eq(a),e.removeClass("hide"),r(e.children(".guang-info")),m=s,w=s.data("type"),b[w].end?(c.addClass("hide"),p.removeClass("hide")):(c.removeClass("hide"),p.addClass("hide")))}),n(document).scroll(function(){n(window).scrollTop()+u>=n(document).height()-h&&l(g,b[w])})}),define("js/guang/list",["zepto","mlellipsis","lazyload"],function(e,a,s){var t=e("zepto"),n=e("js/guang/info"),i=n.loadMore,o=t(window).height(),r=t("#load-more").height(),l=t("#author-infos"),d=t("#tag"),c={page:1,end:!1},p=t("#info-list");n.initInfosEvt(p),l.length>0&&t.extend(c,{authorId:l.data("id")}),d.length>0&&t.extend(c,{tag:d.val()}),t(document).scroll(function(){t(window).scrollTop()+o>=t(document).height()-r&&i(p,c)})}),define("js/home/index",["zepto","swiper","lazyload","index"],function(e,a,s){e("js/home/home"),e("js/home/maybe-like")}),define("js/home/home",["zepto","swiper","lazyload","index"],function(e,a,s){function t(){m+=10,w.css({transform:"rotateX("+m+"deg)","-webkit-transform":"rotateX("+m+"deg)","-moz-transform":"rotateX("+m+"deg)"}),m/90%2===1&&(b?(w.addClass("animate"),b=!1):(w.removeClass("animate"),b=!0)),m/90%2===0&&m%360!==0?window.setTimeout(t,3e3):m%360===0?window.setTimeout(t,18e4):d(function(){t()})}var n,i,o,r,l,d,c,p,u,h,f=e("zepto"),g=e("swiper"),v=e("lazyload"),m=0,w=f(".home-header .logo"),b=!0;e("js/home/maybe-like"),v(f("img.lazy")),f(".nav-btn").on("click",function(e){f(this).hasClass("menu-open")||(f(".mobile-wrap").addClass("menu-open"),f(".overlay").addClass("show"),f(".side-nav").addClass("on"),f("body").css({height:f(window).height(),width:"100%",overflow:"hidden"})),e.stopPropagation()}),f(".mobile-wrap").on("click",function(){f(this).hasClass("menu-open")&&(f(".mobile-wrap").removeClass("menu-open"),f(".overlay").removeClass("show"),f(".sub-nav").removeClass("show"),f(".side-nav").removeClass("on"),f("body").css({height:"auto",overflow:"auto"}))}),f(".side-nav").on("click","li",function(){f(this).find(".sub-nav").size()>0&&(f(".sub-nav").removeClass("show"),f(this).find(".sub-nav").addClass("show"))}),f(".sub-nav").each(function(){f(this).find("li").eq(0).on("click",function(e){f(".sub-nav").removeClass("show"),e.stopPropagation()})}),f(".sub-nav").on("mouseenter","li",function(){0!==f(this).index()&&f(this).addClass("current").siblings().removeClass("current")}),f(".banner-swiper").find("li").size()>1&&(n=new g(".banner-swiper",{loop:!0,autoplay:3e3,autoplayDisableOnInteraction:!1,paginationClickable:!0,slideElement:"li",pagination:".banner-top .pagination-inner"})),o=new g(".brands-swiper",{grabCursor:!0,slidesPerView:"auto",wrapperClass:"brands-list",slideElement:"li"}),i=new g(".recommend-swiper",{grabCursor:!0,slidesPerView:"auto",wrapperClass:"recommend-list",slideElement:"li"}),f(".trend-topic-swiper").find("li").size()>1&&(r=new g(".trend-topic-swiper",{loop:!0,autoplay:3e3,autoplayDisableOnInteraction:!1,paginationClickable:!0,slideElement:"li",pagination:".trend-topic-content .pagination-inner"})),f(".category-swiper").each(function(e,a){u="category-swiper"+e,f(this).addClass(u),f("."+u).find(".swiper-slide").size()>1&&(l=new g("."+u,{loop:!0,autoplay:3e3,autoplayDisableOnInteraction:!1,paginationClickable:!0,slideElement:"li",pagination:"."+u+" .pagination-inner"}))}),f(".header-download").on("click",".close-btn",function(){f(this).parent().remove()}),d=function(){var e=null,a=["webkit","moz","ms"];for(p=0;p<a.length;p++)c=a[p]+"RequestAnimationFrame",window[c]&&(h=!0,e=c);return h?function(a){window[e](a)}:function(e){window.setTimeout(e,67)}}(),t()}),define("js/home/maybe-like",["zepto","lazyload"],function(e,a,s){var t,n,i,o,r=e("zepto"),l=e("js/plugin/tip"),d=e("lazyload"),c=r(window).height(),p=r("#load-more").height(),u=r("#goods-list"),h=!1,f=0,g=r(".mobile-wrap").hasClass("boys-wrap")?"1,3":"2,3",v=r(".mobile-wrap").hasClass("kids-wrap")?!0:!1,m=r(".mobile-wrap").hasClass("lifestyle-wrap")?!0:!1,w=r("#maybe-like-nav");n=v?"/product/recom/maylikekids":m?"/product/recom/maylikelife":"/product/recom/maylike?gender="+g,i=w.children(".focus"),r("#maybe-like-nav").delegate("li","touchstart",function(){var e,a=r(this),s=r(".goods-list");a.hasClass("focus")||(o=a.index(),a.addClass("focus"),i.removeClass("focus"),s.not(".hide").addClass("hide"),e=s.eq(o),e.removeClass("hide"),i=a,r(document).trigger("scroll"))}),r(window).scroll(function(){if(r(window).scrollTop()+c>=r(document).height()-p){if(h)return;h=!0,t=u.children(".good-info").length,r.ajax({type:"GET",url:n,data:{page:f+1},success:function(e){return" "===e?void(h=!0):(u.append(e),d(r(".good-info").find("img.lazy")),h=!1,void f++)},error:function(){l.show("网络断开连接了~"),h=!1}})}})}),define("js/product/index",["zepto","swiper","lazyload","index"],function(e,a,s){e("js/product/newsale/newarrival"),e("js/product/newsale/discount"),e("js/product/list"),e("js/product/detail/detail")}),define("js/product/newsale/newarrival",["zepto","swiper","lazyload","index"],function(e,a,s){var t,n,i=e("zepto"),o=e("js/plugin/tip"),r=e("swiper"),l=e("lazyload"),d=i("#newarrival-nav"),c=i("#newarrival-goods-list"),p=c.children(".goods-list"),u=i(window).height(),h=i("#load-more").height(),f=i(".goods-list"),g=!1,v=0,m=0;n=new r(".swiper-container",{lazyLoading:!0,pagination:".swiper-pagination"}),l(i("img.lazy")),t=d.children(".focus"),i("#newarrival-nav").delegate("li","touchstart",function(){var e,a=i(this);a.hasClass("focus")||(m=a.index(),a.addClass("focus"),t.removeClass("focus"),p.not(".hide").addClass("hide"),e=p.eq(m),e.removeClass("hide"),t=a,i(document).trigger("scroll"))}),i(window).scroll(function(){if(i(window).scrollTop()+u>=i(document).height()-h){if(g)return;g=!0,i.ajax({type:"GET",url:"/product/newsale/selectNewSale",data:{dayLimit:m+1,page:v+1},success:function(e){return" "===e?void(g=!0):(f.append(e),l(i(".good-info").find("img.lazy")),g=!1,void v++)},error:function(){o.show("网络断开连接了~"),g=!1}})}})}),define("js/product/newsale/discount",["zepto","swiper","lazyload","index"],function(e,a,s){function t(e){var a="0.1,0.3";switch(e){case 0:a="0.1,0.3";break;case 1:a="0.4,0.6";break;case 2:a="0.7,0.9";break;case 3:a="0.1,0.9"}return a}var n,i,o=e("zepto"),r=e("swiper"),l=e("lazyload"),d=o("#discount-nav"),c=o("#discount-goods-list"),p=c.children(".goods-list"),u=o(".goods-list"),h=0,f=o(window).height(),g=o("#load-more").height(),v=!1,m=0,w="";i=new r(".swiper-container",{lazyLoading:!0,pagination:".swiper-pagination"}),l(o("img.lazy")),n=d.children(".focus"),o("#discount-nav").delegate("li","touchstart",function(){var e,a=o(this);a.hasClass("focus")||(h=a.index(),w=t(h),a.addClass("focus"),n.removeClass("focus"),p.not(".hide").addClass("hide"),e=p.eq(h),e.removeClass("hide"),n=a,o(document).trigger("scroll"))}),o(window).scroll(function(){if(o(window).scrollTop()+f>=o(document).height()-g){if(v)return;v=!0,o.ajax({type:"GET",url:"/product/newsale/selectNewSale",data:{p_d:w,page:m+1},success:function(e){return" "===e?void(v=!1):(u.append(e),l(o(".good-info").find("img.lazy")),v=!1,void m++)},error:function(){tip.show("网络断开连接了~"),v=!1}})}})}),define("js/product/list",["zepto","lazyload"],function(e,a,s){function t(e){var a,s,t,l,d,c={};if(e){for(s in w)w.hasOwnProperty(s)&&(w[s].reload=!0);switch(e.type){case"gender":a={gender:e.id};break;case"brand":a={brand:e.id};break;case"msort":a={msort:e.id};break;case"color":a={color:e.id};break;case"size":a={size:e.id};break;case"price":a={price:e.id};break;case"discount":a={discount:e.id}}o.extend(v,a)}if(!i){if(n.hasClass("new")?l="newest":n.hasClass("price")?l="price":n.hasClass("discount")&&(l="discount"),t=w[l],d=t.page+1,t.reload)d=1;else if(t.end)return;o.extend(c,v,{type:l,order:t.order,page:d}),i=!0,o.ajax({type:"GET",url:"/product/list/search",data:c,success:function(e){var a,s='<p class="no-result">未找到相关搜索结果</p>';switch(l){case"newest":a=u;break;case"price":a=h;break;case"discount":a=f}" "===e?(t.end=!0,t.reload&&a.html(s)):(t.reload?a.html(e):a.append(e),r(a.find(".lazy"))),t.reload=!0,t.page=d,i=!1}})}}var n,i,o=e("zepto"),r=e("lazyload"),l=o("#brand-header"),d=o("#intro-box"),c=e("js/plugin/filter"),p=o("#goods-container"),u=p.children(".new-goods"),h=p.children(".price-goods"),f=p.children(".discount-goods"),g=o(window).height(),v={gender:o("#gender").val(),brand:o("#brand").val(),msort:o("#msort").val(),color:o("#color").val(),size:o("#size").val(),price:o("#price").val(),discount:o("#discount").val()},m=o("#list-nav"),w={newest:{order:1,reload:!0,page:0,end:!1},price:{order:0,reload:!0,page:0,end:!1},discount:{order:0,reload:!0,page:0,end:!1}};r(o(".lazy")),c.registerCbFn(t),m.delegate("li","touchstart",function(){var e,a,s,i=o(this);if(i.hasClass("filter"))i.hasClass("active")?(c.hideFilter(),n.addClass("active"),i.removeClass("active")):(n=i.siblings(".active"),n.removeClass("active"),i.addClass("active"),c.showFilter());else{if(i.hasClass("new")?a="newest":i.hasClass("price")?a="price":i.hasClass("discount")&&(a="discount"),e=w[a],i.hasClass("active")){if(i.hasClass("new"))return;(i.hasClass("price")||i.hasClass("discount"))&&(i.find(".icon > .iconfont").toggleClass("cur"),n=i,e.reload=!0,e.order=0===e.order?1:0)}else{if(s=i.siblings(".active"),n=i,s.hasClass("filter"))c.hideFilter();else switch(p.children(".container:not(.hide)").addClass("hide"),a){case"newest":u.removeClass("hide");break;case"price":h.removeClass("hide");break;case"discount":f.removeClass("hide")}s.removeClass("active"),i.addClass("active")}e.reload&&t()}}),o(window).scroll(function(){o(window).scrollTop()+g>o(document).height()-.25*p.height()&&t()}),l.children(".btn-intro").bind("touchstart",function(){d.removeClass("hide")}),o(".close-intro, .brand-intro-box").click(function(){d.addClass("hide")}),o("#brand-intro").click(function(e){e.stopPropagation()}),l.children(".btn-col").bind("touchstart",function(){o(this).toggleClass("coled")})}),define("js/plugin/filter",["zepto"],function(e,a,s){function t(){l.addClass("hide")}function n(){l.removeClass("hide")}function i(e){o=e}var o,r=e("zepto"),l=r(".filter-mask, .filter-body"),d=l.find(".classify"),c=l.find(".sub-classify");d.children(":first-child").addClass("active"),d.delegate(".classify-item","touchstart",function(){var e=r(this);e.hasClass("active")||(e.siblings(".active").removeClass("active"),e.addClass("active"))}),l.filter(".filter-mask").click(function(){t()}),c.delegate("li","click",function(e){var a,s,n=r(this),i=n.data("id"),l=n.closest(".sub-classify"),d=l.siblings(".shower");e.stopPropagation(),n.hasClass("chosed")||(l.children(".chosed").removeClass("chosed"),n.addClass("chosed"),a=r.trim(n.html()),s=r.trim(d.html()),d.html(s.substring(0,s.indexOf("</span>")+7)+a.substring(0,a.indexOf("<i"))),0===n.index()?d.addClass("default"):d.removeClass("default"),o&&o({type:l.data("type"),id:i}),t())}),a.showFilter=n,a.hideFilter=t,a.registerCbFn=i}),define("js/product/detail/detail",["zepto","swiper","lazyload","index"],function(e,a,s){var t,n=e("zepto"),i=e("swiper"),o=e("lazyload");o(n("img.lazy")),t=new i(".banner-swiper",{loop:!0,pagination:".banner-top .pagination-inner",slideElement:"div",nextButton:".swiper-button-next",prevButton:".swiper-button-prev"})}),define("js/index/index",["zepto"],function(e,a,s){e("js/index/search"),e("js/index/channel")}),define("js/index/search",["zepto"],function(e,a,s){var t=e("zepto"),n=t("#search-input > input"),i=t("#search-input > .clear-input"),o=t(".history");t("#clear-history").bind("touchstart",function(){t.ajax({type:"POST",url:"/search/clearHistory",success:function(e){200===e.code&&o.html("")}})}),t("#search").bind("touchstart",function(){var e=n.val();t.ajax({type:"POST",url:"/search",data:{val:e},success:function(e){200===e.code&&(location.href=e.data)}})}),n.bind("input",function(){""===n.val()?i.addClass("hide"):i.removeClass("hide")}),i.bind("touchstart",function(){n.val("").trigger("input")})}),define("js/index/channel",[],function(e,a,s){}); |
static/dist/myohobuy/0.0.1/lib.js
deleted
100644 → 0
This diff could not be displayed because it is too large.
No preview for this file type
1 | -<?xml version="1.0" standalone="no"?> | ||
2 | -<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" > | ||
3 | -<svg xmlns="http://www.w3.org/2000/svg"> | ||
4 | -<metadata> | ||
5 | -Created by FontForge 20120731 at Thu Oct 22 11:17:10 2015 | ||
6 | - By Ads | ||
7 | -</metadata> | ||
8 | -<defs> | ||
9 | -<font id="iconfont" horiz-adv-x="1024" > | ||
10 | - <font-face | ||
11 | - font-family="iconfont" | ||
12 | - font-weight="500" | ||
13 | - font-stretch="normal" | ||
14 | - units-per-em="1024" | ||
15 | - panose-1="2 0 6 3 0 0 0 0 0 0" | ||
16 | - ascent="812" | ||
17 | - descent="-212" | ||
18 | - x-height="792" | ||
19 | - bbox="-0.75 -224 3943 812.871" | ||
20 | - underline-thickness="50" | ||
21 | - underline-position="-100" | ||
22 | - unicode-range="U+0078-E626" | ||
23 | - /> | ||
24 | -<missing-glyph horiz-adv-x="374" | ||
25 | -d="M34 0v682h272v-682h-272zM68 34h204v614h-204v-614z" /> | ||
26 | - <glyph glyph-name=".notdef" horiz-adv-x="374" | ||
27 | -d="M34 0v682h272v-682h-272zM68 34h204v614h-204v-614z" /> | ||
28 | - <glyph glyph-name=".null" horiz-adv-x="0" | ||
29 | - /> | ||
30 | - <glyph glyph-name="nonmarkingreturn" horiz-adv-x="341" | ||
31 | - /> | ||
32 | - <glyph glyph-name="x" unicode="x" horiz-adv-x="1001" | ||
33 | -d="M281 543q-27 -1 -53 -1h-83q-18 0 -36.5 -6t-32.5 -18.5t-23 -32t-9 -45.5v-76h912v41q0 16 -0.5 30t-0.5 18q0 13 -5 29t-17 29.5t-31.5 22.5t-49.5 9h-133v-97h-438v97zM955 310v-52q0 -23 0.5 -52t0.5 -58t-10.5 -47.5t-26 -30t-33 -16t-31.5 -4.5q-14 -1 -29.5 -0.5 | ||
34 | -t-29.5 0.5h-32l-45 128h-439l-44 -128h-29h-34q-20 0 -45 1q-25 0 -41 9.5t-25.5 23t-13.5 29.5t-4 30v167h911zM163 247q-12 0 -21 -8.5t-9 -21.5t9 -21.5t21 -8.5q13 0 22 8.5t9 21.5t-9 21.5t-22 8.5zM316 123q-8 -26 -14 -48q-5 -19 -10.5 -37t-7.5 -25t-3 -15t1 -14.5 | ||
35 | -t9.5 -10.5t21.5 -4h37h67h81h80h64h36q23 0 34 12t2 38q-5 13 -9.5 30.5t-9.5 34.5q-5 19 -11 39h-368zM336 498v228q0 11 2.5 23t10 21.5t20.5 15.5t34 6h188q31 0 51.5 -14.5t20.5 -52.5v-227h-327z" /> | ||
36 | - <glyph glyph-name="uniE600" unicode="" horiz-adv-x="1463" | ||
37 | -d="M798 -160q0 -46 25 -58t61 16l537 420q36 28 36 68t-36 68l-537 424q-36 29 -61 16.5t-25 -57.5v-238q-138 0 -252.5 -24.5t-192 -63.5t-137.5 -94t-94.5 -109t-57.5 -117t-31.5 -109.5t-11 -94t-1.5 -63.5t2 -25q47 62 87 104t90 78t103.5 57.5t127 36.5t161.5 21t207 6 | ||
38 | -v-262z" /> | ||
39 | - <glyph glyph-name="uniE601" unicode="" | ||
40 | -d="M281 372q-9 -6 -16.5 -14.5t-11.5 -18t-4 -18.5v-7v-483h1q4 -15 13.5 -28t24 -20t30.5 -7h582q28 0 48.5 20t20.5 49t-20.5 49t-48.5 20h41q35 0 59 24.5t24 58.5t-24 58.5t-59 24.5q35 0 59 24t24 59q0 16 -6.5 31.5t-17.5 26.5t-26.5 17.5t-32.5 6.5h-48q21 0 38 10.5 | ||
41 | -t27.5 27.5t10.5 38v-13q0 31 -22.5 54t-53.5 24q-125 6 -259 9q40 148 16 278q-4 25 -13.5 44.5t-22 31.5t-27 19.5t-29.5 8t-29.5 -2.5t-27.5 -12t-23 -21t-15.5 -30t-5.5 -38q-3 -19 -4.5 -36.5t-2.5 -28.5v-22q-1 -11 -2 -18.5t-2 -16t-3 -16.5t-5.5 -18t-8.5 -23 | ||
42 | -q-24 -60 -133 -115q-4 -1 -7 -2.5t-6 -3.5l-2 -1v0zM60 356q-25 0 -42.5 -17.5t-17.5 -42.5v-405q0 -25 17.5 -42.5t42.5 -17.5h134v525h-134z" /> | ||
43 | - <glyph glyph-name="uniE602" unicode="" horiz-adv-x="1323" | ||
44 | -d="M643 472q0 -68 -47.5 -116t-113.5 -48q0 -68 47 -116t113.5 -48t113.5 48t47 116t-47 116t-113 48zM643 800q-68 0 -139.5 -21.5t-133 -57t-119 -80.5t-102.5 -93t-79 -94t-52 -84t-18 -62q0 -28 25 -75t68 -102t105 -111t131 -101.5t152 -74.5t161.5 -29t161.5 29 | ||
45 | -t152 74.5t131 101.5t105 111t68 102t25 75t-25 75t-68 101.5t-105 110.5t-131 102t-152 74.5t-161 28.5zM643 -21q-88 0 -162 44t-117 120t-43 165q0 66 25.5 127t68.5 105t102.5 70t125.5 26q131 0 225 -94q94 -99 96 -234q0 -30 -5.5 -59t-15 -55.5t-23.5 -51.5t-32 -46 | ||
46 | -t-38.5 -39.5t-44.5 -32.5t-50 -24t-54.5 -15.5t-57.5 -5.5z" /> | ||
47 | - <glyph glyph-name="uniE603" unicode="" | ||
48 | -d="M512 286v343h85v-426h-81v-2h-256v85h252zM512 -224q139 0 257 68.5t186.5 186.5t68.5 257t-68.5 257t-186.5 186.5t-257 68.5t-257 -68.5t-186.5 -186.5t-68.5 -257t68.5 -257t186.5 -186.5t257 -68.5z" /> | ||
49 | - <glyph glyph-name="uniE604" unicode="" | ||
50 | -d="M774 324q6 -9 9.5 -19t2.5 -20.5t-5.5 -20.5t-12.5 -18l-1 -1l-427 -428q-18 -17 -42.5 -17t-41.5 17q-12 12 -16 27t0 30.5t15 26.5l387 387l-387 387q-17 17 -17 41.5t17.5 42t42 17.5t42.5 -17l427 -428q1 0 1 -1q2 -1 3.5 -2.5t2.5 -3.5z" /> | ||
51 | - <glyph glyph-name="uniE605" unicode="" | ||
52 | -d="M707 748q-55 0 -105 -20.5t-90 -56.5q-40 36 -90 56.5t-105 20.5q-34 0 -67 -8t-62 -23t-54.5 -35.5t-45.5 -46.5t-34.5 -55.5t-22 -63t-7.5 -68.5q0 -110 69 -194l2 -2l344 -391q30 -33 73 -33t73 33l344 391q0 1 1 2h1q22 27 37.5 58.5t23.5 66t8 69.5q0 49 -14.5 94.5 | ||
53 | -t-42 82.5t-63.5 64.5t-80.5 43t-92.5 15.5z" /> | ||
54 | - <glyph glyph-name="uniE606" unicode="" horiz-adv-x="1000" | ||
55 | -d="M109 415q19 0 35.5 -7t28.5 -19t19.5 -29t7.5 -35q0 -25 -12.5 -45.5t-33 -32.5t-45.5 -12q-37 0 -63.5 26.5t-26.5 63.5t26.5 63.5t63.5 26.5zM515.5 415q37.5 0 63.5 -26.5t26 -63.5t-26 -63.5t-63.5 -26.5t-64 26.5t-26.5 63.5t26.5 63.5t64 26.5zM921 415 | ||
56 | -q37 0 63.5 -26.5t26.5 -63.5t-26.5 -63.5t-63.5 -26.5t-63.5 26.5t-26.5 63.5t26.5 63.5t63.5 26.5z" /> | ||
57 | - <glyph glyph-name="uniE607" unicode="" horiz-adv-x="1643" | ||
58 | -d="M547 190h-1l45 -46l248 239l-45 46l-201 -194l-195 201l-46 -44z" /> | ||
59 | - <glyph glyph-name="uniE608" unicode="" horiz-adv-x="1821" | ||
60 | -d="M930 135q-14 -13 -33.5 -13t-33.5 13l-252 242q-14 13 -14 32t14 32t34 13t34 -13l251 -242q6 -5 9.5 -11.5t4.5 -13.5t0 -14t-4.5 -13.5t-9.5 -11.5zM360 135q-14 13 -14 32t14 32l251 242q14 13 34 13t34 -13q6 -6 9.5 -15t3.5 -17.5t-3.5 -17t-9.5 -14.5l-252 -242 | ||
61 | -q-14 -13 -33.5 -13t-33.5 13z" /> | ||
62 | - <glyph glyph-name="uniE609" unicode="" horiz-adv-x="1821" | ||
63 | -d="M930 377l-251 -242q-14 -13 -34 -13t-34 13q-9 9 -12 20.5t0 23.5t12 20l252 242q14 13 33.5 13t33.5 -13t14 -32t-14 -32zM427 441l252 -242q9 -8 12 -20t0 -23.5t-12 -20.5q-14 -13 -34 -13t-34 13l-251 242q-14 13 -14 32t14 32q6 7 15 10.5t18 3.5t18 -3.5t16 -10.5z | ||
64 | -" /> | ||
65 | - <glyph glyph-name="uniE60A" unicode="" | ||
66 | -d="M1024 288q0 -139 -68.5 -257t-186.5 -186.5t-257 -68.5t-257 68.5t-186.5 186.5t-68.5 257t68.5 257t186.5 186.5t257 68.5t257 -68.5t186.5 -186.5t68.5 -257zM801 498l-365 -366l-156 156l-37 -37l193 -193l403 403z" /> | ||
67 | - <glyph glyph-name="uniE60B" unicode="" horiz-adv-x="1344" | ||
68 | -d="M1280 236h-1216q-27 0 -45.5 18.5t-18.5 45.5t18.5 45.5t45.5 18.5h1216q27 0 45.5 -18.5t18.5 -45.5t-18.5 -45.5t-45.5 -18.5zM1280 -212h-1216q-27 0 -45.5 18.5t-18.5 45.5t18.5 45.5t45.5 18.5h1216q27 0 45.5 -18.5t18.5 -45.5t-18.5 -45.5t-45.5 -18.5zM1280 684 | ||
69 | -h-1216q-27 0 -45.5 18.5t-18.5 45.5t18.5 45.5t45.5 18.5h1216q27 0 45.5 -18.5t18.5 -45.5t-18.5 -45.5t-45.5 -18.5z" /> | ||
70 | - <glyph glyph-name="uniE60C" unicode="" | ||
71 | -d="M1024 300q0 -139 -68.5 -257t-186.5 -186.5t-257 -68.5t-257 68.5t-186.5 186.5t-68.5 257t68.5 257t186.5 186.5t257 68.5t257 -68.5t186.5 -186.5t68.5 -257z" /> | ||
72 | - <glyph glyph-name="uniE60D" unicode="" horiz-adv-x="1685" | ||
73 | -d="M1229 -77l289 -135l58 124l-281 131q-7 -18 -18 -39.5t-23 -41.5t-25 -39zM944 475v-134h137v258q42 47 62 81l-118 69q-2 -4 -8 -12t-24.5 -30.5t-41 -45.5t-60.5 -54.5t-81 -59.5l75 -114q6 4 12.5 8t12.5 8.5t11.5 8.5t11.5 8t11 9zM1524 19v304h-605v-304h137v167 | ||
74 | -h332v-167h136zM1283 169h-137v-66q0 -26 -13.5 -48.5t-37 -40t-52 -32t-63 -25.5t-64 -19t-60.5 -14l74 -124q55 14 103 30.5t95.5 43t80.5 58t53.5 75.5t20.5 96v66zM1088 570l31 -133q42 9 85 21q19 -49 59 -78q49 -36 120 -36q26 0 49.5 4t42.5 10q69 21 133 78l-67 125 | ||
75 | -q-7 -7 -17 -16t-24 -20.5t-31 -21t-34 -14.5q-29 -9 -53.5 -8.5t-37.5 9.5q-4 3 -8 9q147 51 240 103l-81 111q-74 -38 -173 -74v85h-137v-129q-50 -14 -97 -25zM755 477v137h-348q11 42 19 84l-134 26q-4 -19 -8 -37.5t-9.5 -36.5t-10.5 -36h-200v-137h142 | ||
76 | -q-79 -149 -206 -260l90 -103q43 38 85 83v-389h137v165h260v-24h-124l48 -137h83q54 0 92 38t38 92v490h-373q11 22 21 45h398zM312 134h260v-24h-260v24zM312 295h260v-24h-260v24zM1683 732q0 -33 -22.5 -56t-55.5 -23q-22 0 -40 10.5t-28.5 28.5t-10.5 40q0 16 6 30.5 | ||
77 | -t16.5 25t25.5 16.5t31 6q33 0 55.5 -22.5t22.5 -55.5zM1545 732q0 -10 3 -20t8.5 -17.5t13 -13.5t16.5 -9t19 -3q25 0 41.5 18t16.5 44q0 27 -16.5 45.5t-42.5 18.5q-25 0 -42 -18.5t-17 -44.5zM1592 691h-17v79q17 2 29 2q18 0 26 -6q2 -1 3.5 -3t2.5 -4t1.5 -4.5t0.5 -5.5 | ||
78 | -q0 -7 -4.5 -11.5t-11.5 -7.5v-1q10 -3 14 -19q1 -8 2.5 -12t3.5 -7h-19q-2 3 -6 19q-2 12 -16 12h-9v-31zM1593 735h8q18 0 18 12q0 5 -4 8.5t-12 3.5q-4 0 -6 -0.5t-4 -0.5v-23z" /> | ||
79 | - <glyph glyph-name="uniE60E" unicode="" horiz-adv-x="3958" | ||
80 | -d="M611 639h-177l-150 -222l-95 222h-178l168 -395v-2l-31 -243h156l30 231zM699 481q-100 0 -179.5 -72.5t-92.5 -175.5q-13 -105 51 -178q61 -68 157 -68q99 0 178.5 72.5t92.5 175.5q13 104 -51 177q-60 69 -156 69zM759 233q-2 -16 -8.5 -31.5t-16.5 -27.5t-22.5 -21.5 | ||
81 | -t-27 -14.5t-29.5 -5q-12 0 -23 3t-20.5 9t-16.5 15q-13 14 -18.5 33.5t-2.5 41.5q2 16 8.5 31t16.5 27.5t22.5 21.5t27.5 14.5t30 5.5q36 0 59 -27q27 -30 21 -75zM1656 481q-65 0 -124.5 -33t-99 -90.5t-48.5 -124.5q-13 -105 51 -178q20 -22 44.5 -37t53 -23t59.5 -8 | ||
82 | -q99 0 178.5 72.5t92.5 175.5q3 25 1.5 49.5t-8 47t-17.5 43t-27 37.5q-29 34 -69.5 51.5t-86.5 17.5zM1717 233q-4 -27 -19 -50t-38 -36.5t-48 -13.5q-18 0 -33.5 7t-26.5 20q-13 14 -18.5 33.5t-2.5 41.5q5 41 36 70.5t69 29.5q8 0 16.5 -2t16 -5.5t14.5 -8.5t13 -11 | ||
83 | -q26 -30 21 -75zM1332 418q-44 50 -114 50q-13 0 -25.5 -1.5t-24.5 -5t-24 -9t-23 -11.5l-10 -6l26 204h-156l-80 -640h155l37 288q3 24 22 41t43 17q12 0 22.5 -4.5t17.5 -12.5q16 -18 12 -42l-36 -287h156l37 298q2 13 1.5 26.5t-3 26.5t-7 25t-11 23t-15.5 20zM2949 460 | ||
84 | -l-37 -288q-3 -24 -22 -41t-44 -17q-24 0 -39 17q-5 6 -8.5 12.5t-4.5 14t0 15.5l37 287h-156l-38 -298q-9 -71 36 -121q21 -25 50.5 -37.5t63.5 -12.5q25 0 49.5 7t47.5 20l9 6l-3 -25h156l58 461h-155zM1951 639l-55 -432h156l55 432h-156zM1970 168q-18 0 -36 -7.5 | ||
85 | -t-31.5 -19.5t-22.5 -28.5t-12 -34.5q-4 -37 19 -63q11 -13 26 -19.5t33 -6.5q37 0 67 26.5t34 63.5q5 37 -18 63q-4 5 -9.5 9t-11 7t-12 5.5t-13 3.5t-13.5 1zM2608 178q4 34 -3.5 64.5t-26.5 55t-47 39.5l-8 5l8 5q19 10 35.5 25t28.5 32.5t19.5 37t10.5 40.5q8 63 -30 108 | ||
86 | -q-37 44 -97 48l-6 1h-314l-81 -640h317q72 3 128.5 55t65.5 124zM2451 200q-3 -27 -25 -46.5t-50 -19.5h-106l17 134h107q27 -1 43.5 -20.5t13.5 -47.5zM2483 447q-2 -16 -12 -30t-25 -22.5t-31 -8.5h-113l15 124h112q25 0 41.5 -18.5t12.5 -44.5zM3132 -211q65 0 124 37.5 | ||
87 | -t89 99.5l264 534h-156l-127 -258l-63 258h-156l113 -471l-7 -14q-8 -18 -25 -29t-36 -11q-5 0 -10 1t-10 3l-29 11l-67 -139l29 -10q31 -12 67 -12zM3943 646q0 -16 -3 -31.5t-9 -29.5t-14.5 -26.5t-19 -23t-23 -19t-26.5 -14.5t-29.5 -9t-31.5 -3q-32 0 -61 12t-50 33 | ||
88 | -t-33 50t-12 61q0 43 20.5 79t57 56.5t79.5 20.5q65 0 110 -45t45 -111zM3670 646q0 -25 9 -48t24.5 -40t37.5 -26.5t47 -9.5q24 0 46 9.5t37 26t24 39.5t9 48q0 53 -33.5 89.5t-84.5 36.5q-32 0 -59 -17t-42 -45.5t-15 -62.5zM3763 566h-35v155q11 2 16.5 2.5t18 1.5t23.5 1 | ||
89 | -q21 0 32.5 -3t19.5 -9q7 -6 11.5 -14.5t4.5 -19.5q0 -13 -8.5 -22.5t-23.5 -14.5v-2q20 -6 27 -37q2 -9 3.5 -15.5t3 -11t2.5 -7t2 -4.5h-37q-4 5 -12 38q-2 12 -9.5 17.5t-21.5 5.5h-17v-61zM3764 653h17q35 0 35 23t-32 23q-7 0 -12 -0.5t-8 -0.5v-45z" /> | ||
90 | - <glyph glyph-name="uniE60F" unicode="" | ||
91 | -d="M682 74q-108 -89 -249 -89q-53 0 -104.5 14.5t-94.5 39.5t-79.5 61.5t-61.5 79.5t-39.5 94t-14.5 105q0 107 53 197.5t143.5 143.5t197.5 53t197.5 -53t143.5 -143.5t53 -197.5q0 -141 -89 -249l286 -286l-56 -56zM433 64q131 0 223 92t92 222.5t-92 223t-223 92.5 | ||
92 | -t-223 -93q-91 -93 -92 -222q0 -86 42 -158.5t115 -114.5t158 -42z" /> | ||
93 | - <glyph glyph-name="uniE610" unicode="" | ||
94 | -d="M245 300l-9 9l472 472l80 -80l-400 -401l400 -401l-80 -80l-472 472z" /> | ||
95 | - <glyph glyph-name="uniE611" unicode="" | ||
96 | -d="M509 780q-4 -2 -245 -245q-221 -224 -235 -245q-6 -9 -6 -15q0 -35 42 -33q7 0 233 227l225 228l226 -228q105 -106 167 -166.5t65 -60.5q21 -1 31.5 7.5t10.5 25.5q0 12 -32 46q-33 36 -206 212q-241 243 -246 246q-15 8 -30 1zM171 245q-12 -8 -14 -38.5t-2 -188 | ||
97 | -t2 -188t14 -38.5q7 -6 352.5 -6t352.5 6q11 8 13 36q2 30 2 190q0 158 -2 188.5t-13 38.5q-8 7 -21.5 5.5t-21.5 -10.5l-10 -9v-381h-600v381l-10 9q-15 16 -36 9q-4 -2 -6 -4zM398 202l-11 -12v-215l11 -12q6 -8 11 -10.5t14 -2.5q16 0 26 13l10 12v175h128v-175l11 -12 | ||
98 | -q7 -9 16 -12t18.5 0t16.5 12l10 12v215l-20 24h-231z" /> | ||
99 | - <glyph glyph-name="uniE612" unicode="" | ||
100 | -d="M951 -7h-878l439 614z" /> | ||
101 | - <glyph glyph-name="uniE613" unicode="" | ||
102 | -d="M512 -7l-439 614h878z" /> | ||
103 | - <glyph glyph-name="uniE614" unicode="" | ||
104 | -d="M313 -49l349 349l-349 349q-7 7 -7 16.5t6.5 16t16 6.5t16.5 -6l345 -345q16 -15 21 -20q7 -7 7 -17t-7 -17q-4 -4 -25.5 -25t-22.5 -22l-318 -318q-7 -6 -16.5 -6t-16 6.5t-6.5 16t7 16.5z" /> | ||
105 | - <glyph glyph-name="uniE615" unicode="" | ||
106 | -d="M527.5 475q2.5 0 4.5 -1l6 -2q2 -1 3 -3l293 -288q3 -3 5 -6.5t2 -7.5t-1.5 -8t-4.5 -7q-6 -6 -14.5 -6t-14.5 6l-279 273l-278 -273q-7 -6 -15 -6t-14 6t-6 14.5t6 14.5l293 288q2 2 4 3t5 2t5.5 1z" /> | ||
107 | - <glyph glyph-name="uniE616" unicode="" | ||
108 | -d="M527 146q-4 0 -7.5 1.5t-6.5 4.5l-293 288q-6 6 -6 14t6 14.5t14 6.5t15 -6l278 -274l279 274q6 6 14.5 6t14.5 -6.5t5.5 -14.5t-6.5 -14l-293 -288q-5 -6 -14 -6z" /> | ||
109 | - <glyph glyph-name="uniE617" unicode="" horiz-adv-x="1030" | ||
110 | -d="M-195 162zM520 770q-98 0 -187.5 -38t-154 -102.5t-102.5 -154t-38 -187.5q0 -79 24 -152.5t69 -132.5t104 -103.5t132.5 -69t152.5 -24.5q98 0 187.5 38t154 102.5t102.5 154t38 187.5t-38 187.5t-102.5 154t-154 102.5t-187.5 38zM857 485l-339 -451l-328 238 | ||
111 | -q-12 9 -14 23.5t7 26.5q5 8 13.5 11.5t18 2.5t17.5 -6l271 -198l297 396q6 8 14.5 11.5t18 2.5t17.5 -7q12 -9 14 -23.5t-7 -26.5z" /> | ||
112 | - <glyph glyph-name="uniE618" unicode="" | ||
113 | -d="M224 192q-40 0 -68 28t-28 68t28 68t68 28t68 -28t28 -68t-28 -68t-68 -28zM512 192q-40 0 -68 28t-28 68t28 68t68 28t68 -28t28 -68t-28 -68t-68 -28zM800 192q-40 0 -68 28t-28 68t28 68t68 28t68 -28t28 -68t-28 -68t-68 -28z" /> | ||
114 | - <glyph glyph-name="uniE619" unicode="" | ||
115 | -d="M126 225q30 0 50.5 21.5t20.5 52.5q0 33 -20.5 54.5t-51 21.5t-51.5 -21.5t-21 -54.5q0 -45 38 -66q17 -8 35 -8zM512 225q15 0 28.5 5.5t23 15.5t15 24t5.5 29q0 9 -2 18t-5.5 16.5t-8 14t-10.5 11.5t-13.5 9t-15.5 5.5t-17 1.5q-30 0 -51 -21.5t-21 -54.5q0 -45 38 -66 | ||
116 | -q16 -8 34 -8zM899.5 225q30.5 0 51 21.5t20.5 52.5q0 9 -2 18t-5.5 16.5t-8 14t-11 11.5t-13.5 9t-15 5.5t-17 1.5q-20 0 -36.5 -9.5t-26 -27t-9.5 -39.5q0 -31 21 -52.5t51.5 -21.5z" /> | ||
117 | - <glyph glyph-name="uniE61B" unicode="" | ||
118 | -d="M437 41h-193q-27 2 -41.5 22.5t-17.5 45.5q3 25 17.5 41t41.5 18h193v63l-193 1q-27 2 -41.5 19t-17.5 43q3 25 17.5 41t41.5 18h144l-134 236q-10 12 -19 30.5t-8 40.5q5 28 20 45.5t56 22.5q24 -2 43 -16.5t31 -31.5l152 -278l167 280q12 17 31 30t43 16q15 -1 27.5 -4 | ||
119 | -t22 -10t16 -20t9.5 -34q0 -29 -20 -55l-155 -252h147q26 -2 41 -18t17 -41q-2 -26 -17.5 -44t-41.5 -20l-191 -1v-61h192q26 -2 41 -20t17 -43q-2 -26 -17 -43.5t-41 -19.5l-192 1v-106q-4 -85 -93 -85q-44 0 -68.5 21t-26.5 64v104z" /> | ||
120 | - <glyph glyph-name="uniE61C" unicode="" | ||
121 | -d="M946 -196h-868q-26 0 -44 18t-18 44v868q0 26 18 44t44 18h868q26 0 44 -18t18 -44v-868q0 -26 -18 -44t-44 -18zM946 703q0 13 -9 22t-22 9h-806q-13 0 -22 -9t-9 -22v-806q0 -13 9 -22t22 -9h806q13 0 22 9t9 22v806z" /> | ||
122 | - <glyph glyph-name="uniE61D" unicode="" | ||
123 | -d="M939 -202h-876q-17 0 -31.5 8.5t-23 23t-8.5 31.5v876q0 26 18.5 44.5t44.5 18.5h876q26 0 44.5 -18.5t18.5 -44.5v-876q0 -39 -35 -57q-14 -6 -28 -6zM814 612l-376 -438l-250 188l-63 -126l313 -250l439 501z" /> | ||
124 | - <glyph glyph-name="uniE61E" unicode="" | ||
125 | -d="M224 211l416 410l179 -179l-416 -410zM659 525l-19 19l-333 -333l19 -19zM698 486l-20 20l-332 -333l19 -19zM736 448l-19 19l-333 -333l19 -19zM717 704q14 14 38 14t39 -14l102 -102q6 -6 9.5 -14t4.5 -16.5t0 -17t-4.5 -16.5t-9.5 -13l-64 -58l-173 173zM211 186 | ||
126 | -l167 -167l-148 -51l-70 70zM205 -45l-83 -32l32 83z" /> | ||
127 | - <glyph glyph-name="uniE61F" unicode="" | ||
128 | -d="M512 812q-138 0 -256 -69t-187 -187t-69 -256t69 -256t187 -187t256 -69t256 69t187 187t69 256t-69 256t-187 187t-256 69zM563 44h-102v307h102v-307zM563 454h-102v102h102v-102z" /> | ||
129 | - <glyph glyph-name="uniE620" unicode="" | ||
130 | -d="M938 276h-400v274h-50v-274h-399q-15 0 -29 5.5t-24 15.5t-16 24t-6 29v175q0 31 22 53t53 22h90q-18 21 -29 46t-11 54q0 27 10 47.5t25 30t29.5 15t24.5 6.5l11 1q53 0 100 -15.5t81 -42t56 -50t39 -50.5q17 27 39.5 51t56 50t79.5 41.5t98 15.5h4q2 0 8.5 -1.5 | ||
131 | -t13.5 -3t16 -5.5t16.5 -9t15.5 -13t13.5 -17.5t9 -23.5t3.5 -30q0 -28 -9.5 -52t-25.5 -45h85q31 0 53 -22t22 -53v-175q0 -44 -39 -65q-17 -9 -36 -9zM264 725q-15 0 -26 -2.5t-15.5 -6t-6.5 -7.5t-2 -6v-3q0 -49 66 -100h173q-14 30 -30 52.5t-34 35.5t-33 21t-34.5 11.5 | ||
132 | -t-30 4t-27.5 0.5zM763 723q-13 0 -20 -0.5t-21.5 -1.5t-24.5 -4.5t-24 -9t-25.5 -14.5t-24 -21.5t-24.5 -30.5t-22 -41h177q59 50 59 97v3q0 2 -2 6.5t-7 7.5t-15.5 6t-25.5 3zM488 -224h-349q-15 0 -29 6t-24 16t-16 24t-6 29v375h424v-450zM538 226h400v-375 | ||
133 | -q0 -31 -22 -53t-53 -22h-325v450z" /> | ||
134 | - <glyph glyph-name="uniE621" unicode="" | ||
135 | -d="M160 492v-640q0 -26 19 -45t45 -19h576q26 0 45 19t19 45v640h-704zM352 -84h-64v448h64v-448zM480 -84h-64v448h64v-448zM608 -84h-64v448h64v-448zM736 -84h-64v448h64v-448zM880 684h-208v80q0 20 -14 34t-34 14h-224q-8 0 -15 -2.5t-13 -7t-10.5 -10.5t-7 -13 | ||
136 | -t-2.5 -15v-80h-208q-20 0 -34 -14t-14 -34v-80h832v80q0 6 -1.5 11t-3.5 10t-5.5 9t-7.5 7.5t-9 5.5t-10 3.5t-11 1.5zM608 684h-192v63h192v-63z" /> | ||
137 | - <glyph glyph-name="uniE622" unicode="" horiz-adv-x="1173" | ||
138 | -d="M586 588q-64 150 -188 203q-114 47 -222 -7q-112 -56 -155 -192q-20 -67 -21 -144q0 -41 9 -78.5t24 -66.5t39 -57.5t47 -48.5t55.5 -43t56.5 -38t58.5 -35.5t53.5 -33.5q63 -42 118 -94.5t86.5 -95t39.5 -69.5q4 19 25.5 50t53.5 66t75 74t88 71q21 15 53.5 35.5t58 36 | ||
139 | -t57 38t55 43t47 48t39 56.5t25 66.5t8.5 78.5q0 75 -19.5 138t-52.5 105.5t-76.5 70.5t-91 37.5t-98 1t-96 -34.5t-85.5 -72.5t-67 -108.5z" /> | ||
140 | - <glyph glyph-name="uniE623" unicode="" | ||
141 | -d="M835 576l-60 63l-263 -275v0l-263 275l-60 -63l262 -276l-262 -276l60 -63l263 275v0l263 -275l60 63l-262 276z" /> | ||
142 | - <glyph glyph-name="uniE624" unicode="" horiz-adv-x="1000" | ||
143 | -d="M459 754h22h23h20h22h22v-191v-191h191h191v-109h-191h-191v-191v-190h-109v190v191h-191h-190q-1 37 -1 109h128h127h127v116v150v116z" /> | ||
144 | - <glyph glyph-name="uniE625" unicode="" horiz-adv-x="1000" | ||
145 | -d="M77 372h873v-109h-873v109z" /> | ||
146 | - <glyph glyph-name="uniE626" unicode="" | ||
147 | -d="M866.5 663.5q-97.5 97.5 -228 132t-261.5 0t-228.5 -132t-132 -228.5t0 -261.5t132 -228t228.5 -132t261.5 0t228 132t132 228t0 261.5t-132 228.5zM798 115l-101 -101l-187 186l-186 -186l-101 101l186 186l-186 187l101 101l186 -186l187 186l101 -101l-186 -187z" /> | ||
148 | - </font> | ||
149 | -</defs></svg> |
No preview for this file type
No preview for this file type

5.47 KB

1.66 KB

12.6 KB

12.6 KB

1.05 KB

908 Bytes

1.63 KB

999 Bytes

935 Bytes

1.45 KB

821 Bytes

1.72 KB

1.12 KB

1.18 KB

2.63 KB

2.51 KB

2.63 KB

2.63 KB

2.64 KB

2.14 KB

5.2 KB

1.04 KB

1.2 KB

9.08 KB

18.4 KB

1.07 KB

1.33 KB

1.66 KB

1.48 KB

1.13 KB

17.7 KB

2.17 KB

1.32 KB

18 KB

18.7 KB

18.5 KB

5.09 KB

1.35 KB

1.65 KB

2 KB

2.79 KB

1.93 KB

2.11 KB

1.73 KB

2.37 KB

687 Bytes

5.24 KB

6.02 KB

3.41 KB
static/font/iconfont.eot
deleted
100644 → 0
No preview for this file type
static/font/iconfont.svg
deleted
100644 → 0
1 | -<?xml version="1.0" standalone="no"?> | ||
2 | -<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" > | ||
3 | -<svg xmlns="http://www.w3.org/2000/svg"> | ||
4 | -<metadata> | ||
5 | -Created by FontForge 20120731 at Thu Oct 22 11:17:10 2015 | ||
6 | - By Ads | ||
7 | -</metadata> | ||
8 | -<defs> | ||
9 | -<font id="iconfont" horiz-adv-x="1024" > | ||
10 | - <font-face | ||
11 | - font-family="iconfont" | ||
12 | - font-weight="500" | ||
13 | - font-stretch="normal" | ||
14 | - units-per-em="1024" | ||
15 | - panose-1="2 0 6 3 0 0 0 0 0 0" | ||
16 | - ascent="812" | ||
17 | - descent="-212" | ||
18 | - x-height="792" | ||
19 | - bbox="-0.75 -224 3943 812.871" | ||
20 | - underline-thickness="50" | ||
21 | - underline-position="-100" | ||
22 | - unicode-range="U+0078-E626" | ||
23 | - /> | ||
24 | -<missing-glyph horiz-adv-x="374" | ||
25 | -d="M34 0v682h272v-682h-272zM68 34h204v614h-204v-614z" /> | ||
26 | - <glyph glyph-name=".notdef" horiz-adv-x="374" | ||
27 | -d="M34 0v682h272v-682h-272zM68 34h204v614h-204v-614z" /> | ||
28 | - <glyph glyph-name=".null" horiz-adv-x="0" | ||
29 | - /> | ||
30 | - <glyph glyph-name="nonmarkingreturn" horiz-adv-x="341" | ||
31 | - /> | ||
32 | - <glyph glyph-name="x" unicode="x" horiz-adv-x="1001" | ||
33 | -d="M281 543q-27 -1 -53 -1h-83q-18 0 -36.5 -6t-32.5 -18.5t-23 -32t-9 -45.5v-76h912v41q0 16 -0.5 30t-0.5 18q0 13 -5 29t-17 29.5t-31.5 22.5t-49.5 9h-133v-97h-438v97zM955 310v-52q0 -23 0.5 -52t0.5 -58t-10.5 -47.5t-26 -30t-33 -16t-31.5 -4.5q-14 -1 -29.5 -0.5 | ||
34 | -t-29.5 0.5h-32l-45 128h-439l-44 -128h-29h-34q-20 0 -45 1q-25 0 -41 9.5t-25.5 23t-13.5 29.5t-4 30v167h911zM163 247q-12 0 -21 -8.5t-9 -21.5t9 -21.5t21 -8.5q13 0 22 8.5t9 21.5t-9 21.5t-22 8.5zM316 123q-8 -26 -14 -48q-5 -19 -10.5 -37t-7.5 -25t-3 -15t1 -14.5 | ||
35 | -t9.5 -10.5t21.5 -4h37h67h81h80h64h36q23 0 34 12t2 38q-5 13 -9.5 30.5t-9.5 34.5q-5 19 -11 39h-368zM336 498v228q0 11 2.5 23t10 21.5t20.5 15.5t34 6h188q31 0 51.5 -14.5t20.5 -52.5v-227h-327z" /> | ||
36 | - <glyph glyph-name="uniE600" unicode="" horiz-adv-x="1463" | ||
37 | -d="M798 -160q0 -46 25 -58t61 16l537 420q36 28 36 68t-36 68l-537 424q-36 29 -61 16.5t-25 -57.5v-238q-138 0 -252.5 -24.5t-192 -63.5t-137.5 -94t-94.5 -109t-57.5 -117t-31.5 -109.5t-11 -94t-1.5 -63.5t2 -25q47 62 87 104t90 78t103.5 57.5t127 36.5t161.5 21t207 6 | ||
38 | -v-262z" /> | ||
39 | - <glyph glyph-name="uniE601" unicode="" | ||
40 | -d="M281 372q-9 -6 -16.5 -14.5t-11.5 -18t-4 -18.5v-7v-483h1q4 -15 13.5 -28t24 -20t30.5 -7h582q28 0 48.5 20t20.5 49t-20.5 49t-48.5 20h41q35 0 59 24.5t24 58.5t-24 58.5t-59 24.5q35 0 59 24t24 59q0 16 -6.5 31.5t-17.5 26.5t-26.5 17.5t-32.5 6.5h-48q21 0 38 10.5 | ||
41 | -t27.5 27.5t10.5 38v-13q0 31 -22.5 54t-53.5 24q-125 6 -259 9q40 148 16 278q-4 25 -13.5 44.5t-22 31.5t-27 19.5t-29.5 8t-29.5 -2.5t-27.5 -12t-23 -21t-15.5 -30t-5.5 -38q-3 -19 -4.5 -36.5t-2.5 -28.5v-22q-1 -11 -2 -18.5t-2 -16t-3 -16.5t-5.5 -18t-8.5 -23 | ||
42 | -q-24 -60 -133 -115q-4 -1 -7 -2.5t-6 -3.5l-2 -1v0zM60 356q-25 0 -42.5 -17.5t-17.5 -42.5v-405q0 -25 17.5 -42.5t42.5 -17.5h134v525h-134z" /> | ||
43 | - <glyph glyph-name="uniE602" unicode="" horiz-adv-x="1323" | ||
44 | -d="M643 472q0 -68 -47.5 -116t-113.5 -48q0 -68 47 -116t113.5 -48t113.5 48t47 116t-47 116t-113 48zM643 800q-68 0 -139.5 -21.5t-133 -57t-119 -80.5t-102.5 -93t-79 -94t-52 -84t-18 -62q0 -28 25 -75t68 -102t105 -111t131 -101.5t152 -74.5t161.5 -29t161.5 29 | ||
45 | -t152 74.5t131 101.5t105 111t68 102t25 75t-25 75t-68 101.5t-105 110.5t-131 102t-152 74.5t-161 28.5zM643 -21q-88 0 -162 44t-117 120t-43 165q0 66 25.5 127t68.5 105t102.5 70t125.5 26q131 0 225 -94q94 -99 96 -234q0 -30 -5.5 -59t-15 -55.5t-23.5 -51.5t-32 -46 | ||
46 | -t-38.5 -39.5t-44.5 -32.5t-50 -24t-54.5 -15.5t-57.5 -5.5z" /> | ||
47 | - <glyph glyph-name="uniE603" unicode="" | ||
48 | -d="M512 286v343h85v-426h-81v-2h-256v85h252zM512 -224q139 0 257 68.5t186.5 186.5t68.5 257t-68.5 257t-186.5 186.5t-257 68.5t-257 -68.5t-186.5 -186.5t-68.5 -257t68.5 -257t186.5 -186.5t257 -68.5z" /> | ||
49 | - <glyph glyph-name="uniE604" unicode="" | ||
50 | -d="M774 324q6 -9 9.5 -19t2.5 -20.5t-5.5 -20.5t-12.5 -18l-1 -1l-427 -428q-18 -17 -42.5 -17t-41.5 17q-12 12 -16 27t0 30.5t15 26.5l387 387l-387 387q-17 17 -17 41.5t17.5 42t42 17.5t42.5 -17l427 -428q1 0 1 -1q2 -1 3.5 -2.5t2.5 -3.5z" /> | ||
51 | - <glyph glyph-name="uniE605" unicode="" | ||
52 | -d="M707 748q-55 0 -105 -20.5t-90 -56.5q-40 36 -90 56.5t-105 20.5q-34 0 -67 -8t-62 -23t-54.5 -35.5t-45.5 -46.5t-34.5 -55.5t-22 -63t-7.5 -68.5q0 -110 69 -194l2 -2l344 -391q30 -33 73 -33t73 33l344 391q0 1 1 2h1q22 27 37.5 58.5t23.5 66t8 69.5q0 49 -14.5 94.5 | ||
53 | -t-42 82.5t-63.5 64.5t-80.5 43t-92.5 15.5z" /> | ||
54 | - <glyph glyph-name="uniE606" unicode="" horiz-adv-x="1000" | ||
55 | -d="M109 415q19 0 35.5 -7t28.5 -19t19.5 -29t7.5 -35q0 -25 -12.5 -45.5t-33 -32.5t-45.5 -12q-37 0 -63.5 26.5t-26.5 63.5t26.5 63.5t63.5 26.5zM515.5 415q37.5 0 63.5 -26.5t26 -63.5t-26 -63.5t-63.5 -26.5t-64 26.5t-26.5 63.5t26.5 63.5t64 26.5zM921 415 | ||
56 | -q37 0 63.5 -26.5t26.5 -63.5t-26.5 -63.5t-63.5 -26.5t-63.5 26.5t-26.5 63.5t26.5 63.5t63.5 26.5z" /> | ||
57 | - <glyph glyph-name="uniE607" unicode="" horiz-adv-x="1643" | ||
58 | -d="M547 190h-1l45 -46l248 239l-45 46l-201 -194l-195 201l-46 -44z" /> | ||
59 | - <glyph glyph-name="uniE608" unicode="" horiz-adv-x="1821" | ||
60 | -d="M930 135q-14 -13 -33.5 -13t-33.5 13l-252 242q-14 13 -14 32t14 32t34 13t34 -13l251 -242q6 -5 9.5 -11.5t4.5 -13.5t0 -14t-4.5 -13.5t-9.5 -11.5zM360 135q-14 13 -14 32t14 32l251 242q14 13 34 13t34 -13q6 -6 9.5 -15t3.5 -17.5t-3.5 -17t-9.5 -14.5l-252 -242 | ||
61 | -q-14 -13 -33.5 -13t-33.5 13z" /> | ||
62 | - <glyph glyph-name="uniE609" unicode="" horiz-adv-x="1821" | ||
63 | -d="M930 377l-251 -242q-14 -13 -34 -13t-34 13q-9 9 -12 20.5t0 23.5t12 20l252 242q14 13 33.5 13t33.5 -13t14 -32t-14 -32zM427 441l252 -242q9 -8 12 -20t0 -23.5t-12 -20.5q-14 -13 -34 -13t-34 13l-251 242q-14 13 -14 32t14 32q6 7 15 10.5t18 3.5t18 -3.5t16 -10.5z | ||
64 | -" /> | ||
65 | - <glyph glyph-name="uniE60A" unicode="" | ||
66 | -d="M1024 288q0 -139 -68.5 -257t-186.5 -186.5t-257 -68.5t-257 68.5t-186.5 186.5t-68.5 257t68.5 257t186.5 186.5t257 68.5t257 -68.5t186.5 -186.5t68.5 -257zM801 498l-365 -366l-156 156l-37 -37l193 -193l403 403z" /> | ||
67 | - <glyph glyph-name="uniE60B" unicode="" horiz-adv-x="1344" | ||
68 | -d="M1280 236h-1216q-27 0 -45.5 18.5t-18.5 45.5t18.5 45.5t45.5 18.5h1216q27 0 45.5 -18.5t18.5 -45.5t-18.5 -45.5t-45.5 -18.5zM1280 -212h-1216q-27 0 -45.5 18.5t-18.5 45.5t18.5 45.5t45.5 18.5h1216q27 0 45.5 -18.5t18.5 -45.5t-18.5 -45.5t-45.5 -18.5zM1280 684 | ||
69 | -h-1216q-27 0 -45.5 18.5t-18.5 45.5t18.5 45.5t45.5 18.5h1216q27 0 45.5 -18.5t18.5 -45.5t-18.5 -45.5t-45.5 -18.5z" /> | ||
70 | - <glyph glyph-name="uniE60C" unicode="" | ||
71 | -d="M1024 300q0 -139 -68.5 -257t-186.5 -186.5t-257 -68.5t-257 68.5t-186.5 186.5t-68.5 257t68.5 257t186.5 186.5t257 68.5t257 -68.5t186.5 -186.5t68.5 -257z" /> | ||
72 | - <glyph glyph-name="uniE60D" unicode="" horiz-adv-x="1685" | ||
73 | -d="M1229 -77l289 -135l58 124l-281 131q-7 -18 -18 -39.5t-23 -41.5t-25 -39zM944 475v-134h137v258q42 47 62 81l-118 69q-2 -4 -8 -12t-24.5 -30.5t-41 -45.5t-60.5 -54.5t-81 -59.5l75 -114q6 4 12.5 8t12.5 8.5t11.5 8.5t11.5 8t11 9zM1524 19v304h-605v-304h137v167 | ||
74 | -h332v-167h136zM1283 169h-137v-66q0 -26 -13.5 -48.5t-37 -40t-52 -32t-63 -25.5t-64 -19t-60.5 -14l74 -124q55 14 103 30.5t95.5 43t80.5 58t53.5 75.5t20.5 96v66zM1088 570l31 -133q42 9 85 21q19 -49 59 -78q49 -36 120 -36q26 0 49.5 4t42.5 10q69 21 133 78l-67 125 | ||
75 | -q-7 -7 -17 -16t-24 -20.5t-31 -21t-34 -14.5q-29 -9 -53.5 -8.5t-37.5 9.5q-4 3 -8 9q147 51 240 103l-81 111q-74 -38 -173 -74v85h-137v-129q-50 -14 -97 -25zM755 477v137h-348q11 42 19 84l-134 26q-4 -19 -8 -37.5t-9.5 -36.5t-10.5 -36h-200v-137h142 | ||
76 | -q-79 -149 -206 -260l90 -103q43 38 85 83v-389h137v165h260v-24h-124l48 -137h83q54 0 92 38t38 92v490h-373q11 22 21 45h398zM312 134h260v-24h-260v24zM312 295h260v-24h-260v24zM1683 732q0 -33 -22.5 -56t-55.5 -23q-22 0 -40 10.5t-28.5 28.5t-10.5 40q0 16 6 30.5 | ||
77 | -t16.5 25t25.5 16.5t31 6q33 0 55.5 -22.5t22.5 -55.5zM1545 732q0 -10 3 -20t8.5 -17.5t13 -13.5t16.5 -9t19 -3q25 0 41.5 18t16.5 44q0 27 -16.5 45.5t-42.5 18.5q-25 0 -42 -18.5t-17 -44.5zM1592 691h-17v79q17 2 29 2q18 0 26 -6q2 -1 3.5 -3t2.5 -4t1.5 -4.5t0.5 -5.5 | ||
78 | -q0 -7 -4.5 -11.5t-11.5 -7.5v-1q10 -3 14 -19q1 -8 2.5 -12t3.5 -7h-19q-2 3 -6 19q-2 12 -16 12h-9v-31zM1593 735h8q18 0 18 12q0 5 -4 8.5t-12 3.5q-4 0 -6 -0.5t-4 -0.5v-23z" /> | ||
79 | - <glyph glyph-name="uniE60E" unicode="" horiz-adv-x="3958" | ||
80 | -d="M611 639h-177l-150 -222l-95 222h-178l168 -395v-2l-31 -243h156l30 231zM699 481q-100 0 -179.5 -72.5t-92.5 -175.5q-13 -105 51 -178q61 -68 157 -68q99 0 178.5 72.5t92.5 175.5q13 104 -51 177q-60 69 -156 69zM759 233q-2 -16 -8.5 -31.5t-16.5 -27.5t-22.5 -21.5 | ||
81 | -t-27 -14.5t-29.5 -5q-12 0 -23 3t-20.5 9t-16.5 15q-13 14 -18.5 33.5t-2.5 41.5q2 16 8.5 31t16.5 27.5t22.5 21.5t27.5 14.5t30 5.5q36 0 59 -27q27 -30 21 -75zM1656 481q-65 0 -124.5 -33t-99 -90.5t-48.5 -124.5q-13 -105 51 -178q20 -22 44.5 -37t53 -23t59.5 -8 | ||
82 | -q99 0 178.5 72.5t92.5 175.5q3 25 1.5 49.5t-8 47t-17.5 43t-27 37.5q-29 34 -69.5 51.5t-86.5 17.5zM1717 233q-4 -27 -19 -50t-38 -36.5t-48 -13.5q-18 0 -33.5 7t-26.5 20q-13 14 -18.5 33.5t-2.5 41.5q5 41 36 70.5t69 29.5q8 0 16.5 -2t16 -5.5t14.5 -8.5t13 -11 | ||
83 | -q26 -30 21 -75zM1332 418q-44 50 -114 50q-13 0 -25.5 -1.5t-24.5 -5t-24 -9t-23 -11.5l-10 -6l26 204h-156l-80 -640h155l37 288q3 24 22 41t43 17q12 0 22.5 -4.5t17.5 -12.5q16 -18 12 -42l-36 -287h156l37 298q2 13 1.5 26.5t-3 26.5t-7 25t-11 23t-15.5 20zM2949 460 | ||
84 | -l-37 -288q-3 -24 -22 -41t-44 -17q-24 0 -39 17q-5 6 -8.5 12.5t-4.5 14t0 15.5l37 287h-156l-38 -298q-9 -71 36 -121q21 -25 50.5 -37.5t63.5 -12.5q25 0 49.5 7t47.5 20l9 6l-3 -25h156l58 461h-155zM1951 639l-55 -432h156l55 432h-156zM1970 168q-18 0 -36 -7.5 | ||
85 | -t-31.5 -19.5t-22.5 -28.5t-12 -34.5q-4 -37 19 -63q11 -13 26 -19.5t33 -6.5q37 0 67 26.5t34 63.5q5 37 -18 63q-4 5 -9.5 9t-11 7t-12 5.5t-13 3.5t-13.5 1zM2608 178q4 34 -3.5 64.5t-26.5 55t-47 39.5l-8 5l8 5q19 10 35.5 25t28.5 32.5t19.5 37t10.5 40.5q8 63 -30 108 | ||
86 | -q-37 44 -97 48l-6 1h-314l-81 -640h317q72 3 128.5 55t65.5 124zM2451 200q-3 -27 -25 -46.5t-50 -19.5h-106l17 134h107q27 -1 43.5 -20.5t13.5 -47.5zM2483 447q-2 -16 -12 -30t-25 -22.5t-31 -8.5h-113l15 124h112q25 0 41.5 -18.5t12.5 -44.5zM3132 -211q65 0 124 37.5 | ||
87 | -t89 99.5l264 534h-156l-127 -258l-63 258h-156l113 -471l-7 -14q-8 -18 -25 -29t-36 -11q-5 0 -10 1t-10 3l-29 11l-67 -139l29 -10q31 -12 67 -12zM3943 646q0 -16 -3 -31.5t-9 -29.5t-14.5 -26.5t-19 -23t-23 -19t-26.5 -14.5t-29.5 -9t-31.5 -3q-32 0 -61 12t-50 33 | ||
88 | -t-33 50t-12 61q0 43 20.5 79t57 56.5t79.5 20.5q65 0 110 -45t45 -111zM3670 646q0 -25 9 -48t24.5 -40t37.5 -26.5t47 -9.5q24 0 46 9.5t37 26t24 39.5t9 48q0 53 -33.5 89.5t-84.5 36.5q-32 0 -59 -17t-42 -45.5t-15 -62.5zM3763 566h-35v155q11 2 16.5 2.5t18 1.5t23.5 1 | ||
89 | -q21 0 32.5 -3t19.5 -9q7 -6 11.5 -14.5t4.5 -19.5q0 -13 -8.5 -22.5t-23.5 -14.5v-2q20 -6 27 -37q2 -9 3.5 -15.5t3 -11t2.5 -7t2 -4.5h-37q-4 5 -12 38q-2 12 -9.5 17.5t-21.5 5.5h-17v-61zM3764 653h17q35 0 35 23t-32 23q-7 0 -12 -0.5t-8 -0.5v-45z" /> | ||
90 | - <glyph glyph-name="uniE60F" unicode="" | ||
91 | -d="M682 74q-108 -89 -249 -89q-53 0 -104.5 14.5t-94.5 39.5t-79.5 61.5t-61.5 79.5t-39.5 94t-14.5 105q0 107 53 197.5t143.5 143.5t197.5 53t197.5 -53t143.5 -143.5t53 -197.5q0 -141 -89 -249l286 -286l-56 -56zM433 64q131 0 223 92t92 222.5t-92 223t-223 92.5 | ||
92 | -t-223 -93q-91 -93 -92 -222q0 -86 42 -158.5t115 -114.5t158 -42z" /> | ||
93 | - <glyph glyph-name="uniE610" unicode="" | ||
94 | -d="M245 300l-9 9l472 472l80 -80l-400 -401l400 -401l-80 -80l-472 472z" /> | ||
95 | - <glyph glyph-name="uniE611" unicode="" | ||
96 | -d="M509 780q-4 -2 -245 -245q-221 -224 -235 -245q-6 -9 -6 -15q0 -35 42 -33q7 0 233 227l225 228l226 -228q105 -106 167 -166.5t65 -60.5q21 -1 31.5 7.5t10.5 25.5q0 12 -32 46q-33 36 -206 212q-241 243 -246 246q-15 8 -30 1zM171 245q-12 -8 -14 -38.5t-2 -188 | ||
97 | -t2 -188t14 -38.5q7 -6 352.5 -6t352.5 6q11 8 13 36q2 30 2 190q0 158 -2 188.5t-13 38.5q-8 7 -21.5 5.5t-21.5 -10.5l-10 -9v-381h-600v381l-10 9q-15 16 -36 9q-4 -2 -6 -4zM398 202l-11 -12v-215l11 -12q6 -8 11 -10.5t14 -2.5q16 0 26 13l10 12v175h128v-175l11 -12 | ||
98 | -q7 -9 16 -12t18.5 0t16.5 12l10 12v215l-20 24h-231z" /> | ||
99 | - <glyph glyph-name="uniE612" unicode="" | ||
100 | -d="M951 -7h-878l439 614z" /> | ||
101 | - <glyph glyph-name="uniE613" unicode="" | ||
102 | -d="M512 -7l-439 614h878z" /> | ||
103 | - <glyph glyph-name="uniE614" unicode="" | ||
104 | -d="M313 -49l349 349l-349 349q-7 7 -7 16.5t6.5 16t16 6.5t16.5 -6l345 -345q16 -15 21 -20q7 -7 7 -17t-7 -17q-4 -4 -25.5 -25t-22.5 -22l-318 -318q-7 -6 -16.5 -6t-16 6.5t-6.5 16t7 16.5z" /> | ||
105 | - <glyph glyph-name="uniE615" unicode="" | ||
106 | -d="M527.5 475q2.5 0 4.5 -1l6 -2q2 -1 3 -3l293 -288q3 -3 5 -6.5t2 -7.5t-1.5 -8t-4.5 -7q-6 -6 -14.5 -6t-14.5 6l-279 273l-278 -273q-7 -6 -15 -6t-14 6t-6 14.5t6 14.5l293 288q2 2 4 3t5 2t5.5 1z" /> | ||
107 | - <glyph glyph-name="uniE616" unicode="" | ||
108 | -d="M527 146q-4 0 -7.5 1.5t-6.5 4.5l-293 288q-6 6 -6 14t6 14.5t14 6.5t15 -6l278 -274l279 274q6 6 14.5 6t14.5 -6.5t5.5 -14.5t-6.5 -14l-293 -288q-5 -6 -14 -6z" /> | ||
109 | - <glyph glyph-name="uniE617" unicode="" horiz-adv-x="1030" | ||
110 | -d="M-195 162zM520 770q-98 0 -187.5 -38t-154 -102.5t-102.5 -154t-38 -187.5q0 -79 24 -152.5t69 -132.5t104 -103.5t132.5 -69t152.5 -24.5q98 0 187.5 38t154 102.5t102.5 154t38 187.5t-38 187.5t-102.5 154t-154 102.5t-187.5 38zM857 485l-339 -451l-328 238 | ||
111 | -q-12 9 -14 23.5t7 26.5q5 8 13.5 11.5t18 2.5t17.5 -6l271 -198l297 396q6 8 14.5 11.5t18 2.5t17.5 -7q12 -9 14 -23.5t-7 -26.5z" /> | ||
112 | - <glyph glyph-name="uniE618" unicode="" | ||
113 | -d="M224 192q-40 0 -68 28t-28 68t28 68t68 28t68 -28t28 -68t-28 -68t-68 -28zM512 192q-40 0 -68 28t-28 68t28 68t68 28t68 -28t28 -68t-28 -68t-68 -28zM800 192q-40 0 -68 28t-28 68t28 68t68 28t68 -28t28 -68t-28 -68t-68 -28z" /> | ||
114 | - <glyph glyph-name="uniE619" unicode="" | ||
115 | -d="M126 225q30 0 50.5 21.5t20.5 52.5q0 33 -20.5 54.5t-51 21.5t-51.5 -21.5t-21 -54.5q0 -45 38 -66q17 -8 35 -8zM512 225q15 0 28.5 5.5t23 15.5t15 24t5.5 29q0 9 -2 18t-5.5 16.5t-8 14t-10.5 11.5t-13.5 9t-15.5 5.5t-17 1.5q-30 0 -51 -21.5t-21 -54.5q0 -45 38 -66 | ||
116 | -q16 -8 34 -8zM899.5 225q30.5 0 51 21.5t20.5 52.5q0 9 -2 18t-5.5 16.5t-8 14t-11 11.5t-13.5 9t-15 5.5t-17 1.5q-20 0 -36.5 -9.5t-26 -27t-9.5 -39.5q0 -31 21 -52.5t51.5 -21.5z" /> | ||
117 | - <glyph glyph-name="uniE61B" unicode="" | ||
118 | -d="M437 41h-193q-27 2 -41.5 22.5t-17.5 45.5q3 25 17.5 41t41.5 18h193v63l-193 1q-27 2 -41.5 19t-17.5 43q3 25 17.5 41t41.5 18h144l-134 236q-10 12 -19 30.5t-8 40.5q5 28 20 45.5t56 22.5q24 -2 43 -16.5t31 -31.5l152 -278l167 280q12 17 31 30t43 16q15 -1 27.5 -4 | ||
119 | -t22 -10t16 -20t9.5 -34q0 -29 -20 -55l-155 -252h147q26 -2 41 -18t17 -41q-2 -26 -17.5 -44t-41.5 -20l-191 -1v-61h192q26 -2 41 -20t17 -43q-2 -26 -17 -43.5t-41 -19.5l-192 1v-106q-4 -85 -93 -85q-44 0 -68.5 21t-26.5 64v104z" /> | ||
120 | - <glyph glyph-name="uniE61C" unicode="" | ||
121 | -d="M946 -196h-868q-26 0 -44 18t-18 44v868q0 26 18 44t44 18h868q26 0 44 -18t18 -44v-868q0 -26 -18 -44t-44 -18zM946 703q0 13 -9 22t-22 9h-806q-13 0 -22 -9t-9 -22v-806q0 -13 9 -22t22 -9h806q13 0 22 9t9 22v806z" /> | ||
122 | - <glyph glyph-name="uniE61D" unicode="" | ||
123 | -d="M939 -202h-876q-17 0 -31.5 8.5t-23 23t-8.5 31.5v876q0 26 18.5 44.5t44.5 18.5h876q26 0 44.5 -18.5t18.5 -44.5v-876q0 -39 -35 -57q-14 -6 -28 -6zM814 612l-376 -438l-250 188l-63 -126l313 -250l439 501z" /> | ||
124 | - <glyph glyph-name="uniE61E" unicode="" | ||
125 | -d="M224 211l416 410l179 -179l-416 -410zM659 525l-19 19l-333 -333l19 -19zM698 486l-20 20l-332 -333l19 -19zM736 448l-19 19l-333 -333l19 -19zM717 704q14 14 38 14t39 -14l102 -102q6 -6 9.5 -14t4.5 -16.5t0 -17t-4.5 -16.5t-9.5 -13l-64 -58l-173 173zM211 186 | ||
126 | -l167 -167l-148 -51l-70 70zM205 -45l-83 -32l32 83z" /> | ||
127 | - <glyph glyph-name="uniE61F" unicode="" | ||
128 | -d="M512 812q-138 0 -256 -69t-187 -187t-69 -256t69 -256t187 -187t256 -69t256 69t187 187t69 256t-69 256t-187 187t-256 69zM563 44h-102v307h102v-307zM563 454h-102v102h102v-102z" /> | ||
129 | - <glyph glyph-name="uniE620" unicode="" | ||
130 | -d="M938 276h-400v274h-50v-274h-399q-15 0 -29 5.5t-24 15.5t-16 24t-6 29v175q0 31 22 53t53 22h90q-18 21 -29 46t-11 54q0 27 10 47.5t25 30t29.5 15t24.5 6.5l11 1q53 0 100 -15.5t81 -42t56 -50t39 -50.5q17 27 39.5 51t56 50t79.5 41.5t98 15.5h4q2 0 8.5 -1.5 | ||
131 | -t13.5 -3t16 -5.5t16.5 -9t15.5 -13t13.5 -17.5t9 -23.5t3.5 -30q0 -28 -9.5 -52t-25.5 -45h85q31 0 53 -22t22 -53v-175q0 -44 -39 -65q-17 -9 -36 -9zM264 725q-15 0 -26 -2.5t-15.5 -6t-6.5 -7.5t-2 -6v-3q0 -49 66 -100h173q-14 30 -30 52.5t-34 35.5t-33 21t-34.5 11.5 | ||
132 | -t-30 4t-27.5 0.5zM763 723q-13 0 -20 -0.5t-21.5 -1.5t-24.5 -4.5t-24 -9t-25.5 -14.5t-24 -21.5t-24.5 -30.5t-22 -41h177q59 50 59 97v3q0 2 -2 6.5t-7 7.5t-15.5 6t-25.5 3zM488 -224h-349q-15 0 -29 6t-24 16t-16 24t-6 29v375h424v-450zM538 226h400v-375 | ||
133 | -q0 -31 -22 -53t-53 -22h-325v450z" /> | ||
134 | - <glyph glyph-name="uniE621" unicode="" | ||
135 | -d="M160 492v-640q0 -26 19 -45t45 -19h576q26 0 45 19t19 45v640h-704zM352 -84h-64v448h64v-448zM480 -84h-64v448h64v-448zM608 -84h-64v448h64v-448zM736 -84h-64v448h64v-448zM880 684h-208v80q0 20 -14 34t-34 14h-224q-8 0 -15 -2.5t-13 -7t-10.5 -10.5t-7 -13 | ||
136 | -t-2.5 -15v-80h-208q-20 0 -34 -14t-14 -34v-80h832v80q0 6 -1.5 11t-3.5 10t-5.5 9t-7.5 7.5t-9 5.5t-10 3.5t-11 1.5zM608 684h-192v63h192v-63z" /> | ||
137 | - <glyph glyph-name="uniE622" unicode="" horiz-adv-x="1173" | ||
138 | -d="M586 588q-64 150 -188 203q-114 47 -222 -7q-112 -56 -155 -192q-20 -67 -21 -144q0 -41 9 -78.5t24 -66.5t39 -57.5t47 -48.5t55.5 -43t56.5 -38t58.5 -35.5t53.5 -33.5q63 -42 118 -94.5t86.5 -95t39.5 -69.5q4 19 25.5 50t53.5 66t75 74t88 71q21 15 53.5 35.5t58 36 | ||
139 | -t57 38t55 43t47 48t39 56.5t25 66.5t8.5 78.5q0 75 -19.5 138t-52.5 105.5t-76.5 70.5t-91 37.5t-98 1t-96 -34.5t-85.5 -72.5t-67 -108.5z" /> | ||
140 | - <glyph glyph-name="uniE623" unicode="" | ||
141 | -d="M835 576l-60 63l-263 -275v0l-263 275l-60 -63l262 -276l-262 -276l60 -63l263 275v0l263 -275l60 63l-262 276z" /> | ||
142 | - <glyph glyph-name="uniE624" unicode="" horiz-adv-x="1000" | ||
143 | -d="M459 754h22h23h20h22h22v-191v-191h191h191v-109h-191h-191v-191v-190h-109v190v191h-191h-190q-1 37 -1 109h128h127h127v116v150v116z" /> | ||
144 | - <glyph glyph-name="uniE625" unicode="" horiz-adv-x="1000" | ||
145 | -d="M77 372h873v-109h-873v109z" /> | ||
146 | - <glyph glyph-name="uniE626" unicode="" | ||
147 | -d="M866.5 663.5q-97.5 97.5 -228 132t-261.5 0t-228.5 -132t-132 -228.5t0 -261.5t132 -228t228.5 -132t261.5 0t228 132t132 228t0 261.5t-132 228.5zM798 115l-101 -101l-187 186l-186 -186l-101 101l186 186l-186 187l101 101l186 -186l187 186l101 -101l-186 -187z" /> | ||
148 | - </font> | ||
149 | -</defs></svg> |
static/font/iconfont.ttf
deleted
100644 → 0
No preview for this file type
static/font/iconfont.woff
deleted
100644 → 0
No preview for this file type
static/gulpfile.js
deleted
100644 → 0
1 | -/** | ||
2 | - * GULP-FILE | ||
3 | - * author: xuqi(qi.xu@yoho.cn) | ||
4 | - * date: 2015/9/30 | ||
5 | - */ | ||
6 | - | ||
7 | -var gulp = require('gulp'), | ||
8 | - compass = require('gulp-compass'), | ||
9 | - cp = require('child_process'); | ||
10 | - | ||
11 | -var fs = require('fs'), | ||
12 | - ftp = require('gulp-ftp'), | ||
13 | - gutil = require('gulp-util'), | ||
14 | - uglify = require('gulp-uglify'), | ||
15 | - Package = require('father').SpmPackage, | ||
16 | - transport = require('gulp-spm'), | ||
17 | - concat = require('gulp-concat'); | ||
18 | - | ||
19 | -var config = JSON.parse(fs.readFileSync('./package.json').toString()); | ||
20 | - | ||
21 | -var rootDist = 'dist/myohobuy/', | ||
22 | - ftpConfig = { | ||
23 | - host: '218.94.75.58', | ||
24 | - user: 'php', | ||
25 | - pass: 'yoho9646' | ||
26 | - }; | ||
27 | - | ||
28 | -var distDir = { | ||
29 | - js: rootDist + config.version, | ||
30 | - css: rootDist + config.version, | ||
31 | - img: rootDist + 'assets/img', | ||
32 | - font: rootDist + 'assets/font' | ||
33 | -}; | ||
34 | - | ||
35 | -gulp.task('default', ['compass', 'compass-watch', 'spm-doc']); | ||
36 | - | ||
37 | -// compass | ||
38 | -gulp.task('compass', function() { | ||
39 | - gulp.src('sass/**/*.scss') | ||
40 | - .pipe( | ||
41 | - compass({ | ||
42 | - config_file: 'config.rb', | ||
43 | - css: 'css', | ||
44 | - sass: 'sass' | ||
45 | - }) | ||
46 | - ).on('error', function(error) { | ||
47 | - console.log(error); | ||
48 | - this.emit('end'); | ||
49 | - }); | ||
50 | -}); | ||
51 | - | ||
52 | -// compass watch | ||
53 | -gulp.task('compass-watch', function() { | ||
54 | - gulp.watch('sass/**/*.scss', ['compass']); | ||
55 | -}); | ||
56 | - | ||
57 | -// start spm server | ||
58 | -gulp.task('spm-doc', function() { | ||
59 | - var sd = cp.exec('spm doc'); | ||
60 | - | ||
61 | - // sd.stdout.on('data', function(data) { | ||
62 | - // console.log(data); | ||
63 | - // }); | ||
64 | - | ||
65 | - sd.stderr.on('data', function(data) { | ||
66 | - console.log(data); | ||
67 | - }); | ||
68 | - | ||
69 | - sd.on('exit', function(code) { | ||
70 | - console.log('process spm doc exit with code ' + code); | ||
71 | - }); | ||
72 | -}); | ||
73 | - | ||
74 | -//生成发布目录,可用于上传测试机 | ||
75 | -gulp.task('ge', ['assets', 'compass-production', 'build']); | ||
76 | - | ||
77 | -//发布 | ||
78 | -gulp.task('dist', ['assets', 'compass-production', 'build'], function() { | ||
79 | - var ftpstream = ftp(ftpConfig); | ||
80 | - | ||
81 | - return gulp.src('dist/**/') | ||
82 | - .pipe(ftpstream) | ||
83 | - .pipe(gutil.noop()); | ||
84 | -}); | ||
85 | - | ||
86 | -//font+img->dist/assets | ||
87 | -gulp.task('assets', function() { | ||
88 | - gulp.src('img/**') | ||
89 | - .pipe(gulp.dest(distDir.img)); | ||
90 | - gulp.src('font/*') | ||
91 | - .pipe(gulp.dest(distDir.font)); | ||
92 | -}); | ||
93 | - | ||
94 | -//compass | ||
95 | -gulp.task('compass-production', ['assets'], function() { | ||
96 | - gulp.src('sass/index.scss') | ||
97 | - .pipe( | ||
98 | - compass({ | ||
99 | - css: distDir.css, | ||
100 | - sass: 'sass', | ||
101 | - image: distDir.image, | ||
102 | - font: distDir.font, | ||
103 | - http_path: '/', | ||
104 | - style: 'compressed' | ||
105 | - }) | ||
106 | - ) | ||
107 | - .on('error', function(error) { | ||
108 | - console.log(error); | ||
109 | - this.emit('end'); | ||
110 | - }); | ||
111 | -}); | ||
112 | - | ||
113 | -//spm build | ||
114 | -gulp.task('build', ['libs', 'business']); | ||
115 | - | ||
116 | -//libs | ||
117 | -gulp.task('libs', ['pre-libs', 'concat-min-libs', 'clear-libs']); | ||
118 | - | ||
119 | -gulp.task('pre-libs', function() { | ||
120 | - var obj = { | ||
121 | - name: '', | ||
122 | - version: config.version, | ||
123 | - spm: config.spm | ||
124 | - }; | ||
125 | - var packages = [], | ||
126 | - libsjs = ''; | ||
127 | - | ||
128 | - var libCon, key, i; | ||
129 | - | ||
130 | - var pkg; | ||
131 | - | ||
132 | - obj.spm.main = 'libs.js'; | ||
133 | - obj.spm.buildArgs = '--idleading {{}} --include all'; | ||
134 | - | ||
135 | - libCon = JSON.stringify(obj); | ||
136 | - | ||
137 | - fs.renameSync('package.json', 'package.bak.json'); | ||
138 | - fs.writeFileSync('package.json', libCon); | ||
139 | - | ||
140 | - for (key in obj.spm.dependencies) { | ||
141 | - if (obj.spm.inside && obj.spm.inside[key]) { | ||
142 | - packages.push(obj.spm.inside[key]); | ||
143 | - } else { | ||
144 | - packages.push(key); | ||
145 | - } | ||
146 | - } | ||
147 | - | ||
148 | - for (i = 0; i < packages.length; i++) { | ||
149 | - libsjs += 'require("' + packages[i] + '");'; | ||
150 | - } | ||
151 | - | ||
152 | - fs.writeFileSync('libs.js', libsjs); //重写入口文件 | ||
153 | - | ||
154 | - pkg = new Package(__dirname); | ||
155 | - | ||
156 | - return gulp.src(pkg.main) | ||
157 | - .pipe(transport({ | ||
158 | - pkg: pkg | ||
159 | - })) | ||
160 | - .pipe(gulp.dest(distDir.js)); | ||
161 | -}); | ||
162 | - | ||
163 | -gulp.task('concat-min-libs', ['pre-libs'], function() { | ||
164 | - var path = distDir.js + '/libs.js'; | ||
165 | - var jsStr = fs.readFileSync(path).toString(); | ||
166 | - | ||
167 | - fs.writeFileSync(path, jsStr.substr(jsStr.indexOf('});') + 4)); | ||
168 | - | ||
169 | - return gulp.src(['js/sea.js', distDir.js + '/libs.js']) | ||
170 | - .pipe(concat('lib.js')) | ||
171 | - .pipe(uglify()) | ||
172 | - .pipe(gulp.dest(distDir.js)); | ||
173 | -}); | ||
174 | - | ||
175 | -gulp.task('clear-libs', ['concat-min-libs'], function() { | ||
176 | - fs.renameSync('package.bak.json', 'package.json'); | ||
177 | - fs.unlinkSync('./libs.js'); | ||
178 | - fs.unlinkSync(distDir.js + '/libs.js'); | ||
179 | -}); | ||
180 | - | ||
181 | -gulp.task('business', ['libs'], function() { | ||
182 | - var pkg = new Package(__dirname); | ||
183 | - | ||
184 | - return gulp.src(pkg.main) | ||
185 | - .pipe(transport({ | ||
186 | - pkg: pkg | ||
187 | - })) | ||
188 | - .pipe(concat('index-debug.js')) | ||
189 | - .pipe(gulp.dest(distDir.js)) | ||
190 | - .pipe(uglify()) | ||
191 | - .pipe(concat('index.js')) | ||
192 | - .pipe(gulp.dest(distDir.js)); | ||
193 | -}); |
static/img/app-logo.png
deleted
100644 → 0

5.47 KB
static/img/close-icon.png
deleted
100644 → 0

1.66 KB

12.6 KB

12.6 KB
static/img/guang/clothes/bag.png
deleted
100644 → 0

1.05 KB
static/img/guang/clothes/cloth.png
deleted
100644 → 0

908 Bytes
static/img/guang/clothes/dress.png
deleted
100644 → 0

1.63 KB
static/img/guang/clothes/headset.png
deleted
100644 → 0

999 Bytes
static/img/guang/clothes/lamp.png
deleted
100644 → 0

935 Bytes
static/img/guang/clothes/pants.png
deleted
100644 → 0

1.45 KB
static/img/guang/clothes/shoe.png
deleted
100644 → 0

821 Bytes

1.72 KB
static/img/guang/clothes/under.png
deleted
100644 → 0

1.12 KB
static/img/guang/clothes/watch.png
deleted
100644 → 0

1.18 KB

2.63 KB

2.51 KB

2.63 KB
static/img/guang/info/tip.png
deleted
100644 → 0

2.63 KB
static/img/guang/info/topic.png
deleted
100644 → 0

2.64 KB
static/img/guang/tag.png
deleted
100644 → 0

2.14 KB

5.2 KB
static/img/layout/back.png
deleted
100644 → 0

1.04 KB
static/img/layout/home.png
deleted
100644 → 0

1.2 KB
static/img/more-brand.png
deleted
100644 → 0

9.08 KB
static/img/passport/alipay.png
deleted
100644 → 0

18.4 KB
static/img/passport/arrow-right.png
deleted
100644 → 0

1.07 KB
static/img/passport/clear-input.png
deleted
100644 → 0

1.33 KB
static/img/passport/eye-close.png
deleted
100644 → 0

1.66 KB
static/img/passport/eye.png
deleted
100644 → 0

1.48 KB
static/img/passport/facebook.png
deleted
100644 → 0

1.13 KB
static/img/passport/fb.png
deleted
100644 → 0

17.7 KB
static/img/passport/go-back.png
deleted
100644 → 0

2.17 KB
static/img/passport/info.png
deleted
100644 → 0

1.32 KB
static/img/passport/qq.png
deleted
100644 → 0

18 KB
-
Please register or login to post a comment