Authored by 梁志锋

Merge remote-tracking branch 'remotes/origin/feature/personal'

Showing 100 changed files with 73 additions and 14 deletions

Too many changes to show.

To preserve performance only 100 of 100+ files are displayed.

... ... @@ -6,12 +6,21 @@
'use strict';
const QRcodeModel = require('../models/QRcode');
const QRcodeModel = require('../models/qrcode');
const helpers = global.yoho.helpers;
exports.QRcode = (req, res, next) => {
let id = req.query.orderCode || 0;
let bg={
'16-1':'//img13.static.yhbimg.com/yhb-img02/2016/07/28/14/02509790c87f7b26fc523fc81cdd2ee684.jpg',
'17-1':'//img13.static.yhbimg.com/yhb-img02/2016/07/28/14/02509790c87f7b26fc523fc81cdd2ee684.jpg',
'16-2':'//img13.static.yhbimg.com/yhb-img02/2016/07/28/14/0243ee8b76d1af13fe546b3538036ab3a9.jpg',
'17-2':'//img13.static.yhbimg.com/yhb-img02/2016/07/28/14/028d1fa99a0a22d882587aa0a309b41637.jpg'
}
let bgkey='16-1',ticktypeName='展览票';
QRcodeModel.getQRcodeData(id,req.user.uid).then((result)=>{
if (result) {
result.ticks = result.ticks.map(item=>{
... ... @@ -20,12 +29,18 @@ exports.QRcode = (req, res, next) => {
}
return item;
});
if(result.ticks.length){
bgkey=[/月(\d+)/g.exec(result.ticks[0].entrance_time)[1],result.ticks[0].ticket_type].join('-');
ticktypeName=result.ticks[0].ticket_type==='2'?'套票':'展览票';
}
}
let vm = {
path: [{href: helpers.urlFormat('/'), name: 'YOHO!BUY 有货首页'}, {name: '个人中心'}, {name: '查看二维码'}],
path: [{href: helpers.urlFormat('/'), name: 'YOHO!BUY 有货首页'}, {name: '个人中心'},{name: '订单中心'}, {name: '查看二维码'}],
qrcodeData: result,
code: id,
bgsrc:bg[bgkey],
ticktypeName:ticktypeName,
returnOrder: helpers.urlFormat('/home/orders')
};
... ...
... ... @@ -11,8 +11,7 @@ var api = global.yoho.API;
exports.getQRcodeData = (id ,uid) => {
return api.get('', {
method: 'app.SpaceOrders.getQrByOrderCode',
order_code:160192075,
debug:'XYZ',
order_code:id,
uid:uid
}).then(result => {
if (result && result.code === 200) {
... ...
... ... @@ -13,7 +13,7 @@ const _ = require('lodash');
const helpers = global.yoho.helpers;
const config = global.yoho.config;
const personalController = require(`${cRoot}/QRcode`);
const personalController = require(`${cRoot}/qrcode`);
const homeNav = [
{
... ... @@ -51,8 +51,7 @@ const homeNav = [
const getHomeNav = (req, res, next) => {
res.locals.homeNav = homeNav;
res.locals.userThumb = `//img10.static.yhbimg.com/headimg/
2013/11/28/09/01cae078abe5fe320c88cdf4c220212688.gif?imageView/2/w/100/h/100`;
res.locals.userThumb = '//img10.static.yhbimg.com/headimg/2013/11/28/09/01cae078abe5fe320c88cdf4c220212688.gif?imageView/2/w/100/h/100';
next();
};
const getCommonHeader = (req, res, next) => {
... ... @@ -80,10 +79,9 @@ const sessionEffective = (req, res, next) => {
res.redirect(helpers.urlFormat('/signin.html', {
refer: refer
}));
// next();
};
// 查看二维码
router.get('/QRcode', sessionEffective, [getCommonHeader, getHomeNav], personalController.QRcode);
router.get('/QRcode',sessionEffective,[getHomeNav,getCommonHeader],personalController.QRcode);
module.exports = router;
... ...
... ... @@ -6,8 +6,8 @@
<h2 class="title">
</h2>
<div class='subtitle'>
<h2>虚拟商品 <span class='pad20'>2016 YO'HOOD</span>展览票 {{code}}</h2>
<a class='r-go' href="{{returnOrder}}">返回我的账单</a>
<h2>虚拟商品 <span class='pad20'>2016 YO'HOOD</span> {{ticktypeName}} <i id="qrid"></i></h2>
<a class='r-go' href="{{returnOrder}}">返回我的订单</a>
</div>
{{#qrcodeData}}
<div class='qrcmain'>
... ... @@ -26,7 +26,7 @@
<li>
<div class='center'>
<img src='{{qr_image}}'>
<p class='bianhao'><label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号:</label>{{ticket_code}}</p>
<p class='bianhao'><label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号:</label><i>{{ticket_code}}</i></p>
{{#if isgroup}}
<p class='zuoweihao'><label>&nbsp;&nbsp;&nbsp;&nbsp;号:</label>{{seat_no}}</p>
{{/if}}
... ... @@ -47,7 +47,7 @@
<div class='question'>
<div class="main-info">
<p class="p1">
安全提示服务
如何使用二维码
</p>
<p class='tro'>
1、点击【打印二维码】按钮打印,入场时出示二维码电子票检验入场;
... ... @@ -76,7 +76,7 @@
</div>
<div id="print_wrap" style='display:none'>
<div class='print_qrcode'>
<img src='http://localhost:5002/img/home/qrcode.png'/>
<img src="{{bgsrc}}" width=614 height=920/>
<div class='print_content'>
</div>
</div>
... ...
webpackJsonp([12],[function(e,n,o){o(5)},,,,,function(e,n,o){function i(e){var n=new RegExp(e+"=([^;$]*)","i"),o="$1";return n.test(decodeURIComponent(document.cookie))?RegExp[o]:""}function t(e,n,o){var i,t,a,c,d="";"undefined"!=typeof n&&(o=o||{},null===n&&(n="",o.expires=-1),o.expires&&("number"==typeof o.expires||o.expires.toUTCString)&&("number"==typeof o.expires?(c=new Date,c.setTime(c.getTime()+24*o.expires*60*60*1e3)):c=o.expires,d="; expires="+c.toUTCString()),i=o.path?"; path="+o.path:"",t=o.domain?"; domain="+o.domain:"",a=o.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(n),d,i,t,a].join(""))}function a(){var e,n=i("_UID");return"undefined"==typeof n?0:(e=n.split("::"),"undefined"==typeof e||e.length<4?0:e)}function c(){var e=a();return 0===e?0:e[1]}function d(){var e=i("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function s(){var e,n,o={},i=window.location.search,t=i?decodeURIComponent(i).slice(1).split("&"):[];for(n=0;n<t.length;n++)e=t[n].split("="),o[e[0]]=e[1];return o}var r=o(1),l=r("body");!function(e,n,o,i,t){var a=n.createElement(o),c=n.getElementsByTagName(o)[0];e.YohoAcquisitionObject=t,e[t]=function(){e[t].p=arguments},a.async=1,a.src=i,c.parentNode.insertBefore(a,c)}(window,document,"script","//cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=c();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_web",e,"","")}(),r(window).on("resize",function(){var e=r(this).width();e<1360?r(".return-top").addClass("min"):r(".return-top").removeClass("min"),e<1180?l.addClass("min-screen"):l.removeClass("min-screen")}).trigger("resize"),function(){r(window).load(function(){var e,n=document.getElementById("user-thumb");n&&(e=new Image,e.src=n.src,e.onerror=function(){r(n).parent().append('<div class="default-user-thumb"></div>').end().remove()})})}(),window.cookie=i,window.setCookie=t,window.getUser=a,window.getUid=c,window.getShoppingKey=d,window.queryString=s,o(7),o(6)},function(e,n,o){function i(){var e=c("#subscriber-box"),n=c("#subscriber-btn"),o=/^[.\-_a-zA-Z0-9]+@[\-_a-zA-Z0-9]+\.[a-zA-Z0-9]/,i={mail:"&#xe601;",tick:"&#xe605;"};e.focus(function(){c(this).val("").css("color",""),n.removeClass("done").html(i.mail)}),n.click(function(){var t=c.trim(e.val());if(""!==t&&o.test(t))try{c.ajax({url:"//new.yohobuy.com/common/emailsubscriber",dataType:"jsonp",data:{email:t,tmp:Math.random(),uid:window.getUid()},success:function(o){1===o.data.result?(e.val("已订阅到:"+t),n.addClass("done").html(i.tick)):e.css("color","red")}})}catch(a){console.log(a.message)}else e.css("color","red")})}function t(){var e=c(".vote"),n=c("#feed-back-page"),o=e.children("li").length;n.on("click","span",function(){var n=c(this);n.hasClass("cur")||(n.siblings(".cur").removeClass("cur"),n.addClass("cur"),e.children().not(".hide").addClass("hide").end().eq(n.index()).removeClass("hide"))}),e.on("click",".feed-back-btn",function(){var i=c(this),t=i.closest("li"),a=t.index(),d=[],s=t.find(".feedback-answer").val(),r=t.find(".feedback-id").val(),l=t.find(".question-id").val();t.find(":checked").each(function(){d.push(c(this).val())}),c.ajax({url:"//new.yohobuy.com/common/suggestfeedback",dataType:"jsonp",data:{feedback_id:r||0,question_id:l||0,answer:s||"",solution:d.join(",")},success:function(i){var c=a+1;if(1===~~i.data.result){if(a===o-1)return void alert("感谢您的参与!");t.addClass("hide"),e.children(":eq("+(a+1)+")").removeClass("hide"),n.children(".cur").removeClass("cur"),n.children(":eq("+c+")").addClass("cur")}}})})}function a(){c(window).height()>c(document).height()&&s.addClass("hide")}var c=o(1),d=o(2),s=c(".return-top");d(c("img.lazy")),s.click(function(){c("html,body").animate({scrollTop:0},500)}),c(window).scroll(function(){0===c(window).scrollTop()?s.addClass("hide"):s.removeClass("hide")}),s.hasClass("hide")&&c("img").load(a),i(),t(),window.rePosReturnTop=a},function(e,n,o){function i(e,n,o){Y.push({louceng:e,weizhi:n,event:o})}function t(){var e=O("#cover");e.remove()}function a(e){var n="";n=e&&""!==e.url?'<a target="_blank" href="'+e.url+'" class="page-top-banner"style="height:36px;border:none;background-image:url('+window.unescape(e.src)+');background-position: center;display:block;">&nbsp;</a>':'<div class="yoho-notice"><div class="notice-container center-content"><h1 class="notice-title">关于系统升级的公告</h1><div class="notice-content"><p class="tips">尊敬的顾客:</p><p class="detail">您好!为了向您提供更优质的服务,目前系统正在升级,请耐心等待。</p><p class="detail">系统升级期间,部分地区用户体验会有暂时中断,如遇紧急事宜,欢迎垂询客服热线:400-889-9646 09:00-22:30(周一至周日)。稍后系统将恢复正常使用,欢迎您继续光顾YOHO!BUY有货!带来不便之处深表歉意,请您谅解!</p></div></div></div>',O("body").prepend(n)}function c(){var e,n,o,i=document.cookie,t=i.split(";");for(e=0;e<t.length;e++)n=t[e].split("="),"undefined"!=typeof n[0]&&(o=n[0].replace(/\s/g,""),X[o]=n[1])}function d(){var e,n="indexkids",o="indexlifestyle",i="indexboys",t="indexgirls",d="uniquebrand",s=window.location.href,r=window.location.host,l="";c(),s.indexOf("search")!==-1&&(l=M["search"+X._Channel]),s.indexOf("list")!==-1&&(l=M["list"+X._Channel]),s.indexOf("brands")!==-1&&(l=M["brands"+X._Channel]),s.indexOf("new")!==-1&&(l=M["new"+X._Channel]),s.indexOf("sale")!==-1&&(l=M["sale"+X._Channel]),s.indexOf("home")!==-1&&(l=M["home"+X._Channel]),s.indexOf("kids")!==-1&&(l=M[n]),s.indexOf("woman")===-1&&s.indexOf("girls")===-1||(l=M[t]),s.indexOf("lifestyle")!==-1&&(l=M[o]),s.indexOf("www.yohobuy.com")!==-1&&"/"===window.location.pathname&&(l=M[i]),e=r.split(".")[0],"list"!==e&&"search"!==e&&"www"!==e&&"new"!==e&&"item"!==e&&"guang"!==e&&(l=M[d+X._Channel]),O.getJSON("//new.yohobuy.com/common/getbanner?callback=?",{client_type:"web",content_code:l},function(e){200===+e.code&&"object"==typeof e.data&&(""!==e.data.url?a(e.data):a())})}function s(){J.each(function(){var e=O(this).find(".hide-list"),n=[],o=0;if(e.length){for(e.children().each(function(){o%L===0&&n.push(""),n[n.length-1]+=this.outerHTML+"",o++}),o=0;o<3;o++){if(!n[o])return;e.before('<dl class="category-list">'+n[o]+"</dl>")}e.remove()}})}function r(e){var n={usercenter:"//www.yohobuy.com/home?t="+(new Date).getTime(),nickname:e.profile_name,signout:"//www.yohobuy.com/logout.html"};1*e.vip.curVipInfo.curLevel===3&&(e.vip3=!0),T.find(".simple-user-center").html(k(e)),j.html(_(n))}function l(){var e={return_type:"jsonp",method:"open.passport.get"};O.getJSON("//www.yohobuy.com/common/passport/?callback=?",e,function(e){e&&e.data&&e.data.result!==-1?r(e.data.data):window.setCookie("_UID","",{domain:".yohobuy.com",expires:-1}),j.show()})}function u(e){var n={return_type:"jsonp",query:e};O.getJSON("//search.yohobuy.com/api/suggest?callback=?",n,function(e){200===e.code&&(e.data&&e.data.length?U.html(e.data).show():U.hide())})}function f(e){var n,o;e&&window.setCookie("_g",e,{path:"/",domain:".yohobuy.com"}),window.cookie("_g")&&(n=O.parseJSON(window.cookie("_g")),o=parseInt(n._nac,10)+parseInt(n._ac,10),o=o>0?o:0,E.data({key:n._k,num:o}),N.text(o))}function h(e){var n={return_type:"jsonp",method:"open.Shoppingcart.getCartData",shopping_key:e};O.getJSON("//www.yohobuy.com/common/shoppingCart/?callback=?",n,function(e){var n,o=[],i=["main_goods","advance_goods","outlet_goods","gift_goods","need_pay_gifts"];200===e.code&&(n=e.data,O.each(i,function(e,i){n[i]&&(o=O.merge(o,n[i]))}),o&&o.length?(n.totalGoods=o,A.html(C({carData:n}))):(f('{"_k":"'+E.data().key+'","_nac":0,"_ac":0,"_r":0}'),A.html('<div class="empty-cart"><h3>您的购物车暂无商品</h3></div>')))})}function m(e,n){var o={return_type:"jsonp",product_sku:e.sku,promotion_id:e.proid,product_num:e.num};O.getJSON("//www.yohobuy.com/common/delCartGoods/?callback=?",o,function(o){var i="";if(200===o.code)return o.data&&"undefined"!=typeof o.data.total_goods_num&&(i='{"_k":"'+e.key+'","_nac":'+o.data.total_goods_num+',"_ac":0,"_r":0}',f(i),1*o.data.total_goods_num===0&&A.html('<div class="empty-cart"><h3>您的购物车暂无商品</h3></div>')),n()})}function b(){var e=["webkit","moz","ms"],n=e[0]+"RequestAnimationFrame",o=e[1]+"RequestAnimationFrame",i=e[2]+"RequestAnimationFrame";return window[n]?function(e){requestAnimationFrame(e)}:window[o]?function(e){window[o](e)}:window[i]?function(e){window[i](e)}:function(e){window.setTimeout(e,67)}}function w(){D+=10,R.css({transform:"rotateX("+D+"deg)","-webkit-transform":"rotateX("+D+"deg)","-moz-transform":"rotateX("+D+"deg)"}),D/90%2===1&&R.toggleClass("logo-cn"),D/90%2===0&&D%360!==0?window.setTimeout(w,3e3):D%360===0?window.setTimeout(w,6e4):x(function(){w()})}function p(){var e=3e3;R.hasClass("logo-cn-ie")&&(e=6e4),R.fadeOut(G,function(){R.toggleClass("logo-cn-ie"),R.fadeIn(G,function(){window.setTimeout(function(){p()},e)})})}function g(){var e,n,o=["webkit","moz","ms"];for(n=0;n<o.length;n++)return e=o[n]+"RequestAnimationFrame",!!window[e]}function y(){var e,n=window.cookie("_Gender"),o="",a="",c="",d="";"http://www.yohobuy.com/"!==window.location.href||"undefined"!=typeof n&&""!==n&&null!==n||O.get("/guide",function(n){o=document.createElement("div"),o.id="cover",o.innerHTML=n,document.body.appendChild(o),a=O(window).height(),c=O(".guide-box").height(),e=a/2-c/2,d=O(".guide-box .clear").find("li").length,O(".guide-box").css({width:200*d+"px",top:e+"px"}),O("#cover").bind("click",function(){window.setCookie("_Gender","1,3",{path:"/",domain:".yohobuy.com",expires:90}),window.setCookie("_Channel","boys",{path:"/",domain:".yohobuy.com",expires:7}),t()}),O("#cover .guide-box .close").bind("click",function(){i("弹窗","CLOSE","homepage_man"),window.setCookie("_Gender","1,3",{path:"/",domain:".yohobuy.com",expires:90}),window.setCookie("_Channel","boys",{path:"/",domain:".yohobuy.com",expires:7}),t()}),O(".boys img , .boys .go").bind("click",function(){i("弹窗","BOYS","homepage_man"),window.setCookie("_Gender","1,3",{path:"/",domain:".yohobuy.com",expires:90}),window.setCookie("_Channel","boys",{path:"/",domain:".yohobuy.com",expires:7}),t()}),O(".girls img, .girls .go").bind("click",function(){i("弹窗","GIRLS","homepage_woman"),window.setCookie("_Gender","2,3",{path:"/",domain:".yohobuy.com",expires:90}),window.setCookie("_Channel","girls",{path:"/",domain:".yohobuy.com",expires:7})}),O(".lifestyle img, .lifestyle .go").bind("click",function(){window.setCookie("_Channel","lifestyle",{path:"/",domain:".yohobuy.com",expires:7}),i("弹窗","LIEFSTYLE","homepage_lifestyle")}),O("#cover .guide-box").bind("click",function(e){e.stopPropagation()})})}var v,k,_,C,x,O=o(1),q=o(4),T=O(".tool-wrapper"),S=T.find(".yoho-group"),j=O("#loginBox"),I=O(".head-wrapper"),z=O("#search-form"),R=I.find(".main-logo"),U=I.find(".search-suggest"),E=I.find(".go-cart"),N=E.find(".goods-num-tip"),A=I.find(".mini-cart-wrapper"),J=O(".sub-nav-list .contain-third"),L=9,D=0,G=500,B="",F="",H=/^[\^\!\+\-\(\)\:\[\]\\\{\}\~\*\?\|\&\;\/]{0,}$/g,Y=[],M={listboys:"4f78b0f418fc42314d8b6e791cfb7fa8",listgirls:"00c1f025a51b6b597dc37925951ea27d",listkids:"b02df11184727701ade1b6de9737d08c",listlifestyle:"fd35c52dced0c880976ba858346d1fc5",searchboys:"9fb8986ea700cc27a8057361c3924394",searchgirls:"e3e207a1443ca60c8037fe52a5560c18",searchkids:"620fc77f479da8feaeb06f2324e5d0bb",searchlifestyle:"a3c93301c6ffaf3ed0f36a4a451be36d",uniquebrandboys:"2ebb0810c0d1a67e5229149c9c3aba7d",uniquebrandgirls:"99e23385f4ba4b65f406b7e2968ac821",uniquebrandkids:"a74ebc9b17840c91b9ea46568111fe6b",uniquebrandlifestyle:"0e8c81ead53f56302baa4d0ad967f527",brandsboys:"77b352db07129c76a9d532acad149f9f",brandsgirls:"bf047f16e52ebc38be5ce9c7623831e6",brandskids:"e3ae1ce9b5e13c6d271ef3eccb831652",brandslifestyle:"e4ac8029c30f65d7f1af030980d140fe",newboys:"869d3c5f3b450fb52101d00a61ce87cb",newgirls:"d953b6dfdac02483d1dcce8d96055954",newkids:"0874cb6d75df8e0e78f2d475e53ecc08",newlifestyle:"43e8fc8e178115c262bbce2bd0012db7",saleboys:"c846e3165c994769b4201d8c32f3ae9b",salegirls:"52b1d389edcbc62d65de71b80c4d6ad0",salekids:"ad8b1703c761ba00973868ab5199cc27",salelifestyle:"7acc64905c70ac91846f43fb2cec4bbd",homeboys:"b0856a771ef1b59ab1234c74688fa42d",homegirls:"2bd61fa12e4933211518f70fe5ce3c48",homekids:"895c59e8c64b40399c9533509507320c",homelifestyle:"2e037d4e25d2767352ca3e0a4627f7bd",indexboys:"0c911d3000f52e8ca7cffb74f5864c29",indexgirls:"b645b8980c423ab30485e0a9d08c2ef7",indexkids:"17f6d5d5d454d2c507bc5fcbc90f7756",indexlifestyle:"735cd393e841762af8793c346abbbc36"},X={};k=q.compile(O("#simple-account-info-tpl").html()||""),_=q.compile(O("#header-login-info-tpl").html()||""),C=q.compile(O("#mini-cart-tpl").html()||""),q.registerHelper("notzero",function(e,n){return"0"!==e?n.fn(this):n.inverse(this)}),g()?(x=b(),window.setTimeout(w,3e3)):window.setTimeout(p,3e3),d(),l(),s(),setInterval(f,2e3),S.hover(function(){var e=O(this).data();O(this).text(e.cn)},function(){var e=O(this).data();O(this).text(e.en)}),z.on("keyup",".search-key",function(e){var n,o=O.trim(O(this).val()),i=U.find("li"),t=U.find(".action");if(e.which>36&&e.which<41){if(38===e.which)n=t.prev(),t.length&&n.length||(n=i.eq(i.length-1));else{if(40!==e.which)return;n=t.next(),t.length&&n.length||(n=i.eq(0))}i.removeClass("action"),n.addClass("action"),O(this).val(n.find(".searchvalue").text())}else 13===e.which?""!==o&&z.submit():(o=o.replace(new RegExp("'","gm"),""),O(this).val(o),u(o))}).on("blur",".search-key",function(){setTimeout(function(){U.hide()},200)}),E.hover(function(){var e,n="";E.hasClass("on-hover")||(e=E.data(),e&&1*e.num?(n='<div class="loading-cart"><h3>加载中,请稍后</h3></div>',h(e.key)):n='<div class="empty-cart"><h3>您的购物车暂无商品</h3></div>',A.html(n),E.addClass("on-hover"))},function(){E.removeClass("on-hover")}),E.on("click",".cart-goods-del",function(){var e,n=O(this),o=n.data();o&&(e=function(){n.closest(".goods-item").remove()},o.key=E.data().key,m(o,e))}),J.on({mouseenter:function(){var e=O(this).children(".third-nav-wrapper"),n=e.find(".show-detail"),o={};v=setTimeout(function(){e.show()},200),n.length&&!n.hasClass("show")&&(o.content_code=n.data().code,o.client_type="web",o.width=337,o.height=250,o._=new Date,O.getJSON("//new.yohobuy.com/common/getbanner?callback=?",o,function(e){200===e.code&&(n.addClass("show"),n.find("img").attr("src",e.data.src),n.find("a").attr("href",e.data.url),n.find(".title").text(e.data.title))}))},mouseleave:function(){var e=O(this).children(".third-nav-wrapper");v&&clearTimeout(v),e.hide()}}),window.submitSearch=function(){var e,n,o=O("#query-key").val(),t=O("#defaultsearch").val(),a="Search",c="Head Search",d="Search";if(e=O.trim(B.toLowerCase()),n=O.trim(o.toLowerCase()),i(a,c,d),""!==F&&""!==B&&e===n)location.href=F.replace("'","");else{if(!H.test(o)||""===o)return""===o&&O("#query-key").val(t),z.submit(),!1;location.href="http://search.yohobuy.com/error?query="+o+"&result=error"}},y()}]);
\ No newline at end of file
... ...
webpackJsonp([2],[function(e,t,n){var i=n(1),o=n(2),a=n(20),s=i(".home-page").data("page"),r=i(".logo-brand").data("url");n(5),n(10),n(34),n(31),i(document).on("mouseenter",".imgopacity a img",function(){i(this).css("opacity",.8)}),i(document).on("mouseout",".imgopacity a img",function(){i(this).css("opacity",1)}),i.inArray(s,["boys","girls","kids","lifestyle"])>-1&&(n(35)({type:s,url:"/common/getNewArrival",count:"boys"===s||"lifestyle"===s?5:4,rows:[5,3]}),window.setCookie("_Channel",s,{domain:".yohobuy.com",path:"/",expires:365})),o(i("img.lazy")),"boys"===s?i(".slide-container").slider({pagination:".thumb-pagination"}):(i(".center-col").slider(),i(".slide-container").slider()),"boys"===s?(i(".logo-brand").logoBrand({url:r}),a.init(".img-brand")):(i(".logo-brand").logoBrand({showNum:10,url:r}),a.init(".img-slider-wrapper"))},,,,,function(e,t,n){function i(e){var t=new RegExp(e+"=([^;$]*)","i"),n="$1";return t.test(decodeURIComponent(document.cookie))?RegExp[n]:""}function o(e,t,n){var i,o,a,s,r="";"undefined"!=typeof t&&(n=n||{},null===t&&(t="",n.expires=-1),n.expires&&("number"==typeof n.expires||n.expires.toUTCString)&&("number"==typeof n.expires?(s=new Date,s.setTime(s.getTime()+24*n.expires*60*60*1e3)):s=n.expires,r="; expires="+s.toUTCString()),i=n.path?"; path="+n.path:"",o=n.domain?"; domain="+n.domain:"",a=n.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),r,i,o,a].join(""))}function a(){var e,t=i("_UID");return"undefined"==typeof t?0:(e=t.split("::"),"undefined"==typeof e||e.length<4?0:e)}function s(){var e=a();return 0===e?0:e[1]}function r(){var e=i("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function c(){var e,t,n={},i=window.location.search,o=i?decodeURIComponent(i).slice(1).split("&"):[];for(t=0;t<o.length;t++)e=o[t].split("="),n[e[0]]=e[1];return n}var l=n(1),d=l("body");!function(e,t,n,i,o){var a=t.createElement(n),s=t.getElementsByTagName(n)[0];e.YohoAcquisitionObject=o,e[o]=function(){e[o].p=arguments},a.async=1,a.src=i,s.parentNode.insertBefore(a,s)}(window,document,"script","//cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=s();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_web",e,"","")}(),l(window).on("resize",function(){var e=l(this).width();e<1360?l(".return-top").addClass("min"):l(".return-top").removeClass("min"),e<1180?d.addClass("min-screen"):d.removeClass("min-screen")}).trigger("resize"),function(){l(window).load(function(){var e,t=document.getElementById("user-thumb");t&&(e=new Image,e.src=t.src,e.onerror=function(){l(t).parent().append('<div class="default-user-thumb"></div>').end().remove()})})}(),window.cookie=i,window.setCookie=o,window.getUser=a,window.getUid=s,window.getShoppingKey=r,window.queryString=c,n(7),n(6)},function(e,t,n){function i(){var e=s("#subscriber-box"),t=s("#subscriber-btn"),n=/^[.\-_a-zA-Z0-9]+@[\-_a-zA-Z0-9]+\.[a-zA-Z0-9]/,i={mail:"&#xe601;",tick:"&#xe605;"};e.focus(function(){s(this).val("").css("color",""),t.removeClass("done").html(i.mail)}),t.click(function(){var o=s.trim(e.val());if(""!==o&&n.test(o))try{s.ajax({url:"//new.yohobuy.com/common/emailsubscriber",dataType:"jsonp",data:{email:o,tmp:Math.random(),uid:window.getUid()},success:function(n){1===n.data.result?(e.val("已订阅到:"+o),t.addClass("done").html(i.tick)):e.css("color","red")}})}catch(a){console.log(a.message)}else e.css("color","red")})}function o(){var e=s(".vote"),t=s("#feed-back-page"),n=e.children("li").length;t.on("click","span",function(){var t=s(this);t.hasClass("cur")||(t.siblings(".cur").removeClass("cur"),t.addClass("cur"),e.children().not(".hide").addClass("hide").end().eq(t.index()).removeClass("hide"))}),e.on("click",".feed-back-btn",function(){var i=s(this),o=i.closest("li"),a=o.index(),r=[],c=o.find(".feedback-answer").val(),l=o.find(".feedback-id").val(),d=o.find(".question-id").val();o.find(":checked").each(function(){r.push(s(this).val())}),s.ajax({url:"//new.yohobuy.com/common/suggestfeedback",dataType:"jsonp",data:{feedback_id:l||0,question_id:d||0,answer:c||"",solution:r.join(",")},success:function(i){var s=a+1;if(1===~~i.data.result){if(a===n-1)return void alert("感谢您的参与!");o.addClass("hide"),e.children(":eq("+(a+1)+")").removeClass("hide"),t.children(".cur").removeClass("cur"),t.children(":eq("+s+")").addClass("cur")}}})})}function a(){s(window).height()>s(document).height()&&c.addClass("hide")}var s=n(1),r=n(2),c=s(".return-top");r(s("img.lazy")),c.click(function(){s("html,body").animate({scrollTop:0},500)}),s(window).scroll(function(){0===s(window).scrollTop()?c.addClass("hide"):c.removeClass("hide")}),c.hasClass("hide")&&s("img").load(a),i(),o(),window.rePosReturnTop=a},function(e,t,n){function i(e,t,n){G.push({louceng:e,weizhi:t,event:n})}function o(){var e=S("#cover");e.remove()}function a(e){var t="";t=e&&""!==e.url?'<a target="_blank" href="'+e.url+'" class="page-top-banner"style="height:36px;border:none;background-image:url('+window.unescape(e.src)+');background-position: center;display:block;">&nbsp;</a>':'<div class="yoho-notice"><div class="notice-container center-content"><h1 class="notice-title">关于系统升级的公告</h1><div class="notice-content"><p class="tips">尊敬的顾客:</p><p class="detail">您好!为了向您提供更优质的服务,目前系统正在升级,请耐心等待。</p><p class="detail">系统升级期间,部分地区用户体验会有暂时中断,如遇紧急事宜,欢迎垂询客服热线:400-889-9646 09:00-22:30(周一至周日)。稍后系统将恢复正常使用,欢迎您继续光顾YOHO!BUY有货!带来不便之处深表歉意,请您谅解!</p></div></div></div>',S("body").prepend(t)}function s(){var e,t,n,i=document.cookie,o=i.split(";");for(e=0;e<o.length;e++)t=o[e].split("="),"undefined"!=typeof t[0]&&(n=t[0].replace(/\s/g,""),Y[n]=t[1])}function r(){var e,t="indexkids",n="indexlifestyle",i="indexboys",o="indexgirls",r="uniquebrand",c=window.location.href,l=window.location.host,d="";s(),c.indexOf("search")!==-1&&(d=J["search"+Y._Channel]),c.indexOf("list")!==-1&&(d=J["list"+Y._Channel]),c.indexOf("brands")!==-1&&(d=J["brands"+Y._Channel]),c.indexOf("new")!==-1&&(d=J["new"+Y._Channel]),c.indexOf("sale")!==-1&&(d=J["sale"+Y._Channel]),c.indexOf("home")!==-1&&(d=J["home"+Y._Channel]),c.indexOf("kids")!==-1&&(d=J[t]),c.indexOf("woman")===-1&&c.indexOf("girls")===-1||(d=J[o]),c.indexOf("lifestyle")!==-1&&(d=J[n]),c.indexOf("www.yohobuy.com")!==-1&&"/"===window.location.pathname&&(d=J[i]),e=l.split(".")[0],"list"!==e&&"search"!==e&&"www"!==e&&"new"!==e&&"item"!==e&&"guang"!==e&&(d=J[r+Y._Channel]),S.getJSON("//new.yohobuy.com/common/getbanner?callback=?",{client_type:"web",content_code:d},function(e){200===+e.code&&"object"==typeof e.data&&(""!==e.data.url?a(e.data):a())})}function c(){L.each(function(){var e=S(this).find(".hide-list"),t=[],n=0;if(e.length){for(e.children().each(function(){n%R===0&&t.push(""),t[t.length-1]+=this.outerHTML+"",n++}),n=0;n<3;n++){if(!t[n])return;e.before('<dl class="category-list">'+t[n]+"</dl>")}e.remove()}})}function l(e){var t={usercenter:"//www.yohobuy.com/home?t="+(new Date).getTime(),nickname:e.profile_name,signout:"//www.yohobuy.com/logout.html"};1*e.vip.curVipInfo.curLevel===3&&(e.vip3=!0),O.find(".simple-user-center").html(_(e)),j.html(x(t))}function d(){var e={return_type:"jsonp",method:"open.passport.get"};S.getJSON("//www.yohobuy.com/common/passport/?callback=?",e,function(e){e&&e.data&&e.data.result!==-1?l(e.data.data):window.setCookie("_UID","",{domain:".yohobuy.com",expires:-1}),j.show()})}function u(e){var t={return_type:"jsonp",query:e};S.getJSON("//search.yohobuy.com/api/suggest?callback=?",t,function(e){200===e.code&&(e.data&&e.data.length?z.html(e.data).show():z.hide())})}function p(e){var t,n;e&&window.setCookie("_g",e,{path:"/",domain:".yohobuy.com"}),window.cookie("_g")&&(t=S.parseJSON(window.cookie("_g")),n=parseInt(t._nac,10)+parseInt(t._ac,10),n=n>0?n:0,P.data({key:t._k,num:n}),$.text(n))}function f(e){var t={return_type:"jsonp",method:"open.Shoppingcart.getCartData",shopping_key:e};S.getJSON("//www.yohobuy.com/common/shoppingCart/?callback=?",t,function(e){var t,n=[],i=["main_goods","advance_goods","outlet_goods","gift_goods","need_pay_gifts"];200===e.code&&(t=e.data,S.each(i,function(e,i){t[i]&&(n=S.merge(n,t[i]))}),n&&n.length?(t.totalGoods=n,F.html(k({carData:t}))):(p('{"_k":"'+P.data().key+'","_nac":0,"_ac":0,"_r":0}'),F.html('<div class="empty-cart"><h3>您的购物车暂无商品</h3></div>')))})}function h(e,t){var n={return_type:"jsonp",product_sku:e.sku,promotion_id:e.proid,product_num:e.num};S.getJSON("//www.yohobuy.com/common/delCartGoods/?callback=?",n,function(n){var i="";if(200===n.code)return n.data&&"undefined"!=typeof n.data.total_goods_num&&(i='{"_k":"'+e.key+'","_nac":'+n.data.total_goods_num+',"_ac":0,"_r":0}',p(i),1*n.data.total_goods_num===0&&F.html('<div class="empty-cart"><h3>您的购物车暂无商品</h3></div>')),t()})}function m(){var e=["webkit","moz","ms"],t=e[0]+"RequestAnimationFrame",n=e[1]+"RequestAnimationFrame",i=e[2]+"RequestAnimationFrame";return window[t]?function(e){requestAnimationFrame(e)}:window[n]?function(e){window[n](e)}:window[i]?function(e){window[i](e)}:function(e){window.setTimeout(e,67)}}function g(){B+=10,q.css({transform:"rotateX("+B+"deg)","-webkit-transform":"rotateX("+B+"deg)","-moz-transform":"rotateX("+B+"deg)"}),B/90%2===1&&q.toggleClass("logo-cn"),B/90%2===0&&B%360!==0?window.setTimeout(g,3e3):B%360===0?window.setTimeout(g,6e4):C(function(){g()})}function v(){var e=3e3;q.hasClass("logo-cn-ie")&&(e=6e4),q.fadeOut(M,function(){q.toggleClass("logo-cn-ie"),q.fadeIn(M,function(){window.setTimeout(function(){v()},e)})})}function w(){var e,t,n=["webkit","moz","ms"];for(t=0;t<n.length;t++)return e=n[t]+"RequestAnimationFrame",!!window[e]}function b(){var e,t=window.cookie("_Gender"),n="",a="",s="",r="";"http://www.yohobuy.com/"!==window.location.href||"undefined"!=typeof t&&""!==t&&null!==t||S.get("/guide",function(t){n=document.createElement("div"),n.id="cover",n.innerHTML=t,document.body.appendChild(n),a=S(window).height(),s=S(".guide-box").height(),e=a/2-s/2,r=S(".guide-box .clear").find("li").length,S(".guide-box").css({width:200*r+"px",top:e+"px"}),S("#cover").bind("click",function(){window.setCookie("_Gender","1,3",{path:"/",domain:".yohobuy.com",expires:90}),window.setCookie("_Channel","boys",{path:"/",domain:".yohobuy.com",expires:7}),o()}),S("#cover .guide-box .close").bind("click",function(){i("弹窗","CLOSE","homepage_man"),window.setCookie("_Gender","1,3",{path:"/",domain:".yohobuy.com",expires:90}),window.setCookie("_Channel","boys",{path:"/",domain:".yohobuy.com",expires:7}),o()}),S(".boys img , .boys .go").bind("click",function(){i("弹窗","BOYS","homepage_man"),window.setCookie("_Gender","1,3",{path:"/",domain:".yohobuy.com",expires:90}),window.setCookie("_Channel","boys",{path:"/",domain:".yohobuy.com",expires:7}),o()}),S(".girls img, .girls .go").bind("click",function(){i("弹窗","GIRLS","homepage_woman"),window.setCookie("_Gender","2,3",{path:"/",domain:".yohobuy.com",expires:90}),window.setCookie("_Channel","girls",{path:"/",domain:".yohobuy.com",expires:7})}),S(".lifestyle img, .lifestyle .go").bind("click",function(){window.setCookie("_Channel","lifestyle",{path:"/",domain:".yohobuy.com",expires:7}),i("弹窗","LIEFSTYLE","homepage_lifestyle")}),S("#cover .guide-box").bind("click",function(e){e.stopPropagation()})})}var y,_,x,k,C,S=n(1),E=n(4),O=S(".tool-wrapper"),T=O.find(".yoho-group"),j=S("#loginBox"),I=S(".head-wrapper"),N=S("#search-form"),q=I.find(".main-logo"),z=I.find(".search-suggest"),P=I.find(".go-cart"),$=P.find(".goods-num-tip"),F=I.find(".mini-cart-wrapper"),L=S(".sub-nav-list .contain-third"),R=9,B=0,M=500,A="",U="",D=/^[\^\!\+\-\(\)\:\[\]\\\{\}\~\*\?\|\&\;\/]{0,}$/g,G=[],J={listboys:"4f78b0f418fc42314d8b6e791cfb7fa8",listgirls:"00c1f025a51b6b597dc37925951ea27d",listkids:"b02df11184727701ade1b6de9737d08c",listlifestyle:"fd35c52dced0c880976ba858346d1fc5",searchboys:"9fb8986ea700cc27a8057361c3924394",searchgirls:"e3e207a1443ca60c8037fe52a5560c18",searchkids:"620fc77f479da8feaeb06f2324e5d0bb",searchlifestyle:"a3c93301c6ffaf3ed0f36a4a451be36d",uniquebrandboys:"2ebb0810c0d1a67e5229149c9c3aba7d",uniquebrandgirls:"99e23385f4ba4b65f406b7e2968ac821",uniquebrandkids:"a74ebc9b17840c91b9ea46568111fe6b",uniquebrandlifestyle:"0e8c81ead53f56302baa4d0ad967f527",brandsboys:"77b352db07129c76a9d532acad149f9f",brandsgirls:"bf047f16e52ebc38be5ce9c7623831e6",brandskids:"e3ae1ce9b5e13c6d271ef3eccb831652",brandslifestyle:"e4ac8029c30f65d7f1af030980d140fe",newboys:"869d3c5f3b450fb52101d00a61ce87cb",newgirls:"d953b6dfdac02483d1dcce8d96055954",newkids:"0874cb6d75df8e0e78f2d475e53ecc08",newlifestyle:"43e8fc8e178115c262bbce2bd0012db7",saleboys:"c846e3165c994769b4201d8c32f3ae9b",salegirls:"52b1d389edcbc62d65de71b80c4d6ad0",salekids:"ad8b1703c761ba00973868ab5199cc27",salelifestyle:"7acc64905c70ac91846f43fb2cec4bbd",homeboys:"b0856a771ef1b59ab1234c74688fa42d",homegirls:"2bd61fa12e4933211518f70fe5ce3c48",homekids:"895c59e8c64b40399c9533509507320c",homelifestyle:"2e037d4e25d2767352ca3e0a4627f7bd",indexboys:"0c911d3000f52e8ca7cffb74f5864c29",indexgirls:"b645b8980c423ab30485e0a9d08c2ef7",indexkids:"17f6d5d5d454d2c507bc5fcbc90f7756",indexlifestyle:"735cd393e841762af8793c346abbbc36"},Y={};_=E.compile(S("#simple-account-info-tpl").html()||""),x=E.compile(S("#header-login-info-tpl").html()||""),k=E.compile(S("#mini-cart-tpl").html()||""),E.registerHelper("notzero",function(e,t){return"0"!==e?t.fn(this):t.inverse(this)}),w()?(C=m(),window.setTimeout(g,3e3)):window.setTimeout(v,3e3),r(),d(),c(),setInterval(p,2e3),T.hover(function(){var e=S(this).data();S(this).text(e.cn)},function(){var e=S(this).data();S(this).text(e.en)}),N.on("keyup",".search-key",function(e){var t,n=S.trim(S(this).val()),i=z.find("li"),o=z.find(".action");if(e.which>36&&e.which<41){if(38===e.which)t=o.prev(),o.length&&t.length||(t=i.eq(i.length-1));else{if(40!==e.which)return;t=o.next(),o.length&&t.length||(t=i.eq(0))}i.removeClass("action"),t.addClass("action"),S(this).val(t.find(".searchvalue").text())}else 13===e.which?""!==n&&N.submit():(n=n.replace(new RegExp("'","gm"),""),S(this).val(n),u(n))}).on("blur",".search-key",function(){setTimeout(function(){z.hide()},200)}),P.hover(function(){var e,t="";P.hasClass("on-hover")||(e=P.data(),e&&1*e.num?(t='<div class="loading-cart"><h3>加载中,请稍后</h3></div>',f(e.key)):t='<div class="empty-cart"><h3>您的购物车暂无商品</h3></div>',F.html(t),P.addClass("on-hover"))},function(){P.removeClass("on-hover")}),P.on("click",".cart-goods-del",function(){var e,t=S(this),n=t.data();n&&(e=function(){t.closest(".goods-item").remove()},n.key=P.data().key,h(n,e))}),L.on({mouseenter:function(){var e=S(this).children(".third-nav-wrapper"),t=e.find(".show-detail"),n={};y=setTimeout(function(){e.show()},200),t.length&&!t.hasClass("show")&&(n.content_code=t.data().code,n.client_type="web",n.width=337,n.height=250,n._=new Date,S.getJSON("//new.yohobuy.com/common/getbanner?callback=?",n,function(e){200===e.code&&(t.addClass("show"),t.find("img").attr("src",e.data.src),t.find("a").attr("href",e.data.url),t.find(".title").text(e.data.title))}))},mouseleave:function(){var e=S(this).children(".third-nav-wrapper");y&&clearTimeout(y),e.hide()}}),window.submitSearch=function(){var e,t,n=S("#query-key").val(),o=S("#defaultsearch").val(),a="Search",s="Head Search",r="Search";if(e=S.trim(A.toLowerCase()),t=S.trim(n.toLowerCase()),i(a,s,r),""!==U&&""!==A&&e===t)location.href=U.replace("'","");else{if(!D.test(n)||""===n)return""===n&&S("#query-key").val(o),N.submit(),!1;location.href="http://search.yohobuy.com/error?query="+n+"&result=error"}},b()},,,function(e,t,n){var i=n(1),o=n(2);!function(){var e=function(e,t){this.$element=i(e),this.options=i.extend({},i.fn.slider.defaults,t),this.bigItem=this.$element.find(".slide-wrapper").find("li"),this.smallItem=null,this.len=this.bigItem.size(),this.index=0,this.timer=null,this.init()};e.prototype={init:function(){if(this.$element){if(this.len<=1)return void o(this.$element.find("img.lazy"));this.options.pagination?this.smallItem=i(this.options.pagination).find("li"):this._createPage(),this.options.orient&&this._createOrient(),this._slideShow(),this._bindEvent(),this._autoplay()}},_createOrient:function(){var e='<div class="slide-switch"><a class="prev" href="javascript:;"><span class="iconfont">&#xe609;</span></a><a class="next" href="javascript:;"><span class="iconfont">&#xe608;</span></a></div>';this.$element.find(".slide-switch").length>0||this.$element.append(e)},_createPage:function(){var e='<div class="slide-pagination"><div class="slide-pagination-inner"><div class="slide-shade"></div><div class="slide-pagination-last">',t=0;if(!(this.len<=1)){for(t=0;t<this.len;t++)e+="<span></span>";e+="</div></div></div>",this.$element.append(i(e)),this.smallItem=this.$element.find(".slide-pagination-inner span")}},_bindEvent:function(){var e=this;this.$element.find(".slide-switch").on("click",".next",function(){e._nextSlide(),clearInterval(e.timer),e.timer=setInterval(function(){e._nextSlide()},e.options.time)}).on("click",".prev",function(){e._prevSlide(),clearInterval(e.timer),e.timer=setInterval(function(){e._nextSlide()},e.options.time)}),this.smallItem.on("mouseenter",function(){e.index=i(this).index(),clearInterval(e.timer),e._slideShow()}).on("mouseleave",function(){e._autoplay()}),this.$element.on("mouseenter",function(){i(this).find(".slide-switch").addClass("show")}).on("mouseleave",function(){i(this).find(".slide-switch").removeClass("show")})},_nextSlide:function(){this.index===this.len-1?this.index=0:this.index++,this._slideShow()},_prevSlide:function(){0===this.index?this.index=this.len-1:this.index--,this._slideShow()},_slideShow:function(){var e=this.bigItem.eq(this.index).find("img.lazy");e.attr("src")!==e.data("original")&&(o(e,{event:"sporty"}),e.trigger("sporty")),this.smallItem.eq(this.index).addClass("focus").siblings().removeClass("focus"),this.bigItem.eq(this.index).show().stop().animate({opacity:1},function(){i(this).find(".slide-tips > p").removeClass("hide")}).siblings().stop().animate({opacity:0},function(){i(this).hide().find(".slide-tips > p").addClass("hide")})},_autoplay:function(){var e=this;clearInterval(this.timer),this.timer=setInterval(function(){e._nextSlide()},this.options.time)}},i.fn.slider=function(t){return this.each(function(){var n=i(this),o=n.data("Slider"),a="object"==typeof t&&t;o||n.data("Slider",o=new e(this,a)),"string"==typeof t&&o[t]()})},i.fn.slider.Constructor=e,i.fn.slider.defaults={time:5e3,orient:!0,pagination:null}}(i)},function(e,t){var n,i={"[object Array]":"array","[object Boolean]":"boolean","[object Date]":"date","[object Function]":"function","[object Number]":"number","[object Object]":"object","[object RegExp]":"regexp","[object String]":"string"},o={__Index:0,list:[],get:function(e){return void 0===e?this.list:this.list[e]},fn:function(){},inherit:function(e,t){var n=o.fn;n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.superclass=t.prototype,e.prototype.constructor===Object.prototype.constructor&&(e.prototype.constructor=t)},extend:function(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},copy:function(e,t,n){var i,a,s;if("object"!=typeof t)return t;if(i=t.valueOf(),t!==i)return new t.constructor(i);if(t instanceof t.constructor&&t.constructor!==Object){a=e?new e:o.clone(t.constructor.prototype);for(s in t)(e||t.hasOwnProperty(s))&&(a[s]=t[s])}else{a={};for(s in t)a.hasOwnProperty(s)&&(a[s]=t[s])}if(n)for(s in n)a.hasOwnProperty(s)&&(a[s]=n[s]);return a},clone:function(e){return o.__cloneFunc.prototype=e,new o.__cloneFunc},__cloneFunc:function(){},delegate:function(e,t){var n;return t=t||window,arguments.length>2?(n=Array.prototype.slice.call(arguments,2),function(){return e.apply(t,n)}):function(){return e.call(t)}},dom:function(e,t){var n,i,o=e,a={wrap:o},s=o[0].getElementsByTagName("*"),r=s.length;for(i=0;i<r;i++)n=s[i].className,n.indexOf(t)>-1&&(n=n.split(t)[1]),n&&(a[n]=o.find(s[i]));return a},template:function(){var e,t,n,i,a=arguments;if(a.length>0&&o.isString(a[0]))if(e=a[0],2===a.length&&o.isObject(a[1]))for(t in a[1])void 0!==a[1][t]&&(n=new RegExp("({"+t+"})","g"),e=e.replace(n,a[1][t]));else for(i=1;i<a.length;i++)void 0!==a[i]&&(n=new RegExp("({["+(i-1)+"]})","g"),e=e.replace(n,a[i]));return e},__type:function(e){return null==e?String(e):i[Object.prototype.toString.call(e)]||"object"},isObject:function(e){return this.isFunction(e)||!(!e||"object"!=typeof e)},isFunction:function(e){return"function"===this.__type(e)},isArray:Array.isArray||function(e){return"array"===this.__type(e)},isNum:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},isString:function(e){return"string"===this.__type(e)},each:function(e,t,n){var i,a;if(o.isArray(e))for(i=0,a=e.length;i<a&&t.call(e[i],i,e[i],n)!==!1;i++);else for(i in e)if(t.call(e[i],i,e[i],n)===!1)break},funManager:{__loadList:{},__loadFun:function(e,t,n){e.methord&&o.isFunction(e.methord())&&(n=n||window,e.methord()(e,function(){t()},n))},load:function(e,t,n,i){i=i||0,e[i]&&o.funManager.__loadFun(e[i],function(){o.funManager.load(e,t,n,i+1)},n),t(i,n)},get:function(e){return this.__loadList[e]}},log:function(e){var t=window.console||{log:function(){}};t.log(e)},Event:{mousewheel:function(e){var t=e.originalEvent,n=t.detail?t.detail*-1:t.wheelDelta/40,i=n<0?-1:1;return{direction:i,unit:n}},__:function(e,t,n,i){var o;for(o in e)if(window[e[o].validator]){t[e[o].validator](e[o].prefix+n,i,!1);break}},add:function(e,t,n){var i=[{validator:"addEventListener",prefix:""},{validator:"attachEvent",prefix:"on"}];this.__(i,e,t,n)},remove:function(e,t,n){var i=[{validator:"removeEventListener",prefix:""},{validator:"detachEvent",prefix:"on"}];this.__(i,e,t,n)}},getUid:function(e){return o.template("me-{0}{1}-{2}",e,(new Date).getTime(),o.__Index++)},Browser:{isTouch:function(){var e=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture;return!!("ontouchstart"in window||e||window.DocumentTouch)},Prefix:function(){var e,t=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"],n=document.createElement("div");for(e in t)if(void 0!==n.style[t[e]])return o.template("-{0}-",t[e].replace("Perspective","").toLowerCase())},parseURL:function(e){var t,n,i,o,a,s=document.createElement("a");return s.href=e,{source:e,protocol:s.protocol.replace(":",""),host:s.hostname,port:s.port,query:s.search,params:function(){for(t={},n=s.search.replace(/^\?/,"").split("&"),i=n.length,o=0,a;o<i;o++)n[o]&&(a=n[o].split("="),t[a[0]]=a[1]);return t}(),file:(s.pathname.match(/\/([^\/?#]+)$/i)||[null,""])[1],hash:s.hash.replace("#",""),path:s.pathname.replace(/^([^\/])/,"/$1"),relative:(s.href.match(/tps?:\/\/[^\/]+(.+)/)||[null,""])[1],segments:s.pathname.replace(/^\//,"").split("/")}}},Array:{indexOf:function(e,t){var n;for(n=0;n<e.length;n++)if(this[n]===t)return n;return-1},remove:function(e,t){var n=this.indexOf(e,t);return n>-1&&e.splice(n,1),e}}};n=function(e){this.initialized=!1,this.registerEvent={before:[],change:[],after:[]},this.options=e,this.init(e)},n.output=function(){o.log(o.list)},n.prototype.oninit=o.fn,n.prototype.init=function(e){this.initialized=!0,this.__Uid=o.getUid("me"),this.oninit(e),o.list[this.__Uid]=this},n.prototype.destory=function(){this.initialized=!1,delete o.list[this.__Uid]},n.prototype.getUid=function(){return this.__Uid},n.prototype.getOptions=function(){return this.options},n.prototype.config=function(){if(!(arguments.length>0))return this.options;if("string"==typeof arguments[0]){if(!(arguments.length>1))return this.options[name];this.options[arguments[0]]=arguments[1]}},n.prototype.on=function(e,t){var n=this,i=n.registerEvent[e];return i&&i.push(t),i},n.prototype.off=function(e,t){var n=this,i=n.registerEvent[e],a=[];o.each(i,function(e,n){n===t&&a.push(e)}),o.each(a.reverse(),function(e,t){i.splice(t,1)})},o.assembly=n,e.exports=o},function(e,t,n){var i=n(11),o=function(e){this.__lastTime=null,this.__isStop=!1,e=i.extend(this.defaults,e),o.superclass.constructor.call(this,e)};i.inherit(o,i.assembly),o.prototype.oninit=function(){var e=this,t=e.options;return t.auto&&e.play(),e.go(t.index),this},o.prototype.go=function(e,t){var n,i,o,a,s,r,c,l,d=this,u=d.options;d.__lastTime&&(clearTimeout(d.__lastTime),d.__lastTime=null),t="undefined"==typeof t?u.index:t,n=e===t?0:e>t?1:-1,i=u.loop,a=u.length-1,s=e,e=i?e>a?e-a-1:0>e?e+a+1:e:e>a?a:0>e?0:e,o=u.index=e,r={from:t,to:e,originalto:s,direction:n};for(c in d.registerEvent)if(d.registerEvent[c].length>0)for(l in d.registerEvent[c])d.registerEvent[c].hasOwnProperty(l)&&d.registerEvent[c][l](r);o!==a||e?!d.__isStop&&u.auto&&d.play():d.__lastTime&&clearTimeout(d.__lastTime)},o.prototype.play=function(){var e=this,t=e.options;return e.__lastTime=setTimeout(function(){e.next()},1e3*t.timeout),this},o.prototype.next=function(){var e=this,t=e.options,n=t.index,i=n+t.step;e.go(i,n)},o.prototype.prev=function(){var e=this,t=e.options,n=t.index,i=n-t.step;e.go(i,n)},o.prototype.pause=function(){var e=this;e.__lastTime&&clearTimeout(e.__lastTime),e.__isStop=!0},o.prototype.resume=function(){var e=this;e.__isStop=!1,e.play()},o.prototype.defaults={index:0,timeout:5,step:1,per:1,auto:!1,loop:!1},e.exports=o},,,,,,,,function(e,t,n){var i=n(1),o=n(2);n(18),t.init=function(e){var t=i(e),n=t.unslider({delay:5e3,arrows:!1,nav:!1}),a=t.find("li").length,s=a/3;t.find("li").length%3||(s-=1),t.find("li:nth-child(3n)").css("margin-right",0),n.on("unslider.change",function(){setTimeout(function(){var e=i(".img-item img.lazy");e.each(function(e,t){var n=i(t);(n.attr("src").match("data:image")||0===n.attr("src").length)&&o(n)})},1e3)}),i(".img-brand-switch").on("click",".prev",function(){n.data("unslider").current>s||n.data("unslider").current<=0?n.unslider("animate:"+s):n.unslider("prev")}).on("click",".next",function(){n.data("unslider").current>=s?n.unslider("animate:first"):n.unslider("next")})}},,,,,,,,,,,function(e,t,n){function i(e){c.each(function(t){s(this).css("zIndex",t),t<=e?s(this).stop().animate({left:t*d},400):s(this).stop().animate({left:e*d+l+d*(t-e-1)},400)})}var o,a=n(12),s=n(1),r=s(".slide-accordion"),c=r.find("li"),l=c.width(),d=1150===parseInt(s(".home-page").width(),10)?125:107;i(0),o=new a({length:5,loop:!1,auto:!1,timeout:2,index:0}),o.on("change",function(e){i(e.to)}),c.mouseover(function(){o.go(s(this).index())}),o.init()},,,function(e,t,n){var i=n(1),o=n(4),a=n(2);!function(){var e=function(e,t){this.$element=i(e),this.options=i.extend({},i.fn.logoBrand.defaults,t),this.init()};e.prototype={init:function(){this.$element.addClass("logos-"+this.options.showNum),this._sendRequest()},_createHelper:function(){var e=this.options.showNum;o.registerHelper("brandList",function(t,n){var i="<ul>",o=0,a=null,s=0;if(t.length%e!==0)for(s=e-t.length%e,o=0;o<s;o++)t.push({href:"javascript:;",img:""});for(o=0;o<t.length;o++)a=n.fn(t[o]),i=o%e===5||5===o?i+'<li class="logo-brand-switch" data-page="'+Math.floor(o/e)+'"><a class="prev iconfont" href="javascript:;">&#xe609;</a><a class="next iconfont" href="javascript:;">&#xe608;</a></li><li data-page="'+Math.floor(o/e)+'">'+a+"</li>":0!==o&&o%e===0?i+'<li class="brand-more" data-page="'+Math.floor(o/(e+1))+'"><a href="javascript:;" target="_blank">MORE ></a></li><li data-page="'+Math.floor(o/e)+'">'+a+"</li>":i+'<li data-page="'+Math.floor(o/e)+'">'+a+"</li>";return i+'<li class="brand-more" data-page="'+Math.floor(o/(e+1))+'"><a href="javascript:;" target="_blank">MORE ></a></li></ul>'})},_sendRequest:function(){var e=this;i.ajax({type:"GET",url:e.options.url,dataType:"json",success:function(t){var n,i;t&&0!==t.length&&(e._createHelper(),i='{{#brandList logoBrand}}<a href="{{href}}" target="_blank"><img class="lazy" data-original="{{img}}" alt=""></a>{{/brandList}}',n=o.compile(i),e.$element.html(n(t)),e.$element.find(".brand-more a").attr("href",t.moreBrand),a(e.$element.find("img.lazy")),e._bindEvent())}})},_brandShow:function(e,t){var n=this;a(i("li[data-page="+t+"]").find("img.lazy").trigger("appear")),n.$element.find("li[data-page="+e+"]").find("img").fadeOut("normal",function(){n.$element.find("li").hide(),n.$element.find("li[data-page="+t+"]").show().find("img").fadeIn()})},_bindEvent:function(){var e=this;e.$element.on("click",".next",function(){var t=i(this).parent().data("page"),n=0,o=Math.ceil(e.$element.find("li").size()/(e.options.showNum+2))-1;n=t===o?0:t+1,e._brandShow(t,n)}),e.$element.on("click",".prev",function(){var t=i(this).parent().data("page"),n=0,o=Math.ceil(e.$element.find("li").size()/(e.options.showNum+2))-1;n=0===t?o:t-1,e._brandShow(t,n)})}},i.fn.logoBrand=function(t){return this.each(function(){var n=i(this),o=n.data("LogoBrand"),a="object"==typeof t&&t;o||n.data("LogoBrand",o=new e(this,a)),"string"==typeof t&&o[t]()})},i.fn.logoBrand.Constructor=e,i.fn.logoBrand.defaults={showNum:16,url:"/boys/getBrand"}}()},function(e,t,n){function i(e){var t={index:0,isload:!0,isrun:!0,offset:{height:null,width:null}};return this.registerEvent={before:[],change:[],after:[]},this.options=o.extend(!0,{},t,e),this}var o=n(1),a=n(2),s=n(4);i.prototype.on=function(e,t){var n=this,i=n.registerEvent[e];return i&&i.push(t),i},i.prototype.exect=function(e,t){var n,i=this;if(i.registerEvent[e]&&i.registerEvent[e].length>0)for(n in i.registerEvent[e])i.registerEvent[e].hasOwnProperty(n)&&i.registerEvent[e][n](t)},i.prototype.init=function(){function e(){n.isrun&&n.isload&&t.__directionCalculation()&&(n.isload=!1,n.index++,t.exect("after",n)),t.exect("change",n)}var t=this,n=this.options;t.exect("before",n),o(window).scroll(e)},i.prototype.emit=function(){var e=this.options;e.isload=!0},i.prototype.stop=function(){var e=this.options;e.isrun=!1,e.isload=!1},i.prototype.__directionCalculation=function(){var e=this.options;return!!(e.offset.height&&e.offset.height()>0&&o(window).scrollTop()+o(window).height()>=e.offset.height())},e.exports=function(e){var t,n=o("#newarrivals .goods-container"),r=o(".loading a"),c=new i({index:1,isload:!1,offset:{height:function(){return parseFloat(n.offset().top)+parseFloat(n.height())-200}}}),l=e.url,d=e.count,u=e.rows;e.pageIndex=0,delete e.url,delete e.count,delete e.rows,t=function(){var t={type:"POST",url:l,success:function(t){var i,o,l,u=t.code;200===u?(o=t.goods.length%d,l=t.goods.length-o-1,t.goods.splice(l,o),i=s.compile(c.tpl),n.append(i(t.goods)),e.pageIndex=e.pageIndex+t.goods.length,a(n.find("img.lazy")),c.emit()):(c.stop(),r.html("查看更多"))},error:function(){c.stop(),r.html("网络断开连接了~")}};t.data=e,o.ajax(t)},c.on("after",function(){e.pageCount=d*u[1],t(l,e)}),c.on("before",function(){c.tpl="{{#each this}}",c.tpl+='<div class="good-info imgopacity" data-skn="{{skn}}">',c.tpl+=' <div class="tag-container clearfix">',c.tpl+=" {{# tags}}",c.tpl+=" {{# isNew}}",c.tpl+=' <span class="good-tag new-tag">NEW</span>',c.tpl+=" {{/ isNew}}",c.tpl+=" {{# isReNew}}",c.tpl+=' <span class="good-tag renew-tag">再到着</span>',c.tpl+=" {{/ isReNew}}",c.tpl+=" {{# isSale}}",c.tpl+=' <span class="good-tag sale-tag">SALE</span>',c.tpl+=" {{/ isSale}}",c.tpl+=" {{# isNewFestival}}",c.tpl+=' <span class="good-tag new-festival-tag">新品节</span>',c.tpl+=" {{/ isNewFestival}}",c.tpl+=" {{# isLimit}}",c.tpl+=' <span class="good-tag limit-tag">限量商品</span>',c.tpl+=" {{/ isLimit}}",c.tpl+=" {{# isYearEndPromotion}}",c.tpl+=' <span class="good-tag yep-tag">年终大促</span>',c.tpl+=" {{/ isYearEndPromotion}}",c.tpl+=" {{# isYearMidPromotion}}",c.tpl+=' <span class="good-tag ymp-tag">年中热促</span>',c.tpl+=" {{/ isYearMidPromotion}}",c.tpl+=" {{/ tags}}",c.tpl+=" </div>",c.tpl+=' <div class="good-detail-img">',c.tpl+=' <a class="good-thumb" href="{{url}}" target= "_blank">',c.tpl+=' <img class="lazy" data-original="{{thumb}}">',c.tpl+=" </a>",c.tpl+=" {{# isFew}}",c.tpl+=' <p class="few-tag">即将售罄</p>',c.tpl+=" {{/ isFew}}",c.tpl+=" {{#if showColBtn}}",c.tpl+=' <span class="col-btn iconfont{{#if coled}} coled{{/if}}">&#xe616;</span>',
c.tpl+=" {{/if}}",c.tpl+=" </div>",c.tpl+=' <div class="good-detail-text">',c.tpl+=' <a href="{{url}}" target= "_blank">{{name}}</a>',c.tpl+=' <p class="price">',c.tpl+=' <span class="sale-price{{#unless marketPrice}}prime-cost{{/unless}}">',c.tpl+=" ¥{{salePrice}}",c.tpl+=" </span>",c.tpl+=" {{# marketPrice}}",c.tpl+=' <span class="market-price">¥{{.}}</span>',c.tpl+=" {{/ marketPrice}}",c.tpl+=" </p>",c.tpl+=" </div>",c.tpl+="</div>",c.tpl+="{{/each}}",e.pageCount=d*u[0],t(l,e,e.count)}),c.init()}}]);
\ No newline at end of file
... ...
webpackJsonp([11],[function(e,n,o){o(5)},,,,,function(e,n,o){function i(e){var n=new RegExp(e+"=([^;$]*)","i"),o="$1";return n.test(decodeURIComponent(document.cookie))?RegExp[o]:""}function t(e,n,o){var i,t,a,c,d="";"undefined"!=typeof n&&(o=o||{},null===n&&(n="",o.expires=-1),o.expires&&("number"==typeof o.expires||o.expires.toUTCString)&&("number"==typeof o.expires?(c=new Date,c.setTime(c.getTime()+24*o.expires*60*60*1e3)):c=o.expires,d="; expires="+c.toUTCString()),i=o.path?"; path="+o.path:"",t=o.domain?"; domain="+o.domain:"",a=o.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(n),d,i,t,a].join(""))}function a(){var e,n=i("_UID");return"undefined"==typeof n?0:(e=n.split("::"),"undefined"==typeof e||e.length<4?0:e)}function c(){var e=a();return 0===e?0:e[1]}function d(){var e=i("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function s(){var e,n,o={},i=window.location.search,t=i?decodeURIComponent(i).slice(1).split("&"):[];for(n=0;n<t.length;n++)e=t[n].split("="),o[e[0]]=e[1];return o}var r=o(1),l=r("body");!function(e,n,o,i,t){var a=n.createElement(o),c=n.getElementsByTagName(o)[0];e.YohoAcquisitionObject=t,e[t]=function(){e[t].p=arguments},a.async=1,a.src=i,c.parentNode.insertBefore(a,c)}(window,document,"script","//cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=c();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_web",e,"","")}(),r(window).on("resize",function(){var e=r(this).width();e<1360?r(".return-top").addClass("min"):r(".return-top").removeClass("min"),e<1180?l.addClass("min-screen"):l.removeClass("min-screen")}).trigger("resize"),function(){r(window).load(function(){var e,n=document.getElementById("user-thumb");n&&(e=new Image,e.src=n.src,e.onerror=function(){r(n).parent().append('<div class="default-user-thumb"></div>').end().remove()})})}(),window.cookie=i,window.setCookie=t,window.getUser=a,window.getUid=c,window.getShoppingKey=d,window.queryString=s,o(7),o(6)},function(e,n,o){function i(){var e=c("#subscriber-box"),n=c("#subscriber-btn"),o=/^[.\-_a-zA-Z0-9]+@[\-_a-zA-Z0-9]+\.[a-zA-Z0-9]/,i={mail:"&#xe601;",tick:"&#xe605;"};e.focus(function(){c(this).val("").css("color",""),n.removeClass("done").html(i.mail)}),n.click(function(){var t=c.trim(e.val());if(""!==t&&o.test(t))try{c.ajax({url:"//new.yohobuy.com/common/emailsubscriber",dataType:"jsonp",data:{email:t,tmp:Math.random(),uid:window.getUid()},success:function(o){1===o.data.result?(e.val("已订阅到:"+t),n.addClass("done").html(i.tick)):e.css("color","red")}})}catch(a){console.log(a.message)}else e.css("color","red")})}function t(){var e=c(".vote"),n=c("#feed-back-page"),o=e.children("li").length;n.on("click","span",function(){var n=c(this);n.hasClass("cur")||(n.siblings(".cur").removeClass("cur"),n.addClass("cur"),e.children().not(".hide").addClass("hide").end().eq(n.index()).removeClass("hide"))}),e.on("click",".feed-back-btn",function(){var i=c(this),t=i.closest("li"),a=t.index(),d=[],s=t.find(".feedback-answer").val(),r=t.find(".feedback-id").val(),l=t.find(".question-id").val();t.find(":checked").each(function(){d.push(c(this).val())}),c.ajax({url:"//new.yohobuy.com/common/suggestfeedback",dataType:"jsonp",data:{feedback_id:r||0,question_id:l||0,answer:s||"",solution:d.join(",")},success:function(i){var c=a+1;if(1===~~i.data.result){if(a===o-1)return void alert("感谢您的参与!");t.addClass("hide"),e.children(":eq("+(a+1)+")").removeClass("hide"),n.children(".cur").removeClass("cur"),n.children(":eq("+c+")").addClass("cur")}}})})}function a(){c(window).height()>c(document).height()&&s.addClass("hide")}var c=o(1),d=o(2),s=c(".return-top");d(c("img.lazy")),s.click(function(){c("html,body").animate({scrollTop:0},500)}),c(window).scroll(function(){0===c(window).scrollTop()?s.addClass("hide"):s.removeClass("hide")}),s.hasClass("hide")&&c("img").load(a),i(),t(),window.rePosReturnTop=a},function(e,n,o){function i(e,n,o){Y.push({louceng:e,weizhi:n,event:o})}function t(){var e=O("#cover");e.remove()}function a(e){var n="";n=e&&""!==e.url?'<a target="_blank" href="'+e.url+'" class="page-top-banner"style="height:36px;border:none;background-image:url('+window.unescape(e.src)+');background-position: center;display:block;">&nbsp;</a>':'<div class="yoho-notice"><div class="notice-container center-content"><h1 class="notice-title">关于系统升级的公告</h1><div class="notice-content"><p class="tips">尊敬的顾客:</p><p class="detail">您好!为了向您提供更优质的服务,目前系统正在升级,请耐心等待。</p><p class="detail">系统升级期间,部分地区用户体验会有暂时中断,如遇紧急事宜,欢迎垂询客服热线:400-889-9646 09:00-22:30(周一至周日)。稍后系统将恢复正常使用,欢迎您继续光顾YOHO!BUY有货!带来不便之处深表歉意,请您谅解!</p></div></div></div>',O("body").prepend(n)}function c(){var e,n,o,i=document.cookie,t=i.split(";");for(e=0;e<t.length;e++)n=t[e].split("="),"undefined"!=typeof n[0]&&(o=n[0].replace(/\s/g,""),X[o]=n[1])}function d(){var e,n="indexkids",o="indexlifestyle",i="indexboys",t="indexgirls",d="uniquebrand",s=window.location.href,r=window.location.host,l="";c(),s.indexOf("search")!==-1&&(l=M["search"+X._Channel]),s.indexOf("list")!==-1&&(l=M["list"+X._Channel]),s.indexOf("brands")!==-1&&(l=M["brands"+X._Channel]),s.indexOf("new")!==-1&&(l=M["new"+X._Channel]),s.indexOf("sale")!==-1&&(l=M["sale"+X._Channel]),s.indexOf("home")!==-1&&(l=M["home"+X._Channel]),s.indexOf("kids")!==-1&&(l=M[n]),s.indexOf("woman")===-1&&s.indexOf("girls")===-1||(l=M[t]),s.indexOf("lifestyle")!==-1&&(l=M[o]),s.indexOf("www.yohobuy.com")!==-1&&"/"===window.location.pathname&&(l=M[i]),e=r.split(".")[0],"list"!==e&&"search"!==e&&"www"!==e&&"new"!==e&&"item"!==e&&"guang"!==e&&(l=M[d+X._Channel]),O.getJSON("//new.yohobuy.com/common/getbanner?callback=?",{client_type:"web",content_code:l},function(e){200===+e.code&&"object"==typeof e.data&&(""!==e.data.url?a(e.data):a())})}function s(){J.each(function(){var e=O(this).find(".hide-list"),n=[],o=0;if(e.length){for(e.children().each(function(){o%L===0&&n.push(""),n[n.length-1]+=this.outerHTML+"",o++}),o=0;o<3;o++){if(!n[o])return;e.before('<dl class="category-list">'+n[o]+"</dl>")}e.remove()}})}function r(e){var n={usercenter:"//www.yohobuy.com/home?t="+(new Date).getTime(),nickname:e.profile_name,signout:"//www.yohobuy.com/logout.html"};1*e.vip.curVipInfo.curLevel===3&&(e.vip3=!0),T.find(".simple-user-center").html(k(e)),j.html(_(n))}function l(){var e={return_type:"jsonp",method:"open.passport.get"};O.getJSON("//www.yohobuy.com/common/passport/?callback=?",e,function(e){e&&e.data&&e.data.result!==-1?r(e.data.data):window.setCookie("_UID","",{domain:".yohobuy.com",expires:-1}),j.show()})}function u(e){var n={return_type:"jsonp",query:e};O.getJSON("//search.yohobuy.com/api/suggest?callback=?",n,function(e){200===e.code&&(e.data&&e.data.length?U.html(e.data).show():U.hide())})}function f(e){var n,o;e&&window.setCookie("_g",e,{path:"/",domain:".yohobuy.com"}),window.cookie("_g")&&(n=O.parseJSON(window.cookie("_g")),o=parseInt(n._nac,10)+parseInt(n._ac,10),o=o>0?o:0,E.data({key:n._k,num:o}),N.text(o))}function h(e){var n={return_type:"jsonp",method:"open.Shoppingcart.getCartData",shopping_key:e};O.getJSON("//www.yohobuy.com/common/shoppingCart/?callback=?",n,function(e){var n,o=[],i=["main_goods","advance_goods","outlet_goods","gift_goods","need_pay_gifts"];200===e.code&&(n=e.data,O.each(i,function(e,i){n[i]&&(o=O.merge(o,n[i]))}),o&&o.length?(n.totalGoods=o,A.html(C({carData:n}))):(f('{"_k":"'+E.data().key+'","_nac":0,"_ac":0,"_r":0}'),A.html('<div class="empty-cart"><h3>您的购物车暂无商品</h3></div>')))})}function m(e,n){var o={return_type:"jsonp",product_sku:e.sku,promotion_id:e.proid,product_num:e.num};O.getJSON("//www.yohobuy.com/common/delCartGoods/?callback=?",o,function(o){var i="";if(200===o.code)return o.data&&"undefined"!=typeof o.data.total_goods_num&&(i='{"_k":"'+e.key+'","_nac":'+o.data.total_goods_num+',"_ac":0,"_r":0}',f(i),1*o.data.total_goods_num===0&&A.html('<div class="empty-cart"><h3>您的购物车暂无商品</h3></div>')),n()})}function b(){var e=["webkit","moz","ms"],n=e[0]+"RequestAnimationFrame",o=e[1]+"RequestAnimationFrame",i=e[2]+"RequestAnimationFrame";return window[n]?function(e){requestAnimationFrame(e)}:window[o]?function(e){window[o](e)}:window[i]?function(e){window[i](e)}:function(e){window.setTimeout(e,67)}}function w(){D+=10,R.css({transform:"rotateX("+D+"deg)","-webkit-transform":"rotateX("+D+"deg)","-moz-transform":"rotateX("+D+"deg)"}),D/90%2===1&&R.toggleClass("logo-cn"),D/90%2===0&&D%360!==0?window.setTimeout(w,3e3):D%360===0?window.setTimeout(w,6e4):x(function(){w()})}function p(){var e=3e3;R.hasClass("logo-cn-ie")&&(e=6e4),R.fadeOut(G,function(){R.toggleClass("logo-cn-ie"),R.fadeIn(G,function(){window.setTimeout(function(){p()},e)})})}function g(){var e,n,o=["webkit","moz","ms"];for(n=0;n<o.length;n++)return e=o[n]+"RequestAnimationFrame",!!window[e]}function y(){var e,n=window.cookie("_Gender"),o="",a="",c="",d="";"http://www.yohobuy.com/"!==window.location.href||"undefined"!=typeof n&&""!==n&&null!==n||O.get("/guide",function(n){o=document.createElement("div"),o.id="cover",o.innerHTML=n,document.body.appendChild(o),a=O(window).height(),c=O(".guide-box").height(),e=a/2-c/2,d=O(".guide-box .clear").find("li").length,O(".guide-box").css({width:200*d+"px",top:e+"px"}),O("#cover").bind("click",function(){window.setCookie("_Gender","1,3",{path:"/",domain:".yohobuy.com",expires:90}),window.setCookie("_Channel","boys",{path:"/",domain:".yohobuy.com",expires:7}),t()}),O("#cover .guide-box .close").bind("click",function(){i("弹窗","CLOSE","homepage_man"),window.setCookie("_Gender","1,3",{path:"/",domain:".yohobuy.com",expires:90}),window.setCookie("_Channel","boys",{path:"/",domain:".yohobuy.com",expires:7}),t()}),O(".boys img , .boys .go").bind("click",function(){i("弹窗","BOYS","homepage_man"),window.setCookie("_Gender","1,3",{path:"/",domain:".yohobuy.com",expires:90}),window.setCookie("_Channel","boys",{path:"/",domain:".yohobuy.com",expires:7}),t()}),O(".girls img, .girls .go").bind("click",function(){i("弹窗","GIRLS","homepage_woman"),window.setCookie("_Gender","2,3",{path:"/",domain:".yohobuy.com",expires:90}),window.setCookie("_Channel","girls",{path:"/",domain:".yohobuy.com",expires:7})}),O(".lifestyle img, .lifestyle .go").bind("click",function(){window.setCookie("_Channel","lifestyle",{path:"/",domain:".yohobuy.com",expires:7}),i("弹窗","LIEFSTYLE","homepage_lifestyle")}),O("#cover .guide-box").bind("click",function(e){e.stopPropagation()})})}var v,k,_,C,x,O=o(1),q=o(4),T=O(".tool-wrapper"),S=T.find(".yoho-group"),j=O("#loginBox"),I=O(".head-wrapper"),z=O("#search-form"),R=I.find(".main-logo"),U=I.find(".search-suggest"),E=I.find(".go-cart"),N=E.find(".goods-num-tip"),A=I.find(".mini-cart-wrapper"),J=O(".sub-nav-list .contain-third"),L=9,D=0,G=500,B="",F="",H=/^[\^\!\+\-\(\)\:\[\]\\\{\}\~\*\?\|\&\;\/]{0,}$/g,Y=[],M={listboys:"4f78b0f418fc42314d8b6e791cfb7fa8",listgirls:"00c1f025a51b6b597dc37925951ea27d",listkids:"b02df11184727701ade1b6de9737d08c",listlifestyle:"fd35c52dced0c880976ba858346d1fc5",searchboys:"9fb8986ea700cc27a8057361c3924394",searchgirls:"e3e207a1443ca60c8037fe52a5560c18",searchkids:"620fc77f479da8feaeb06f2324e5d0bb",searchlifestyle:"a3c93301c6ffaf3ed0f36a4a451be36d",uniquebrandboys:"2ebb0810c0d1a67e5229149c9c3aba7d",uniquebrandgirls:"99e23385f4ba4b65f406b7e2968ac821",uniquebrandkids:"a74ebc9b17840c91b9ea46568111fe6b",uniquebrandlifestyle:"0e8c81ead53f56302baa4d0ad967f527",brandsboys:"77b352db07129c76a9d532acad149f9f",brandsgirls:"bf047f16e52ebc38be5ce9c7623831e6",brandskids:"e3ae1ce9b5e13c6d271ef3eccb831652",brandslifestyle:"e4ac8029c30f65d7f1af030980d140fe",newboys:"869d3c5f3b450fb52101d00a61ce87cb",newgirls:"d953b6dfdac02483d1dcce8d96055954",newkids:"0874cb6d75df8e0e78f2d475e53ecc08",newlifestyle:"43e8fc8e178115c262bbce2bd0012db7",saleboys:"c846e3165c994769b4201d8c32f3ae9b",salegirls:"52b1d389edcbc62d65de71b80c4d6ad0",salekids:"ad8b1703c761ba00973868ab5199cc27",salelifestyle:"7acc64905c70ac91846f43fb2cec4bbd",homeboys:"b0856a771ef1b59ab1234c74688fa42d",homegirls:"2bd61fa12e4933211518f70fe5ce3c48",homekids:"895c59e8c64b40399c9533509507320c",homelifestyle:"2e037d4e25d2767352ca3e0a4627f7bd",indexboys:"0c911d3000f52e8ca7cffb74f5864c29",indexgirls:"b645b8980c423ab30485e0a9d08c2ef7",indexkids:"17f6d5d5d454d2c507bc5fcbc90f7756",indexlifestyle:"735cd393e841762af8793c346abbbc36"},X={};k=q.compile(O("#simple-account-info-tpl").html()||""),_=q.compile(O("#header-login-info-tpl").html()||""),C=q.compile(O("#mini-cart-tpl").html()||""),q.registerHelper("notzero",function(e,n){return"0"!==e?n.fn(this):n.inverse(this)}),g()?(x=b(),window.setTimeout(w,3e3)):window.setTimeout(p,3e3),d(),l(),s(),setInterval(f,2e3),S.hover(function(){var e=O(this).data();O(this).text(e.cn)},function(){var e=O(this).data();O(this).text(e.en)}),z.on("keyup",".search-key",function(e){var n,o=O.trim(O(this).val()),i=U.find("li"),t=U.find(".action");if(e.which>36&&e.which<41){if(38===e.which)n=t.prev(),t.length&&n.length||(n=i.eq(i.length-1));else{if(40!==e.which)return;n=t.next(),t.length&&n.length||(n=i.eq(0))}i.removeClass("action"),n.addClass("action"),O(this).val(n.find(".searchvalue").text())}else 13===e.which?""!==o&&z.submit():(o=o.replace(new RegExp("'","gm"),""),O(this).val(o),u(o))}).on("blur",".search-key",function(){setTimeout(function(){U.hide()},200)}),E.hover(function(){var e,n="";E.hasClass("on-hover")||(e=E.data(),e&&1*e.num?(n='<div class="loading-cart"><h3>加载中,请稍后</h3></div>',h(e.key)):n='<div class="empty-cart"><h3>您的购物车暂无商品</h3></div>',A.html(n),E.addClass("on-hover"))},function(){E.removeClass("on-hover")}),E.on("click",".cart-goods-del",function(){var e,n=O(this),o=n.data();o&&(e=function(){n.closest(".goods-item").remove()},o.key=E.data().key,m(o,e))}),J.on({mouseenter:function(){var e=O(this).children(".third-nav-wrapper"),n=e.find(".show-detail"),o={};v=setTimeout(function(){e.show()},200),n.length&&!n.hasClass("show")&&(o.content_code=n.data().code,o.client_type="web",o.width=337,o.height=250,o._=new Date,O.getJSON("//new.yohobuy.com/common/getbanner?callback=?",o,function(e){200===e.code&&(n.addClass("show"),n.find("img").attr("src",e.data.src),n.find("a").attr("href",e.data.url),n.find(".title").text(e.data.title))}))},mouseleave:function(){var e=O(this).children(".third-nav-wrapper");v&&clearTimeout(v),e.hide()}}),window.submitSearch=function(){var e,n,o=O("#query-key").val(),t=O("#defaultsearch").val(),a="Search",c="Head Search",d="Search";if(e=O.trim(B.toLowerCase()),n=O.trim(o.toLowerCase()),i(a,c,d),""!==F&&""!==B&&e===n)location.href=F.replace("'","");else{if(!H.test(o)||""===o)return""===o&&O("#query-key").val(t),z.submit(),!1;location.href="http://search.yohobuy.com/error?query="+o+"&result=error"}},y()}]);
\ No newline at end of file
... ...
webpackJsonp([4],[function(e,t,n){function o(e){c.each(function(t){t===e?a(this).stop().animate({opacity:1,zIndex:1},400):a(this).stop().animate({opacity:0,zIndex:0},400),0===e?a(".prev").addClass("gray"):a(".prev").removeClass("gray"),e===s-1?a(".next").addClass("gray"):a(".next").removeClass("gray"),a("#qrid").html(c.eq(e).find(".bianhao").find("i").html())})}var i,a=n(1),r=n(12),c=a("li",".qrctxt"),s=c.length;n(5),o(0),i=new r({length:s,loop:!1,auto:!1,timeout:2,index:0}),i.on("change",function(e){o(e.to)}),a(".prev",".qrcmain-switch").click(function(){i.prev()}),a(".next",".qrcmain-switch").click(function(){i.next()}),a(".btn-qcode").click(function(){var e=["<ul>"];return a(".center",".qrctxt").each(function(){e.push("<li>");var t=a(this).find("img").attr("src");e.push("<img src='"+t+"'/>");var n=a(this).find(".bianhao").text();e.push("<p>"+n+"</p>");var o=a(this).find(".zuoweihao").text();o&&e.push("<p>"+o+"</p>"),e.push("</li>")}),e.push("</ul>"),a(".print_content").html(e.join("")),document.body.innerHTML=a("#print_wrap").show().html(),window.print(),!1})},,,,,function(e,t,n){function o(e){var t=new RegExp(e+"=([^;$]*)","i"),n="$1";return t.test(decodeURIComponent(document.cookie))?RegExp[n]:""}function i(e,t,n){var o,i,a,r,c="";"undefined"!=typeof t&&(n=n||{},null===t&&(t="",n.expires=-1),n.expires&&("number"==typeof n.expires||n.expires.toUTCString)&&("number"==typeof n.expires?(r=new Date,r.setTime(r.getTime()+24*n.expires*60*60*1e3)):r=n.expires,c="; expires="+r.toUTCString()),o=n.path?"; path="+n.path:"",i=n.domain?"; domain="+n.domain:"",a=n.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),c,o,i,a].join(""))}function a(){var e,t=o("_UID");return"undefined"==typeof t?0:(e=t.split("::"),"undefined"==typeof e||e.length<4?0:e)}function r(){var e=a();return 0===e?0:e[1]}function c(){var e=o("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function s(){var e,t,n={},o=window.location.search,i=o?decodeURIComponent(o).slice(1).split("&"):[];for(t=0;t<i.length;t++)e=i[t].split("="),n[e[0]]=e[1];return n}var d=n(1),l=d("body");!function(e,t,n,o,i){var a=t.createElement(n),r=t.getElementsByTagName(n)[0];e.YohoAcquisitionObject=i,e[i]=function(){e[i].p=arguments},a.async=1,a.src=o,r.parentNode.insertBefore(a,r)}(window,document,"script","//cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=r();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_web",e,"","")}(),d(window).on("resize",function(){var e=d(this).width();e<1360?d(".return-top").addClass("min"):d(".return-top").removeClass("min"),e<1180?l.addClass("min-screen"):l.removeClass("min-screen")}).trigger("resize"),function(){d(window).load(function(){var e,t=document.getElementById("user-thumb");t&&(e=new Image,e.src=t.src,e.onerror=function(){d(t).parent().append('<div class="default-user-thumb"></div>').end().remove()})})}(),window.cookie=o,window.setCookie=i,window.getUser=a,window.getUid=r,window.getShoppingKey=c,window.queryString=s,n(7),n(6)},function(e,t,n){function o(){var e=r("#subscriber-box"),t=r("#subscriber-btn"),n=/^[.\-_a-zA-Z0-9]+@[\-_a-zA-Z0-9]+\.[a-zA-Z0-9]/,o={mail:"&#xe601;",tick:"&#xe605;"};e.focus(function(){r(this).val("").css("color",""),t.removeClass("done").html(o.mail)}),t.click(function(){var i=r.trim(e.val());if(""!==i&&n.test(i))try{r.ajax({url:"//new.yohobuy.com/common/emailsubscriber",dataType:"jsonp",data:{email:i,tmp:Math.random(),uid:window.getUid()},success:function(n){1===n.data.result?(e.val("已订阅到:"+i),t.addClass("done").html(o.tick)):e.css("color","red")}})}catch(a){console.log(a.message)}else e.css("color","red")})}function i(){var e=r(".vote"),t=r("#feed-back-page"),n=e.children("li").length;t.on("click","span",function(){var t=r(this);t.hasClass("cur")||(t.siblings(".cur").removeClass("cur"),t.addClass("cur"),e.children().not(".hide").addClass("hide").end().eq(t.index()).removeClass("hide"))}),e.on("click",".feed-back-btn",function(){var o=r(this),i=o.closest("li"),a=i.index(),c=[],s=i.find(".feedback-answer").val(),d=i.find(".feedback-id").val(),l=i.find(".question-id").val();i.find(":checked").each(function(){c.push(r(this).val())}),r.ajax({url:"//new.yohobuy.com/common/suggestfeedback",dataType:"jsonp",data:{feedback_id:d||0,question_id:l||0,answer:s||"",solution:c.join(",")},success:function(o){var r=a+1;if(1===~~o.data.result){if(a===n-1)return void alert("感谢您的参与!");i.addClass("hide"),e.children(":eq("+(a+1)+")").removeClass("hide"),t.children(".cur").removeClass("cur"),t.children(":eq("+r+")").addClass("cur")}}})})}function a(){r(window).height()>r(document).height()&&s.addClass("hide")}var r=n(1),c=n(2),s=r(".return-top");c(r("img.lazy")),s.click(function(){r("html,body").animate({scrollTop:0},500)}),r(window).scroll(function(){0===r(window).scrollTop()?s.addClass("hide"):s.removeClass("hide")}),s.hasClass("hide")&&r("img").load(a),o(),i(),window.rePosReturnTop=a},function(e,t,n){function o(e,t,n){M.push({louceng:e,weizhi:t,event:n})}function i(){var e=O("#cover");e.remove()}function a(e){var t="";t=e&&""!==e.url?'<a target="_blank" href="'+e.url+'" class="page-top-banner"style="height:36px;border:none;background-image:url('+window.unescape(e.src)+');background-position: center;display:block;">&nbsp;</a>':'<div class="yoho-notice"><div class="notice-container center-content"><h1 class="notice-title">关于系统升级的公告</h1><div class="notice-content"><p class="tips">尊敬的顾客:</p><p class="detail">您好!为了向您提供更优质的服务,目前系统正在升级,请耐心等待。</p><p class="detail">系统升级期间,部分地区用户体验会有暂时中断,如遇紧急事宜,欢迎垂询客服热线:400-889-9646 09:00-22:30(周一至周日)。稍后系统将恢复正常使用,欢迎您继续光顾YOHO!BUY有货!带来不便之处深表歉意,请您谅解!</p></div></div></div>',O("body").prepend(t)}function r(){var e,t,n,o=document.cookie,i=o.split(";");for(e=0;e<i.length;e++)t=i[e].split("="),"undefined"!=typeof t[0]&&(n=t[0].replace(/\s/g,""),Y[n]=t[1])}function c(){var e,t="indexkids",n="indexlifestyle",o="indexboys",i="indexgirls",c="uniquebrand",s=window.location.href,d=window.location.host,l="";r(),s.indexOf("search")!==-1&&(l=H["search"+Y._Channel]),s.indexOf("list")!==-1&&(l=H["list"+Y._Channel]),s.indexOf("brands")!==-1&&(l=H["brands"+Y._Channel]),s.indexOf("new")!==-1&&(l=H["new"+Y._Channel]),s.indexOf("sale")!==-1&&(l=H["sale"+Y._Channel]),s.indexOf("home")!==-1&&(l=H["home"+Y._Channel]),s.indexOf("kids")!==-1&&(l=H[t]),s.indexOf("woman")===-1&&s.indexOf("girls")===-1||(l=H[i]),s.indexOf("lifestyle")!==-1&&(l=H[n]),s.indexOf("www.yohobuy.com")!==-1&&"/"===window.location.pathname&&(l=H[o]),e=d.split(".")[0],"list"!==e&&"search"!==e&&"www"!==e&&"new"!==e&&"item"!==e&&"guang"!==e&&(l=H[c+Y._Channel]),O.getJSON("//new.yohobuy.com/common/getbanner?callback=?",{client_type:"web",content_code:l},function(e){200===+e.code&&"object"==typeof e.data&&(""!==e.data.url?a(e.data):a())})}function s(){N.each(function(){var e=O(this).find(".hide-list"),t=[],n=0;if(e.length){for(e.children().each(function(){n%R===0&&t.push(""),t[t.length-1]+=this.outerHTML+"",n++}),n=0;n<3;n++){if(!t[n])return;e.before('<dl class="category-list">'+t[n]+"</dl>")}e.remove()}})}function d(e){var t={usercenter:"//www.yohobuy.com/home?t="+(new Date).getTime(),nickname:e.profile_name,signout:"//www.yohobuy.com/logout.html"};1*e.vip.curVipInfo.curLevel===3&&(e.vip3=!0),j.find(".simple-user-center").html(_(e)),E.html(x(t))}function l(){var e={return_type:"jsonp",method:"open.passport.get"};O.getJSON("//www.yohobuy.com/common/passport/?callback=?",e,function(e){e&&e.data&&e.data.result!==-1?d(e.data.data):window.setCookie("_UID","",{domain:".yohobuy.com",expires:-1}),E.show()})}function u(e){var t={return_type:"jsonp",query:e};O.getJSON("//search.yohobuy.com/api/suggest?callback=?",t,function(e){200===e.code&&(e.data&&e.data.length?I.html(e.data).show():I.hide())})}function f(e){var t,n;e&&window.setCookie("_g",e,{path:"/",domain:".yohobuy.com"}),window.cookie("_g")&&(t=O.parseJSON(window.cookie("_g")),n=parseInt(t._nac,10)+parseInt(t._ac,10),n=n>0?n:0,F.data({key:t._k,num:n}),A.text(n))}function h(e){var t={return_type:"jsonp",method:"open.Shoppingcart.getCartData",shopping_key:e};O.getJSON("//www.yohobuy.com/common/shoppingCart/?callback=?",t,function(e){var t,n=[],o=["main_goods","advance_goods","outlet_goods","gift_goods","need_pay_gifts"];200===e.code&&(t=e.data,O.each(o,function(e,o){t[o]&&(n=O.merge(n,t[o]))}),n&&n.length?(t.totalGoods=n,L.html(k({carData:t}))):(f('{"_k":"'+F.data().key+'","_nac":0,"_ac":0,"_r":0}'),L.html('<div class="empty-cart"><h3>您的购物车暂无商品</h3></div>')))})}function p(e,t){var n={return_type:"jsonp",product_sku:e.sku,promotion_id:e.proid,product_num:e.num};O.getJSON("//www.yohobuy.com/common/delCartGoods/?callback=?",n,function(n){var o="";if(200===n.code)return n.data&&"undefined"!=typeof n.data.total_goods_num&&(o='{"_k":"'+e.key+'","_nac":'+n.data.total_goods_num+',"_ac":0,"_r":0}',f(o),1*n.data.total_goods_num===0&&L.html('<div class="empty-cart"><h3>您的购物车暂无商品</h3></div>')),t()})}function m(){var e=["webkit","moz","ms"],t=e[0]+"RequestAnimationFrame",n=e[1]+"RequestAnimationFrame",o=e[2]+"RequestAnimationFrame";return window[t]?function(e){requestAnimationFrame(e)}:window[n]?function(e){window[n](e)}:window[o]?function(e){window[o](e)}:function(e){window.setTimeout(e,67)}}function w(){P+=10,U.css({transform:"rotateX("+P+"deg)","-webkit-transform":"rotateX("+P+"deg)","-moz-transform":"rotateX("+P+"deg)"}),P/90%2===1&&U.toggleClass("logo-cn"),P/90%2===0&&P%360!==0?window.setTimeout(w,3e3):P%360===0?window.setTimeout(w,6e4):C(function(){w()})}function g(){var e=3e3;U.hasClass("logo-cn-ie")&&(e=6e4),U.fadeOut(D,function(){U.toggleClass("logo-cn-ie"),U.fadeIn(D,function(){window.setTimeout(function(){g()},e)})})}function b(){var e,t,n=["webkit","moz","ms"];for(t=0;t<n.length;t++)return e=n[t]+"RequestAnimationFrame",!!window[e]}function y(){var e,t=window.cookie("_Gender"),n="",a="",r="",c="";"http://www.yohobuy.com/"!==window.location.href||"undefined"!=typeof t&&""!==t&&null!==t||O.get("/guide",function(t){n=document.createElement("div"),n.id="cover",n.innerHTML=t,document.body.appendChild(n),a=O(window).height(),r=O(".guide-box").height(),e=a/2-r/2,c=O(".guide-box .clear").find("li").length,O(".guide-box").css({width:200*c+"px",top:e+"px"}),O("#cover").bind("click",function(){window.setCookie("_Gender","1,3",{path:"/",domain:".yohobuy.com",expires:90}),window.setCookie("_Channel","boys",{path:"/",domain:".yohobuy.com",expires:7}),i()}),O("#cover .guide-box .close").bind("click",function(){o("弹窗","CLOSE","homepage_man"),window.setCookie("_Gender","1,3",{path:"/",domain:".yohobuy.com",expires:90}),window.setCookie("_Channel","boys",{path:"/",domain:".yohobuy.com",expires:7}),i()}),O(".boys img , .boys .go").bind("click",function(){o("弹窗","BOYS","homepage_man"),window.setCookie("_Gender","1,3",{path:"/",domain:".yohobuy.com",expires:90}),window.setCookie("_Channel","boys",{path:"/",domain:".yohobuy.com",expires:7}),i()}),O(".girls img, .girls .go").bind("click",function(){o("弹窗","GIRLS","homepage_woman"),window.setCookie("_Gender","2,3",{path:"/",domain:".yohobuy.com",expires:90}),window.setCookie("_Channel","girls",{path:"/",domain:".yohobuy.com",expires:7})}),O(".lifestyle img, .lifestyle .go").bind("click",function(){window.setCookie("_Channel","lifestyle",{path:"/",domain:".yohobuy.com",expires:7}),o("弹窗","LIEFSTYLE","homepage_lifestyle")}),O("#cover .guide-box").bind("click",function(e){e.stopPropagation()})})}var v,_,x,k,C,O=n(1),T=n(4),j=O(".tool-wrapper"),q=j.find(".yoho-group"),E=O("#loginBox"),S=O(".head-wrapper"),z=O("#search-form"),U=S.find(".main-logo"),I=S.find(".search-suggest"),F=S.find(".go-cart"),A=F.find(".goods-num-tip"),L=S.find(".mini-cart-wrapper"),N=O(".sub-nav-list .contain-third"),R=9,P=0,D=500,B="",G="",J=/^[\^\!\+\-\(\)\:\[\]\\\{\}\~\*\?\|\&\;\/]{0,}$/g,M=[],H={listboys:"4f78b0f418fc42314d8b6e791cfb7fa8",listgirls:"00c1f025a51b6b597dc37925951ea27d",listkids:"b02df11184727701ade1b6de9737d08c",listlifestyle:"fd35c52dced0c880976ba858346d1fc5",searchboys:"9fb8986ea700cc27a8057361c3924394",searchgirls:"e3e207a1443ca60c8037fe52a5560c18",searchkids:"620fc77f479da8feaeb06f2324e5d0bb",searchlifestyle:"a3c93301c6ffaf3ed0f36a4a451be36d",uniquebrandboys:"2ebb0810c0d1a67e5229149c9c3aba7d",uniquebrandgirls:"99e23385f4ba4b65f406b7e2968ac821",uniquebrandkids:"a74ebc9b17840c91b9ea46568111fe6b",uniquebrandlifestyle:"0e8c81ead53f56302baa4d0ad967f527",brandsboys:"77b352db07129c76a9d532acad149f9f",brandsgirls:"bf047f16e52ebc38be5ce9c7623831e6",brandskids:"e3ae1ce9b5e13c6d271ef3eccb831652",brandslifestyle:"e4ac8029c30f65d7f1af030980d140fe",newboys:"869d3c5f3b450fb52101d00a61ce87cb",newgirls:"d953b6dfdac02483d1dcce8d96055954",newkids:"0874cb6d75df8e0e78f2d475e53ecc08",newlifestyle:"43e8fc8e178115c262bbce2bd0012db7",saleboys:"c846e3165c994769b4201d8c32f3ae9b",salegirls:"52b1d389edcbc62d65de71b80c4d6ad0",salekids:"ad8b1703c761ba00973868ab5199cc27",salelifestyle:"7acc64905c70ac91846f43fb2cec4bbd",homeboys:"b0856a771ef1b59ab1234c74688fa42d",homegirls:"2bd61fa12e4933211518f70fe5ce3c48",homekids:"895c59e8c64b40399c9533509507320c",homelifestyle:"2e037d4e25d2767352ca3e0a4627f7bd",indexboys:"0c911d3000f52e8ca7cffb74f5864c29",indexgirls:"b645b8980c423ab30485e0a9d08c2ef7",indexkids:"17f6d5d5d454d2c507bc5fcbc90f7756",indexlifestyle:"735cd393e841762af8793c346abbbc36"},Y={};_=T.compile(O("#simple-account-info-tpl").html()||""),x=T.compile(O("#header-login-info-tpl").html()||""),k=T.compile(O("#mini-cart-tpl").html()||""),T.registerHelper("notzero",function(e,t){return"0"!==e?t.fn(this):t.inverse(this)}),b()?(C=m(),window.setTimeout(w,3e3)):window.setTimeout(g,3e3),c(),l(),s(),setInterval(f,2e3),q.hover(function(){var e=O(this).data();O(this).text(e.cn)},function(){var e=O(this).data();O(this).text(e.en)}),z.on("keyup",".search-key",function(e){var t,n=O.trim(O(this).val()),o=I.find("li"),i=I.find(".action");if(e.which>36&&e.which<41){if(38===e.which)t=i.prev(),i.length&&t.length||(t=o.eq(o.length-1));else{if(40!==e.which)return;t=i.next(),i.length&&t.length||(t=o.eq(0))}o.removeClass("action"),t.addClass("action"),O(this).val(t.find(".searchvalue").text())}else 13===e.which?""!==n&&z.submit():(n=n.replace(new RegExp("'","gm"),""),O(this).val(n),u(n))}).on("blur",".search-key",function(){setTimeout(function(){I.hide()},200)}),F.hover(function(){var e,t="";F.hasClass("on-hover")||(e=F.data(),e&&1*e.num?(t='<div class="loading-cart"><h3>加载中,请稍后</h3></div>',h(e.key)):t='<div class="empty-cart"><h3>您的购物车暂无商品</h3></div>',L.html(t),F.addClass("on-hover"))},function(){F.removeClass("on-hover")}),F.on("click",".cart-goods-del",function(){var e,t=O(this),n=t.data();n&&(e=function(){t.closest(".goods-item").remove()},n.key=F.data().key,p(n,e))}),N.on({mouseenter:function(){var e=O(this).children(".third-nav-wrapper"),t=e.find(".show-detail"),n={};v=setTimeout(function(){e.show()},200),t.length&&!t.hasClass("show")&&(n.content_code=t.data().code,n.client_type="web",n.width=337,n.height=250,n._=new Date,O.getJSON("//new.yohobuy.com/common/getbanner?callback=?",n,function(e){200===e.code&&(t.addClass("show"),t.find("img").attr("src",e.data.src),t.find("a").attr("href",e.data.url),t.find(".title").text(e.data.title))}))},mouseleave:function(){var e=O(this).children(".third-nav-wrapper");v&&clearTimeout(v),e.hide()}}),window.submitSearch=function(){var e,t,n=O("#query-key").val(),i=O("#defaultsearch").val(),a="Search",r="Head Search",c="Search";if(e=O.trim(B.toLowerCase()),t=O.trim(n.toLowerCase()),o(a,r,c),""!==G&&""!==B&&e===t)location.href=G.replace("'","");else{if(!J.test(n)||""===n)return""===n&&O("#query-key").val(i),z.submit(),!1;location.href="http://search.yohobuy.com/error?query="+n+"&result=error"}},y()},,,,function(e,t){var n,o={"[object Array]":"array","[object Boolean]":"boolean","[object Date]":"date","[object Function]":"function","[object Number]":"number","[object Object]":"object","[object RegExp]":"regexp","[object String]":"string"},i={__Index:0,list:[],get:function(e){return void 0===e?this.list:this.list[e]},fn:function(){},inherit:function(e,t){var n=i.fn;n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.superclass=t.prototype,e.prototype.constructor===Object.prototype.constructor&&(e.prototype.constructor=t)},extend:function(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},copy:function(e,t,n){var o,a,r;if("object"!=typeof t)return t;if(o=t.valueOf(),t!==o)return new t.constructor(o);if(t instanceof t.constructor&&t.constructor!==Object){a=e?new e:i.clone(t.constructor.prototype);for(r in t)(e||t.hasOwnProperty(r))&&(a[r]=t[r])}else{a={};for(r in t)a.hasOwnProperty(r)&&(a[r]=t[r])}if(n)for(r in n)a.hasOwnProperty(r)&&(a[r]=n[r]);return a},clone:function(e){return i.__cloneFunc.prototype=e,new i.__cloneFunc},__cloneFunc:function(){},delegate:function(e,t){var n;return t=t||window,arguments.length>2?(n=Array.prototype.slice.call(arguments,2),function(){return e.apply(t,n)}):function(){return e.call(t)}},dom:function(e,t){var n,o,i=e,a={wrap:i},r=i[0].getElementsByTagName("*"),c=r.length;for(o=0;o<c;o++)n=r[o].className,n.indexOf(t)>-1&&(n=n.split(t)[1]),n&&(a[n]=i.find(r[o]));return a},template:function(){var e,t,n,o,a=arguments;if(a.length>0&&i.isString(a[0]))if(e=a[0],2===a.length&&i.isObject(a[1]))for(t in a[1])void 0!==a[1][t]&&(n=new RegExp("({"+t+"})","g"),e=e.replace(n,a[1][t]));else for(o=1;o<a.length;o++)void 0!==a[o]&&(n=new RegExp("({["+(o-1)+"]})","g"),e=e.replace(n,a[o]));return e},__type:function(e){return null==e?String(e):o[Object.prototype.toString.call(e)]||"object"},isObject:function(e){return this.isFunction(e)||!(!e||"object"!=typeof e)},isFunction:function(e){return"function"===this.__type(e)},isArray:Array.isArray||function(e){return"array"===this.__type(e)},isNum:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},isString:function(e){return"string"===this.__type(e)},each:function(e,t,n){var o,a;if(i.isArray(e))for(o=0,a=e.length;o<a&&t.call(e[o],o,e[o],n)!==!1;o++);else for(o in e)if(t.call(e[o],o,e[o],n)===!1)break},funManager:{__loadList:{},__loadFun:function(e,t,n){e.methord&&i.isFunction(e.methord())&&(n=n||window,e.methord()(e,function(){t()},n))},load:function(e,t,n,o){o=o||0,e[o]&&i.funManager.__loadFun(e[o],function(){i.funManager.load(e,t,n,o+1)},n),t(o,n)},get:function(e){return this.__loadList[e]}},log:function(e){var t=window.console||{log:function(){}};t.log(e)},Event:{mousewheel:function(e){var t=e.originalEvent,n=t.detail?t.detail*-1:t.wheelDelta/40,o=n<0?-1:1;return{direction:o,unit:n}},__:function(e,t,n,o){var i;for(i in e)if(window[e[i].validator]){t[e[i].validator](e[i].prefix+n,o,!1);break}},add:function(e,t,n){var o=[{validator:"addEventListener",prefix:""},{validator:"attachEvent",prefix:"on"}];this.__(o,e,t,n)},remove:function(e,t,n){var o=[{validator:"removeEventListener",prefix:""},{validator:"detachEvent",prefix:"on"}];this.__(o,e,t,n)}},getUid:function(e){return i.template("me-{0}{1}-{2}",e,(new Date).getTime(),i.__Index++)},Browser:{isTouch:function(){var e=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture;return!!("ontouchstart"in window||e||window.DocumentTouch)},Prefix:function(){var e,t=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"],n=document.createElement("div");for(e in t)if(void 0!==n.style[t[e]])return i.template("-{0}-",t[e].replace("Perspective","").toLowerCase())},parseURL:function(e){var t,n,o,i,a,r=document.createElement("a");return r.href=e,{source:e,protocol:r.protocol.replace(":",""),host:r.hostname,port:r.port,query:r.search,params:function(){for(t={},n=r.search.replace(/^\?/,"").split("&"),o=n.length,i=0,a;i<o;i++)n[i]&&(a=n[i].split("="),t[a[0]]=a[1]);return t}(),file:(r.pathname.match(/\/([^\/?#]+)$/i)||[null,""])[1],hash:r.hash.replace("#",""),path:r.pathname.replace(/^([^\/])/,"/$1"),relative:(r.href.match(/tps?:\/\/[^\/]+(.+)/)||[null,""])[1],segments:r.pathname.replace(/^\//,"").split("/")}}},Array:{indexOf:function(e,t){var n;for(n=0;n<e.length;n++)if(this[n]===t)return n;return-1},remove:function(e,t){var n=this.indexOf(e,t);return n>-1&&e.splice(n,1),e}}};n=function(e){this.initialized=!1,this.registerEvent={before:[],change:[],after:[]},this.options=e,this.init(e)},n.output=function(){i.log(i.list)},n.prototype.oninit=i.fn,n.prototype.init=function(e){this.initialized=!0,this.__Uid=i.getUid("me"),this.oninit(e),i.list[this.__Uid]=this},n.prototype.destory=function(){this.initialized=!1,delete i.list[this.__Uid]},n.prototype.getUid=function(){return this.__Uid},n.prototype.getOptions=function(){return this.options},n.prototype.config=function(){if(!(arguments.length>0))return this.options;if("string"==typeof arguments[0]){if(!(arguments.length>1))return this.options[name];this.options[arguments[0]]=arguments[1]}},n.prototype.on=function(e,t){var n=this,o=n.registerEvent[e];return o&&o.push(t),o},n.prototype.off=function(e,t){var n=this,o=n.registerEvent[e],a=[];i.each(o,function(e,n){n===t&&a.push(e)}),i.each(a.reverse(),function(e,t){o.splice(t,1)})},i.assembly=n,e.exports=i},function(e,t,n){var o=n(11),i=function(e){this.__lastTime=null,this.__isStop=!1,e=o.extend(this.defaults,e),i.superclass.constructor.call(this,e)};o.inherit(i,o.assembly),i.prototype.oninit=function(){var e=this,t=e.options;return t.auto&&e.play(),e.go(t.index),this},i.prototype.go=function(e,t){var n,o,i,a,r,c,s,d,l=this,u=l.options;l.__lastTime&&(clearTimeout(l.__lastTime),l.__lastTime=null),t="undefined"==typeof t?u.index:t,n=e===t?0:e>t?1:-1,o=u.loop,a=u.length-1,r=e,e=o?e>a?e-a-1:0>e?e+a+1:e:e>a?a:0>e?0:e,i=u.index=e,c={from:t,to:e,originalto:r,direction:n};for(s in l.registerEvent)if(l.registerEvent[s].length>0)for(d in l.registerEvent[s])l.registerEvent[s].hasOwnProperty(d)&&l.registerEvent[s][d](c);i!==a||e?!l.__isStop&&u.auto&&l.play():l.__lastTime&&clearTimeout(l.__lastTime)},i.prototype.play=function(){var e=this,t=e.options;return e.__lastTime=setTimeout(function(){e.next()},1e3*t.timeout),this},i.prototype.next=function(){var e=this,t=e.options,n=t.index,o=n+t.step;e.go(o,n)},i.prototype.prev=function(){var e=this,t=e.options,n=t.index,o=n-t.step;e.go(o,n)},i.prototype.pause=function(){var e=this;e.__lastTime&&clearTimeout(e.__lastTime),e.__isStop=!0},i.prototype.resume=function(){var e=this;e.__isStop=!1,e.play()},i.prototype.defaults={index:0,timeout:5,step:1,per:1,auto:!1,loop:!1},e.exports=i}]);
\ No newline at end of file
... ...
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
webpackJsonp([7],{0:function(e,t,a){a(22)},3:function(e,t,a){function o(e){var t,a,o,l=0,r=0;for(o=0;o<e.length;o++)a=e.substr(o,1),r+=/.*[\u4e00-\u9fa5]+.*$/.test(a)?2:1;if(r<=10)t=e;else{for(l=0,t="",o=0;o<e.length;o++)l<10&&(a=e.substr(o,1),"*"!==a&&(l+=/.*[\u4e00-\u9fa5]+.*$/.test(a)?2:1),t+=a);t.length<e.length&&(t+="...")}return t}function l(e){var t,a,l=e.data;e.result!==-1?(a=o(l.profile_name),t='<span>Hi~</span><a href="//www.yohobuy.com/home?t='+l.random+'">'+a+'</a>&nbsp;<a href="//www.yohobuy.com/logout.html">[退出]</a>'):t='<span>Hi~</span>&nbsp;<a href="//www.yohobuy.com/signin.html">[请登录]</a>&nbsp;<a href="//www.yohobuy.com/reg.html">[免费注册]</a>',n(".header-tool li").eq(0).html(t)}function r(){var e={return_type:"jsonp"};n.getJSON("//www.yohobuy.com/common/passport/?callback=?",e,function(e){e&&e.data&&l(e.data)})}var n=a(1),i=n("#api-domain");i.remove(),n(".simple-header").size()>0&&n(".tool-options").on("mouseenter",function(){n(this).find(".tool-select").fadeIn()}).on("mouseleave",function(){n(this).find(".tool-select").fadeOut()}),r()},8:function(e,t){var a={"+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]{1}[0-9]{8}$/,"+81":/^0[9|8|7][0-9]{9}$/,"+61":/^[0-9]{11}$/},o=/^[.\-_a-zA-Z0-9]+@[\-_a-zA-Z0-9]+\.[a-zA-Z0-9]/,l=/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,20}$/;t.phoneRegx=a,t.emailRegx=o,t.pwdValidateRegx=l},9:function(e,t,a){var o,l,r;/*!
* jQuery Placeholder Plugin v2.3.1
* https://github.com/mathiasbynens/jquery-placeholder
*
* Copyright 2011, 2015 Mathias Bynens
* Released under the MIT license
*/
!function(n){l=[a(1)],o=n,r="function"==typeof o?o.apply(t,l):o,!(void 0!==r&&(e.exports=r))}(function(e){function t(t){var a={},o=/^jQuery\d+$/;return e.each(t.attributes,function(e,t){t.specified&&!o.test(t.name)&&(a[t.name]=t.value)}),a}function a(t,a){var o=this,r=e(this);if(o.value===r.attr(i?"placeholder-x":"placeholder")&&r.hasClass(h.customClass))if(o.value="",r.removeClass(h.customClass),r.data("placeholder-password")){if(r=r.hide().nextAll('input[type="password"]:first').show().attr("id",r.removeAttr("id").data("placeholder-id")),t===!0)return r[0].value=a,a;r.focus()}else o==l()&&o.select()}function o(o){var l,r=this,n=e(this),s=r.id;if(!o||"blur"!==o.type||!n.hasClass(h.customClass))if(""===r.value){if("password"===r.type){if(!n.data("placeholder-textinput")){try{l=n.clone().prop({type:"text"})}catch(c){l=e("<input>").attr(e.extend(t(this),{type:"text"}))}l.removeAttr("name").data({"placeholder-enabled":!0,"placeholder-password":n,"placeholder-id":s}).bind("focus.placeholder",a),n.data({"placeholder-textinput":l,"placeholder-id":s}).before(l)}r.value="",n=n.removeAttr("id").hide().prevAll('input[type="text"]:first').attr("id",n.data("placeholder-id")).show()}else{var d=n.data("placeholder-password");d&&(d[0].value="",n.attr("id",n.data("placeholder-id")).show().nextAll('input[type="password"]:last').hide().removeAttr("id"))}n.addClass(h.customClass),n[0].value=n.attr(i?"placeholder-x":"placeholder")}else n.removeClass(h.customClass)}function l(){try{return document.activeElement}catch(e){}}var r,n,i=!1,s="[object OperaMini]"===Object.prototype.toString.call(window.operamini),c="placeholder"in document.createElement("input")&&!s&&!i,d="placeholder"in document.createElement("textarea")&&!s&&!i,u=e.valHooks,p=e.propHooks,h={};c&&d?(n=e.fn.placeholder=function(){return this},n.input=!0,n.textarea=!0):(n=e.fn.placeholder=function(t){var l={customClass:"placeholder"};return h=e.extend({},l,t),this.filter((c?"textarea":":input")+"["+(i?"placeholder-x":"placeholder")+"]").not("."+h.customClass).not(":radio, :checkbox, [type=hidden]").bind({"focus.placeholder":a,"blur.placeholder":o}).data("placeholder-enabled",!0).trigger("blur.placeholder")},n.input=c,n.textarea=d,r={get:function(t){var a=e(t),o=a.data("placeholder-password");return o?o[0].value:a.data("placeholder-enabled")&&a.hasClass(h.customClass)?"":t.value},set:function(t,r){var n,i,s=e(t);return""!==r&&(n=s.data("placeholder-textinput"),i=s.data("placeholder-password"),n?(a.call(n[0],!0,r)||(t.value=r),n[0].value=r):i&&(a.call(t,!0,r)||(i[0].value=r),t.value=r)),s.data("placeholder-enabled")?(""===r?(t.value=r,t!=l()&&o.call(t)):(s.hasClass(h.customClass)&&a.call(t),t.value=r),s):(t.value=r,s)}},c||(u.input=r,p.value=r),d||(u.textarea=r,p.value=r),e(function(){e(document).delegate("form","submit.placeholder",function(){var t=e("."+h.customClass,this).each(function(){a.call(this,!0,"")});setTimeout(function(){t.each(o)},10)})}),e(window).bind("beforeunload.placeholder",function(){var t=!0;try{"javascript:void(0)"===document.activeElement.toString()&&(t=!1)}catch(a){}t&&e("."+h.customClass).each(function(){this.value=""})}))})},13:function(e,t,a){var o,l=a(1),r={num:["qq.com","163.com","126.com","sina.com","gmail.com","sohu.com","hotmail.com","139.com","189.com"],other:["gmail.com","qq.com","163.com","126.com","sina.com","sohu.com","hotmail.com","139.com","189.com"]};e.exports=function(e,t){var a,n='<ul id="email-autocomplete" class="email-autocomplete hide"></ul>';e.parent().append(n),a=l("#email-autocomplete"),e.on("keyup",function(){var e,t,o,n,i=l.trim(l(this).val()),s="";if(i.indexOf("@")>0){for(e=i.match(/^[0-9]+@(.*)/),e?(o=r.num,t=e[1]):(o=r.other,t=i.match(/@(.*)/)[1]),n=0;n<o.length;n++)o[n].indexOf(t)>-1&&(s+="<li>"+i.slice(0,i.indexOf("@"))+"@"+o[n]+"</li>");""!==s&&/.com$/.test(i)===!1?a.html(s).removeClass("hide"):a.html("").addClass("hide")}}).on("blur",function(){o=setTimeout(function(){a.addClass("hide"),t&&t()},200)}),a.on("click","li",function(){clearTimeout(o),e.val(l(this).text()).focus(),a.addClass("hide"),t&&t()})}},22:function(e,t,a){function o(){var e=new Date,t=s("#captcha-img"),a=t.attr("src").split("?")[0];s("#captcha-img").attr("src",a+"?t="+e.getTime())}function l(){g&&$?b.removeClass("disable").prop("disabled",!1):b.addClass("disable").prop("disabled",!0)}function r(){return g&&$?void s.ajax({type:"POST",url:"/passport/back/authcode",data:{verifyCode:s.trim(f.val()),phoneNum:m.val(),area:h.val()}}).then(function(e){200===e.code?$=!0:402===e.code?(g=!1,$=!0,x.removeClass("hide").find("em").text("该账号不存在"),m.addClass("error")):400===e.code&&($=!1,o()),l()}):void l()}function n(e){var t=!0,a="";return e=s.trim(e),""!==e?/^[0-9]+$/.test(e)?p[h.val()].test(e)?t=!0:(a="手机号码格式不正确, 请重新输入",t=!1):u.test(e)?t=!0:(a="邮箱格式不正确, 请重新输入",t=!1):(a="账户名不能为空",t=!1),g=t,r(),{pass:t,errTxt:a}}function i(){var e=s.trim(f.val());return""===e||e.length<w?($=!1,void l()):($=!0,void r())}var s=a(1),c=a(8),d=a(13),u=c.emailRegx,p=c.phoneRegx,h=s("#country-code-hide"),m=s("#phone-num"),f=s("#captcha"),v=s("#country-code-list"),C=s("#country-code"),b=s("#find-btn"),x=s("#account-err"),y=s("#captcha-err"),w=4,g=!1,$=!1;a(3),a(9),d(m,function(){var e=n(m.val());e.pass?(x.addClass("hide"),m.removeClass("error")):(x.removeClass("hide").find("em").text(e.errTxt),m.addClass("error"))}),f.attr("maxlength",w),s("input").placeholder(),s("#change-captcha, #captcha-img").on("click",function(){o()}),C.on("click",function(e){e.stopPropagation(),"block"===v.css("style")?v.slideUp("fast"):v.slideDown("fast")}),v.delegate("li","click",function(e){var t,a=s(this),o=a.data("cc");e.stopPropagation(),h.val(o),C.find("em").html(a.text()),""!==s.trim(m.val())&&(t=n(m.val()),l(),g?(x.addClass("hide"),m.removeClass("error")):(x.removeClass("hide").text(t.errTxt),m.addClass("error"))),v.slideUp("fast")}),s(document).click(function(){"block"===v.css("display")&&v.slideUp()}),m.keyup(function(){n(s.trim(s(this).val()))}).focus(function(){s(this).removeClass("error"),x.addClass("hide")}),f.blur(function(){var e=""===s.trim(f.val())?"验证码不能为空":"验证码不正确";$?(y.addClass("hide"),f.removeClass("error")):(y.removeClass("hide").find("em").text(e),f.addClass("error"),f.val()<w&&o())}).focus(function(){s(this).removeClass("error"),y.addClass("hide")}).keyup(function(){i()}),s("#find-btn").click(function(e){if(/^[0-9]+$/.test(s.trim(m.val()))&&s("#find-form").attr("action","/passport/back/mobile"),!s(this).hasClass("disable"))return $&&g?void 0:(e.preventDefault(),!0)})}});
\ No newline at end of file
... ...
webpackJsonp([8],{0:function(e,a,t){t(23)},3:function(e,a,t){function l(e){var a,t,l,r=0,s=0;for(l=0;l<e.length;l++)t=e.substr(l,1),s+=/.*[\u4e00-\u9fa5]+.*$/.test(t)?2:1;if(s<=10)a=e;else{for(r=0,a="",l=0;l<e.length;l++)r<10&&(t=e.substr(l,1),"*"!==t&&(r+=/.*[\u4e00-\u9fa5]+.*$/.test(t)?2:1),a+=t);a.length<e.length&&(a+="...")}return a}function r(e){var a,t,r=e.data;e.result!==-1?(t=l(r.profile_name),a='<span>Hi~</span><a href="//www.yohobuy.com/home?t='+r.random+'">'+t+'</a>&nbsp;<a href="//www.yohobuy.com/logout.html">[退出]</a>'):a='<span>Hi~</span>&nbsp;<a href="//www.yohobuy.com/signin.html">[请登录]</a>&nbsp;<a href="//www.yohobuy.com/reg.html">[免费注册]</a>',o(".header-tool li").eq(0).html(a)}function s(){var e={return_type:"jsonp"};o.getJSON("//www.yohobuy.com/common/passport/?callback=?",e,function(e){e&&e.data&&r(e.data)})}var o=t(1),d=o("#api-domain");d.remove(),o(".simple-header").size()>0&&o(".tool-options").on("mouseenter",function(){o(this).find(".tool-select").fadeIn()}).on("mouseleave",function(){o(this).find(".tool-select").fadeOut()}),s()},8:function(e,a){var t={"+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]{1}[0-9]{8}$/,"+81":/^0[9|8|7][0-9]{9}$/,"+61":/^[0-9]{11}$/},l=/^[.\-_a-zA-Z0-9]+@[\-_a-zA-Z0-9]+\.[a-zA-Z0-9]/,r=/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,20}$/;a.phoneRegx=t,a.emailRegx=l,a.pwdValidateRegx=r},9:function(e,a,t){var l,r,s;/*!
* jQuery Placeholder Plugin v2.3.1
* https://github.com/mathiasbynens/jquery-placeholder
*
* Copyright 2011, 2015 Mathias Bynens
* Released under the MIT license
*/
!function(o){r=[t(1)],l=o,s="function"==typeof l?l.apply(a,r):l,!(void 0!==s&&(e.exports=s))}(function(e){function a(a){var t={},l=/^jQuery\d+$/;return e.each(a.attributes,function(e,a){a.specified&&!l.test(a.name)&&(t[a.name]=a.value)}),t}function t(a,t){var l=this,s=e(this);if(l.value===s.attr(d?"placeholder-x":"placeholder")&&s.hasClass(p.customClass))if(l.value="",s.removeClass(p.customClass),s.data("placeholder-password")){if(s=s.hide().nextAll('input[type="password"]:first').show().attr("id",s.removeAttr("id").data("placeholder-id")),a===!0)return s[0].value=t,t;s.focus()}else l==r()&&l.select()}function l(l){var r,s=this,o=e(this),n=s.id;if(!l||"blur"!==l.type||!o.hasClass(p.customClass))if(""===s.value){if("password"===s.type){if(!o.data("placeholder-textinput")){try{r=o.clone().prop({type:"text"})}catch(i){r=e("<input>").attr(e.extend(a(this),{type:"text"}))}r.removeAttr("name").data({"placeholder-enabled":!0,"placeholder-password":o,"placeholder-id":n}).bind("focus.placeholder",t),o.data({"placeholder-textinput":r,"placeholder-id":n}).before(r)}s.value="",o=o.removeAttr("id").hide().prevAll('input[type="text"]:first').attr("id",o.data("placeholder-id")).show()}else{var c=o.data("placeholder-password");c&&(c[0].value="",o.attr("id",o.data("placeholder-id")).show().nextAll('input[type="password"]:last').hide().removeAttr("id"))}o.addClass(p.customClass),o[0].value=o.attr(d?"placeholder-x":"placeholder")}else o.removeClass(p.customClass)}function r(){try{return document.activeElement}catch(e){}}var s,o,d=!1,n="[object OperaMini]"===Object.prototype.toString.call(window.operamini),i="placeholder"in document.createElement("input")&&!n&&!d,c="placeholder"in document.createElement("textarea")&&!n&&!d,u=e.valHooks,h=e.propHooks,p={};i&&c?(o=e.fn.placeholder=function(){return this},o.input=!0,o.textarea=!0):(o=e.fn.placeholder=function(a){var r={customClass:"placeholder"};return p=e.extend({},r,a),this.filter((i?"textarea":":input")+"["+(d?"placeholder-x":"placeholder")+"]").not("."+p.customClass).not(":radio, :checkbox, [type=hidden]").bind({"focus.placeholder":t,"blur.placeholder":l}).data("placeholder-enabled",!0).trigger("blur.placeholder")},o.input=i,o.textarea=c,s={get:function(a){var t=e(a),l=t.data("placeholder-password");return l?l[0].value:t.data("placeholder-enabled")&&t.hasClass(p.customClass)?"":a.value},set:function(a,s){var o,d,n=e(a);return""!==s&&(o=n.data("placeholder-textinput"),d=n.data("placeholder-password"),o?(t.call(o[0],!0,s)||(a.value=s),o[0].value=s):d&&(t.call(a,!0,s)||(d[0].value=s),a.value=s)),n.data("placeholder-enabled")?(""===s?(a.value=s,a!=r()&&l.call(a)):(n.hasClass(p.customClass)&&t.call(a),a.value=s),n):(a.value=s,n)}},i||(u.input=s,h.value=s),c||(u.textarea=s,h.value=s),e(function(){e(document).delegate("form","submit.placeholder",function(){var a=e("."+p.customClass,this).each(function(){t.call(this,!0,"")});setTimeout(function(){a.each(l)},10)})}),e(window).bind("beforeunload.placeholder",function(){var a=!0;try{"javascript:void(0)"===document.activeElement.toString()&&(a=!1)}catch(t){}a&&e("."+p.customClass).each(function(){this.value=""})}))})},23:function(e,a,t){function l(e,a){return e.charCodeAt(a)>=48&&e.charCodeAt(a)<=57?1:e.charCodeAt(a)>=97&&e.charCodeAt(a)<=122?2:e.charCodeAt(a)>=65&&e.charCodeAt(a)<=90?3:4}function r(e,a,t){var l=e.charCodeAt(0),r=a.charCodeAt(0);return l-r===0||4!==t&&(l-r===1||l-r===-1)}function s(e,a){return 0===a||e===a?0:4===e||4===a?2:1}function o(e){var a,t,o=0,d=e.length,n="",i=0,c=0;for(c=0;c<d;c++)a=e.charAt(c),t=l(e,c),i===t&&r(a,n,t)||(o+=t+s(t,i)),n=a,i=t;return o}function d(){var e=i.val(),a=o(e),t=0;switch(t=0===a?0:a<=10?1:a<=20?2:3){case 0:C.removeClass("red yellow green"),m.removeClass("color");break;case 1:C.addClass("red").removeClass("yellow green"),m.filter(".low").addClass("color"),m.filter(".mid,.high").removeClass("color");break;case 2:C.addClass("yellow").removeClass("red green"),m.filter(".low,.mid").addClass("color"),m.filter(".high").removeClass("color");break;case 3:C.addClass("green").removeClass("yellow red"),m.addClass("color")}""===e?w.removeClass("red yes no").addClass("default"):e.length<6||e.length>20?w.removeClass("default yes").addClass("no red"):w.removeClass("default no red").addClass("yes"),v=!!b.test(e)}var n=t(1),i=n("#pwd"),c=n("#re-input"),u=n("#reset-pwd-btn"),h=n("#pwd-err"),p=n("#repwd-err"),f=n("#pwd-tips"),v=!1,m=n(".pwd-intensity"),C=m.closest(".pwd-intensity-container"),w=n("#pwd-tip1"),b=t(8).pwdValidateRegx;t(9),t(3),n("input").placeholder(),n(".va").keyup(function(){var e=!0;n(this).hasClass("pwd")?d():""===n(this).val()&&(e=!1),e=!(!e||!v||i.val()!==c.val()),e?u.removeClass("disable").prop("disabled",!1):u.addClass("disable").prop("disabled",!0)}).blur(function(){var e=n(this),a=e.val();e.hasClass("pwd")?""===a?(e.addClass("error"),h.removeClass("hide").find("em").text("请输入密码")):a.length<6||a.length>20?(e.addClass("error"),h.removeClass("hide").find("em").text("密码只支持6-20位")):b.test(a)?(h.addClass("hide"),""!==c.val()&&(a!==c.val()?(c.addClass("error"),p.removeClass("hide").find("em").text("两次密码输入不一致,请重新输入")):(c.removeClass("error"),p.addClass("hide")))):(e.addClass("error"),h.removeClass("hide").find("em").text("密码须字母和数字组合")):""===a?(e.addClass("error"),p.removeClass("hide").find("em").text("请输入密码确认")):""!==i.val()&&a!==i.val()?(e.addClass("error"),p.removeClass("hide").find("em").text("两次密码输入不一致,请重新输入")):(e.removeClass("error"),p.addClass("hide"))}).focus(function(){n(this).removeClass("error"),n(this).hasClass("pwd")?h.addClass("hide"):p.addClass("hide")}),i.focus(function(){h.addClass("hide"),f.removeClass("hide")}).blur(function(){f.addClass("hide")}),n("#pwd, #repwd").keydown(function(e){var a=e.keyCode||e.which;if(32===a)return void e.preventDefault()})}});
\ No newline at end of file
... ...
webpackJsonp([17],[function(n,c){}]);
\ No newline at end of file
... ...
webpackJsonp([15],{0:function(a,e,t){t(24)},3:function(a,e,t){function s(a){var e,t,s,o=0,l=0;for(s=0;s<a.length;s++)t=a.substr(s,1),l+=/.*[\u4e00-\u9fa5]+.*$/.test(t)?2:1;if(l<=10)e=a;else{for(o=0,e="",s=0;s<a.length;s++)o<10&&(t=a.substr(s,1),"*"!==t&&(o+=/.*[\u4e00-\u9fa5]+.*$/.test(t)?2:1),e+=t);e.length<a.length&&(e+="...")}return e}function o(a){var e,t,o=a.data;a.result!==-1?(t=s(o.profile_name),e='<span>Hi~</span><a href="//www.yohobuy.com/home?t='+o.random+'">'+t+'</a>&nbsp;<a href="//www.yohobuy.com/logout.html">[退出]</a>'):e='<span>Hi~</span>&nbsp;<a href="//www.yohobuy.com/signin.html">[请登录]</a>&nbsp;<a href="//www.yohobuy.com/reg.html">[免费注册]</a>',r(".header-tool li").eq(0).html(e)}function l(){var a={return_type:"jsonp"};r.getJSON("//www.yohobuy.com/common/passport/?callback=?",a,function(a){a&&a.data&&o(a.data)})}var r=t(1),i=r("#api-domain");i.remove(),r(".simple-header").size()>0&&r(".tool-options").on("mouseenter",function(){r(this).find(".tool-select").fadeIn()}).on("mouseleave",function(){r(this).find(".tool-select").fadeOut()}),l()},24:function(a,e,t){var s,o,l=t(1),r=l("#send-captcha"),i=l("#captcha-tip"),n=l("#err-tip"),d=l("#next-step");t(3),r.click(function(){l.post("/passport/back/sendbackmobile",{mobile:l("#mobile").val(),area:l("#area").val(),verifyCode:l("#captchaPic").val()},function(a){if(200===a.code){if(n.hide(),l(this).hasClass("disable"))return;s=60,r.addClass("disable").attr("disabled",!0),i.removeClass("hide"),r.val(s--+"秒后可重新操作"),o=setInterval(function(){0===s?(clearInterval(o),r.val("发送验证码").removeClass("disable").removeAttr("disabled")):r.val(s--+"秒后可重新操作")},1e3)}else l(this).addClass("error"),n.removeClass("hide").text("发送失败")})}),s=60,r.addClass("disable").attr("disabled",!0),i.removeClass("hide"),r.val(s--+"秒后可重新操作"),o=setInterval(function(){0===s?(clearInterval(o),r.val("发送验证码").removeClass("disable").removeAttr("disabled")):r.val(s--+"秒后可重新操作")},1e3),l("#captcha").keyup(function(){var a=l.trim(l(this).val()),e=this;4===a.length?l.ajax({type:"POST",url:"/passport/back/backmobile",dataType:"json",data:{code:l("#captcha").val(),verifyCode:l("#captchaPic").val(),area:l("#area").val(),mobile:l("#mobile").val()},success:function(a){200===a.code?(console.log(a.data),d.removeClass("disable").attr("href",a.data),n.addClass("hide"),l(e).removeClass("error")):(d.addClass("disable"),n.removeClass("hide").find("em").text("验证码输入错误"),l(e).addClass("error"))}}):d.addClass("disable").attr("href","javascript:;")}).blur(function(){var a=l.trim(l(this).val());""===a&&(l(this).addClass("error"),n.removeClass("hide").text("请输入验证码"))}).focus(function(){l(this).removeClass("error")})}});
\ No newline at end of file
... ...
webpackJsonp([16],[function(o,e,n){n(3)},,,function(o,e,n){function t(o){var e,n,t,a=0,s=0;for(t=0;t<o.length;t++)n=o.substr(t,1),s+=/.*[\u4e00-\u9fa5]+.*$/.test(n)?2:1;if(s<=10)e=o;else{for(a=0,e="",t=0;t<o.length;t++)a<10&&(n=o.substr(t,1),"*"!==n&&(a+=/.*[\u4e00-\u9fa5]+.*$/.test(n)?2:1),e+=n);e.length<o.length&&(e+="...")}return e}function a(o){var e,n,a=o.data;o.result!==-1?(n=t(a.profile_name),e='<span>Hi~</span><a href="//www.yohobuy.com/home?t='+a.random+'">'+n+'</a>&nbsp;<a href="//www.yohobuy.com/logout.html">[退出]</a>'):e='<span>Hi~</span>&nbsp;<a href="//www.yohobuy.com/signin.html">[请登录]</a>&nbsp;<a href="//www.yohobuy.com/reg.html">[免费注册]</a>',u(".header-tool li").eq(0).html(e)}function s(){var o={return_type:"jsonp"};u.getJSON("//www.yohobuy.com/common/passport/?callback=?",o,function(o){o&&o.data&&a(o.data)})}var u=n(1),r=u("#api-domain");r.remove(),u(".simple-header").size()>0&&u(".tool-options").on("mouseenter",function(){u(this).find(".tool-select").fadeIn()}).on("mouseleave",function(){u(this).find(".tool-select").fadeOut()}),s()}]);
\ No newline at end of file
... ...
webpackJsonp([9],{0:function(e,a,o){o(27)},3:function(e,a,o){function t(e){var a,o,t,n=0,i=0;for(t=0;t<e.length;t++)o=e.substr(t,1),i+=/.*[\u4e00-\u9fa5]+.*$/.test(o)?2:1;if(i<=10)a=e;else{for(n=0,a="",t=0;t<e.length;t++)n<10&&(o=e.substr(t,1),"*"!==o&&(n+=/.*[\u4e00-\u9fa5]+.*$/.test(o)?2:1),a+=o);a.length<e.length&&(a+="...")}return a}function n(e){var a,o,n=e.data;e.result!==-1?(o=t(n.profile_name),a='<span>Hi~</span><a href="//www.yohobuy.com/home?t='+n.random+'">'+o+'</a>&nbsp;<a href="//www.yohobuy.com/logout.html">[退出]</a>'):a='<span>Hi~</span>&nbsp;<a href="//www.yohobuy.com/signin.html">[请登录]</a>&nbsp;<a href="//www.yohobuy.com/reg.html">[免费注册]</a>',s(".header-tool li").eq(0).html(a)}function i(){var e={return_type:"jsonp"};s.getJSON("//www.yohobuy.com/common/passport/?callback=?",e,function(e){e&&e.data&&n(e.data)})}var s=o(1),r=s("#api-domain");r.remove(),s(".simple-header").size()>0&&s(".tool-options").on("mouseenter",function(){s(this).find(".tool-select").fadeIn()}).on("mouseleave",function(){s(this).find(".tool-select").fadeOut()}),i()},8:function(e,a){var o={"+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]{1}[0-9]{8}$/,"+81":/^0[9|8|7][0-9]{9}$/,"+61":/^[0-9]{11}$/},t=/^[.\-_a-zA-Z0-9]+@[\-_a-zA-Z0-9]+\.[a-zA-Z0-9]/,n=/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,20}$/;a.phoneRegx=o,a.emailRegx=t,a.pwdValidateRegx=n},27:function(e,a,o){function t(){w(".choosetag").on("change",function(){var e="#f02200";"checked"===w(this).attr("checked")?w(".choosewrapper").css({"background-image":'url("'+T+'")'}):(w(".choosewrapper").css({"background-image":"none"}),e="#CCCCCC"),z.css({"background-color":e})})}function n(){return"checked"===w(".choosetag").attr("checked")}function i(){w(".optionshow").on("click",function(){w(".optionslist").toggleClass("hide")})}function s(){var e="";w(document).on("keyup","#validatenum",function(){e=w(this).val(),4===e.length&&($||($=!0,w.ajax({type:"POST",url:"/passport/autouserinfo/checkBindMsg",data:{code:e,mobile:w("#mobile").val(),area:w("#areacode").val()}}).then(function(e){$=!1,200===e.code?A=!0:alert(e.message)})))}),w("#validatenum").focus(function(){w(this).removeAttr("placeholder")}).blur(function(){w(this).attr("placeholder","验证码")})}function r(){w(".optionitem").on("click",function(){var e=w(this),a=e.attr("areanum"),o=e.text();w("#areaname").text(o),w("#areanum").text(a),w("#areacode").val(a),w(".optionslist").addClass("hide")})}function c(){w(document).on("click","body",function(e){var a=w(e.target);a.hasClass("yohoselectarea")||a.hasClass("areaname")||a.hasClass("righttag")||a.hasClass("optionslist")||a.hasClass("optionitem")||w(".optionslist").addClass("hide")})}function d(){var e="",a="";w(".optionitem").each(function(){e=w(this),a=e.attr("areanum").replace(/\+/g,""),e.attr("areanum",a)})}function l(){var e;w(document).on("click","#alreayregist",function(a){e=w(a.target),(e.hasClass("mask")||e.hasClass("backdrop"))&&(w("#alreayregist").hide(),w(".backdrop").hide())}),w(document).on("click","#bindconfirm",function(a){e=w(a.target),(e.hasClass("mask")||e.hasClass("backdrop"))&&(w("#bindconfirm").hide(),w(".backdrop").hide())})}function u(){w(document).on("click","#yohobindbtn",function(){w(".phonenum").val(""),w("#bindconfirm").hide(),w(".backdrop").hide()}),w(document).on("click","#yohobindbtn2",function(){w(".phonenum").val(""),w("#alreayregist").hide(),w(".backdrop").hide()})}function h(){return x-=1,x<0?(x=60,void w(".validatewrapper").html(C)):(w(".second").text(x),void window.setTimeout(h,1e3))}function m(e){w(".validatewrapper").html(k),window.setTimeout(h,1e3)}function p(){w(document).on("click","#sendmessage",function(){"disabled"!==w("#sendmessage").attr("disabled")&&(m(w("#mobile").val()),w.ajax({type:"POST",url:"/passport/autouserinfo/sendBindMsg",data:{mobile:w("#mobile").val(),area:w("#areacode").val()}}).then(function(e){200!==e.code&&alert(e.message)}))})}function f(){var e="",a="";a=w("#areacode").val(),e=w("#mobile").val(),w.ajax({type:"POST",url:"/passport/autouserinfo/bindMobile",data:{area:a,openId:w("#openId").val(),sourceType:w("#sourceType").val(),mobile:e,code:w("#validatenum").val()}}).then(function(e){200===e.code?e.data&&e.data.refer?window.location.href=e.data.refer:window.location.href="/passport/thirdlogin/bindsuccess":alert(e.message)})}function b(){w(document).on("click","#gotobindphone",function(){A===!0?(w("#inarea").val(w("#areacode").val()),w("#inmobile").val(w("#mobile").val()),f()):alert("请输入正确验证码")})}function g(){var e="",a="",o="",t="",i="",s="";w("#bindfirststep").on("click",function(r){var c;if(r.preventDefault(),o=w(".phonenum").val(),t=w("#areanum").text(),c=y["+"+t],n()){if(""===o||!c||!c.test(o))return j.find("em").text("手机格式错误"),void j.removeClass("hide");e=w("#openId").val()||"29803EC6D4AAC3AAB8ABDB6AE829D579",a=w("#sourceType").val()||"qq",w.ajax({type:"post",url:"/passport/autouserinfo/bindCheck",data:{mobile:o,area:t,openId:e,sourceType:a},dataType:"json",success:function(e){var a=w(window).height();200===e.code?(w("#bindmobileform").attr("action",e.data.next),w("#bindmobileform").submit()):201===e.code?(i=e.data.user.username,s=e.data.user.headImg,w("#registphone").text(o),w("#username").text(i),""===s?w("#userphoto").attr("src","http://img10.static.yhbimg.com/headimg/2013/11/28/09/01cae078abe5fe320c88cdf4c220212688.gif?imageView/2/w/100/h/100"):w("#userphoto").attr("src",s),w("#logindirectly2").attr("href",e.data.user.bindLogin),w(".backdrop").show(),w("#sendmessage").click(),w("#alreayregist .mask").css({"padding-top":a>440?a/2:217}),w("#alreayregist").show()):203===e.code?(w("#bindmobileform").attr("action",e.data.next),w("#bindmobileform").submit()):205===e.code?(i=e.data.user.username,s=e.data.user.headImg,w("#registphonetwo").text(o),w("#username1").text(i),""===s?w("#userphoto1").attr("src","http://img10.static.yhbimg.com/headimg/2013/11/28/09/01cae078abe5fe320c88cdf4c220212688.gif?imageView/2/w/100/h/100"):w("#userphoto1").attr("src",s),w("#logindirectly").attr("href",e.data.user.bindLogin),w(".backdrop").show(),w("#bindconfirm .mask").css({"padding-top":a>440?a/2:217}),w("#bindconfirm").show()):402===e.code?(j.find("em").text("手机格式错误"),j.removeClass("hide")):e&&e.message&&alert(e.message)}})}})}function v(){d(),p(),t(),r(),i(),c(),g(),l(),u(),b(),s()}var w=o(1),y=o(8).phoneRegx,k=w("#nopermissionmessage").html(),C=w(".validatewrapper").html(),x=+w(".second").text(),$=!1,A=!1,T="http://cdn.yoho.cn/yohobuy/assets/img/passport/choosed.png",I=w(".bindwrapper"),j=I.find(".phone-err-tip"),z=I.find(".yohobindbtn");o(3),I.on("keydown",".phonenum",function(e){if(13===e.keyCode)return z.trigger("click"),!1}),v()}});
\ No newline at end of file
... ...
webpackJsonp([6],{0:function(e,a,t){t(29)},3:function(e,a,t){function o(e){var a,t,o,l=0,r=0;for(o=0;o<e.length;o++)t=e.substr(o,1),r+=/.*[\u4e00-\u9fa5]+.*$/.test(t)?2:1;if(r<=10)a=e;else{for(l=0,a="",o=0;o<e.length;o++)l<10&&(t=e.substr(o,1),"*"!==t&&(l+=/.*[\u4e00-\u9fa5]+.*$/.test(t)?2:1),a+=t);a.length<e.length&&(a+="...")}return a}function l(e){var a,t,l=e.data;e.result!==-1?(t=o(l.profile_name),a='<span>Hi~</span><a href="//www.yohobuy.com/home?t='+l.random+'">'+t+'</a>&nbsp;<a href="//www.yohobuy.com/logout.html">[退出]</a>'):a='<span>Hi~</span>&nbsp;<a href="//www.yohobuy.com/signin.html">[请登录]</a>&nbsp;<a href="//www.yohobuy.com/reg.html">[免费注册]</a>',s(".header-tool li").eq(0).html(a)}function r(){var e={return_type:"jsonp"};s.getJSON("//www.yohobuy.com/common/passport/?callback=?",e,function(e){e&&e.data&&l(e.data)})}var s=t(1),c=s("#api-domain");c.remove(),s(".simple-header").size()>0&&s(".tool-options").on("mouseenter",function(){s(this).find(".tool-select").fadeIn()}).on("mouseleave",function(){s(this).find(".tool-select").fadeOut()}),r()},8:function(e,a){var t={"+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]{1}[0-9]{8}$/,"+81":/^0[9|8|7][0-9]{9}$/,"+61":/^[0-9]{11}$/},o=/^[.\-_a-zA-Z0-9]+@[\-_a-zA-Z0-9]+\.[a-zA-Z0-9]/,l=/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,20}$/;a.phoneRegx=t,a.emailRegx=o,a.pwdValidateRegx=l},9:function(e,a,t){var o,l,r;/*!
* jQuery Placeholder Plugin v2.3.1
* https://github.com/mathiasbynens/jquery-placeholder
*
* Copyright 2011, 2015 Mathias Bynens
* Released under the MIT license
*/
!function(s){l=[t(1)],o=s,r="function"==typeof o?o.apply(a,l):o,!(void 0!==r&&(e.exports=r))}(function(e){function a(a){var t={},o=/^jQuery\d+$/;return e.each(a.attributes,function(e,a){a.specified&&!o.test(a.name)&&(t[a.name]=a.value)}),t}function t(a,t){var o=this,r=e(this);if(o.value===r.attr(c?"placeholder-x":"placeholder")&&r.hasClass(p.customClass))if(o.value="",r.removeClass(p.customClass),r.data("placeholder-password")){if(r=r.hide().nextAll('input[type="password"]:first').show().attr("id",r.removeAttr("id").data("placeholder-id")),a===!0)return r[0].value=t,t;r.focus()}else o==l()&&o.select()}function o(o){var l,r=this,s=e(this),n=r.id;if(!o||"blur"!==o.type||!s.hasClass(p.customClass))if(""===r.value){if("password"===r.type){if(!s.data("placeholder-textinput")){try{l=s.clone().prop({type:"text"})}catch(i){l=e("<input>").attr(e.extend(a(this),{type:"text"}))}l.removeAttr("name").data({"placeholder-enabled":!0,"placeholder-password":s,"placeholder-id":n}).bind("focus.placeholder",t),s.data({"placeholder-textinput":l,"placeholder-id":n}).before(l)}r.value="",s=s.removeAttr("id").hide().prevAll('input[type="text"]:first').attr("id",s.data("placeholder-id")).show()}else{var d=s.data("placeholder-password");d&&(d[0].value="",s.attr("id",s.data("placeholder-id")).show().nextAll('input[type="password"]:last').hide().removeAttr("id"))}s.addClass(p.customClass),s[0].value=s.attr(c?"placeholder-x":"placeholder")}else s.removeClass(p.customClass)}function l(){try{return document.activeElement}catch(e){}}var r,s,c=!1,n="[object OperaMini]"===Object.prototype.toString.call(window.operamini),i="placeholder"in document.createElement("input")&&!n&&!c,d="placeholder"in document.createElement("textarea")&&!n&&!c,u=e.valHooks,h=e.propHooks,p={};i&&d?(s=e.fn.placeholder=function(){return this},s.input=!0,s.textarea=!0):(s=e.fn.placeholder=function(a){var l={customClass:"placeholder"};return p=e.extend({},l,a),this.filter((i?"textarea":":input")+"["+(c?"placeholder-x":"placeholder")+"]").not("."+p.customClass).not(":radio, :checkbox, [type=hidden]").bind({"focus.placeholder":t,"blur.placeholder":o}).data("placeholder-enabled",!0).trigger("blur.placeholder")},s.input=i,s.textarea=d,r={get:function(a){var t=e(a),o=t.data("placeholder-password");return o?o[0].value:t.data("placeholder-enabled")&&t.hasClass(p.customClass)?"":a.value},set:function(a,r){var s,c,n=e(a);return""!==r&&(s=n.data("placeholder-textinput"),c=n.data("placeholder-password"),s?(t.call(s[0],!0,r)||(a.value=r),s[0].value=r):c&&(t.call(a,!0,r)||(c[0].value=r),a.value=r)),n.data("placeholder-enabled")?(""===r?(a.value=r,a!=l()&&o.call(a)):(n.hasClass(p.customClass)&&t.call(a),a.value=r),n):(a.value=r,n)}},i||(u.input=r,h.value=r),d||(u.textarea=r,h.value=r),e(function(){e(document).delegate("form","submit.placeholder",function(){var a=e("."+p.customClass,this).each(function(){t.call(this,!0,"")});setTimeout(function(){a.each(o)},10)})}),e(window).bind("beforeunload.placeholder",function(){var a=!0;try{"javascript:void(0)"===document.activeElement.toString()&&(a=!1)}catch(t){}a&&e("."+p.customClass).each(function(){this.value=""})}))})},13:function(e,a,t){var o,l=t(1),r={num:["qq.com","163.com","126.com","sina.com","gmail.com","sohu.com","hotmail.com","139.com","189.com"],other:["gmail.com","qq.com","163.com","126.com","sina.com","sohu.com","hotmail.com","139.com","189.com"]};e.exports=function(e,a){var t,s='<ul id="email-autocomplete" class="email-autocomplete hide"></ul>';e.parent().append(s),t=l("#email-autocomplete"),e.on("keyup",function(){var e,a,o,s,c=l.trim(l(this).val()),n="";if(c.indexOf("@")>0){for(e=c.match(/^[0-9]+@(.*)/),e?(o=r.num,a=e[1]):(o=r.other,a=c.match(/@(.*)/)[1]),s=0;s<o.length;s++)o[s].indexOf(a)>-1&&(n+="<li>"+c.slice(0,c.indexOf("@"))+"@"+o[s]+"</li>");""!==n&&/.com$/.test(c)===!1?t.html(n).removeClass("hide"):t.html("").addClass("hide")}}).on("blur",function(){o=setTimeout(function(){t.addClass("hide"),a&&a()},200)}),t.on("click","li",function(){clearTimeout(o),e.val(l(this).text()).focus(),t.addClass("hide"),a&&a()})}},29:function(e,a,t){function o(){var e,a=!1,t=d.trim(u.val()),o=b.val();return""!==t?/^[0-9]+$/.test(t)?"+86"!==o||y.phoneRegx[o].test(t)?a=!0:(a=!1,e="手机号码不正确,请重新输入"):y.emailRegx.test(t)?a=!0:(a=!1,e="邮箱格式不正确,请重新输入"):e="请输入账户名",a?(m.addClass("hide"),u.removeClass("error")):(m.removeClass("hide").children("em").text(e),u.addClass("error")),a}function l(){var e,a=!1,t=d.trim(h.val());return""!==t?t.length<6?e="请输入长度为6-20字符的密码":a=!0:e="请输入密码",a?(f.addClass("hide"),h.removeClass("error")):(f.removeClass("hide").children("em").text(e),h.addClass("error")),a}function r(){var e,a=!1,t=d.trim(p.val());return!!O.is(":hidden")||(""!==t?4!==t.length?e="请输入长度为4字符的验证码":a=!0:e="请输入验证码",a?(v.addClass("hide"),p.removeClass("error")):(v.removeClass("hide").children("em").text(e),p.addClass("error")),a)}function s(){var e=!0,a=d.trim(u.val()),t=d.trim(h.val());return""!==a?e=o()&&l()&&r():(e=!1,u.addClass("error"),""===t?(m.addClass("both-error").removeClass("hide").children("em").text("请输入账户名和密码"),f.addClass("hide"),h.addClass("error")):m.removeClass("hide").children("em").text("请输入账户名")),e}function c(){j.attr("src",A+d.now()),p.val(""),O.removeClass("hide")}function n(){var e=s();e&&z===!1&&(z=!0,d.ajax({url:"/passport/login/auth",type:"POST",data:{areaCode:b.val().replace("+",""),account:d.trim(u.val()),password:d.trim(h.val()),captcha:d.trim(p.val()),isRemember:!!$.hasClass("checked")},success:function(e){200===e.code?e.data&&(location.href=e.data.session):("captcha"===e.data.errorType?(v.removeClass("hide").children("em").html(e.message),p.addClass("error").val("")):(f.removeClass("hide").children("em").html(e.message),h.addClass("error").val("")),e.data&&e.data.needCaptcha&&c())},complete:function(){z=!1}}))}var i,d=t(1),u=d("#account"),h=d("#password"),p=d("#captcha"),m=u.siblings(".err-tip"),f=h.siblings(".err-tip"),v=p.siblings(".err-tip"),C=d("#caps-lock"),b=d("#country-code-hide"),g=d("#country-code > em"),w=d("#country-list"),x=d("#email-autocomplete"),y=t(8),k=t(13),$=d(".remember-me"),A="/passport/imagesNode?t=",O=d(".captcha-wrap"),j=O.find("#captcha-img"),T={checked:"&#xe612;",unchecked:"&#xe613;"},z=!1;t(3),p=O.find("#captcha"),v=O.find(".err-tip"),t(9),k(u,function(){o()&&d.ajax({url:"/passport/login/account",type:"GET",data:{account:d.trim(u.val())}}).then(function(e){e.data&&e.data.needCaptcha&&c()})}),d("[placeholder]").placeholder(),d("#country-code").on("click",function(){"none"===w.css("display")&&w.slideDown()}),w.on("click","li",function(){var e=d(this),a=e.data("cc");g.html(e.html()),b.val(a),w.slideUp()}),d(document).on("click",function(e){d(e.target).closest("#country-code").length>0||"block"===w.css("display")&&w.slideUp()}),h.on("blur",function(){l(),C.hasClass("hide")||C.addClass("hide")}).on("keypress",function(e){var a=e.which;return a>=65&&a<=90?void C.removeClass("hide"):void C.addClass("hide")}),p.on("blur",function(){r()}),x.on("click","li",function(){clearTimeout(i),u.val(d(this).text()).focus(),x.addClass("hide")}),$.on("click",function(){var e=d(this);e.toggleClass("checked"),e.hasClass("checked")?e.children("i").html(T.checked):e.children("i").html(T.unchecked)}),d(".va").on("focus",function(){var e=d(this);e.removeClass("error"),e.siblings(".err-tip").addClass("hide")}),O.on("click",".change-captcha, .captcha-img",function(){j.attr("src",A+d.now())}),d("#login-btn").on("click",n),d("input.va").on("keypress",function(e){13===e.which&&n()}),""===u.val()&&u.val()!==u.attr("placeholder")||""!==h.val()||h.focus()}});
\ No newline at end of file
... ...
webpackJsonp([14],{0:function(e,o,a){a(25)},3:function(e,o,a){function t(e){var o,a,t,n=0,r=0;for(t=0;t<e.length;t++)a=e.substr(t,1),r+=/.*[\u4e00-\u9fa5]+.*$/.test(a)?2:1;if(r<=10)o=e;else{for(n=0,o="",t=0;t<e.length;t++)n<10&&(a=e.substr(t,1),"*"!==a&&(n+=/.*[\u4e00-\u9fa5]+.*$/.test(a)?2:1),o+=a);o.length<e.length&&(o+="...")}return o}function n(e){var o,a,n=e.data;e.result!==-1?(a=t(n.profile_name),o='<span>Hi~</span><a href="//www.yohobuy.com/home?t='+n.random+'">'+a+'</a>&nbsp;<a href="//www.yohobuy.com/logout.html">[退出]</a>'):o='<span>Hi~</span>&nbsp;<a href="//www.yohobuy.com/signin.html">[请登录]</a>&nbsp;<a href="//www.yohobuy.com/reg.html">[免费注册]</a>',s(".header-tool li").eq(0).html(o)}function r(){var e={return_type:"jsonp"};s.getJSON("//www.yohobuy.com/common/passport/?callback=?",e,function(e){e&&e.data&&n(e.data)})}var s=a(1),l=s("#api-domain");l.remove(),s(".simple-header").size()>0&&s(".tool-options").on("mouseenter",function(){s(this).find(".tool-select").fadeIn()}).on("mouseleave",function(){s(this).find(".tool-select").fadeOut()}),r()},25:function(e,o,a){function t(e,o){return e.charCodeAt(o)>=48&&e.charCodeAt(o)<=57?1:e.charCodeAt(o)>=97&&e.charCodeAt(o)<=122?2:e.charCodeAt(o)>=65&&e.charCodeAt(o)<=90?3:4}function n(e,o,a){var t=e.charCodeAt(0),n=o.charCodeAt(0);return t-n===0||4!==a&&(t-n===1||t-n===-1)}function r(e,o){return 0===o||e===o?0:4===e||4===o?2:1}function s(e){var o=0,a=e.length,s="",l=0,i=0,d="",c="";for(i;i<a;i++)d=e.charAt(i),c=t(e,i),l===c&&n(d,s,c)||(o+=c+r(c,l)),s=d,l=c;return o}function l(){return T-=1,T<0?(T=60,void y(".validatewrapper").html(O)):(y(".second").text(T),void window.setTimeout(l,1e3))}function i(){y(".validatewrapper").html(x),window.setTimeout(l,1e3)}function d(){var e="",o="";y(document).on("click","#sendmessage",function(){i(),e=y("#mobile").val(),o=y("#area").val(),y.ajax({type:"POST",url:"/passport/autouserinfo/sendBindMsg",data:{mobile:e,area:o}}).then(function(e){200!==e.code&&alert(e.message)})})}function c(){var e="";y(document).on("keyup","#validatenum",function(){y("#err-info").hide(),e=y(this).val(),4===e.length&&(g||(g=!0,y.ajax({type:"POST",url:"/passport/autouserinfo/checkBindMsg",data:{code:e,mobile:y("#mobile").val(),area:y("#area").val()}}).then(function(e){g=!1,200!==e.code?y("#err-info").show():k=!0})))})}function u(){var e=v.val(),o=s(e),a=0;switch(a=0===o?0:o<=10?1:o<=20?2:3){case 0:w.removeClass("red yellow green"),b.removeClass("color");break;case 1:w.addClass("red").removeClass("yellow green"),b.filter(".low").addClass("color"),b.filter(".mid,.high").removeClass("color");break;case 2:w.addClass("yellow").removeClass("red green"),b.filter(".low,.mid").addClass("color"),b.filter(".high").removeClass("color");break;case 3:w.addClass("green").removeClass("yellow red"),b.addClass("color")}""===e?(A=!1,C.removeClass("red yes no").addClass("default")):e.length<6||e.length>20?(A=!1,C.removeClass("default yes").addClass("no red")):(A=!0,C.removeClass("default no red").addClass("yes"))}function f(){y(document).on("keyup",".pwdcontent",function(){u(y(this))}),y(document).on("focus",".pwdcontent",function(){y("#pwd-tips").removeClass("hide")}),y(document).on("blur",".pwdcontent",function(){y("#pwd-tips").addClass("hide")})}function m(){var e="",o="",a="",t="";o=y("#area").val(),a=y("#pwd").val(),e=y("#mobile").val(),t=y("#validatenum").val(),y.ajax({type:"POST",url:"/passport/autouserinfo/bindMobile",data:{area:o,openId:y("#openId").val(),sourceType:y("#sourceType").val(),mobile:e,password:a,code:t}}).then(function(e){200===e.code?window.location.href="/passport/thirdlogin/bindsuccess":alert(e.message)})}function h(){var e="",o="";y("#confirmsubmit").on("click",function(){return e=y("#validatenum").val(),o=y("#pwd").val(),""===e?void alert("短信验证码不能为空"):""===o?void alert("密码不能为空"):/^(?![^a-zA-Z]+$)(?!\D+$).{6,20}$/.test(o)?k===!1?void alert("请输入正确的验证码"):A===!1?void alert("请输入符合强度的密码"):void m():void alert("密码只支持6-20位字符,建议字母+数字的组合。")})}function p(){i(),v=y("#pwd"),w=y(".safelevel"),b=y(".pwd-intensity"),C=y("#pwd-tip1"),d(),c(),f(),h()}var v,w,C,b,y=a(1),g=!1,k=!1,A=!1,T="",x="",O="";a(3),x=y("#nopermissionmessage").html(),O=y(".validatewrapper").html(),T=+y(".second").text(),p()}});
\ No newline at end of file
... ...
webpackJsonp([5],{0:function(e,a,t){var s=t(30);s.init("reg")},3:function(e,a,t){function s(e){var a,t,s,r=0,l=0;for(s=0;s<e.length;s++)t=e.substr(s,1),l+=/.*[\u4e00-\u9fa5]+.*$/.test(t)?2:1;if(l<=10)a=e;else{for(r=0,a="",s=0;s<e.length;s++)r<10&&(t=e.substr(s,1),"*"!==t&&(r+=/.*[\u4e00-\u9fa5]+.*$/.test(t)?2:1),a+=t);a.length<e.length&&(a+="...")}return a}function r(e){var a,t,r=e.data;e.result!==-1?(t=s(r.profile_name),a='<span>Hi~</span><a href="//www.yohobuy.com/home?t='+r.random+'">'+t+'</a>&nbsp;<a href="//www.yohobuy.com/logout.html">[退出]</a>'):a='<span>Hi~</span>&nbsp;<a href="//www.yohobuy.com/signin.html">[请登录]</a>&nbsp;<a href="//www.yohobuy.com/reg.html">[免费注册]</a>',o(".header-tool li").eq(0).html(a)}function l(){var e={return_type:"jsonp"};o.getJSON("//www.yohobuy.com/common/passport/?callback=?",e,function(e){e&&e.data&&r(e.data)})}var o=t(1),n=o("#api-domain");n.remove(),o(".simple-header").size()>0&&o(".tool-options").on("mouseenter",function(){o(this).find(".tool-select").fadeIn()}).on("mouseleave",function(){o(this).find(".tool-select").fadeOut()}),l()},8:function(e,a){var t={"+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]{1}[0-9]{8}$/,"+81":/^0[9|8|7][0-9]{9}$/,"+61":/^[0-9]{11}$/},s=/^[.\-_a-zA-Z0-9]+@[\-_a-zA-Z0-9]+\.[a-zA-Z0-9]/,r=/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,20}$/;a.phoneRegx=t,a.emailRegx=s,a.pwdValidateRegx=r},9:function(e,a,t){var s,r,l;/*!
* jQuery Placeholder Plugin v2.3.1
* https://github.com/mathiasbynens/jquery-placeholder
*
* Copyright 2011, 2015 Mathias Bynens
* Released under the MIT license
*/
!function(o){r=[t(1)],s=o,l="function"==typeof s?s.apply(a,r):s,!(void 0!==l&&(e.exports=l))}(function(e){function a(a){var t={},s=/^jQuery\d+$/;return e.each(a.attributes,function(e,a){a.specified&&!s.test(a.name)&&(t[a.name]=a.value)}),t}function t(a,t){var s=this,l=e(this);if(s.value===l.attr(n?"placeholder-x":"placeholder")&&l.hasClass(p.customClass))if(s.value="",l.removeClass(p.customClass),l.data("placeholder-password")){if(l=l.hide().nextAll('input[type="password"]:first').show().attr("id",l.removeAttr("id").data("placeholder-id")),a===!0)return l[0].value=t,t;l.focus()}else s==r()&&s.select()}function s(s){var r,l=this,o=e(this),i=l.id;if(!s||"blur"!==s.type||!o.hasClass(p.customClass))if(""===l.value){if("password"===l.type){if(!o.data("placeholder-textinput")){try{r=o.clone().prop({type:"text"})}catch(d){r=e("<input>").attr(e.extend(a(this),{type:"text"}))}r.removeAttr("name").data({"placeholder-enabled":!0,"placeholder-password":o,"placeholder-id":i}).bind("focus.placeholder",t),o.data({"placeholder-textinput":r,"placeholder-id":i}).before(r)}l.value="",o=o.removeAttr("id").hide().prevAll('input[type="text"]:first').attr("id",o.data("placeholder-id")).show()}else{var c=o.data("placeholder-password");c&&(c[0].value="",o.attr("id",o.data("placeholder-id")).show().nextAll('input[type="password"]:last').hide().removeAttr("id"))}o.addClass(p.customClass),o[0].value=o.attr(n?"placeholder-x":"placeholder")}else o.removeClass(p.customClass)}function r(){try{return document.activeElement}catch(e){}}var l,o,n=!1,i="[object OperaMini]"===Object.prototype.toString.call(window.operamini),d="placeholder"in document.createElement("input")&&!i&&!n,c="placeholder"in document.createElement("textarea")&&!i&&!n,u=e.valHooks,h=e.propHooks,p={};d&&c?(o=e.fn.placeholder=function(){return this},o.input=!0,o.textarea=!0):(o=e.fn.placeholder=function(a){var r={customClass:"placeholder"};return p=e.extend({},r,a),this.filter((d?"textarea":":input")+"["+(n?"placeholder-x":"placeholder")+"]").not("."+p.customClass).not(":radio, :checkbox, [type=hidden]").bind({"focus.placeholder":t,"blur.placeholder":s}).data("placeholder-enabled",!0).trigger("blur.placeholder")},o.input=d,o.textarea=c,l={get:function(a){var t=e(a),s=t.data("placeholder-password");return s?s[0].value:t.data("placeholder-enabled")&&t.hasClass(p.customClass)?"":a.value},set:function(a,l){var o,n,i=e(a);return""!==l&&(o=i.data("placeholder-textinput"),n=i.data("placeholder-password"),o?(t.call(o[0],!0,l)||(a.value=l),o[0].value=l):n&&(t.call(a,!0,l)||(n[0].value=l),a.value=l)),i.data("placeholder-enabled")?(""===l?(a.value=l,a!=r()&&s.call(a)):(i.hasClass(p.customClass)&&t.call(a),a.value=l),i):(a.value=l,i)}},d||(u.input=l,h.value=l),c||(u.textarea=l,h.value=l),e(function(){e(document).delegate("form","submit.placeholder",function(){var a=e("."+p.customClass,this).each(function(){t.call(this,!0,"")});setTimeout(function(){a.each(s)},10)})}),e(window).bind("beforeunload.placeholder",function(){var a=!0;try{"javascript:void(0)"===document.activeElement.toString()&&(a=!1)}catch(t){}a&&e("."+p.customClass).each(function(){this.value=""})}))})},28:function(e,a){function t(e,a){return e.charCodeAt(a)>=48&&e.charCodeAt(a)<=57?1:e.charCodeAt(a)>=97&&e.charCodeAt(a)<=122?2:e.charCodeAt(a)>=65&&e.charCodeAt(a)<=90?3:4}function s(e,a,t){var s=e.charCodeAt(0),r=a.charCodeAt(0);return s-r===0||4!==t&&(s-r===1||s-r===-1)}function r(e,a){return 0===a||e===a?0:4===e||4===a?2:1}function l(e){var a,l,o=0,n=e.length,i="",d=0,c=0;for(c=0;c<n;c++)a=e.charAt(c),l=t(e,c),d===l&&s(a,i,l)||(o+=l+r(l,d)),i=a,d=l;return o}e.exports=l},30:function(e,a,t){function s(){var e=new Date,a=m(".captcha-img"),t=a.attr("src").split("?")[0];a.attr("src",t+"?t="+e.getTime())}function r(e,a){var t,r;"reg"===e?(t="/passport/reg/checkmobile",r={mobile:I.val(),area:H.text().split("+")[1]}):"third"===e&&(t="/passport/autouserinfo/bindCheck",r={mobile:I.val(),area:H.text().split("+")[1],openId:m("#open-id").val(),sourceType:m("#source-type").val()}),O[0].message="err",O[0].status=!1,m.ajax({url:t,type:"POST",data:r}).then(function(e){if(e){switch(e.code){case 200:I.val()!==V&&""!==V&&(s(),j.addClass("disable").attr("disabled","disabled"),O[1].message="图形验证码错误",O[1].status=!1),V=I.val(),O[0].message="",O[0].status=!0;break;case 400:s(),O[0].message=e.message,O[0].status=!1}a()}})}function l(e,a){var t;"reg"===e?t="/passport/reg/piccaptcha":"third"===e&&(t="/passport/autouserinfo/checkPicCode"),m.ajax({type:"POST",url:t,data:{verifyCode:E.val()}}).then(function(e){if(e){switch(e.code){case 200:O[1].message="",O[1].status=!0;break;case 400:s(),O[1].message="图形验证码错误",O[1].status=!1}a()}})}function o(e,a){var t;"reg"===e?t="/passport/reg/msgcaptcha":"third"===e&&(t="/passport/autouserinfo/checkBindMsg"),m.ajax({type:"POST",url:t,data:{code:S.val(),mobile:I.val(),area:H.text().split("+")[1]}}).then(function(e){if(e){switch(e.code){case 200:O[2].message="",O[2].status=!0;break;case 400:O[2].message="短信验证码错误",O[2].status=!1}a()}})}function n(e,a,t){var s,n=m.trim(a.val());if(a.hasClass("phone-num")){if(s=H.text(),""===n)return O[0].message="请输入手机号码",O[0].status=!1,t();if(!/^[0-9]+$/.test(n)||"+86"===s&&!v.phoneRegx[s].test(n))return O[0].message="手机号码格式不正确,请重新输入",O[0].status=!1,t();r(e,t)}else if(a.hasClass("captcha")){if(""===n)return O[1].message="请输入图形验证码",O[1].status=!1,t();if(n.length<=3)return O[1].message="图形验证码为4位",O[1].status=!1,t();if(!O[0].status)return O[1].message="图形验证码错误",O[1].status=!1,t();l(e,t)}else if(a.hasClass("msg-captcha")){if(""===n)return O[2].message="请输入短信验证码",O[2].status=!1,t();if(n.length<=3)return O[2].message="短信验证码错误",O[2].status=!1,t();if(!O[1].status)return O[2].message="短信验证码错误",O[2].status=!1,t();o(e,t)}else{if(a.hasClass("pwd"))return""===n?(O[3].message="请输入密码",O[3].status=!1):n.length<6||n.length>20?(O[3].message="密码只支持6-20位字符",O[3].status=!1):J.test(a.val())?(O[3].message="",O[3].status=!0):(O[3].message="密码须字母和数字组合",O[3].status=!1),t();if(a.hasClass("repwd"))return""===n?(O[4].message="请输入密码确认",O[4].status=!1):z.val()!==n?(O[4].message="与密码不一致,请重新输入",O[4].status=!1):(O[4].message="",O[4].status=!0),t()}}function i(){var e=f.offset();return y.css({top:e.top-40,left:e.left})}function d(){var e,a=!1,t=O.length;for(e=0;e<t;e++)a||(O[e].message&&"err"!==O[e].message?(y.find("span").text(O[e].message),f=m("#"+O[e].id),i().removeClass("hide"),a=!0):y.addClass("hide"))}function c(){var e,a,t=O.length;for(a=0;a<t;a++)O[a].message?(e=m("#"+O[a].id),e.addClass("error")):(e=m("#"+O[a].id),e.removeClass("error"))}function u(e){var a=e.val(),t=g(a),s=0;switch(s=0===t?0:t<=10?1:t<=20?2:3){case 0:Z.removeClass("red yellow green"),R.removeClass("color");break;case 1:Z.addClass("red").removeClass("yellow green"),R.filter(".low").addClass("color"),R.filter(".mid,.high").removeClass("color");break;case 2:Z.addClass("yellow").removeClass("red green"),R.filter(".low,.mid").addClass("color"),R.filter(".high").removeClass("color");break;case 3:Z.addClass("green").removeClass("yellow red"),R.addClass("color")}""===a?w.removeClass("red yes no").addClass("default"):a.length<6||a.length>20?w.removeClass("default yes").addClass("no red"):w.removeClass("default no red").addClass("yes")}var h,p,f,m=t(1),v=t(8),g=t(28),b=m(".register-page"),C=m("#pwd-tips"),w=C.find("#pwd-tip1"),y=m("#err-tip"),x=m("#register-btn"),k=m("#count-down"),A=m(".success-btn"),$=5,j=m("#send-captcha"),T=4,O=[],I=m("#phone-num"),S=m("#msg-captcha"),z=m("#pwd"),P=m("#repwd"),E=m("#captcha"),M=0,R=m(".pwd-intensity"),Z=R.closest(".pwd-intensity-container"),H=m("#country-code"),_=m("#region"),B=!1,J=v.pwdValidateRegx,V="";t(3),t(9),setTimeout(function(){I.val(""),S.val(""),z.val(""),P.val(""),E.val("")},0),E.attr("maxlength",T),z.focus(function(){C.removeClass("hide"),B=!0,p=m(this).val()}).blur(function(){C.addClass("hide"),B=!1}),m("[placeholder]").placeholder(),O=[{id:"phone-num",message:"",status:!1},{id:"captcha",message:"",status:!1},{id:"msg-captcha",message:"",status:!1},{id:"pwd",message:"",status:!1},{id:"repwd",message:"",status:!1}],m(window).resize(function(){y.hasClass("hide")||i()}),a.init=function(e){m("#agree-terms").click(function(){var e,a=m(this),t=0;if(a.attr("notchecked")){for(a.removeAttr("notchecked"),e=0;e<O.length;e++)O[e].status&&t++;4===t&&x.removeClass("disable").removeAttr("disabled")}else x.addClass("disable").attr("disabled","disabled"),a.attr("notchecked","notchecked")}),b.on("keydown",function(e){var a=e.which;13===a&&x.click()}),b.find(".va").keyup(function(){var a,t=0,s=O.length,r=m(this);n(e,m(this),function(){for(d(),c(),a=0;a<s;a++)O[a].status&&t++;4!==t||m("#agree-terms").attr("notchecked")?x.addClass("disable").attr("disabled","disabled"):x.removeClass("disable").removeAttr("disabled"),O[1].status&&M<=0?j.removeClass("disable").removeAttr("disabled"):j.addClass("disable").attr("disabled","disabled")}),r.hasClass("pwd")&&u(r)}).blur(function(){}),_.change(function(){H.text(m("#region").val()),n(e,I,d)}),j.click(function(){var a,t;m(this).hasClass("disable")||(M=60,m("#msg-tip").removeClass("hide"),j.addClass("disable").attr("disabled","disabled"),j.val("60秒可重新发送"),a=setInterval(function(){return M<=0?(j.removeClass("disable").removeAttr("disabled").val("获取短信验证码"),void clearInterval(a)):void j.val(M--+"秒可重新发送")},1e3),"reg"===e?t="/passport/reg/sendBindMsg":"third"===e&&(t="/passport/autouserinfo/sendBindMsg"),m.ajax({type:"POST",url:t,data:{area:H.text().split("+")[1],mobile:I.val(),verifyCode:E.val()}}))}),m(".success-box").length<=0&&(z[0].onpaste=function(){return!1}),x.click(function(){var a;"reg"===e?a="/passport/reg/mobileregister":"third"===e&&(a="/passport/autouserinfo/bindMobile"),m(this).hasClass("disable")||m.ajax({type:"POST",url:a,data:{area:H.text().split("+")[1],mobile:I.val(),verifyCode:E.val(),code:S.val(),password:z.val()}}).then(function(e){var a,t,s=0;200===e.code?(t=e.data.href,a=setTimeout(function(){s++},1e3),m.ajax({type:"GET",url:e.data.session}).then(function(e){200===e.code&&a<3&&(clearInterval(a),location.href=t)}),a>=3&&(clearInterval(a),location.href=t)):console.log("网络超时~")})}),m(".change-captcha").click(function(){s()}),m(".success-box").length>0&&(h=setInterval(function(){0===$&&(window.location.href=A.attr("data-url"),clearInterval(h)),k.text($--)},1e3))}}});
\ No newline at end of file
... ...
webpackJsonp([13],{0:function(e,o,n){n(26)},3:function(e,o,n){function t(e){var o,n,t,i=0,a=0;for(t=0;t<e.length;t++)n=e.substr(t,1),a+=/.*[\u4e00-\u9fa5]+.*$/.test(n)?2:1;if(a<=10)o=e;else{for(i=0,o="",t=0;t<e.length;t++)i<10&&(n=e.substr(t,1),"*"!==n&&(i+=/.*[\u4e00-\u9fa5]+.*$/.test(n)?2:1),o+=n);o.length<e.length&&(o+="...")}return o}function i(e){var o,n,i=e.data;e.result!==-1?(n=t(i.profile_name),o='<span>Hi~</span><a href="//www.yohobuy.com/home?t='+i.random+'">'+n+'</a>&nbsp;<a href="//www.yohobuy.com/logout.html">[退出]</a>'):o='<span>Hi~</span>&nbsp;<a href="//www.yohobuy.com/signin.html">[请登录]</a>&nbsp;<a href="//www.yohobuy.com/reg.html">[免费注册]</a>',s(".header-tool li").eq(0).html(o)}function a(){var e={return_type:"jsonp"};s.getJSON("//www.yohobuy.com/common/passport/?callback=?",e,function(e){e&&e.data&&i(e.data)})}var s=n(1),r=s("#api-domain");r.remove(),s(".simple-header").size()>0&&s(".tool-options").on("mouseenter",function(){s(this).find(".tool-select").fadeIn()}).on("mouseleave",function(){s(this).find(".tool-select").fadeOut()}),a()},26:function(e,o,n){function t(){f.init(),a.ajax({type:"POST",url:"/passport/autouserinfo/sendBindMsg",data:{mobile:m.mobile,area:m.area}}).then(function(e){e&&200!==e.code&&(f.clearTime(),alert(e.message))})}function i(){var e=d.val();e&&a.ajax({type:"POST",url:"/passport/autouserinfo/relateMobile",data:{mobile:m.mobile,area:m.area,openId:m.openid,sourceType:m.source,code:e}}).then(function(e){200===e.code?window.location.href=e.data.refer:402===e.code?u.removeClass("hide"):(u.addClass("hide"),alert(e.message))})}var a=n(1),s=a("#relate-main"),r=a("#code-validate"),c=r.find(".validate-wrapper"),d=r.find(".msg-code"),l=r.find(".count-down span"),u=r.find(".code-error"),h=a("#hide-info"),m={},f={};n(3),m=h.data(),h.remove(),f={init:function(){this.timer&&window.clearTimeout(this.timer),this.second=60,c.addClass("waiting"),this.changeTime()},changeTime:function(){var e=this;this.second&&this.second>0?(l.text(this.second),this.second--,this.timer=window.setTimeout(function(){e.changeTime()},1e3)):this.clearTime()},clearTime:function(){this.timer&&window.clearTimeout(this.timer),c.removeClass("waiting")}},a("#next-step-btn").click(function(){t(),s.addClass("hide"),u.addClass("hide"),r.removeClass("hide")}),r.on("keydown",".msg-code",function(e){if(13===e.keyCode)return i(),!1}),r.on("click",".get-code",function(){t()}),r.on("click",".perv-step",function(){f.clearTime(),s.removeClass("hide"),r.addClass("hide"),d.val("")}),a("#relate-btn").click(function(){i()})}});
\ No newline at end of file
... ...
webpackJsonp([10],{0:function(e,t,s){function i(e){h.attr("src",e)}function n(){return+w.text()}function a(){w.text("1"),1===j||0===j?(b.addClass("dis"),g.addClass("dis")):(b.removeClass("dis"),g.addClass("dis"))}function o(e){0!==y.length&&(0===j||e&&0===~~e.data("total")?(y.addClass("hide"),k.removeClass("hide")):(y.removeClass("hide"),k.addClass("hide")))}function c(){f.not(".hide").children(".size-warn").removeClass("hide")}var l=s(1),d=s(2),r=s(4),h=l("#img-show"),u=l("#thumbs > .thumb-wrap"),m=l("#sizes"),f=m.children(".size"),p=m.find(".size-warn"),v=m.children(".color-size-tip"),w=l("#num"),b=l("#plus-num"),g=l("#minus-num"),C=l("#add-to-cart"),k=l("#sold-out"),x=l(".lc-container"),y=l(".item-buy"),q=l("#desc-color"),z={},U=l(".main"),$=U.data("id"),j=-1,I=200,O={def:"收藏商品",coled:"已收藏",hover:"取消收藏"},P=s(21).Alert;s(33),s(32),function(){var e,t=l("#size-title-json"),s=t.html();""!==s&&(e=l.parseJSON(s),t.remove(),f.children("li").each(function(){var t=l(this),s=t.data("name");t.data("title",e[s])}))}(),z[l(".colors .focus").index()]=!0,l("#brand-favour").click(function(){var e=l(this);l.ajax({type:"POST",url:"/product/index/favoriteBrand",data:{brandId:e.data("id")}}).then(function(t){200===t.code?e.toggleClass("coled"):403===t.code&&(location.href=t.data.url)})}),l(".colors").on("click","li",function(){var e,t=l(this),s=t.index();v.addClass("hide"),p.addClass("hide"),j=-1,t.hasClass("focus")?f.eq(s).children("li").removeClass("focus"):(t.siblings(".focus").removeClass("focus"),t.addClass("focus"),u.not(".hide").addClass("hide"),e=u.eq(s).removeClass("hide").find("img"),"undefined"==typeof z[s]&&(d(e,{event:"sporty"}),e.trigger("sporty"),z[s]=!0),i(e.first().data("shower")),q.text(t.data("color")),f.not(".hide").addClass("hide").children("li").removeClass("focus"),f.eq(s).removeClass("hide")),a(),o(t)}),l("#thumbs").on("mouseenter",".thumb",function(){i(l(this).data("shower"))}),m.on("click","li",function(){var e=l(this);e.hasClass("focus")||(j=+e.data("num"),e.siblings(".focus").removeClass("focus"),e.addClass("focus"),v.html(e.data("title")).removeClass("hide"),p.addClass("hide"),o(),a())}).on("click",".size-ruler",function(){l("body,html").animate({scrollTop:l(".size-info").offset().top},300)}),b.click(function(){var e=n();if(!l(this).hasClass("dis"))return j===-1?void c():void(0!==j&&(e===j-1&&l(this).addClass("dis"),1===e&&g.removeClass("dis"),w.text(e+1>j?j:e+1)))}).on("selectstart",function(){return!1}),g.click(function(){var e=n();l(this).hasClass("dis")||(2===e&&l(this).addClass("dis"),e===j&&b.removeClass("dis"),w.text(e-1<0?0:e-1))}).on("selectstart",function(){return!1}),l(".get-lc:not(.dis)").hover(function(){x.removeClass("hide")},function(){x.addClass("hide")}),C.click(function(){return j===-1?void c():void l.ajax({type:"POST",url:"/cart/index/add",data:{productSku:l(".size:not(.hide) li.focus").data("sku"),buyNumber:n()}}).then(function(e){var t=e.code;200===t&&(l("#type-chose").slideUp(I),l("#balance").slideDown(I),l("#cart-num").text(e.data.goods_count))})}),l("#collect-product").click(function(){var e,t=l(this);t.hasClass("coled")&&(e=!0),l.ajax({type:"POST",url:"/product/item/togglecollect",data:{productId:$,type:e?"cancel":"add"}}).then(function(s){var i=s.code;200===i?(t.toggleClass("coled"),e?t.find("em").text(O.def):t.find("em").text(O.coled)):403===i&&(location.href=s.data.url)})}).hover(function(){var e=l(this);e.hasClass("coled")&&e.find("em").text(O.hover)},function(){var e=l(this);e.hasClass("coled")&&e.find("em").text(O.coled)}),l("#keep-shopping").click(function(){l("#type-chose").slideDown(I),l("#balance").slideUp(I)}),l("#buy-now").click(function(){var e,t,s;if(j===-1)return void c();if(!l(this).hasClass("dis")){if(t=l(this).data("base"),!t)return s=new P("打开APP可抢购该商品哦~~"),void s.show();e=f.find(".focus").data("sku"),e&&t&&(location.href=t+"?product_sku="+e)}}),l(".buy-btn").mouseover(function(){l(this).hasClass("dis")||l(this).addClass("hover")}).mouseleave(function(){l(this).removeClass("hover")}),l(".description-material").on("click",".title",function(){var e=l(this),t=e.index(),s=l(".description-content"),i=l(".material-content");e.hasClass("cur")||(e.addClass("cur"),e.siblings(".cur").removeClass("cur"),0===t?(s.slideDown(I),i.slideUp(I)):(s.slideUp(I),i.slideDown(I)))}),l(".after-service-switch").click(function(){var e=l(this),t=e.next(".after-service-content"),s={def:"&#xe610;",spread:"&#xe615;"};"none"===t.css("display")?(t.slideDown(I),e.find(".triangle").html(s.spread)):(t.slideUp(I),e.find(".triangle").html(s.def))}),l.ajax({type:"GET",url:"/product/detail/hotarea",data:{productId:$}}).then(function(e){l("#details-html").prepend(e),l(".hot-point-wrap > img").load(function(){l(this).parent(".hot-point-wrap").width(l(this).width())}),l(".hot-point").hover(function(){l(this).addClass("hover")},function(){l(this).removeClass("hover")})}),d(l("#details-html img")),function(){var e,t=!0;for(e=0;e<f.length;e++)if(1!==f.eq(e).find("li").length){t=!1;break}t&&f.eq(l(".colors .focus").index()).find("li").click()}(),function(){function e(){s||(s=!0,l.ajax({type:"GET",url:"/product/detail/comment",data:{productId:$,page:n}}).then(function(e){var t;if(200===e.code){if(t=e.data,0===t.length)return void d.next(".more-wrap").addClass("hide");u.text(t[0].total),d.append(o({comments:t})),n++}}).always(function(){s=!1}))}function t(){i||(i=!0,l.ajax({type:"GET",url:"/product/detail/consult",data:{productId:$,page:a}}).then(function(e){var t;if(200===e.code){if(t=e.data,0===t.length)return void h.next(".more-wrap").addClass("hide");m.text(t[0].total),h.append(c({consults:t})),a++}}).always(function(){i=!1}))}var s,i,n=1,a=1,o=r.compile(l("#comments-tpl").html()),c=r.compile(l("#consults-tpl").html()),d=l("#comments-ul"),h=l("#consults-ul"),u=l(".comment-num"),m=l(".consult-num");l(".consult-comment").on("click",".title",function(){var e=l(this),t=e.index(),s=l(".comments"),i=l(".consults");e.hasClass("cur")||(e.addClass("cur"),e.siblings(".cur").removeClass("cur"),0===t?(i.slideDown(I),s.slideUp(I)):(i.slideUp(I),s.slideDown(I)))}).on("click",".load-more",function(){var s=l(this);s.hasClass("load-more-comments")?e():t()}),l("#consults-btn").click(function(){l(".new-consult").removeClass("hide"),l(".consult-success").addClass("hide")}),l("#submit-consult").click(function(){var e=l(this),t=e.closest(".new-consult"),s=t.find(".my-consult"),i=l.trim(s.val()),n=t.find(".consult-warn"),a=!0;""===i?(s.addClass("error"),n.removeClass("hide"),a=!1):(s.removeClass("error"),n.addClass("hide")),a!==!1&&l.ajax({type:"POST",url:"/product/detail/consult",data:{productId:$,content:i}}).then(function(e){var i=e.code;200===i?(t.addClass("hide"),t.siblings(".consult-success").removeClass("hide"),s.val("")):403===i&&(location.href=e.data.url)})}),e(),t()}()},21:function(e,t,s){function i(){return 0===l(".body-mask").length&&l("body").append('<div class="body-mask hide"></div>'),l(".body-mask").css({height:l(document).height(),width:l(document).width()})}function n(e){return l("body").append(u(e)),l(".yoho-dialog")}function a(e){function t(e){o.$el.find("#dialog-"+a.btns[e].id).on("click",function(){a.btns[e].cb&&a.btns[e].cb()})}var s,a=l.extend({},r,e),o=this;if(a.inherit)return this;if(a.mask&&(o.$mask=i()),o.$el=n(a),o.$el.find(".close").click(function(){o.close()}),a.btns)for(s=0;s<a.btns.length;s++)t(s)}function o(e){var t=this,s={content:e,className:"alert-dialog",btns:[{id:"alert-sure",btnClass:["alert-sure"],name:"确定",cb:function(){t.close()}}]};a.call(this,s)}function c(e){var t=this,s={content:e.content,className:"confirm-dialog",btns:[{id:"confirm-sure",btnClass:["confirm-sure"],name:"确定",cb:e.cb},{id:"confirm-cancel",btnClass:["confirm-cancel"],name:"取消",cb:function(){t.close()}}]};a.call(this,s)}var l=s(1),d=s(4),r={mask:!0,closeIcon:!0},h='<div class="yoho-dialog {{className}} hide">{{#if closeIcon}}<span class="close"><i class="iconfont">&#xe602;</i></span>{{/if}}<div class="content">{{{content}}}</div><div class="btns">{{# btns}}<span {{#if id}}id="dialog-{{id}}"{{/if}} class="btn{{#each btnClass}} {{.}}{{/each}}">{{name}}</span>{{/ btns}}</div></div>',u=d.compile(h);a.prototype.close=function(){this.$mask&&this.$mask.addClass("hide"),this.$el.remove()},a.prototype.show=function(){this.$mask&&this.$mask.removeClass("hide"),this.$el.removeClass("hide").css({"margin-top":-this.$el.height()/2,"margin-left":-this.$el.width()/2})},t.Dialog=a,o.prototype=new a({inherit:!0}),o.prototype.constructor=o,t.Alert=o,c.prototype=new a({inherit:!0}),c.prototype.constructor=c,t.Confirm=c},32:function(e,t,s){function i(e){var t,s="",i={title:"",url:window.location.href,weixinUrl:"",image:"",desc:"",channel:""},n=["weibo","tweibo","qzone","renren","qq","douban","weixin"],o="<em><i></i></em>";if(i=a.extend(i,e),a.inArray(i.channel,n)===-1)return alert("不存在的分享平台!"),!1;switch(i.channel){case"weibo":s="http://service.weibo.com/share/share.php?url="+i.url+"&title="+i.title+"&appkey=3739328910&searchPic=true&pic="+i.image;break;case"tweibo":s="http://share.v.t.qq.com/index.php?c=share&a=index&url="+i.url+"&title="+i.title+"&appkey=c0af9c29e0900813028c2ccb42021792&pic="+i.image;break;case"qzone":s="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url="+i.url+"&title="+i.title+"&desc=&summary="+i.desc+"&site=YOHO!有货&pics="+i.image;break;case"renren":s="http://widget.renren.com/dialog/share?resourceUrl="+i.url+"&srcUrl="+i.url+"&desc="+i.desc+"&title="+i.title+"&description="+i.desc+"&pic="+i.image;break;case"qq":s="http://connect.qq.com/widget/shareqq/index.html?url="+i.url+"&desc="+i.desc+"&title="+i.title.replace("%","")+"&desc=&summary="+i.desc+"&site=YOHO!有货&pics="+i.image;break;case"weixin":s="http://s.jiathis.com/qrcode.php?url="+i.weixinUrl+"&desc="+i.desc+"&title="+i.title+"&description="+i.desc+"&pic="+i.image;break;case"douban":s="http://www.douban.com/share/service?href="+i.url+"&text="+i.desc+"&image="+i.image+"&title="+i.title+"&comment="}if("weixin"===i.channel){if(!i.self)return;t=i.self.closest(".share-to").find(".weixin-share-box"),t.length>0&&(o+='<div class="con"><h2>分享到微信朋友圈</h2><p class="pic"><img src="'+s+'" /></p><p class="w">打开微信,点击底部得“发现”,使用<br/>“扫一扫“即可将网页分享到我的朋友圈。</p><a href="javascript:void(0)" class="close">x</a></div>',t.find("div").length>0?t.show():t.html(o).show(),t.find(".close").click(function(){a(this).closest(".weixin-share-box").hide()}))}else window.open(encodeURI(s))}function n(e,t){var s=document.title.replace(/(^\s*)|(\s*$)/g,""),n=a("#share-desc").val(),o=a("#share-img").val(),c=a("#weixin-url").val();i("weibo"===e||"tqq"===e?{channel:e,title:s,image:o}:{channel:e,title:s,desc:n,image:o,self:t,weixinUrl:c})}var a=s(1);a(".share-wrapper").on("click","i",function(){var e=a(this),t=e.data("type"),s=a(".weixin-share-box");"weixin"===t?n(t,e):(s.hide(),n(t))})},33:function(e,t,s){var i=s(1),n=s(4),a=s(2),o=i("#latest-walk-count");!function(){var e;0!==o.length&&(e=n.compile(i("#latest-walk-tpl").html()),i.ajax({url:"http://www.yohobuy.com/common/recentReview",dataType:"jsonp",data:{limit:o.val()},success:function(t){var s,n,o,c=[];if(200===t.code){if(s=t.data,0===s.length)return void i(".latest-walk").addClass("hide");for(n=0;n<s.length;n++)o=s[n],c.push({href:o.url,img:o.pic_url,name:o.product_name,salePrice:o.price,marketPrice:o.market_price});c.length>0&&(i("#latest-walk-goods").html(e({latestWalk:c})),a(i("#latest-walk-goods .lazy")))}}}))}()}});
\ No newline at end of file
... ...
webpackJsonp([3],{0:function(e,t,i){function n(e){var t=36e5,i=6e4,n=1e3,a="",o=0,s=0,d=0,c=0;return e>1e3&&(o=Math.floor(e/t/24),s=Math.floor(e/t%24),d=Math.floor(e/i%60),c=Math.floor(e/n%60),a+=o>0?o+"天":"",a+=s>0?s+"时":"",a+=d>0?d+"分":"",a+=c>0?c+"秒":""),a}function a(){var e,t,i,a;for(e=0;e<m.length;e++){if(m[e].time<0)return;m[e].time-=1e3,i=n(m[e].time),i?(t=i,m[e].pre&&(t=m[e].pre+" "+t)):(a=m[e].dom.closest(".item-info").parent(),a.find("a").attr("onclick","return false;"),t="活动已结束"),m[e].dom.text(t)}}function o(e,t){e.animate({"margin-left":10*-t+"0%"},"fast").data({page:t})}function s(e,t){var i="",n=[],a=0;if(e.length){for(e.each(function(){a%t===0&&n.push(""),n[n.length-1]+=e[a].outerHTML,a++}),n.length>3&&(n.length=3),a=0;a<n.length;a++)i+='<div class="list-page">'+n[a]+"</div>";return{length:n.length,html:i}}}function d(){var e=s(h.find(".good-item"),5),t=s(u.find(".brand-item"),9);e&&e.length>1&&(h.html(e.html).data({max:e.length}),h.siblings(".page-btns").show()),t&&t.length>1&&(u.html(t.html).data({max:t.length}),u.siblings(".page-btns").show())}var c,r=i(1),l=i(2),h=r(".limit-main .good-list"),u=r(".limit-main .brand-list"),f=r(".sort-layer .full-line"),m=[];i(5),i(10),i(36),r(".main-logo").remove(),f.length&&(c=f.parent(),r(window).scroll(function(){var e=c.position().top;r(this).scrollTop()>=e?f.addClass("fixed"):f.removeClass("fixed")})),r(".time").each(function(){var e=r(this).data();e.limit&&m.push({dom:r(this),time:e.limit,pre:e.pre?e.pre:""})}),r(".page-btns > label").click(function(){var e,t,i,n,a=(new Date).getTime();e=r(this).closest(".good-page-btns").length?h:u,t=e.data(),i=t.max?t.max:1,n=t.page?t.page:0,t.time&&a-t.time<500||(e.data({time:a}),n+=r(this).hasClass("pre-page-btn")?i-1:1,n%=i,o(e,n),r(window).trigger("scroll"))}),setInterval(a,1e3),r(".slide-container").slider({orient:!0}),d(),l(r("img.lazy"),{failure_limit:20})},5:function(e,t,i){function n(e){var t=new RegExp(e+"=([^;$]*)","i"),i="$1";return t.test(decodeURIComponent(document.cookie))?RegExp[i]:""}function a(e,t,i){var n,a,o,s,d="";"undefined"!=typeof t&&(i=i||{},null===t&&(t="",i.expires=-1),i.expires&&("number"==typeof i.expires||i.expires.toUTCString)&&("number"==typeof i.expires?(s=new Date,s.setTime(s.getTime()+24*i.expires*60*60*1e3)):s=i.expires,d="; expires="+s.toUTCString()),n=i.path?"; path="+i.path:"",a=i.domain?"; domain="+i.domain:"",o=i.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),d,n,a,o].join(""))}function o(){var e,t=n("_UID");return"undefined"==typeof t?0:(e=t.split("::"),"undefined"==typeof e||e.length<4?0:e)}function s(){var e=o();return 0===e?0:e[1]}function d(){var e=n("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function c(){var e,t,i={},n=window.location.search,a=n?decodeURIComponent(n).slice(1).split("&"):[];for(t=0;t<a.length;t++)e=a[t].split("="),i[e[0]]=e[1];return i}var r=i(1),l=r("body");!function(e,t,i,n,a){var o=t.createElement(i),s=t.getElementsByTagName(i)[0];e.YohoAcquisitionObject=a,e[a]=function(){e[a].p=arguments},o.async=1,o.src=n,s.parentNode.insertBefore(o,s)}(window,document,"script","//cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=s();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_web",e,"","")}(),r(window).on("resize",function(){var e=r(this).width();e<1360?r(".return-top").addClass("min"):r(".return-top").removeClass("min"),e<1180?l.addClass("min-screen"):l.removeClass("min-screen")}).trigger("resize"),function(){r(window).load(function(){var e,t=document.getElementById("user-thumb");t&&(e=new Image,e.src=t.src,e.onerror=function(){r(t).parent().append('<div class="default-user-thumb"></div>').end().remove()})})}(),window.cookie=n,window.setCookie=a,window.getUser=o,window.getUid=s,window.getShoppingKey=d,window.queryString=c,i(7),i(6)},6:function(e,t,i){function n(){var e=s("#subscriber-box"),t=s("#subscriber-btn"),i=/^[.\-_a-zA-Z0-9]+@[\-_a-zA-Z0-9]+\.[a-zA-Z0-9]/,n={mail:"&#xe601;",tick:"&#xe605;"};e.focus(function(){s(this).val("").css("color",""),t.removeClass("done").html(n.mail)}),t.click(function(){var a=s.trim(e.val());if(""!==a&&i.test(a))try{s.ajax({url:"//new.yohobuy.com/common/emailsubscriber",dataType:"jsonp",data:{email:a,tmp:Math.random(),uid:window.getUid()},success:function(i){1===i.data.result?(e.val("已订阅到:"+a),t.addClass("done").html(n.tick)):e.css("color","red")}})}catch(o){console.log(o.message)}else e.css("color","red")})}function a(){var e=s(".vote"),t=s("#feed-back-page"),i=e.children("li").length;t.on("click","span",function(){var t=s(this);t.hasClass("cur")||(t.siblings(".cur").removeClass("cur"),t.addClass("cur"),e.children().not(".hide").addClass("hide").end().eq(t.index()).removeClass("hide"))}),e.on("click",".feed-back-btn",function(){var n=s(this),a=n.closest("li"),o=a.index(),d=[],c=a.find(".feedback-answer").val(),r=a.find(".feedback-id").val(),l=a.find(".question-id").val();a.find(":checked").each(function(){d.push(s(this).val())}),s.ajax({url:"//new.yohobuy.com/common/suggestfeedback",dataType:"jsonp",data:{feedback_id:r||0,question_id:l||0,answer:c||"",solution:d.join(",")},success:function(n){var s=o+1;if(1===~~n.data.result){if(o===i-1)return void alert("感谢您的参与!");a.addClass("hide"),e.children(":eq("+(o+1)+")").removeClass("hide"),t.children(".cur").removeClass("cur"),t.children(":eq("+s+")").addClass("cur")}}})})}function o(){s(window).height()>s(document).height()&&c.addClass("hide")}var s=i(1),d=i(2),c=s(".return-top");d(s("img.lazy")),c.click(function(){s("html,body").animate({scrollTop:0},500)}),s(window).scroll(function(){0===s(window).scrollTop()?c.addClass("hide"):c.removeClass("hide")}),c.hasClass("hide")&&s("img").load(o),n(),a(),window.rePosReturnTop=o},7:function(e,t,i){function n(e,t,i){Y.push({louceng:e,weizhi:t,event:i})}function a(){var e=S("#cover");e.remove()}function o(e){var t="";t=e&&""!==e.url?'<a target="_blank" href="'+e.url+'" class="page-top-banner"style="height:36px;border:none;background-image:url('+window.unescape(e.src)+');background-position: center;display:block;">&nbsp;</a>':'<div class="yoho-notice"><div class="notice-container center-content"><h1 class="notice-title">关于系统升级的公告</h1><div class="notice-content"><p class="tips">尊敬的顾客:</p><p class="detail">您好!为了向您提供更优质的服务,目前系统正在升级,请耐心等待。</p><p class="detail">系统升级期间,部分地区用户体验会有暂时中断,如遇紧急事宜,欢迎垂询客服热线:400-889-9646 09:00-22:30(周一至周日)。稍后系统将恢复正常使用,欢迎您继续光顾YOHO!BUY有货!带来不便之处深表歉意,请您谅解!</p></div></div></div>',S("body").prepend(t)}function s(){var e,t,i,n=document.cookie,a=n.split(";");for(e=0;e<a.length;e++)t=a[e].split("="),"undefined"!=typeof t[0]&&(i=t[0].replace(/\s/g,""),F[i]=t[1])}function d(){var e,t="indexkids",i="indexlifestyle",n="indexboys",a="indexgirls",d="uniquebrand",c=window.location.href,r=window.location.host,l="";s(),c.indexOf("search")!==-1&&(l=B["search"+F._Channel]),c.indexOf("list")!==-1&&(l=B["list"+F._Channel]),c.indexOf("brands")!==-1&&(l=B["brands"+F._Channel]),c.indexOf("new")!==-1&&(l=B["new"+F._Channel]),c.indexOf("sale")!==-1&&(l=B["sale"+F._Channel]),c.indexOf("home")!==-1&&(l=B["home"+F._Channel]),c.indexOf("kids")!==-1&&(l=B[t]),c.indexOf("woman")===-1&&c.indexOf("girls")===-1||(l=B[a]),c.indexOf("lifestyle")!==-1&&(l=B[i]),c.indexOf("www.yohobuy.com")!==-1&&"/"===window.location.pathname&&(l=B[n]),e=r.split(".")[0],"list"!==e&&"search"!==e&&"www"!==e&&"new"!==e&&"item"!==e&&"guang"!==e&&(l=B[d+F._Channel]),S.getJSON("//new.yohobuy.com/common/getbanner?callback=?",{client_type:"web",content_code:l},function(e){200===+e.code&&"object"==typeof e.data&&(""!==e.data.url?o(e.data):o())})}function c(){E.each(function(){var e=S(this).find(".hide-list"),t=[],i=0;if(e.length){for(e.children().each(function(){i%M===0&&t.push(""),t[t.length-1]+=this.outerHTML+"",i++}),i=0;i<3;i++){if(!t[i])return;e.before('<dl class="category-list">'+t[i]+"</dl>")}e.remove()}})}function r(e){var t={usercenter:"//www.yohobuy.com/home?t="+(new Date).getTime(),nickname:e.profile_name,signout:"//www.yohobuy.com/logout.html"};1*e.vip.curVipInfo.curLevel===3&&(e.vip3=!0),T.find(".simple-user-center").html(k(e)),O.html(C(t))}function l(){var e={return_type:"jsonp",method:"open.passport.get"};S.getJSON("//www.yohobuy.com/common/passport/?callback=?",e,function(e){e&&e.data&&e.data.result!==-1?r(e.data.data):window.setCookie("_UID","",{domain:".yohobuy.com",expires:-1}),O.show()})}function h(e){var t={return_type:"jsonp",query:e};S.getJSON("//search.yohobuy.com/api/suggest?callback=?",t,function(e){200===e.code&&(e.data&&e.data.length?D.html(e.data).show():D.hide())})}function u(e){var t,i;e&&window.setCookie("_g",e,{path:"/",domain:".yohobuy.com"}),window.cookie("_g")&&(t=S.parseJSON(window.cookie("_g")),i=parseInt(t._nac,10)+parseInt(t._ac,10),i=i>0?i:0,N.data({key:t._k,num:i}),R.text(i))}function f(e){var t={return_type:"jsonp",method:"open.Shoppingcart.getCartData",shopping_key:e};S.getJSON("//www.yohobuy.com/common/shoppingCart/?callback=?",t,function(e){var t,i=[],n=["main_goods","advance_goods","outlet_goods","gift_goods","need_pay_gifts"];200===e.code&&(t=e.data,S.each(n,function(e,n){t[n]&&(i=S.merge(i,t[n]))}),i&&i.length?(t.totalGoods=i,U.html(x({carData:t}))):(u('{"_k":"'+N.data().key+'","_nac":0,"_ac":0,"_r":0}'),U.html('<div class="empty-cart"><h3>您的购物车暂无商品</h3></div>')))})}function m(e,t){var i={return_type:"jsonp",product_sku:e.sku,promotion_id:e.proid,product_num:e.num};S.getJSON("//www.yohobuy.com/common/delCartGoods/?callback=?",i,function(i){var n="";if(200===i.code)return i.data&&"undefined"!=typeof i.data.total_goods_num&&(n='{"_k":"'+e.key+'","_nac":'+i.data.total_goods_num+',"_ac":0,"_r":0}',u(n),1*i.data.total_goods_num===0&&U.html('<div class="empty-cart"><h3>您的购物车暂无商品</h3></div>')),t()})}function p(){var e=["webkit","moz","ms"],t=e[0]+"RequestAnimationFrame",i=e[1]+"RequestAnimationFrame",n=e[2]+"RequestAnimationFrame";return window[t]?function(e){requestAnimationFrame(e)}:window[i]?function(e){window[i](e)}:window[n]?function(e){window[n](e)}:function(e){window.setTimeout(e,67)}}function g(){$+=10,L.css({transform:"rotateX("+$+"deg)","-webkit-transform":"rotateX("+$+"deg)","-moz-transform":"rotateX("+$+"deg)"}),$/90%2===1&&L.toggleClass("logo-cn"),$/90%2===0&&$%360!==0?window.setTimeout(g,3e3):$%360===0?window.setTimeout(g,6e4):_(function(){g()})}function v(){var e=3e3;L.hasClass("logo-cn-ie")&&(e=6e4),L.fadeOut(A,function(){L.toggleClass("logo-cn-ie"),L.fadeIn(A,function(){window.setTimeout(function(){v()},e)})})}function b(){var e,t,i=["webkit","moz","ms"];for(t=0;t<i.length;t++)return e=i[t]+"RequestAnimationFrame",!!window[e]}function w(){var e,t=window.cookie("_Gender"),i="",o="",s="",d="";"http://www.yohobuy.com/"!==window.location.href||"undefined"!=typeof t&&""!==t&&null!==t||S.get("/guide",function(t){i=document.createElement("div"),i.id="cover",i.innerHTML=t,document.body.appendChild(i),o=S(window).height(),s=S(".guide-box").height(),e=o/2-s/2,d=S(".guide-box .clear").find("li").length,S(".guide-box").css({width:200*d+"px",top:e+"px"}),S("#cover").bind("click",function(){window.setCookie("_Gender","1,3",{path:"/",domain:".yohobuy.com",expires:90}),window.setCookie("_Channel","boys",{path:"/",domain:".yohobuy.com",expires:7}),a()}),S("#cover .guide-box .close").bind("click",function(){n("弹窗","CLOSE","homepage_man"),window.setCookie("_Gender","1,3",{path:"/",domain:".yohobuy.com",expires:90}),window.setCookie("_Channel","boys",{path:"/",domain:".yohobuy.com",expires:7}),a()}),S(".boys img , .boys .go").bind("click",function(){n("弹窗","BOYS","homepage_man"),window.setCookie("_Gender","1,3",{path:"/",domain:".yohobuy.com",expires:90}),window.setCookie("_Channel","boys",{path:"/",domain:".yohobuy.com",expires:7}),a()}),S(".girls img, .girls .go").bind("click",function(){n("弹窗","GIRLS","homepage_woman"),window.setCookie("_Gender","2,3",{path:"/",domain:".yohobuy.com",expires:90}),window.setCookie("_Channel","girls",{path:"/",domain:".yohobuy.com",expires:7})}),S(".lifestyle img, .lifestyle .go").bind("click",function(){window.setCookie("_Channel","lifestyle",{path:"/",domain:".yohobuy.com",expires:7}),n("弹窗","LIEFSTYLE","homepage_lifestyle")}),S("#cover .guide-box").bind("click",function(e){e.stopPropagation()})})}var y,k,C,x,_,S=i(1),I=i(4),T=S(".tool-wrapper"),q=T.find(".yoho-group"),O=S("#loginBox"),j=S(".head-wrapper"),z=S("#search-form"),L=j.find(".main-logo"),D=j.find(".search-suggest"),N=j.find(".go-cart"),R=N.find(".goods-num-tip"),U=j.find(".mini-cart-wrapper"),E=S(".sub-nav-list .contain-third"),M=9,$=0,A=500,H="",J="",G=/^[\^\!\+\-\(\)\:\[\]\\\{\}\~\*\?\|\&\;\/]{0,}$/g,Y=[],B={listboys:"4f78b0f418fc42314d8b6e791cfb7fa8",listgirls:"00c1f025a51b6b597dc37925951ea27d",listkids:"b02df11184727701ade1b6de9737d08c",listlifestyle:"fd35c52dced0c880976ba858346d1fc5",searchboys:"9fb8986ea700cc27a8057361c3924394",searchgirls:"e3e207a1443ca60c8037fe52a5560c18",searchkids:"620fc77f479da8feaeb06f2324e5d0bb",searchlifestyle:"a3c93301c6ffaf3ed0f36a4a451be36d",uniquebrandboys:"2ebb0810c0d1a67e5229149c9c3aba7d",uniquebrandgirls:"99e23385f4ba4b65f406b7e2968ac821",uniquebrandkids:"a74ebc9b17840c91b9ea46568111fe6b",uniquebrandlifestyle:"0e8c81ead53f56302baa4d0ad967f527",brandsboys:"77b352db07129c76a9d532acad149f9f",brandsgirls:"bf047f16e52ebc38be5ce9c7623831e6",brandskids:"e3ae1ce9b5e13c6d271ef3eccb831652",brandslifestyle:"e4ac8029c30f65d7f1af030980d140fe",newboys:"869d3c5f3b450fb52101d00a61ce87cb",newgirls:"d953b6dfdac02483d1dcce8d96055954",newkids:"0874cb6d75df8e0e78f2d475e53ecc08",newlifestyle:"43e8fc8e178115c262bbce2bd0012db7",saleboys:"c846e3165c994769b4201d8c32f3ae9b",salegirls:"52b1d389edcbc62d65de71b80c4d6ad0",salekids:"ad8b1703c761ba00973868ab5199cc27",salelifestyle:"7acc64905c70ac91846f43fb2cec4bbd",homeboys:"b0856a771ef1b59ab1234c74688fa42d",homegirls:"2bd61fa12e4933211518f70fe5ce3c48",homekids:"895c59e8c64b40399c9533509507320c",homelifestyle:"2e037d4e25d2767352ca3e0a4627f7bd",indexboys:"0c911d3000f52e8ca7cffb74f5864c29",indexgirls:"b645b8980c423ab30485e0a9d08c2ef7",indexkids:"17f6d5d5d454d2c507bc5fcbc90f7756",indexlifestyle:"735cd393e841762af8793c346abbbc36"},F={};k=I.compile(S("#simple-account-info-tpl").html()||""),C=I.compile(S("#header-login-info-tpl").html()||""),x=I.compile(S("#mini-cart-tpl").html()||""),I.registerHelper("notzero",function(e,t){return"0"!==e?t.fn(this):t.inverse(this)}),b()?(_=p(),window.setTimeout(g,3e3)):window.setTimeout(v,3e3),d(),l(),c(),setInterval(u,2e3),q.hover(function(){var e=S(this).data();S(this).text(e.cn)},function(){var e=S(this).data();S(this).text(e.en)}),z.on("keyup",".search-key",function(e){var t,i=S.trim(S(this).val()),n=D.find("li"),a=D.find(".action");if(e.which>36&&e.which<41){if(38===e.which)t=a.prev(),a.length&&t.length||(t=n.eq(n.length-1));else{if(40!==e.which)return;t=a.next(),a.length&&t.length||(t=n.eq(0))}n.removeClass("action"),t.addClass("action"),S(this).val(t.find(".searchvalue").text())}else 13===e.which?""!==i&&z.submit():(i=i.replace(new RegExp("'","gm"),""),S(this).val(i),h(i))}).on("blur",".search-key",function(){setTimeout(function(){D.hide()},200)}),N.hover(function(){var e,t="";N.hasClass("on-hover")||(e=N.data(),e&&1*e.num?(t='<div class="loading-cart"><h3>加载中,请稍后</h3></div>',f(e.key)):t='<div class="empty-cart"><h3>您的购物车暂无商品</h3></div>',U.html(t),N.addClass("on-hover"))},function(){N.removeClass("on-hover")}),N.on("click",".cart-goods-del",function(){var e,t=S(this),i=t.data();i&&(e=function(){t.closest(".goods-item").remove()},i.key=N.data().key,m(i,e))}),E.on({mouseenter:function(){var e=S(this).children(".third-nav-wrapper"),t=e.find(".show-detail"),i={};y=setTimeout(function(){e.show()},200),t.length&&!t.hasClass("show")&&(i.content_code=t.data().code,i.client_type="web",i.width=337,i.height=250,i._=new Date,S.getJSON("//new.yohobuy.com/common/getbanner?callback=?",i,function(e){200===e.code&&(t.addClass("show"),t.find("img").attr("src",e.data.src),t.find("a").attr("href",e.data.url),t.find(".title").text(e.data.title))}))},mouseleave:function(){var e=S(this).children(".third-nav-wrapper");y&&clearTimeout(y),e.hide()}}),window.submitSearch=function(){var e,t,i=S("#query-key").val(),a=S("#defaultsearch").val(),o="Search",s="Head Search",d="Search";if(e=S.trim(H.toLowerCase()),t=S.trim(i.toLowerCase()),n(o,s,d),""!==J&&""!==H&&e===t)location.href=J.replace("'","");else{if(!G.test(i)||""===i)return""===i&&S("#query-key").val(a),z.submit(),!1;location.href="http://search.yohobuy.com/error?query="+i+"&result=error"}},w()},10:function(e,t,i){var n=i(1),a=i(2);!function(){var e=function(e,t){this.$element=n(e),this.options=n.extend({},n.fn.slider.defaults,t),this.bigItem=this.$element.find(".slide-wrapper").find("li"),this.smallItem=null,this.len=this.bigItem.size(),this.index=0,this.timer=null,this.init()};e.prototype={init:function(){if(this.$element){if(this.len<=1)return void a(this.$element.find("img.lazy"));this.options.pagination?this.smallItem=n(this.options.pagination).find("li"):this._createPage(),this.options.orient&&this._createOrient(),this._slideShow(),this._bindEvent(),this._autoplay()}},_createOrient:function(){var e='<div class="slide-switch"><a class="prev" href="javascript:;"><span class="iconfont">&#xe609;</span></a><a class="next" href="javascript:;"><span class="iconfont">&#xe608;</span></a></div>';this.$element.find(".slide-switch").length>0||this.$element.append(e)},_createPage:function(){var e='<div class="slide-pagination"><div class="slide-pagination-inner"><div class="slide-shade"></div><div class="slide-pagination-last">',t=0;if(!(this.len<=1)){for(t=0;t<this.len;t++)e+="<span></span>";e+="</div></div></div>",this.$element.append(n(e)),this.smallItem=this.$element.find(".slide-pagination-inner span")}},_bindEvent:function(){var e=this;this.$element.find(".slide-switch").on("click",".next",function(){e._nextSlide(),clearInterval(e.timer),e.timer=setInterval(function(){e._nextSlide()},e.options.time)}).on("click",".prev",function(){e._prevSlide(),clearInterval(e.timer),e.timer=setInterval(function(){e._nextSlide()},e.options.time)}),this.smallItem.on("mouseenter",function(){e.index=n(this).index(),clearInterval(e.timer),e._slideShow()}).on("mouseleave",function(){e._autoplay()}),this.$element.on("mouseenter",function(){n(this).find(".slide-switch").addClass("show")}).on("mouseleave",function(){n(this).find(".slide-switch").removeClass("show")})},_nextSlide:function(){this.index===this.len-1?this.index=0:this.index++,this._slideShow()},_prevSlide:function(){0===this.index?this.index=this.len-1:this.index--,this._slideShow()},_slideShow:function(){var e=this.bigItem.eq(this.index).find("img.lazy");e.attr("src")!==e.data("original")&&(a(e,{event:"sporty"}),e.trigger("sporty")),this.smallItem.eq(this.index).addClass("focus").siblings().removeClass("focus"),this.bigItem.eq(this.index).show().stop().animate({opacity:1},function(){n(this).find(".slide-tips > p").removeClass("hide")}).siblings().stop().animate({opacity:0},function(){n(this).hide().find(".slide-tips > p").addClass("hide")})},_autoplay:function(){var e=this;clearInterval(this.timer),this.timer=setInterval(function(){e._nextSlide()},this.options.time)}},n.fn.slider=function(t){return this.each(function(){var i=n(this),a=i.data("Slider"),o="object"==typeof t&&t;a||i.data("Slider",a=new e(this,o)),"string"==typeof t&&a[t]()})},n.fn.slider.Constructor=e,n.fn.slider.defaults={time:5e3,orient:!0,pagination:null}}(n)},14:function(e,t,i){function n(e,t){e.each(function(){g(this).closest(".attr").hasClass("checked")||g(this).removeClass("checked").html(b.unchecked)}),t.find(".checkbox").addClass("checked").html(b.checked)}function a(){y.addClass("hide"),C.removeClass("hide")}function o(){C.addClass("hide"),y.removeClass("hide"),I.children("span").removeClass("hover")}function s(e,t){var i,n=window.queryString();n[e]=t,delete n.page,i="?"+decodeURIComponent(g.param(n)),window.location.href=i}function d(){j.children(".senior-sub:eq("+p+")").addClass("hide"),z.children(".attr:eq("+p+")").removeClass("hover"),p=-1}var c,r,l,h,u,f,m,p,g=i(1),v=i(4),b={unchecked:"&#xe612;",checked:"&#xe613;"},w={up:"&#xe607;",down:"&#xe60b;"},y=g(".brand .default"),k=g("#brand-search-input"),C=g(".brand .brand-panel"),x=C.find(".attr"),_=g("#brand-more"),S=g("#brand-multi"),I=g(".brands-index"),T=g(".ud-price-range"),q=/^\d+$/,O=g(".sort-sub-wrap"),j=g(".senior-sub-wrap"),z=g(".senior-attr-wrap"),L='{{# size}}<a class="attr {{#if checked}}checked{{/if}}" href="{{href}}">{{name}}</a>{{/ size}}',D={},N=g(".filter-box .size");L=v.compile(L),g(".filter-box").on("selectstart",".attr, .brands-index span",function(){return!1}),g(".sort-pre").on("click","li",function(){var e=g(this),t=e.index(),i=e.data("id");return e.hasClass("active")?(e.removeClass("active"),O.children(":eq("+t+")").addClass("hide"),void N.addClass("hide")):(e.siblings(".active").removeClass("active"),e.addClass("active"),O.children(":not(.hide)").addClass("hide"),O.children(":eq("+t+")").removeClass("hide"),void(N.data("load")||(D[i]?(N.find(".attr-content").html(D[i]),N.removeClass("hide")):g.ajax({url:"/product/search/sortSize",data:{msort:i}}).then(function(e){"array"===g.type(e)&&e.length?(D[i]=L({size:e}),N.find(".attr-content").html(D[i]),N.removeClass("hide")):N.addClass("hide")}))))}),_.length>0&&(c=_.children("em"),r=_.children(".iconfont")),S.click(function(){"none"===C.css("display")&&_.trigger("click"),a(),C.removeClass("hide").addClass("multi"),g(this).addClass("hide"),_.addClass("hide")}),_.click(function(){var e=g(this);e.hasClass("more")?(o(),c.text("更多"),r.html(w.down),k.val("").trigger("keyup")):(a(),c.text("收起"),r.html(w.up)),g(this).toggleClass("more")}),I.on("mouseenter","span",function(){var e=g(this),t=e.data("index");e.hasClass("hover")||setTimeout(function(){e.siblings("span.hover").removeClass("hover"),e.addClass("hover"),0===e.index()?x.removeClass("hide"):x.addClass("hide").filter("[data-index="+t+"]").removeClass("hide")},120)}),k.keyup(function(){var e=g(this).val().toLowerCase();""===e?x.removeClass("hide"):x.addClass("hide").filter('[data-key*="'+e+'"]').removeClass("hide")}),g("#brand-multi-ok").click(function(){var e=[];g(this).hasClass("dis")||(C.find("span.checked").each(function(){e.push(g(this).data("id"))}),s("brand",e.join(",")))}),g(".multi-select-cancel").click(function(){var e=g(this).closest(".multi");e.hasClass("brand-panel")&&(S.removeClass("hide"),_.trigger("click"),_.removeClass("hide"),k.val("").trigger("keyup"),o()),e.addClass("hide").removeClass("multi"),n(e.find(".checkbox.checked"),e.find(".attr.checked")),g(this).siblings(".multi-select-ok").addClass("dis")}),g(".check-container").on("click",".attr",function(){var e=g(this),t=e.find(".checkbox"),i=e.closest(".brand-panel, .senior-sub").find(".multi-select-ok");t.toggleClass("checked"),t.hasClass("checked")?t.html(b.checked):t.html(b.unchecked),t.hasClass("checked")||e.siblings(".attr").find(".checked").length>0?i.removeClass("dis"):i.addClass("dis")}),g(".brand, .senior").on("click",".attr > a",function(e){g(this).closest(".multi").length>0&&e.preventDefault()}),g(".filter-box").on("click","li.checked, a.checked",function(e){e.preventDefault()}),T.length>0&&(l=T.find(".limit"),h=l.filter(".min"),u=l.filter(".max"),f=T.find(".price-sure"),l.keyup(function(){var e,t,i,n=g.trim(g(this).val()),a=q.test(n);a||(e=parseInt(n,10),g(this).val(isNaN(e)?"":e)),t=g.trim(h.val()),i=g.trim(u.val()),""!==t||""!==i?f.removeClass("hide"):f.addClass("hide")}),f.click(function(){var e,t=g.trim(h.val()),i=g.trim(u.val());""!==t&&""!==i&&+t>+i&&(e=i,i=t,t=e),s("price",t+","+i)})),z.on("mouseenter",".attr",function(){var e=g(this),t=e.index();e.hasClass("no-sub")||(e.addClass("hover").siblings().removeClass("hover"),j.children(".senior-sub:eq("+t+")").removeClass("hide").siblings().addClass("hide"))}).on("mouseleave",".attr",function(){var e=g(this),t=e.index();e.hasClass("no-sub")||(p=t,m=setTimeout(function(){d()},100))}),g(".senior-sub").on("click",".multi-select",function(){g(this).closest(".senior-sub").addClass("multi")}).on("click",".multi-select-ok",function(){var e=g(this),t=e.closest(".senior-sub"),i=[];e.hasClass("dis")||(t.find("span.checked").each(function(){i.push(g(this).data("id"))}),s(t.data("attr"),i.join(",")))}).on("mouseenter",function(){clearTimeout(m)}).on("mouseleave",function(){d()}),function(){var e=g(".activity-entry").find("a").length,t=(1150-10*(e-1))/e;g(".activity-entry .entry-item").css("width",t)}()},15:function(e,t,i){var n=i(1),a=n("#count-per-page"),o=a.next("ul"),s=200;n(document).click(function(e){n(e.target).closest(".page-count").length>0||o&&o.slideUp(s)}),a.click(function(){"none"===o.css("display")?o.slideDown(s):o.slideUp(s)})},16:function(e,t,i){function n(){this.handlers={}}var a=i(1);n.prototype={constructor:n,addHandler:function(e,t){"undefined"==typeof this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(t)},fire:function(e){var t,i;if(e.target||(e.target=this),this.handlers[e.type]instanceof Array)for(t=this.handlers[e.type],i=0;i<t.length;i++)t[i](e)},removeHandler:function(e,t){var i,n;if(this.handlers[e]instanceof Array){for(i=this.handlers[e],n=0;n<i.length&&i[n]!==t;n++);i.splice(n,1)}}},e.exports=function(e,t){function i(e){var i,n=0,h=0,u=t,f=0,m="",p=0,g=0;switch(e.type){case"mouseenter":i=a(this),o=setTimeout(function(){s=!0,m=i.clone(),f=i.index()+1,n=f%u===0?u:f%u,h=Math.ceil(f/u),p=i.offset().left,g=l-(p+c),d.fire({type:"MouseEnter",target:i,targetWidth:c,targetHeight:r,targetX:n,targetY:h,rowWidth:u,activeIndex:f,targetDuplicate:m,offsetL:p,offsetR:g})},150);break;case"mouseleave":s||(o&&clearTimeout(o),d.fire({type:"MouseLeave"})),s=!1}}var o,s,d=new n,c=e.eq(0).width(),r=e.eq(0).height(),l=a(window).width();return e.bind({mouseenter:i,mouseleave:i}),d}},17:function(e,t,i){var n,a=i(1),o=i(2),s=i(4),d=i(16),c=a(".goods-container"),r=c.find(".good-info"),l=c.find(".good-item-wrapper"),h=c.find(".good-info-main"),u=c.find(".good-select-color"),f=a(".product-list-nav");o(a("img.lazy")),t.init=function(e){function t(e,t){var i,n,a,o="",s=e.length,d=4,c=Math.ceil(s/d),r=0;for(i=0;i<c;i++)for(o+="<ul>",n=0;n<d&&(a=i*d+n,a!==s);n++)o+='<li><a target="_blank" href="'+e[i*d+n].url+t+'"><img src="'+e[i*d+n].src+'" data-cover="'+e[i*d+n].coverImg+'" /></a></li>',n===d-1&&(o+="</ul>",r++);return r<c&&(o+="</ul>"),{colorListStr:o,ulNum:c}}function i(){h.html(""),u.html(""),l.css({display:"none"})}n=null,r.unbind(),n=d(r,e),n.addHandler("MouseEnter",function(e){var n,o,s,d,r,f,m,p,g,v,b,w,y=10,k=35,C=e.target.attr("data-from")||"";s=[],e.target.find(".hideList > li").each(function(){o=a(this).data(),o.coverImg=o.src,s.push(o)}),n=t(s,C),i(),r=n.colorListStr,d=n.ulNum,h.append(e.targetDuplicate),u.append(a(r)),v=l.css("paddingLeft"),b=l.css("paddingTop"),w=c.css("paddingTop"),f=10+65*d+e.targetWidth,p=(e.targetX-1)*(e.targetWidth+y)-(parseInt(v,10)+1),g=(e.targetY-1)*(e.targetHeight+k)+parseInt(w,10)-(parseInt(b,10)+1),m=e.offsetR-(65*d+25),m<=0&&(p=p+m-25),l.css({width:f,left:p,top:g,display:"inline-block"}),s[0]&&s[0].src&&h.find(".good-thumb img").attr("src",s[0].src)}),n.addHandler("MouseLeave",function(){i()}),l.mouseleave(function(){i()})},a(document).on("mouseenter",".good-select-color li",function(){var e=a(this).find("img").attr("data-cover"),t=a(this).closest(".good-item-wrapper").find(".good-detail-img img");t.attr("src",e)}),f.find("h3").click(function(){var e=a(this).closest(".product-list-nav");e.hasClass("active")?e.find(".sort-child-list").stop(!0,!0).slideUp():e.find(".sort-child-list").stop(!0,!0).slideDown(),e.toggleClass("active")}),function(){var e,t=a("#brand-card"),i=a("#brand-favor");t.length&&a.ajax({type:"POST",url:"/product/index/getNodeContent",data:{node:t.data("node")}}).then(function(e){t.html(e)}),i.length&&(e=a("#pic-link-tpl").html(),a.ajax({type:"POST",url:"/product/index/getAdnav",data:{brandId:i.data("id")}}).then(function(t){t&&a("#brand-ad").html(s.compile(e)({picLink:t}))}))}()},36:function(e,t,i){var n=i(17);i(14),i(15),n.init(4)}});
\ No newline at end of file
... ...
webpackJsonp([1],[function(e,t,i){function n(e){var t,i,n,o;o=e.attr("urlLocation"),t="/product/sale/goods",n=e.parent().parent(".sale-box").find(".goods"),i=t+o,s.ajax({type:"GET",url:i,data:""}).then(function(t){n.html(""),n.append(t),r(e.closest(".sale-box").find(".lazy"))})}function o(e){var t=36e5,i=6e4,n=1e3,o="",a=0,s=0,r=0,c=0;return e>1e3&&(a=Math.floor(e/t/24),s=Math.floor(e/t%24),r=Math.floor(e/i%60),c=Math.floor(e/n%60),o+=a>0?a+"天":"",o+=s>0?s+"时":"",o+=r>0?r+"分":"",o+=c>0?c+"秒":""),o}function a(){var e,t,i;for(e=0;e<d.length;e++){if(d[e].time<0)return void s(".time").addClass("hide");d[e].time-=1e3,i=o(d[e].time),i?(t=i,d[e].pre&&(t=d[e].pre+" "+t),s(".time-calculate").removeClass("hide"),s(".time-calculate").text(i)):(t="活动已结束",s(".time").addClass("hide"))}0===d.length&&s(".time").addClass("hide")}var s=i(1),r=i(2),c=i(17),d=[],l=s(".sale-box"),u=s(".sale-nav li");i(5),i(37),i(10),i(14),i(15),c.init(4),r(s("img.lazy")),s(".slide-container").slider(),u.on("click",function(){s(this).siblings(".active").removeClass("active"),s(this).addClass("active"),n(s(this))}),function(){l.each(function(){var e=s(this).find(u).eq(0);n(e)})}(),s(".sale-discount-page").length>0&&(s(".time-calculate").each(function(){var e=s(this).attr("data");e&&d.push({dom:s(this),time:e})}),setInterval(a,1e3))},,,,,function(e,t,i){function n(e){var t=new RegExp(e+"=([^;$]*)","i"),i="$1";return t.test(decodeURIComponent(document.cookie))?RegExp[i]:""}function o(e,t,i){var n,o,a,s,r="";"undefined"!=typeof t&&(i=i||{},null===t&&(t="",i.expires=-1),i.expires&&("number"==typeof i.expires||i.expires.toUTCString)&&("number"==typeof i.expires?(s=new Date,s.setTime(s.getTime()+24*i.expires*60*60*1e3)):s=i.expires,r="; expires="+s.toUTCString()),n=i.path?"; path="+i.path:"",o=i.domain?"; domain="+i.domain:"",a=i.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),r,n,o,a].join(""))}function a(){var e,t=n("_UID");return"undefined"==typeof t?0:(e=t.split("::"),"undefined"==typeof e||e.length<4?0:e)}function s(){var e=a();return 0===e?0:e[1]}function r(){var e=n("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function c(){var e,t,i={},n=window.location.search,o=n?decodeURIComponent(n).slice(1).split("&"):[];for(t=0;t<o.length;t++)e=o[t].split("="),i[e[0]]=e[1];return i}var d=i(1),l=d("body");!function(e,t,i,n,o){var a=t.createElement(i),s=t.getElementsByTagName(i)[0];e.YohoAcquisitionObject=o,e[o]=function(){e[o].p=arguments},a.async=1,a.src=n,s.parentNode.insertBefore(a,s)}(window,document,"script","//cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=s();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_web",e,"","")}(),d(window).on("resize",function(){var e=d(this).width();e<1360?d(".return-top").addClass("min"):d(".return-top").removeClass("min"),e<1180?l.addClass("min-screen"):l.removeClass("min-screen")}).trigger("resize"),function(){d(window).load(function(){var e,t=document.getElementById("user-thumb");t&&(e=new Image,e.src=t.src,e.onerror=function(){d(t).parent().append('<div class="default-user-thumb"></div>').end().remove()})})}(),window.cookie=n,window.setCookie=o,window.getUser=a,window.getUid=s,window.getShoppingKey=r,window.queryString=c,i(7),i(6)},function(e,t,i){function n(){var e=s("#subscriber-box"),t=s("#subscriber-btn"),i=/^[.\-_a-zA-Z0-9]+@[\-_a-zA-Z0-9]+\.[a-zA-Z0-9]/,n={mail:"&#xe601;",tick:"&#xe605;"};e.focus(function(){s(this).val("").css("color",""),t.removeClass("done").html(n.mail)}),t.click(function(){var o=s.trim(e.val());if(""!==o&&i.test(o))try{s.ajax({url:"//new.yohobuy.com/common/emailsubscriber",dataType:"jsonp",data:{email:o,tmp:Math.random(),uid:window.getUid()},success:function(i){1===i.data.result?(e.val("已订阅到:"+o),t.addClass("done").html(n.tick)):e.css("color","red")}})}catch(a){console.log(a.message)}else e.css("color","red")})}function o(){var e=s(".vote"),t=s("#feed-back-page"),i=e.children("li").length;t.on("click","span",function(){var t=s(this);t.hasClass("cur")||(t.siblings(".cur").removeClass("cur"),t.addClass("cur"),e.children().not(".hide").addClass("hide").end().eq(t.index()).removeClass("hide"))}),e.on("click",".feed-back-btn",function(){var n=s(this),o=n.closest("li"),a=o.index(),r=[],c=o.find(".feedback-answer").val(),d=o.find(".feedback-id").val(),l=o.find(".question-id").val();o.find(":checked").each(function(){r.push(s(this).val())}),s.ajax({url:"//new.yohobuy.com/common/suggestfeedback",dataType:"jsonp",data:{feedback_id:d||0,question_id:l||0,answer:c||"",solution:r.join(",")},success:function(n){var s=a+1;if(1===~~n.data.result){if(a===i-1)return void alert("感谢您的参与!");o.addClass("hide"),e.children(":eq("+(a+1)+")").removeClass("hide"),t.children(".cur").removeClass("cur"),t.children(":eq("+s+")").addClass("cur")}}})})}function a(){s(window).height()>s(document).height()&&c.addClass("hide")}var s=i(1),r=i(2),c=s(".return-top");r(s("img.lazy")),c.click(function(){s("html,body").animate({scrollTop:0},500)}),s(window).scroll(function(){0===s(window).scrollTop()?c.addClass("hide"):c.removeClass("hide")}),c.hasClass("hide")&&s("img").load(a),n(),o(),window.rePosReturnTop=a},function(e,t,i){function n(e,t,i){G.push({louceng:e,weizhi:t,event:i})}function o(){var e=S("#cover");e.remove()}function a(e){var t="";t=e&&""!==e.url?'<a target="_blank" href="'+e.url+'" class="page-top-banner"style="height:36px;border:none;background-image:url('+window.unescape(e.src)+');background-position: center;display:block;">&nbsp;</a>':'<div class="yoho-notice"><div class="notice-container center-content"><h1 class="notice-title">关于系统升级的公告</h1><div class="notice-content"><p class="tips">尊敬的顾客:</p><p class="detail">您好!为了向您提供更优质的服务,目前系统正在升级,请耐心等待。</p><p class="detail">系统升级期间,部分地区用户体验会有暂时中断,如遇紧急事宜,欢迎垂询客服热线:400-889-9646 09:00-22:30(周一至周日)。稍后系统将恢复正常使用,欢迎您继续光顾YOHO!BUY有货!带来不便之处深表歉意,请您谅解!</p></div></div></div>',S("body").prepend(t)}function s(){var e,t,i,n=document.cookie,o=n.split(";");for(e=0;e<o.length;e++)t=o[e].split("="),"undefined"!=typeof t[0]&&(i=t[0].replace(/\s/g,""),J[i]=t[1])}function r(){var e,t="indexkids",i="indexlifestyle",n="indexboys",o="indexgirls",r="uniquebrand",c=window.location.href,d=window.location.host,l="";s(),c.indexOf("search")!==-1&&(l=B["search"+J._Channel]),c.indexOf("list")!==-1&&(l=B["list"+J._Channel]),c.indexOf("brands")!==-1&&(l=B["brands"+J._Channel]),c.indexOf("new")!==-1&&(l=B["new"+J._Channel]),c.indexOf("sale")!==-1&&(l=B["sale"+J._Channel]),c.indexOf("home")!==-1&&(l=B["home"+J._Channel]),c.indexOf("kids")!==-1&&(l=B[t]),c.indexOf("woman")===-1&&c.indexOf("girls")===-1||(l=B[o]),c.indexOf("lifestyle")!==-1&&(l=B[i]),c.indexOf("www.yohobuy.com")!==-1&&"/"===window.location.pathname&&(l=B[n]),e=d.split(".")[0],"list"!==e&&"search"!==e&&"www"!==e&&"new"!==e&&"item"!==e&&"guang"!==e&&(l=B[r+J._Channel]),S.getJSON("//new.yohobuy.com/common/getbanner?callback=?",{client_type:"web",content_code:l},function(e){200===+e.code&&"object"==typeof e.data&&(""!==e.data.url?a(e.data):a())})}function c(){P.each(function(){var e=S(this).find(".hide-list"),t=[],i=0;if(e.length){for(e.children().each(function(){i%R===0&&t.push(""),t[t.length-1]+=this.outerHTML+"",i++}),i=0;i<3;i++){if(!t[i])return;e.before('<dl class="category-list">'+t[i]+"</dl>")}e.remove()}})}function d(e){var t={usercenter:"//www.yohobuy.com/home?t="+(new Date).getTime(),nickname:e.profile_name,signout:"//www.yohobuy.com/logout.html"};1*e.vip.curVipInfo.curLevel===3&&(e.vip3=!0),O.find(".simple-user-center").html(_(e)),j.html(x(t))}function l(){var e={return_type:"jsonp",method:"open.passport.get"};S.getJSON("//www.yohobuy.com/common/passport/?callback=?",e,function(e){e&&e.data&&e.data.result!==-1?d(e.data.data):window.setCookie("_UID","",{domain:".yohobuy.com",expires:-1}),j.show()})}function u(e){var t={return_type:"jsonp",query:e};S.getJSON("//search.yohobuy.com/api/suggest?callback=?",t,function(e){200===e.code&&(e.data&&e.data.length?L.html(e.data).show():L.hide())})}function h(e){var t,i;e&&window.setCookie("_g",e,{path:"/",domain:".yohobuy.com"}),window.cookie("_g")&&(t=S.parseJSON(window.cookie("_g")),i=parseInt(t._nac,10)+parseInt(t._ac,10),i=i>0?i:0,U.data({key:t._k,num:i}),N.text(i))}function f(e){var t={return_type:"jsonp",method:"open.Shoppingcart.getCartData",shopping_key:e};S.getJSON("//www.yohobuy.com/common/shoppingCart/?callback=?",t,function(e){var t,i=[],n=["main_goods","advance_goods","outlet_goods","gift_goods","need_pay_gifts"];200===e.code&&(t=e.data,S.each(n,function(e,n){t[n]&&(i=S.merge(i,t[n]))}),i&&i.length?(t.totalGoods=i,A.html(k({carData:t}))):(h('{"_k":"'+U.data().key+'","_nac":0,"_ac":0,"_r":0}'),A.html('<div class="empty-cart"><h3>您的购物车暂无商品</h3></div>')))})}function p(e,t){var i={return_type:"jsonp",product_sku:e.sku,promotion_id:e.proid,product_num:e.num};S.getJSON("//www.yohobuy.com/common/delCartGoods/?callback=?",i,function(i){var n="";if(200===i.code)return i.data&&"undefined"!=typeof i.data.total_goods_num&&(n='{"_k":"'+e.key+'","_nac":'+i.data.total_goods_num+',"_ac":0,"_r":0}',h(n),1*i.data.total_goods_num===0&&A.html('<div class="empty-cart"><h3>您的购物车暂无商品</h3></div>')),t()})}function m(){var e=["webkit","moz","ms"],t=e[0]+"RequestAnimationFrame",i=e[1]+"RequestAnimationFrame",n=e[2]+"RequestAnimationFrame";return window[t]?function(e){requestAnimationFrame(e)}:window[i]?function(e){window[i](e)}:window[n]?function(e){window[n](e)}:function(e){window.setTimeout(e,67)}}function v(){D+=10,z.css({transform:"rotateX("+D+"deg)","-webkit-transform":"rotateX("+D+"deg)","-moz-transform":"rotateX("+D+"deg)"}),D/90%2===1&&z.toggleClass("logo-cn"),D/90%2===0&&D%360!==0?window.setTimeout(v,3e3):D%360===0?window.setTimeout(v,6e4):C(function(){v()})}function g(){var e=3e3;z.hasClass("logo-cn-ie")&&(e=6e4),z.fadeOut(M,function(){z.toggleClass("logo-cn-ie"),z.fadeIn(M,function(){window.setTimeout(function(){g()},e)})})}function b(){var e,t,i=["webkit","moz","ms"];for(t=0;t<i.length;t++)return e=i[t]+"RequestAnimationFrame",!!window[e]}function w(){var e,t=window.cookie("_Gender"),i="",a="",s="",r="";"http://www.yohobuy.com/"!==window.location.href||"undefined"!=typeof t&&""!==t&&null!==t||S.get("/guide",function(t){i=document.createElement("div"),i.id="cover",i.innerHTML=t,document.body.appendChild(i),a=S(window).height(),s=S(".guide-box").height(),e=a/2-s/2,r=S(".guide-box .clear").find("li").length,S(".guide-box").css({width:200*r+"px",top:e+"px"}),S("#cover").bind("click",function(){window.setCookie("_Gender","1,3",{path:"/",domain:".yohobuy.com",expires:90}),window.setCookie("_Channel","boys",{path:"/",domain:".yohobuy.com",expires:7}),o()}),S("#cover .guide-box .close").bind("click",function(){n("弹窗","CLOSE","homepage_man"),window.setCookie("_Gender","1,3",{path:"/",domain:".yohobuy.com",expires:90}),window.setCookie("_Channel","boys",{path:"/",domain:".yohobuy.com",expires:7}),o()}),S(".boys img , .boys .go").bind("click",function(){n("弹窗","BOYS","homepage_man"),window.setCookie("_Gender","1,3",{path:"/",domain:".yohobuy.com",expires:90}),window.setCookie("_Channel","boys",{path:"/",domain:".yohobuy.com",expires:7}),o()}),S(".girls img, .girls .go").bind("click",function(){n("弹窗","GIRLS","homepage_woman"),window.setCookie("_Gender","2,3",{path:"/",domain:".yohobuy.com",expires:90}),window.setCookie("_Channel","girls",{path:"/",domain:".yohobuy.com",expires:7})}),S(".lifestyle img, .lifestyle .go").bind("click",function(){window.setCookie("_Channel","lifestyle",{path:"/",domain:".yohobuy.com",expires:7}),n("弹窗","LIEFSTYLE","homepage_lifestyle")}),S("#cover .guide-box").bind("click",function(e){e.stopPropagation()})})}var y,_,x,k,C,S=i(1),T=i(4),O=S(".tool-wrapper"),I=O.find(".yoho-group"),j=S("#loginBox"),q=S(".head-wrapper"),E=S("#search-form"),z=q.find(".main-logo"),L=q.find(".search-suggest"),U=q.find(".go-cart"),N=U.find(".goods-num-tip"),A=q.find(".mini-cart-wrapper"),P=S(".sub-nav-list .contain-third"),R=9,D=0,M=500,F="",$="",H=/^[\^\!\+\-\(\)\:\[\]\\\{\}\~\*\?\|\&\;\/]{0,}$/g,G=[],B={listboys:"4f78b0f418fc42314d8b6e791cfb7fa8",listgirls:"00c1f025a51b6b597dc37925951ea27d",listkids:"b02df11184727701ade1b6de9737d08c",listlifestyle:"fd35c52dced0c880976ba858346d1fc5",searchboys:"9fb8986ea700cc27a8057361c3924394",searchgirls:"e3e207a1443ca60c8037fe52a5560c18",searchkids:"620fc77f479da8feaeb06f2324e5d0bb",searchlifestyle:"a3c93301c6ffaf3ed0f36a4a451be36d",uniquebrandboys:"2ebb0810c0d1a67e5229149c9c3aba7d",uniquebrandgirls:"99e23385f4ba4b65f406b7e2968ac821",uniquebrandkids:"a74ebc9b17840c91b9ea46568111fe6b",uniquebrandlifestyle:"0e8c81ead53f56302baa4d0ad967f527",brandsboys:"77b352db07129c76a9d532acad149f9f",brandsgirls:"bf047f16e52ebc38be5ce9c7623831e6",brandskids:"e3ae1ce9b5e13c6d271ef3eccb831652",brandslifestyle:"e4ac8029c30f65d7f1af030980d140fe",newboys:"869d3c5f3b450fb52101d00a61ce87cb",newgirls:"d953b6dfdac02483d1dcce8d96055954",newkids:"0874cb6d75df8e0e78f2d475e53ecc08",newlifestyle:"43e8fc8e178115c262bbce2bd0012db7",saleboys:"c846e3165c994769b4201d8c32f3ae9b",salegirls:"52b1d389edcbc62d65de71b80c4d6ad0",salekids:"ad8b1703c761ba00973868ab5199cc27",salelifestyle:"7acc64905c70ac91846f43fb2cec4bbd",homeboys:"b0856a771ef1b59ab1234c74688fa42d",homegirls:"2bd61fa12e4933211518f70fe5ce3c48",homekids:"895c59e8c64b40399c9533509507320c",homelifestyle:"2e037d4e25d2767352ca3e0a4627f7bd",indexboys:"0c911d3000f52e8ca7cffb74f5864c29",indexgirls:"b645b8980c423ab30485e0a9d08c2ef7",indexkids:"17f6d5d5d454d2c507bc5fcbc90f7756",indexlifestyle:"735cd393e841762af8793c346abbbc36"},J={};_=T.compile(S("#simple-account-info-tpl").html()||""),x=T.compile(S("#header-login-info-tpl").html()||""),k=T.compile(S("#mini-cart-tpl").html()||""),T.registerHelper("notzero",function(e,t){return"0"!==e?t.fn(this):t.inverse(this)}),b()?(C=m(),window.setTimeout(v,3e3)):window.setTimeout(g,3e3),r(),l(),c(),setInterval(h,2e3),I.hover(function(){var e=S(this).data();S(this).text(e.cn)},function(){var e=S(this).data();S(this).text(e.en)}),E.on("keyup",".search-key",function(e){var t,i=S.trim(S(this).val()),n=L.find("li"),o=L.find(".action");if(e.which>36&&e.which<41){if(38===e.which)t=o.prev(),o.length&&t.length||(t=n.eq(n.length-1));else{if(40!==e.which)return;t=o.next(),o.length&&t.length||(t=n.eq(0))}n.removeClass("action"),t.addClass("action"),S(this).val(t.find(".searchvalue").text())}else 13===e.which?""!==i&&E.submit():(i=i.replace(new RegExp("'","gm"),""),S(this).val(i),u(i))}).on("blur",".search-key",function(){setTimeout(function(){L.hide()},200)}),U.hover(function(){var e,t="";U.hasClass("on-hover")||(e=U.data(),e&&1*e.num?(t='<div class="loading-cart"><h3>加载中,请稍后</h3></div>',f(e.key)):t='<div class="empty-cart"><h3>您的购物车暂无商品</h3></div>',A.html(t),U.addClass("on-hover"))},function(){U.removeClass("on-hover")}),U.on("click",".cart-goods-del",function(){var e,t=S(this),i=t.data();i&&(e=function(){t.closest(".goods-item").remove()},i.key=U.data().key,p(i,e))}),P.on({mouseenter:function(){var e=S(this).children(".third-nav-wrapper"),t=e.find(".show-detail"),i={};y=setTimeout(function(){e.show()},200),t.length&&!t.hasClass("show")&&(i.content_code=t.data().code,i.client_type="web",i.width=337,i.height=250,i._=new Date,S.getJSON("//new.yohobuy.com/common/getbanner?callback=?",i,function(e){200===e.code&&(t.addClass("show"),t.find("img").attr("src",e.data.src),t.find("a").attr("href",e.data.url),t.find(".title").text(e.data.title))}))},mouseleave:function(){var e=S(this).children(".third-nav-wrapper");y&&clearTimeout(y),e.hide()}}),window.submitSearch=function(){var e,t,i=S("#query-key").val(),o=S("#defaultsearch").val(),a="Search",s="Head Search",r="Search";if(e=S.trim(F.toLowerCase()),t=S.trim(i.toLowerCase()),n(a,s,r),""!==$&&""!==F&&e===t)location.href=$.replace("'","");else{if(!H.test(i)||""===i)return""===i&&S("#query-key").val(o),E.submit(),!1;location.href="http://search.yohobuy.com/error?query="+i+"&result=error"}},w()},,,function(e,t,i){var n=i(1),o=i(2);!function(){var e=function(e,t){this.$element=n(e),this.options=n.extend({},n.fn.slider.defaults,t),this.bigItem=this.$element.find(".slide-wrapper").find("li"),this.smallItem=null,this.len=this.bigItem.size(),this.index=0,this.timer=null,this.init()};e.prototype={init:function(){if(this.$element){if(this.len<=1)return void o(this.$element.find("img.lazy"));this.options.pagination?this.smallItem=n(this.options.pagination).find("li"):this._createPage(),this.options.orient&&this._createOrient(),this._slideShow(),this._bindEvent(),this._autoplay()}},_createOrient:function(){var e='<div class="slide-switch"><a class="prev" href="javascript:;"><span class="iconfont">&#xe609;</span></a><a class="next" href="javascript:;"><span class="iconfont">&#xe608;</span></a></div>';this.$element.find(".slide-switch").length>0||this.$element.append(e)},_createPage:function(){var e='<div class="slide-pagination"><div class="slide-pagination-inner"><div class="slide-shade"></div><div class="slide-pagination-last">',t=0;if(!(this.len<=1)){for(t=0;t<this.len;t++)e+="<span></span>";e+="</div></div></div>",this.$element.append(n(e)),this.smallItem=this.$element.find(".slide-pagination-inner span")}},_bindEvent:function(){var e=this;this.$element.find(".slide-switch").on("click",".next",function(){e._nextSlide(),clearInterval(e.timer),e.timer=setInterval(function(){e._nextSlide()},e.options.time)}).on("click",".prev",function(){e._prevSlide(),clearInterval(e.timer),e.timer=setInterval(function(){e._nextSlide()},e.options.time)}),this.smallItem.on("mouseenter",function(){e.index=n(this).index(),clearInterval(e.timer),e._slideShow()}).on("mouseleave",function(){e._autoplay()}),this.$element.on("mouseenter",function(){n(this).find(".slide-switch").addClass("show")}).on("mouseleave",function(){n(this).find(".slide-switch").removeClass("show")})},_nextSlide:function(){this.index===this.len-1?this.index=0:this.index++,this._slideShow()},_prevSlide:function(){0===this.index?this.index=this.len-1:this.index--,this._slideShow()},_slideShow:function(){var e=this.bigItem.eq(this.index).find("img.lazy");e.attr("src")!==e.data("original")&&(o(e,{event:"sporty"}),e.trigger("sporty")),this.smallItem.eq(this.index).addClass("focus").siblings().removeClass("focus"),this.bigItem.eq(this.index).show().stop().animate({opacity:1},function(){n(this).find(".slide-tips > p").removeClass("hide")}).siblings().stop().animate({opacity:0},function(){n(this).hide().find(".slide-tips > p").addClass("hide")})},_autoplay:function(){var e=this;clearInterval(this.timer),this.timer=setInterval(function(){e._nextSlide()},this.options.time)}},n.fn.slider=function(t){return this.each(function(){var i=n(this),o=i.data("Slider"),a="object"==typeof t&&t;o||i.data("Slider",o=new e(this,a)),"string"==typeof t&&o[t]()})},n.fn.slider.Constructor=e,n.fn.slider.defaults={time:5e3,orient:!0,pagination:null}}(n)},function(e,t){var i,n={"[object Array]":"array","[object Boolean]":"boolean","[object Date]":"date","[object Function]":"function","[object Number]":"number","[object Object]":"object","[object RegExp]":"regexp","[object String]":"string"},o={__Index:0,list:[],get:function(e){return void 0===e?this.list:this.list[e]},fn:function(){},inherit:function(e,t){var i=o.fn;i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e,e.superclass=t.prototype,e.prototype.constructor===Object.prototype.constructor&&(e.prototype.constructor=t)},extend:function(e,t){var i;for(i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e},copy:function(e,t,i){var n,a,s;if("object"!=typeof t)return t;if(n=t.valueOf(),t!==n)return new t.constructor(n);if(t instanceof t.constructor&&t.constructor!==Object){a=e?new e:o.clone(t.constructor.prototype);for(s in t)(e||t.hasOwnProperty(s))&&(a[s]=t[s])}else{a={};for(s in t)a.hasOwnProperty(s)&&(a[s]=t[s])}if(i)for(s in i)a.hasOwnProperty(s)&&(a[s]=i[s]);return a},clone:function(e){return o.__cloneFunc.prototype=e,new o.__cloneFunc},__cloneFunc:function(){},delegate:function(e,t){var i;return t=t||window,arguments.length>2?(i=Array.prototype.slice.call(arguments,2),function(){return e.apply(t,i)}):function(){return e.call(t)}},dom:function(e,t){var i,n,o=e,a={wrap:o},s=o[0].getElementsByTagName("*"),r=s.length;for(n=0;n<r;n++)i=s[n].className,i.indexOf(t)>-1&&(i=i.split(t)[1]),i&&(a[i]=o.find(s[n]));return a},template:function(){var e,t,i,n,a=arguments;if(a.length>0&&o.isString(a[0]))if(e=a[0],2===a.length&&o.isObject(a[1]))for(t in a[1])void 0!==a[1][t]&&(i=new RegExp("({"+t+"})","g"),e=e.replace(i,a[1][t]));else for(n=1;n<a.length;n++)void 0!==a[n]&&(i=new RegExp("({["+(n-1)+"]})","g"),e=e.replace(i,a[n]));return e},__type:function(e){return null==e?String(e):n[Object.prototype.toString.call(e)]||"object"},isObject:function(e){return this.isFunction(e)||!(!e||"object"!=typeof e)},isFunction:function(e){return"function"===this.__type(e)},isArray:Array.isArray||function(e){return"array"===this.__type(e)},isNum:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},isString:function(e){return"string"===this.__type(e)},each:function(e,t,i){var n,a;if(o.isArray(e))for(n=0,a=e.length;n<a&&t.call(e[n],n,e[n],i)!==!1;n++);else for(n in e)if(t.call(e[n],n,e[n],i)===!1)break},funManager:{__loadList:{},__loadFun:function(e,t,i){e.methord&&o.isFunction(e.methord())&&(i=i||window,e.methord()(e,function(){t()},i))},load:function(e,t,i,n){n=n||0,e[n]&&o.funManager.__loadFun(e[n],function(){o.funManager.load(e,t,i,n+1)},i),t(n,i)},get:function(e){return this.__loadList[e]}},log:function(e){var t=window.console||{log:function(){}};t.log(e)},Event:{mousewheel:function(e){var t=e.originalEvent,i=t.detail?t.detail*-1:t.wheelDelta/40,n=i<0?-1:1;return{direction:n,unit:i}},__:function(e,t,i,n){var o;for(o in e)if(window[e[o].validator]){t[e[o].validator](e[o].prefix+i,n,!1);break}},add:function(e,t,i){var n=[{validator:"addEventListener",prefix:""},{validator:"attachEvent",prefix:"on"}];this.__(n,e,t,i)},remove:function(e,t,i){var n=[{validator:"removeEventListener",prefix:""},{validator:"detachEvent",prefix:"on"}];this.__(n,e,t,i)}},getUid:function(e){return o.template("me-{0}{1}-{2}",e,(new Date).getTime(),o.__Index++)},Browser:{isTouch:function(){var e=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture;return!!("ontouchstart"in window||e||window.DocumentTouch)},Prefix:function(){var e,t=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"],i=document.createElement("div");for(e in t)if(void 0!==i.style[t[e]])return o.template("-{0}-",t[e].replace("Perspective","").toLowerCase())},parseURL:function(e){var t,i,n,o,a,s=document.createElement("a");return s.href=e,{source:e,protocol:s.protocol.replace(":",""),host:s.hostname,port:s.port,query:s.search,params:function(){for(t={},i=s.search.replace(/^\?/,"").split("&"),n=i.length,o=0,a;o<n;o++)i[o]&&(a=i[o].split("="),t[a[0]]=a[1]);return t}(),file:(s.pathname.match(/\/([^\/?#]+)$/i)||[null,""])[1],hash:s.hash.replace("#",""),path:s.pathname.replace(/^([^\/])/,"/$1"),relative:(s.href.match(/tps?:\/\/[^\/]+(.+)/)||[null,""])[1],segments:s.pathname.replace(/^\//,"").split("/")}}},Array:{indexOf:function(e,t){var i;for(i=0;i<e.length;i++)if(this[i]===t)return i;return-1},remove:function(e,t){var i=this.indexOf(e,t);return i>-1&&e.splice(i,1),e}}};i=function(e){this.initialized=!1,this.registerEvent={before:[],change:[],after:[]},this.options=e,this.init(e)},i.output=function(){o.log(o.list)},i.prototype.oninit=o.fn,i.prototype.init=function(e){this.initialized=!0,this.__Uid=o.getUid("me"),this.oninit(e),o.list[this.__Uid]=this},i.prototype.destory=function(){this.initialized=!1,delete o.list[this.__Uid]},i.prototype.getUid=function(){return this.__Uid},i.prototype.getOptions=function(){return this.options},i.prototype.config=function(){if(!(arguments.length>0))return this.options;if("string"==typeof arguments[0]){if(!(arguments.length>1))return this.options[name];this.options[arguments[0]]=arguments[1]}},i.prototype.on=function(e,t){var i=this,n=i.registerEvent[e];return n&&n.push(t),n},i.prototype.off=function(e,t){var i=this,n=i.registerEvent[e],a=[];o.each(n,function(e,i){i===t&&a.push(e)}),o.each(a.reverse(),function(e,t){n.splice(t,1)})},o.assembly=i,e.exports=o},function(e,t,i){var n=i(11),o=function(e){this.__lastTime=null,this.__isStop=!1,e=n.extend(this.defaults,e),o.superclass.constructor.call(this,e)};n.inherit(o,n.assembly),o.prototype.oninit=function(){var e=this,t=e.options;return t.auto&&e.play(),e.go(t.index),this},o.prototype.go=function(e,t){var i,n,o,a,s,r,c,d,l=this,u=l.options;l.__lastTime&&(clearTimeout(l.__lastTime),l.__lastTime=null),t="undefined"==typeof t?u.index:t,i=e===t?0:e>t?1:-1,n=u.loop,a=u.length-1,s=e,e=n?e>a?e-a-1:0>e?e+a+1:e:e>a?a:0>e?0:e,o=u.index=e,r={from:t,to:e,originalto:s,direction:i};for(c in l.registerEvent)if(l.registerEvent[c].length>0)for(d in l.registerEvent[c])l.registerEvent[c].hasOwnProperty(d)&&l.registerEvent[c][d](r);o!==a||e?!l.__isStop&&u.auto&&l.play():l.__lastTime&&clearTimeout(l.__lastTime)},o.prototype.play=function(){var e=this,t=e.options;return e.__lastTime=setTimeout(function(){e.next()},1e3*t.timeout),this},o.prototype.next=function(){var e=this,t=e.options,i=t.index,n=i+t.step;e.go(n,i)},o.prototype.prev=function(){var e=this,t=e.options,i=t.index,n=i-t.step;e.go(n,i)},o.prototype.pause=function(){var e=this;e.__lastTime&&clearTimeout(e.__lastTime),e.__isStop=!0},o.prototype.resume=function(){var e=this;e.__isStop=!1,e.play()},o.prototype.defaults={index:0,timeout:5,step:1,per:1,auto:!1,loop:!1},e.exports=o},,function(e,t,i){function n(e,t){e.each(function(){v(this).closest(".attr").hasClass("checked")||v(this).removeClass("checked").html(b.unchecked)}),t.find(".checkbox").addClass("checked").html(b.checked)}function o(){y.addClass("hide"),x.removeClass("hide")}function a(){x.addClass("hide"),y.removeClass("hide"),T.children("span").removeClass("hover")}function s(e,t){var i,n=window.queryString();n[e]=t,delete n.page,i="?"+decodeURIComponent(v.param(n)),window.location.href=i}function r(){q.children(".senior-sub:eq("+m+")").addClass("hide"),E.children(".attr:eq("+m+")").removeClass("hover"),m=-1}var c,d,l,u,h,f,p,m,v=i(1),g=i(4),b={unchecked:"&#xe612;",checked:"&#xe613;"},w={up:"&#xe607;",down:"&#xe60b;"},y=v(".brand .default"),_=v("#brand-search-input"),x=v(".brand .brand-panel"),k=x.find(".attr"),C=v("#brand-more"),S=v("#brand-multi"),T=v(".brands-index"),O=v(".ud-price-range"),I=/^\d+$/,j=v(".sort-sub-wrap"),q=v(".senior-sub-wrap"),E=v(".senior-attr-wrap"),z='{{# size}}<a class="attr {{#if checked}}checked{{/if}}" href="{{href}}">{{name}}</a>{{/ size}}',L={},U=v(".filter-box .size");z=g.compile(z),v(".filter-box").on("selectstart",".attr, .brands-index span",function(){return!1}),v(".sort-pre").on("click","li",function(){var e=v(this),t=e.index(),i=e.data("id");return e.hasClass("active")?(e.removeClass("active"),j.children(":eq("+t+")").addClass("hide"),void U.addClass("hide")):(e.siblings(".active").removeClass("active"),e.addClass("active"),j.children(":not(.hide)").addClass("hide"),j.children(":eq("+t+")").removeClass("hide"),void(U.data("load")||(L[i]?(U.find(".attr-content").html(L[i]),U.removeClass("hide")):v.ajax({url:"/product/search/sortSize",data:{msort:i}}).then(function(e){"array"===v.type(e)&&e.length?(L[i]=z({size:e}),U.find(".attr-content").html(L[i]),U.removeClass("hide")):U.addClass("hide")}))))}),C.length>0&&(c=C.children("em"),d=C.children(".iconfont")),S.click(function(){"none"===x.css("display")&&C.trigger("click"),o(),x.removeClass("hide").addClass("multi"),v(this).addClass("hide"),C.addClass("hide")}),C.click(function(){var e=v(this);e.hasClass("more")?(a(),c.text("更多"),d.html(w.down),_.val("").trigger("keyup")):(o(),c.text("收起"),d.html(w.up)),v(this).toggleClass("more")}),T.on("mouseenter","span",function(){var e=v(this),t=e.data("index");e.hasClass("hover")||setTimeout(function(){e.siblings("span.hover").removeClass("hover"),e.addClass("hover"),0===e.index()?k.removeClass("hide"):k.addClass("hide").filter("[data-index="+t+"]").removeClass("hide")},120)}),_.keyup(function(){var e=v(this).val().toLowerCase();""===e?k.removeClass("hide"):k.addClass("hide").filter('[data-key*="'+e+'"]').removeClass("hide")}),v("#brand-multi-ok").click(function(){var e=[];v(this).hasClass("dis")||(x.find("span.checked").each(function(){e.push(v(this).data("id"))}),s("brand",e.join(",")))}),v(".multi-select-cancel").click(function(){var e=v(this).closest(".multi");e.hasClass("brand-panel")&&(S.removeClass("hide"),C.trigger("click"),C.removeClass("hide"),_.val("").trigger("keyup"),a()),e.addClass("hide").removeClass("multi"),n(e.find(".checkbox.checked"),e.find(".attr.checked")),v(this).siblings(".multi-select-ok").addClass("dis")}),v(".check-container").on("click",".attr",function(){var e=v(this),t=e.find(".checkbox"),i=e.closest(".brand-panel, .senior-sub").find(".multi-select-ok");t.toggleClass("checked"),t.hasClass("checked")?t.html(b.checked):t.html(b.unchecked),t.hasClass("checked")||e.siblings(".attr").find(".checked").length>0?i.removeClass("dis"):i.addClass("dis")}),v(".brand, .senior").on("click",".attr > a",function(e){v(this).closest(".multi").length>0&&e.preventDefault()}),v(".filter-box").on("click","li.checked, a.checked",function(e){e.preventDefault()}),O.length>0&&(l=O.find(".limit"),u=l.filter(".min"),h=l.filter(".max"),f=O.find(".price-sure"),l.keyup(function(){var e,t,i,n=v.trim(v(this).val()),o=I.test(n);o||(e=parseInt(n,10),v(this).val(isNaN(e)?"":e)),t=v.trim(u.val()),i=v.trim(h.val()),""!==t||""!==i?f.removeClass("hide"):f.addClass("hide")}),f.click(function(){var e,t=v.trim(u.val()),i=v.trim(h.val());""!==t&&""!==i&&+t>+i&&(e=i,i=t,t=e),s("price",t+","+i)})),E.on("mouseenter",".attr",function(){var e=v(this),t=e.index();e.hasClass("no-sub")||(e.addClass("hover").siblings().removeClass("hover"),q.children(".senior-sub:eq("+t+")").removeClass("hide").siblings().addClass("hide"))}).on("mouseleave",".attr",function(){var e=v(this),t=e.index();e.hasClass("no-sub")||(m=t,p=setTimeout(function(){r()},100))}),v(".senior-sub").on("click",".multi-select",function(){v(this).closest(".senior-sub").addClass("multi")}).on("click",".multi-select-ok",function(){var e=v(this),t=e.closest(".senior-sub"),i=[];e.hasClass("dis")||(t.find("span.checked").each(function(){i.push(v(this).data("id"))}),s(t.data("attr"),i.join(",")))}).on("mouseenter",function(){clearTimeout(p)}).on("mouseleave",function(){r()}),function(){var e=v(".activity-entry").find("a").length,t=(1150-10*(e-1))/e;v(".activity-entry .entry-item").css("width",t)}()},function(e,t,i){var n=i(1),o=n("#count-per-page"),a=o.next("ul"),s=200;n(document).click(function(e){n(e.target).closest(".page-count").length>0||a&&a.slideUp(s)}),o.click(function(){"none"===a.css("display")?a.slideDown(s):a.slideUp(s)})},function(e,t,i){function n(){this.handlers={}}var o=i(1);n.prototype={constructor:n,addHandler:function(e,t){"undefined"==typeof this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(t)},fire:function(e){var t,i;if(e.target||(e.target=this),this.handlers[e.type]instanceof Array)for(t=this.handlers[e.type],i=0;i<t.length;i++)t[i](e)},removeHandler:function(e,t){var i,n;if(this.handlers[e]instanceof Array){for(i=this.handlers[e],n=0;n<i.length&&i[n]!==t;n++);i.splice(n,1)}}},e.exports=function(e,t){function i(e){var i,n=0,u=0,h=t,f=0,p="",m=0,v=0;switch(e.type){case"mouseenter":i=o(this),a=setTimeout(function(){s=!0,p=i.clone(),f=i.index()+1,n=f%h===0?h:f%h,u=Math.ceil(f/h),m=i.offset().left,v=l-(m+c),r.fire({type:"MouseEnter",target:i,targetWidth:c,targetHeight:d,targetX:n,targetY:u,rowWidth:h,activeIndex:f,targetDuplicate:p,offsetL:m,offsetR:v})},150);break;case"mouseleave":s||(a&&clearTimeout(a),r.fire({type:"MouseLeave"})),s=!1}}var a,s,r=new n,c=e.eq(0).width(),d=e.eq(0).height(),l=o(window).width();return e.bind({mouseenter:i,mouseleave:i}),r}},function(e,t,i){var n,o=i(1),a=i(2),s=i(4),r=i(16),c=o(".goods-container"),d=c.find(".good-info"),l=c.find(".good-item-wrapper"),u=c.find(".good-info-main"),h=c.find(".good-select-color"),f=o(".product-list-nav");
a(o("img.lazy")),t.init=function(e){function t(e,t){var i,n,o,a="",s=e.length,r=4,c=Math.ceil(s/r),d=0;for(i=0;i<c;i++)for(a+="<ul>",n=0;n<r&&(o=i*r+n,o!==s);n++)a+='<li><a target="_blank" href="'+e[i*r+n].url+t+'"><img src="'+e[i*r+n].src+'" data-cover="'+e[i*r+n].coverImg+'" /></a></li>',n===r-1&&(a+="</ul>",d++);return d<c&&(a+="</ul>"),{colorListStr:a,ulNum:c}}function i(){u.html(""),h.html(""),l.css({display:"none"})}n=null,d.unbind(),n=r(d,e),n.addHandler("MouseEnter",function(e){var n,a,s,r,d,f,p,m,v,g,b,w,y=10,_=35,x=e.target.attr("data-from")||"";s=[],e.target.find(".hideList > li").each(function(){a=o(this).data(),a.coverImg=a.src,s.push(a)}),n=t(s,x),i(),d=n.colorListStr,r=n.ulNum,u.append(e.targetDuplicate),h.append(o(d)),g=l.css("paddingLeft"),b=l.css("paddingTop"),w=c.css("paddingTop"),f=10+65*r+e.targetWidth,m=(e.targetX-1)*(e.targetWidth+y)-(parseInt(g,10)+1),v=(e.targetY-1)*(e.targetHeight+_)+parseInt(w,10)-(parseInt(b,10)+1),p=e.offsetR-(65*r+25),p<=0&&(m=m+p-25),l.css({width:f,left:m,top:v,display:"inline-block"}),s[0]&&s[0].src&&u.find(".good-thumb img").attr("src",s[0].src)}),n.addHandler("MouseLeave",function(){i()}),l.mouseleave(function(){i()})},o(document).on("mouseenter",".good-select-color li",function(){var e=o(this).find("img").attr("data-cover"),t=o(this).closest(".good-item-wrapper").find(".good-detail-img img");t.attr("src",e)}),f.find("h3").click(function(){var e=o(this).closest(".product-list-nav");e.hasClass("active")?e.find(".sort-child-list").stop(!0,!0).slideUp():e.find(".sort-child-list").stop(!0,!0).slideDown(),e.toggleClass("active")}),function(){var e,t=o("#brand-card"),i=o("#brand-favor");t.length&&o.ajax({type:"POST",url:"/product/index/getNodeContent",data:{node:t.data("node")}}).then(function(e){t.html(e)}),i.length&&(e=o("#pic-link-tpl").html(),o.ajax({type:"POST",url:"/product/index/getAdnav",data:{brandId:i.data("id")}}).then(function(t){t&&o("#brand-ad").html(s.compile(e)({picLink:t}))}))}()},,,,,,,,,,,,,,,,,,,,function(e,t,i){var n,o,a=i(12),s=i(1),r=s(".sale-list-banner"),c=r.find("li"),d=0,l="",u="",h=!0;for(n=0;n<c.length;n++)l+=0===n?'<span class="active"></span>':"<span></span>";u='<div class="sale-list-pagation"><div class="slide-pagination-inner"><div class="slide-shade"></div><div>'+l+"</div></div></div>",c.length>1&&r.append(s(u)),o=new a({length:c.length,loop:!0,auto:!0,timeout:2,index:0}),c.length>1&&o.on("change",function(e){h&&(h=!1,d++,s(".sale-list-pagation").find("span").removeClass("active"),c.eq(e.from).animate({opacity:0},300),c.eq(e.to).css({zIndex:d}).animate({opacity:1},300,function(){h=!0}),s(".sale-list-pagation").find("span").eq(e.to).addClass("active"))}),r.hover(function(){h&&o.pause()},function(){o.resume()}),s(".sale-list-pagation span").click(function(){var e=s(this).index();h&&o.go(e)}),o.init()}]);
\ No newline at end of file
... ...