KISSY.add("list/mods/crumb/crumb",function(e,t,a,n,i,r){var s=document,o=n.ie==6,c="#J_CrumbSlide",l="#J_CrumbSlideCon",u="#J_CrumbSlidePrev",d="#J_CrumbSlideNext",f="#J_CrumbSearchForm",p="#J_CrumbSearchInuput",h="#J_CrumbSearchBtn",m="crumbDrop-hover",g=".j_CrumbDrop",v=".j_CrumbDropHd",_=".j_CrumbDropBd",b=["\u5728\u672c\u5e97\u641c\u7d22","\u5728\u5f53\u524d\u6761\u4ef6\u4e0b\u641c\u7d22"],S=".crumbSearch",w=".crumbAttr",y=".crumbArrow",C,x,T,I,A,k,B,L;function D(){if(!(this instanceof D)){return new D}this._init()}e.augment(D,a.Target,{_init:function(){if(!x)return;var a=this;a.searchPrompt=(t.attr(A,"data-type")||"")==="s"?b[0]:b[1];if(e.trim(A.value)===""){A.value=a.searchPrompt}a._slideViewWidth=t.innerWidth(C);a._slideContentWidth=0;t.query("li",x).each(function(e){a._slideContentWidth+=t.outerWidth(e,true)});a._relocate(true);a._bindEvent()},_bindEvent:function(){var n=this;a.on(k,"click",function(e){e.stopPropagation()});var i=n.searchPrompt,r=t.val(A);a.on(A,"focus",function(){t.addClass([this,this.parentNode],"focus");if(t.val(this)==i){t.val(this,"")}else{this.select()}});a.on(A,"blur",function(){t.removeClass([this,this.parentNode],"focus");t.val(this)===""&&t.val(this,i)});a.on(B,"submit",function(a){var n=e.trim(t.val(A));if(n==i){t.val(A,"")}else if(n==r){a.halt()}});a.on(s.body,"click",function(e){var a=t.val(A),n=e.target;if(a&&a!=r&&n.id!=k.id&&n.id!=A.id){t.val(A,r)}});a.on([T,I],"click",function(e){e.halt();n._relocate(false,true)});LIST.msg.fire("ie6&PadHover",{classname:["crumbAttr","crumbSearch-btn"]});LIST.msg.fire("ie6&PadHover",{id:"mallCate",hoverCls:"hover"});LIST.msg.on("viewchange",function(){n._slideViewWidth=t.innerWidth(C);n._relocate()});setTimeout(function(){n._dropdown()},0)},_setBtnsStatus:function(){if(!T||!I){return}var e=this;T.style.visibility=I.style.visibility="hidden";if(e._slideContentWidth<=e._slideViewWidth){return}var a=parseInt(t.css(x,"left"));a!==0&&(T.style.visibility="visible");a===0&&(I.style.visibility="visible")},_relocate:function(e,a,n){var r=this,s=r.anim,o=parseInt(t.css(x,"left")),c=r._slideContentWidth-r._slideViewWidth,l=(a?o==0?-c:0:Math.min(-c,0))+(n||0),u=!!(o==l);if(u){r._setBtnsStatus();return}if(e){t.css(x,{left:l});r._setBtnsStatus();return}var d=(d=Math.abs(l/400))==0?.1:d;s&&s.stop();r.anim=i(x,{left:l},d,"easeOutStrong",function(){r._setBtnsStatus()});r.anim.run()},_dropdown:function(){var e=this,i=null,s=function(a,n){var i=t.outerWidth(a),r=t.innerWidth(n),s=t.offset(a).left,o=t.offset(n).left;var c=0;if(i<=r){c=Math.max(o-s,0)||Math.min(o+r-(s+i),0)}else{}c&&e._relocate(false,false,c)};t.query(g,x).each(function(c){var l=t.get(v,c),u=t.get(_,c),d=function(e){var a={href:"javascript:;",title:l.text||l.textContent||l.innerText,atp:"0,cat-dropdown,,,,"+(l.search.match(/\bcat=\d+/)||[""])[0]+",rightnav,"},n="";e.unshift(a);for(var i=0,r=e.length;i");n+="
  • '+e[i].title+"
  • ";i%6==5&&(n+="")}t.html(u,n)},f=function(a){if(c.hover){t.addClass(c,m);s(l,C);var n=u.step||(u.step=t.outerWidth(t.get("ul",u))),r=t.offset(C).left+e._slideViewWidth-t.offset(l).left;a=Math.min(Math.floor(r/n),a);u._initWidth=a*n||u._initWidth||r;t.css(u,"width",u._initWidth);i=c}},p=function(e){e.hover=false;t.removeClass(e,m);i=null},h="/ajax/getAllBrotherCats.htm"+l.search,g=0,b=function(){clearTimeout(g)};if(u){n.ie==7&&l.setAttribute("hideFocus","true");a.on(c,"mouseenter",function(e){b();if(!c.hover){c.hover=true;if(!!u.rendered){f()}else{r.get(h,{t:o?+new Date:0},function(e){if(e&&e.length){d(e);f(Math.ceil(e.length/6))}else{t.hide(u);f()}u.rendered=true},"json")}}else{}e.preventDefault()});a.on(c,"mouseleave",function(){g=setTimeout(function(){p(c)},300)})}})},_crumbAnim:function(){if(this.animed)return;var e=false,a=0,n=t.query("li",x),r=t.get(w);n.each(function(n){a+=n.offsetWidth;function i(){if(n.className.indexOf("crumbSearch")===-1&&e){t.hide(n);t.css(n,"opacity","0")}}r?n.className.indexOf("crumbAttr")>-1&&(t.hide(n),t.css(n,"opacity","0")):i();e=true});t.hide(t.prev(L));t.css(L,{position:"absolute",left:L.offsetLeft,visibility:"visible"});i(S,{left:a-L.offsetWidth+(r?10:0)},.6,"easeNone",function(){n.each(function(e){t.show(e);t.css([t.get("a",e),t.get(y,e)],{visibility:"visible"});i(e,{opacity:"1"},1,"easeNone",undefined).run()})}).run();this.animed=true}});return{init:function(){this._initNodes();new D},_initNodes:function(){C=t.get(c),x=t.get(l),T=t.get(u),I=t.get(d),A=t.get(p),k=t.get(h),B=t.get(f),L=t.get(S)}}},{requires:["dom","event","ua","anim","ajax"]});KISSY.add("list/mods/minisite/minisite.v6",function(e,t,a){var n=window,i=document;return{init:function(){var a=t.get("#J_Minisite");if(a&&t.hasClass(a,"mv6")){(function(){var n=t.get(".j_MinisitePortal",a);n&&e.use("switchable",function(e,t){var a=new t.Carousel(n,{effect:"scrollx",easing:"easeOutStrong",steps:1,hasTriggers:false,circular:false,prevBtnCls:"j_MinisitePrev",nextBtnCls:"j_MinisiteNext",disableBtnCls:"mp-btn-disable",switchTo:0})})})();e.use("mui/brandbar,anim",function(e,a,r){var s=t.get(".j_CollectBrandNum");function o(e){if(!s)return;var a=t.width(s);var n=t.offset(s);var o=t.create(""+(e?"-":"+")+"1");t.css(o,{position:"absolute",left:n.left+a,top:n.top,fontSize:"14px",zIndex:"1000003"});t.append(o,i.body);new r(o,{top:n.top-10,opacity:0},.3,"easeNone",function(){t.remove(o)}).run()}var c=0;a.on("success",function(e){var a=e.flyNode||t.get(".j_CollectBrand"),i=t.hasClass(a,"ui-brand-collected");o(i);if(!i){var r=new Image,s="_img_"+Math.random();n[s]=r;r.onload=r.onerror=function(){n[s]=null};r.src="//gm.mmstat.com/tmallbrand.1002.15?times="+ ++c+"&t="+ +new Date;r=null}})})}}}},{requires:["dom","ajax"]});KISSY.add("list/mods/attr/attr",function(S,D,E,UA,IO){var isIE6=UA.ie===6;var FORM="#J_NavAttrsForm",BRAND=".j_Brand",CATE=".j_Cate",PROP=".j_Prop",ATTR=".attr",MORE_BTN=".j_More",MORE_ATTRS_BTN=".j_MoreAttrs",MORE_ATTRS_CONT=".j_MoreAttrsCont",MULTIPLE_BTN=".j_Multiple",SUBMIT_BTN=".j_SubmitBtn",CANCLE_BTN=".j_CancelBtn",BRAND_SEARCH=".j_BrandSearch",DISABLE_BTN_CLS="ui-btn-disable",VAL_SELECTED_CLS="av-selected",MINI_ATTR_CLS="miniAttr",MINI_ATTRS_CLS="miniAttrs",UL_EXPAND_CLS="av-expand",UL_COLLAPSE_CLS="av-collapse",UL_SCROLL_CLS="av-scroll",FOR_MULTIPLE_CLS="forMultiple",FOR_MULTIPLE_BTN_CLS="forMultipleBtn",MULTIPLE_ROW_CLS="multipleRow",MORE_ATTRS_DROP_CLS="attrExtra-more-drop",SHOW_LOGO_CLS="showLogo",ATTRS_TRIGGER="#J_AttrsTrigger",ATTRS=".j_NavAttrs";var form,brands,cates,props,moreAttrsBtn,moreAttrsCont;var util={extend:function(e,t,a,n,i){if(a in t){if(i){e[a]=function(){n.apply(this,arguments);t[a].apply(this,arguments)}}else{e[a]=function(){t[a].apply(this,arguments);n.apply(this,arguments)}}}},bindPlaceholder:function(e){var t=null,a="#BFBFBF";if(S.isString(e)){t=D.query(e)}else if(S.isObject(e)){t=[e]}var n=["text","search","url","tel","email","password"].join(",");S.each(t,function(e){if(n.indexOf(e.type)!=-1){if(D.hasAttr(e,"placeholder")){if(S.trim(D.val(e))==""||S.trim(D.val(e))==D.attr(e,"placeholder")){D.css(e,"color",a);D.val(e,D.attr(e,"placeholder"))}E.on(e,"focus",function(){D.css(e,"color","");if(S.trim(D.val(e))==D.attr(e,"placeholder")){D.val(e," ")}});E.on(e,"blur",function(){if(S.trim(D.val(e))==""){D.css(e,"color",a);D.val(e,D.attr(e,"placeholder"))}})}}})},getCustomKey:function(e,t){if(!e||e.tagName!="A")return null;if(e._map&&t in e._map)return e._map[t];var a=new RegExp("(\\?|\\&)"+t+"=([^&#]*)(\\&|\\#|$)","g"),n=e.href||e.link||"",i,r;i=(r=a.exec(n))?r[2]:D.attr(e,"data-"+t)||"";e._map=e._map||{};e._map[t]=i;return e._map[t]},fixIE6Hover:function(e,t){if(isIE6){if(!this._initedHoverCallback){S.mix(this,E.Target);this._selectorRegs={cls:/^[.][_a-z]+[-_0-9a-z]*$/i,cls_tag:/^([.][_a-z]+[-_0-9a-z]*)( )+([a-z]+)$/i,id_tag:/^[#][_a-z]+[-_0-9a-z]*( )+[a-z]+$/i};this._hoverEventFns={add:function(e,t){var a=e.replace(/[.#]/g,"")+"-hover";E.on(e,"mouseenter",function(e){D.addClass(this,a);t&&t.call(this,e)});E.on(e,"mouseleave",function(e){D.removeClass(this,a);t&&t.call(this,e)})},delegate:function(e,t,a){var n=t.replace(/[.#]/g,"")+"-hover";E.delegate(e,"mouseenter",t,function(e){D.addClass(e.currentTarget,n);a&&a.call(e.currentTarget,e)});E.delegate(e,"mouseleave",t,function(e){D.removeClass(e.currentTarget,n);a&&a.call(e.currentTarget,e)})}};var a=this,n=function(e,t){var n=a._selectorRegs,i=a._hoverEventFns,r;if(n.cls.test(e)){i.add(e,t);S.log('mod:Attr::fixIE6Hover succeeded for "'+e+'"!')}else if(n.cls_tag.test(e)){r=e.match(n.cls_tag);i.delegate(r[1],r[3],t);S.log('mod:Attr::fixIE6Hover succeeded for "'+e+'"!')}else if(n.id_tag.test(e)){r=e.match(n.id_tag);i.delegate(r[1],r[3],t);S.log('mod:Attr::fixIE6Hover succeeded for "'+e+'"!')}else{S.log('mod:Attr::fixIE6Hover failed for "'+e+'"!',"error")}};this.on("ie6Hover",function(e){var t=e.selector,a=e.callback;if(S.isString(t)){n(t,a)}else if(S.isArray(t)){S.each(t,function(e){n(e,a)})}});this._initedHoverCallback=true}this.fire("ie6Hover",{selector:e,callback:t&&S.isFunction(t)?t:null})}},reviseImg:function(e,t,a,n){if(!e){return e}else{if(e.indexOf("taobaocdn")===-1){e=e.replace(/([^\/]*\/)*i\d\//,"");var i=0;for(var r=0,s=e.length;r=t*n,c=D.hasClass(e.parentNode,MINI_ATTR_CLS),l=c&&e.multipleBtn;if(i&&r&&(s||o||l)){if(D.hasClass(e.ul,UL_EXPAND_CLS)){moreBtn.open(e)}moreBtn.show(e);e.moreBtn.shouldShow=true;c&&D.addClass(e.ul,MULTIPLE_ROW_CLS)}else{moreBtn.hide(e);e.moreBtn.shouldShow=false}}else if(D.hasClass(e.ul,UL_COLLAPSE_CLS)||D.hasClass(e.ul,UL_EXPAND_CLS)){D.style(e.ul,"height","auto")}},close:function(e){if(e.moreBtn){D.addClass(e.moreBtn,"ui-more-drop-l");D.removeClass(e.moreBtn,"ui-more-expand-l");var t=D.html(e.moreBtn);t=t.replace("\u6536\u8d77","\u66f4\u591a");t=t.replace("expand","drop");D.html(e.moreBtn,t)}},open:function(e){if(e.moreBtn){D.addClass(e.moreBtn,"ui-more-expand-l");D.removeClass(e.moreBtn,"ui-more-drop-l");var t=D.html(e.moreBtn);t=t.replace("\u66f4\u591a","\u6536\u8d77");t=t.replace("drop","expand");D.html(e.moreBtn,t)}},show:function(e){e.moreBtn&&D.show(e.moreBtn)},hide:function(e){e.moreBtn&&D.hide(e.moreBtn)}};var multipleBtn={init:function(e){D.hasClass(e.parentNode,MINI_ATTR_CLS)&&e.multipleBtn&&D.addClass(e.ul,FOR_MULTIPLE_BTN_CLS)},show:function(e){if(e.multipleBtn){D.show(e.multipleBtn);e.multipleBtn.isHidden=false}},hide:function(e){if(e.multipleBtn){D.hide(e.multipleBtn);e.multipleBtn.isHidden=true}}};var formBtns={show:function(e){e.submitBtn&&D.show(e.submitBtn.parentNode)},hide:function(e){e.submitBtn&&D.hide(e.submitBtn.parentNode)}};var list={collapse:function(e){D.replaceClass(e.ul,UL_EXPAND_CLS,UL_COLLAPSE_CLS);D.scrollTop(e.ul,0)},expand:function(e){D.replaceClass(e.ul,UL_COLLAPSE_CLS,UL_EXPAND_CLS)},openMultiple:function(e){this.expand(e);multipleBtn.hide(e);moreBtn.hide(e);formBtns.show(e);D.addClass(e,FOR_MULTIPLE_CLS);e.openMultiple=true},close:function(e){this.collapse(e);this._clearValSelectedCls(e);this._disableSubmitBtn(e);formBtns.hide(e);D.removeClass(e,FOR_MULTIPLE_CLS);e.openMultiple=false;multipleBtn.show(e);if(e.moreBtn&&e.moreBtn.shouldShow){moreBtn.close(e);moreBtn.show(e)}},closeAll:function(e){S.each(e,function(e){this.close(e)},this)},_clearValSelectedCls:function(e){S.each(e.valueAnchors,function(e){D.removeClass(e.parentNode,VAL_SELECTED_CLS)})},_disableSubmitBtn:function(e){if(e.submitBtn&&!D.hasClass(e.submitBtn,DISABLE_BTN_CLS)){D.addClass(e.submitBtn,DISABLE_BTN_CLS);e.valueAnchors.selectedCount=0}}};var ajax=S.merge(E.Target,{initLogos:function(e,t){var a=[],n=/(\?|&)brand=(\d*)\b/i,i=isIE6?+new Date:0;S.each(t.valueAnchors,function(e){var t=e.search.match(n);a[a.length]=e._brandId=D.attr(e,"data-id")||t&&t.length==3?t[2]:""});var r=t.logoUrl||(t.logoUrl=D.attr(D.get("."+SHOW_LOGO_CLS,t),"data-url"));r&&IO.get(r,r.indexOf("brand_ids=")!==-1?{t:i}:{brand_ids:a.join(","),t:i},function(e){S.each(t.valueAnchors,function(t){var a=util.reviseImg(e[t._brandId]);a&&D.prepend(D.create(''+(t.text||t.innerText)+''),t)})},"json")},initBrandSearch:function(e,t){t.brandSearch=D.get(BRAND_SEARCH,t);if(!t.brandSearch)return;var a=null,n=D.get("input",t.brandSearch);util.bindPlaceholder(n);E.on(t.brandSearch,"keyup",function(){var i=D.val(n);if(S.trim(i)!==S.trim(n.lastVal)){clearTimeout(a);a=setTimeout(function(){ajax.searchAndRender(e,t,i)},200);n.lastVal=i}})},expandBrand:function(e,t){D.show(t.brandSearch);if(t.ajaxData){this.replaceUlHtml(t,t.ajaxData);e.bindEventForValue(t)}else{!t.ulCopy&&(t.ulCopy=D.clone(t.ul,true,true,true));this.searchAndRender(e,t)}},collapseBrand:function(e,t){if(t.brandSearch){var a=D.get("input",t.brandSearch);D.val(a,"");E.fire(a,"blur");D.hide(t.brandSearch)}this.replaceUlHtml(t,"");D.prepend(D.children(D.clone(t.ulCopy,true,true,true)),t.ul)},searchAndRender:function(e,t,a,n){var i=this;D.style(t.ul,"visibility","hidden");if(!i._initedSearchCallBack){i.on("render",function(e){var t=e.result,a=e.key,n=e.attr;i.replaceUlHtml(n,t);this.bindEventForValue(n);D.style(n.ul,"visibility","visible");!S.trim(a)&&(n.ajaxData=t)},e);i._initedSearchCallBack=true}var r=t.searchUrl||(t.searchUrl=D.attr(D.get(MORE_BTN,t),"data-url"));r&&i._search(t,r,a,n)},_search:function(e,t,a,n){var i=this;t&&IO.get(t,S.trim(a)?{brandkey:encodeURIComponent(S.trim(a)),t:isIE6?+new Date:0}:{t:isIE6?+new Date:0},function(t){n&&n();i.fire("render",{result:i.render(t),key:a,attr:e})})},_searchTip:"\u62b1\u6b49\uff0c\u6ca1\u6709\u627e\u5230\u76f8\u5173\u54c1\u724c",render:function(data){data=eval(data);var html="";for(var i=0,l=data.length;i';if(data[i].img!==undefined&&data[i].img!==""){html+=''}html+=data[i].title+""}html=html?html.replace(/title=(["'])[^"']*\1/g,function(e){return e.replace(/<\/?strong>/g,"")}):"";if(data.length==0){html=this._searchTip}return html},replaceUlHtml:function(e,t){this.detachEventsForValue(e);D.html(e.ul,t);this.correctStyle(e)},appendUlHtml:function(e,t){this.detachEventsForValue(e);D.html(e.ul,D.html(D.clone(e.ulCopy,true,true,true))+t);this.correctStyle(e)},detachEventsForValue:function(e){S.each(e.valueAnchors,function(e){E.detach(e,"click")})},correctStyle:function(e){D.removeClass(e.ul,UL_SCROLL_CLS);if(isIE6&&typeof e.ul.initHeight!=="undefined"){D.style(e.ul,"height",e.ul.initHeight)}e.valueAnchors=D.query("a",e.ul);if(e.valueAnchors.length==0)return;var t=e.valueAnchors[0].parentNode,a=D.outerWidth(t,true),n=Math.floor(e.ul.offsetWidth/a),i=e.valueAnchors.length/n;if(i>5){if(isIE6){e.ul.initHeight=D.style(e.ul,"height");D.style(e.ul,"height","")}D.addClass(e.ul,UL_SCROLL_CLS)}}});var Base={init:function(e){this.scope&&S.each(this.scope,function(t){t.ul=D.get("ul",t);t.valueAnchors=D.query("a",t.ul);t.multipleBtn=D.get(MULTIPLE_BTN,t);t.moreBtn=D.get(MORE_BTN,t);t.submitBtn=D.get(SUBMIT_BTN,t);t.cancelBtn=D.get(CANCLE_BTN,t);setTimeout(function(){moreBtn.init(t)},0);setTimeout(function(){multipleBtn.init(t)},0);var a=this;setTimeout(function(){a._bindEvents(t)},0);e&&S.isFunction(e)&&e.call(this,t)},this)},_bindEvents:function(e){this.bindEventForMultipleBtn(e);this.bindEventForMoreBtn(e);this.bindEventForValue(e);this.bindEventForCancelBtn(e);this.bindEventForSubmitBtn(e)},bindEventForMultipleBtn:function(e){e.multipleBtn&&E.on(e.multipleBtn,"click",function(){list.closeAll(this.scope);list.openMultiple(e)},this)},bindEventForMoreBtn:function(e){e.moreBtn&&E.on(e.moreBtn,"click",function(){if(D.hasClass(e.ul,UL_COLLAPSE_CLS)){list.expand(e);moreBtn.open(e)}else if(D.hasClass(e.ul,UL_EXPAND_CLS)){list.collapse(e);moreBtn.close(e)}else{}});if(e.moreBtn&&D.css(e.moreBtn,"display")!="none"&&D.css(e.moreBtn,"visibility")!="hidden"){if(D.hasClass(e.moreBtn,"ui-more-expand-l")&&D.hasClass(e,"j_Brand")){list.expand(e);moreBtn.open(e);ajax.expandBrand(this,e)}}},bindEventForValue:function(e){e.valueAnchors.selectedCount=0;e.submitBtn&&D.addClass(e.submitBtn,DISABLE_BTN_CLS);S.each(e.valueAnchors,function(t){E.on(t,"click",function(){if(e.multipleBtn&&e.multipleBtn.isHidden&&D.hasClass(e.ul,UL_EXPAND_CLS)){if(D.html(t).indexOf("")==-1){D.html(t,D.html(t)+"")}if(!D.hasClass(t.parentNode,VAL_SELECTED_CLS)){D.addClass(t.parentNode,VAL_SELECTED_CLS);e.valueAnchors.selectedCount++}else{D.removeClass(t.parentNode,VAL_SELECTED_CLS);e.valueAnchors.selectedCount--}if(e.submitBtn){if(e.valueAnchors.selectedCount>0){D.removeClass(e.submitBtn,DISABLE_BTN_CLS)}else if(!D.hasClass(e.submitBtn,DISABLE_BTN_CLS)){D.addClass(e.submitBtn,DISABLE_BTN_CLS)}}return false}return true})})},submit:function(e){},bindEventForSubmitBtn:function(e){e.submitBtn&&E.on(e.submitBtn,"click",function(){if(!D.hasClass(e.submitBtn,DISABLE_BTN_CLS)){this.submit(e)}return false},this)},bindEventForCancelBtn:function(e){e.cancelBtn&&E.on(e.cancelBtn,"click",function(){list.close(e)})}};function Handler(e){if(!e)return;!S.isArray(e)&&(e=[e]);this.scope=e}S.augment(Handler,Base);var bindEventForMoreAttrsBtn=function(){E.on(moreAttrsBtn,"click",function(){var e=[],t;if(moreAttrsCont.style.display=="none"){D.addClass(moreAttrsBtn,MORE_ATTRS_DROP_CLS);D.html(moreAttrsBtn,D.html(moreAttrsBtn).replace("\u66f4\u591a\u9009\u9879","\u7cbe\u7b80\u9009\u9879"));D.show(moreAttrsCont);e=e.concat(D.query(ATTR,moreAttrsCont));t=D.query("."+MINI_ATTRS_CLS);S.each(t,function(t){D.replaceClass(t,MINI_ATTRS_CLS,"_"+MINI_ATTRS_CLS);S.each(D.query("."+MINI_ATTR_CLS,t),function(t){D.replaceClass(t,MINI_ATTR_CLS,"_"+MINI_ATTR_CLS);e[e.length]=D.get(ATTR,t)})})}else{D.removeClass(moreAttrsBtn,MORE_ATTRS_DROP_CLS);D.html(moreAttrsBtn,D.html(moreAttrsBtn).replace("\u7cbe\u7b80\u9009\u9879","\u66f4\u591a\u9009\u9879"));D.hide(moreAttrsCont);t=D.query("._"+MINI_ATTRS_CLS);S.each(t,function(t){D.replaceClass(t,"_"+MINI_ATTRS_CLS,MINI_ATTRS_CLS);S.each(D.query("._"+MINI_ATTR_CLS,t),function(t){D.replaceClass(t,"_"+MINI_ATTR_CLS,MINI_ATTR_CLS);e[e.length]=D.get(ATTR,t)})});list.closeAll(e)}S.each(e,function(e){moreBtn.init(e)})})};return{init:function(){form=D.get(FORM),brands=D.query(BRAND,form),cates=D.query(CATE),props=D.query(PROP,form),moreAttrsBtn=D.get(MORE_ATTRS_BTN,form),moreAttrsCont=D.get(MORE_ATTRS_CONT,form);UA.ie==7&&D.query(ATTR).each(function(e){D.query("a",e).each(function(e){e.setAttribute("hideFocus","true")})});S.each(cates,function(e){e.minDiffRow=2});var e=new Handler(cates);e.init();if(!form)return;bindEventForMoreAttrsBtn();var t=new Handler(props);t.submit=function(e){var t="",a=[];S.each(e.valueAnchors,function(e){if(D.hasClass(e.parentNode,VAL_SELECTED_CLS)){var n=D.attr(e,"data-pv"),i=(n||"").split(":");t=i[0];i[1]&&a.push(i[1])}});var n=t==""?"":t+":"+a.join(",");var i=D.val(form.prop);D.val(form.prop,i==""?n:i+";"+n);form.submit()};t.init();var a=new Handler(brands);util.extend(a,t,"bindEventForMoreBtn",function(e){e.searchUrl=e.searchUrl||D.attr(D.get(MORE_BTN,e),"data-url");e.searchUrl&&e.moreBtn&&E.on(e.moreBtn,"click",function(){if(D.hasClass(e.ul,UL_EXPAND_CLS)){ajax.expandBrand(this,e)}else{ajax.collapseBrand(this,e)}},this)});util.extend(a,t,"bindEventForMultipleBtn",function(e){e.searchUrl=e.searchUrl||D.attr(D.get(MORE_BTN,e),"data-url");e.searchUrl&&e.multipleBtn&&E.on(e.multipleBtn,"click",function(){ajax.expandBrand(this,e)},this)});util.extend(a,t,"bindEventForCancelBtn",function(e){e.searchUrl=e.searchUrl||D.attr(D.get(MORE_BTN,e),"data-url");e.searchUrl&&E.on(e.cancelBtn,"click",function(){ajax.collapseBrand(this,e)},this)},true);a.submit=function(e){var t=[];S.each(e.valueAnchors,function(e){if(D.hasClass(e.parentNode,VAL_SELECTED_CLS)){t.push(util.getCustomKey(e,"brand"))}});D.val(form.brand,t.join(","));form.submit()};if(brands){S.each(brands,function(e){e.minDiffRow=2;ajax.initBrandSearch(a,e)})}a.init(function(e){});util.fixIE6Hover(["."+MINI_ATTR_CLS,BRAND+" li"]);if(D.get("."+MINI_ATTRS_CLS,form)){var n=D.query("."+MINI_ATTR_CLS,form);S.each(n,function(e){E.on(e,"mouseleave",function(){var t=D.get("."+FOR_MULTIPLE_CLS,e);if(t){D.style(e,"zIndex",11)}else{D.style(e,"zIndex","")}})})}var i=function(){var e=[].concat(cates,props);if(brands)e.push(brands);S.each(e,function(e){moreBtn.init(e)})};LIST.msg.on("viewchange",i);E.on(ATTRS_TRIGGER,"click",function(e){var t=this;var a=D.get(ATTRS,form);D.toggleClass(t,"attrsTrigger-expand");t.className.indexOf("attrsTrigger-expand")===-1?D.hide(a):D.show(a);i()});var r="height="+D.outerHeight(form),s=__header_atpanel_param.match(/\brn=\w+\b/),o=r+"&"+s;(window.goldlog_queue||(window.goldlog_queue=[])).push({action:"goldlog.record",arguments:["/msearch.1.11","tmallsearch",o,"H1449172242"]})}}},{requires:["dom","event","ua","ajax"]});KISSY.add("list/mods/related/related",function(e,t,a){function n(){}e.augment(n,{init:function(){this.initView()},initView:function(){var t,n,i;n=a.get("#J_RelSearch");i=a.get("p",n);if(!i){return}t=['
      '];e.each(a.query("a",n),function(e){t.push('
    • '+a.text(e)+"")});t.push("
    ");a.append(a.create(t.join("")),"#mallSearch")}},t);return new n},{requires:["base","dom"]});KISSY.add("list/mods/smc/smc-ack",function(e,t,a,n,i){var r=n.ie==6;var s=".product[data-id]";var o,c;var l="http://smc.tmall.com/doGetSmcService.htm";function u(){if(!(this instanceof u)){return new u}this._init()}e.augment(u,a.Target,{_init:function(){if(!(o&&c&&!c._inited&&l))return;this._other();this._request()},_request:function(){var a=this;e.ready(function(){var n=t.get(".j_AuctionCK",c);if(n){var u=t.get(s,o),d=t.attr(u,"data-id"),f=t.attr(n,"data-cat"),p=(document.getElementsByName("area_code")[0]||{value:""}).value;i({dataType:"jsonp",url:l,data:{itemIds:d,catId:f,areaId:p,type:1,t:r?+new Date:0},jsonp:"callback",jsonpCallback:"jsonp_smc_ck_0",success:function(t){e.log(t);a._render(t,n);c._inited=true}})}})},_render:function(e,a){if(e){var n=t.attr(a,"data-auction"),i=e[n];if(i){var r=''+i.title+"";for(var s=0,o=i.services.length,c;s'+c.logo+""+c.name+(c.desc?''+''+c.desc+"":"")+""}t.css(a,{height:"18px",marginTop:"5px",position:"relative",top:"-7px",cursor:"default"});t.html(a,r+t.html(a))}}},_other:function(){a.delegate(c,"click","input",function(e){var t=e.currentTarget.type=="checkbox"?e.currentTarget:null;if(!t)return;c.submit()})}});return{init:function(){this._initNodes();new u},_initNodes:function(){o=t.get("#J_ItemList");c=t.get("#J_AuctionCKForm")}}},{requires:["dom","event","ua","ajax"]});KISSY.add("list/mods/filter/filter",function(e,t,a,n,i){var r=window,s=n.ie==6,o=".main",c="#J_Filter",l="#J_FForm",u="filter-fix",d="#J_FPrice",f="#J_FPEnter",p="#J_FPCancel",h=".j_FPInput",m="fPrice-hover",g="#J_FOriginArea",v="#J_FOAInput",_="#J_FDestArea",b="#J_DestAreaForm",w="fA-text",S="fA-list",y="fAll-cities",C="fAl-cur",x="fAll-cities-cur",T=new i,I="#J_FMenu",A=".j_FMcExpand",k=".j_FTip",B=".j_FTCat",D=".j_FTX",L="#J_FDisctOpts",j="fDO-cur",E="fDO-disable",J,q,N,R,P,M,O,F,H,z,U,K,W,Y,V;function $(){if(!(this instanceof $)){return new $}this.isPriceFocus=false;this._init()}e.augment($,a.Target,{_init:function(){if(!q)return;var e=this;LIST.msg.fire("ie6&PadHover",{classname:["fArea","fRange"]});this._destAreaInit();this._menuInit();setTimeout(function(){e._priceEvent();e._originAreaEvent();e._destAreaEvent();e._menuEvent();e._fix()},0);this._tipCtrl(true);this._disctOpts()},_priceEvent:function(){if(!R)return;var n=this,i=null;a.on(P,"blur",function(){i=setTimeout(function(){n.isPriceFocus=false;t.removeClass(R,m)},300)});a.on(P,"focus",function(){clearTimeout(i);n.isPriceFocus=true;t.addClass(R,m)});a.on(P,"keyup",function(){var e=this.value;if(!/^\d+\.?\d*$/.test(e)){e=Math.abs(parseFloat(e));this.value=isNaN(e)?"":e}});a.on(M,"click",function(t){N.submit();e.log(N);t.preventDefault()});a.on(O,"click",function(e){t.val(P,"");P[0].focus();e.preventDefault()});a.on(q,"keypress",function(e){if(e.keyCode==13&&n.isPriceFocus){N.submit()}})},_originAreaEvent:function(){if(!H)return;var e=t.attr(H,"data-val")||"";if(H.value==""){H.value=e}a.on(H,"focus",function(){if(H.value==e){H.value=""}});a.on(H,"blur",function(){if(H.value==""){H.value=e}});a.on(t.query("a",F),"click",function(e){e.preventDefault();var a=t.attr(this,"data-val")||t.html(this);H.value=a=="\u6240\u6709\u5730\u533a"?"":a;z.submit()});a.on(U,"click",function(){if(H.value==e){H.value=""}})},_updateDestAreaBoxHtml:function(e,a,n){var i=['
      '];for(var r in a){i[i.length]="'+a[r]+""}i[i.length]="
    ";t.html(e,i.join(""))},_data:{},_destAreaInit:function(){if(!K)return;var e=t.get("."+S,K),a=t.get("."+w,K),n=t.query("a",e).slice(1),i=t.val(document.getElementsByName("area_code")[0]),r=T[i],s=-1,o=n.length,c,l;if(!i)return;if(!r){var u=i.replace(/([\d]{2})\d+/g,"$10000"),d=T[u],f=d&&d.length==2?d[1]:null,p;if(f){while(++s'),c)}t.addClass(l,C);t.addClass(p,x);t.html(a,f[i]);this._data.dLastBox=p;this._data.dLastLi=l;this._data.lastChildLi=t.get("."+C,p);break}}}}else{while(++s'),n)}t.addClass(u,x);s=u}}();switch(o.grade){case 1:if(r!=o){t.removeClass(r,C);r=o}break;case 2:if(i!=o){t.removeClass(i,C);i=o}break}a.preventDefault();if(l.length!==2){t.val(W["sarea_code"],c);W.submit()}})},_menuEvent:function(){if(!Y)return;a.on(t.query("input",Y),"click",function(){N.submit()})},_menuInit:function(){if(!Y)return;var e="drop",a=t.children(t.children(Y),function(e){return e.tagName=="INPUT"&&e.type=="checkbox"}),n=a.length;for(var i=3;i',{css:{height:t.outerHeight(q,true),display:"none"}});t.insertAfter(e,q);var n=t.get("#J_crumbs"),i=document.body,o,c;var l=function(){var a=t.scrollTop(r),o;if(t.hasClass(q,u)){o=t.offset(e).top}else{o=Math.max(t.offset(q).top,130)}if(t.hasClass(n,"crumb-fix")){a+=t.height(n)}if(a>o){if(!t.hasClass(q,u)){if(t.hasClass(i,"crumb-filter-fix")){c=t.css(q,"top");t.css(q,{top:t.height(n)-10})}t.addClass(q,u);t.show(e)}if(s){if(t.get("#J_CrumbPlaceholder")){t.css(q,"top",a-t.offset(J).top+20)}else{t.css(q,"top",a-10-t.offset(J).top)}}}else{t.removeClass(q,u);t.css(q,{top:c});t.hide(e)}};l();LIST.msg.on("filter.topchange",function(){l()});a.on(r,"scroll",l)},_tipCtrl:function(e){if(e||!Y)return;var a=t.query("label",Y);if(!a.length)return;var n=[1,-1,0,0],i=n.length;t.query(k).each(function(e){var r=t.attr(e,"data-cfg"),s=n;if(r){s=r.split(",");for(var o=0;o0){if(n.className.indexOf(o)>-1){n.className=n.className.replace(new RegExp(o,"g"),s).replace(/grid-(\d+)/gi,function(e,t){return"grid-"+(parseInt(t)+6)})}e.each(t.query(d,n),function(e){var a=t.get("img",e),n=t.attr(a,"data-ks-lazyload");!n?a.src&&(a.src=a.src.replace(i,r)):t.attr(a,"data-ks-lazyload",n.replace(i,r))});LIST.msg.detach("viewchange",this._switchToView)}},_webp:function(){var e=this.mod;LIST.util.webpFn(e)}};return{init:function(e){new h(e)}}},{requires:["dom","datalazyload"]});KISSY.add("list/mods/srp/cells/pin",function(e,t,a,n,i,r){var s=n.ie==6?"http://gtms02.alicdn.com/tps/i2/T1wiDnFnhfXXaSQP_X-16-16.png":"http://gtms03.alicdn.com/tps/i3/T19YHoFXBgXXaSQP_X-16-16.png",o="http://bar.tmall.com/pinItem.htm?pin=1&itemId={itemId}&_tb_token_={token}",c,l=".j_ProductPin",u,d,f;function p(){TB&&TB.Global&&TB.Global.loginStatusReady&&TB.Global.loginStatusReady(function(e){f=e.isLogin});return!!f}return{init:function(){var n=window.g_config.toggle,f=n?n.pin:0;if(!f){t.addStyleSheet("body .main .product .productPin{display:none;}");return}var h=this;e.ready(function(){h._initNodes();c=t.get("#J_TbToken").value;a.delegate(u,"click",l,function(a){a.halt();var n=a.currentTarget;if(t.hasClass(n,"clicked")){return}var l=t.parent(n,".product"),u=l&&t.attr(l,"data-id")||-1;function f(){r.jsonp(e.substitute(o,{itemId:u,token:c}),function(r){if(r.s==1||r.s==-5){var o=TB.Global.mallbar;if(!o){return}t.addClass(n," clicked");d=d||i.one('').appendTo(document.body);var c={left:a.pageX,top:a.pageY,display:"inline",opacity:1};d.css(c);o.fly({type:"foot",flyer:d,start:c,complete:function(){e.log("list/mods/srp/cells/pin::the fly action competed!")}})}else if(r.s==-3){e.use("mui/overlay/dialog",function(e,t){var a=new t({width:300,height:100,bodyContent:'
    \u55b5~ \u60a8\u6700\u591a\u4ec5\u80fd\u9489100\u4e2a\u5b9d\u8d1d\uff0c\u73b0\u5728\u8d85\u9650\u5566\uff01
    ',mask:true,showCat:true,align:{points:["cc","cc"]}});a.render();a.get("el").css({zIndex:99999});a.show();setTimeout(function(){a.hide()},4e3)})}});window.sendAtp&&window.sendAtp(n)}if(!p()){e.log("list/mods/srp/cells/pin::check current user doesn't login in. So to call the mini login.");e.use("mui/minilogin,mui/overlay/overlay.css",function(e,t){t.show(function(){e.log("list/mods/srp/cells/pin::current user logins in successfully. And to call the callback function.");f()},{check:false})});return}e.log("list/mods/srp/cells/pin::check current user has login in. So to call the callback function.");f()})})},_initNodes:function(){u=t.get("#J_ItemList")}}},{requires:["dom","event","ua","node","ajax"]});var ASSETS_SERVER;(function(e){var t=e.use,a=e.Loader.Utils.isAttached;e.use=function(a,n,i){return t.call(e,a,n,i===undefined?true:i)};e.Loader.Utils.isAttached=function(t,n){e.Loader.Utils.attachModsRecursively(n,t);return a.call(e.Loader.Utils,t,n)};var n=e.log;e.log=function(e,t){var a=new Date;return n("["+(a.toISOString||a.toLocaleString).call(a).replace(/T/," ").replace(/Z/,"")+"] "+e,t)};var i=window,r=i.g_config=i.g_config||{};ASSETS_SERVER=r["assetsServer"]||"//g.tbcdn.cn/";i.LIST=i.LIST||{};LIST.util=LIST.util||{};LIST.support=LIST.support||{};LIST.data=LIST.data||{};LIST.msg=function(){if(LIST.msg&&LIST.msg.on){return LIST.msg}e.log("to simulate a `LIST.msg` object");var t={cache:{},on:function(e,t,a){this.cache[e]=this.cache[e]||{fired:0,fns:[]};this.cache[e].fns.push({fn:t,scope:a})},fire:function(e,t){var a=this.cache[e];if(a){a.fired=1;a.data=t||{}}},detach:function(e,t,a){if(this.cache[e]){for(var n=0,i=this.cache[e].fns,r=i.length;n>>> the module `"+u+"` inited | duration:"+(new Date-p)+"ms")}};function l(n,i,s){s=s||"hover";if(c||o){i=o?"mouse":i||"touch";function l(e){if(this.disableHoverIn)return;t.addClass(this,this._hoverCls||s)}function u(e){if(this.disableHoverOut)return;var a=this;setTimeout(function(){t.removeClass(a,a._hoverCls||s)},200)}var d=null;switch(i){case"mouse":d=function(){a.on(this,"mouseenter",l);a.on(this,"mouseleave",u)};break;case"touch":d=function(){a.on(this,"touchstart",l);a.on(this,"touchend",u)};break;default:r.__hoverPool=r.__hoverPool||[];d=function(){var e=this;a.on(this,"click",function(t){if(__hoverPool[__hoverPool.length-1]!==e){e._hoverCls=s;__hoverPool[__hoverPool.length]=e;l.call(e,t)}})};!this._boundDefHover4Doc&&(a.on(".page","click",function(e){var a=e.target;for(var n=0,i=__hoverPool.length;n=g&&h":">","&":"&",'"':""","'":"'","/":"/"},escapereplace:function(e){return a.escapehash[e]},escaping:function(e){return typeof e!=="string"?e:e.replace(/[&<>"]/gim,this.escapereplace)},detection:function(e){return typeof e==="undefined"?"":e}};var n=function(e){if(typeof console!=="undefined"){if(console.warn){console.warn(e);return}if(console.log){console.log(e);return}}throw e};t=t||{};t.__escapehtml=a;t.__throw=n;"use strict";var e=e||{};var i="";i+="";try{i+="";var r=e.dsr;var s=e.atpanel;var o=e.url;var c=e.it;var l=e.idx;var u=e.div;var d=e.star;var f=e.a;var p=e.em;var h=e.i;var m=e.script;var g=e.document;var v=e.d;var _=e.s;var b=e.more;var S=e.drop;var w=e.l;var y=e.arrow;var C=e.ul;var x=e.expand;var T=e.li;var I=e.pointer;var A=e.title;var k=e.strong;var L=e.num;var j=e.b;var B=e.high;var D=e.low;i+="\n";~function(){for(var e in r){if(r.hasOwnProperty(e)){var a=r[e];var n=e;i+="\n";if(n==0){i+='\n\n'}i+="\n"}}}();i+='\n"}catch(J){t.__throw("Juicer Render Exception: "+J.message)}i+="";return i.replace(/[\r\n]\s+[\r\n]/g,"\r\n")};KISSY.ready(function(e){if(window.__atplog_inited__)return;e.use("dom,event,json",function(e,t,a,n){var i=window,r=document,s="data-atp",o="atpanel",c={"/mallsearch":"H1449172242","/msearch.1.2":"H46777405"};function l(e,t,a){t=t||s;a=a||"";var n,i,r;while(e&&e.tagName!="HTML"&&e.tagName!="BODY"&&e.getAttribute){r=e.getAttribute(t+a);if(r){n=r;i=e;break}if(!(e=e.parentNode))break}return{atpAttr:n,el:i}}function u(t){var a=t.split(","),n,i={};e.each(a,function(e){if(n=/{(.*)}/.exec(e))n=n[1];if(n)i[n]=""});return i}function d(e,a){if(!e||e.tagName!="A")return;if(a!=="text"){var i=new RegExp("(\\?|\\&)"+a+"=([^&#]*)(\\&|\\#|$)","g"),r=e.href||e.link||"",s,o;s=(o=i.exec(r))?o[2]:t.attr(e,"data-"+a)||(e._atpParams||(e._atpParams=n.parse(t.attr(e,"data-atp-params")||"{}")))[a]||"";if(!s){var c=l(e,"data-"+a);if(c.atpAttr&&c.el){s=c.atpAttr}}}else{s=t.text(e)}return s}function f(a){var n=l(a),i=n.el,r=n.atpAttr;if(i&&r){var s,c=e.query("a",i);r=p(r||"",i.parentNode);e.each(c,function(a,n){if(a._atped||t.hasAttr(a,"data-atp-ignore"))return;var c=l(a);if(c.el==i){if(!t.hasAttr(a,o)){s=s||u(r);for(var f in s){s[f]=d(a,f)}s["loc"]=n+1;var p=e.substitute(r,s);t.attr(a,o,p)}a._atped=true}else{}})}}function p(t,a){var n,i,r,s;if(t.indexOf("!")===-1){r=t}else{t=t.split("!");n="-"+t[0];r=(t[1]||"").split(",");i=l(a,"",n);if(i.el&&i.atpAttr){s=i.atpAttr.split(",");e.each(r,function(e,t){if(e===""){r[t]=s[t]}})}r=r.join(",")}return r}function h(){return Math.floor(Math.random()*268435456).toString(16)}function m(t,a,n,r){if(i.goldlog&&i.goldlog.record){goldlog.record(t,a,n,r)}else{var s=new Image,o="_img_"+t+"_"+(new Date).getTime();i[o]=s;s.onload=s.onerror=function(){i[o]=null};s.src="//gm.mmstat.com"+t+"?goldlog=undefined"+"&cache="+h()+"&gmkey="+encodeURIComponent(a)+"&gokey="+encodeURIComponent(n)+"&cna="+(Cookie.get("cna")||"");e.log(i[o]);s=null}}function g(t,a,n,r,s){var o=t.split(","),l=s||i.__list_atpanel_param||"",u={pos:o[0]||"",itemid:o[1]||"",clickid:o[1]||"",itemcat:o[2]||"",itemspu:o[3]||"",fromtab:o[4]||"",type:o[5]||"",combo:o[6]||"",shopid:o[7]||"",actype:o[8]||"",gid:o[9]||""};l+=(e.endsWith(l,"&")?"":l?"&":"")+e.param(u);m(a||"/mallsearch",r||"tmallsearch",l,n||c[a]||"H1449172242")}a.delegate&&a.delegate(r.body,"mouseenter","a",function(e){var a=e.currentTarget;if(a._atped||t.hasAttr(a,"data-atp-ignore"))return;if(t.attr(a,o)){a._atped=true;return}f(a)});function v(e){if(!e)return;e=t.get(e);var a=t.attr(e,o)||t.parent(e)&&t.attr(t.parent(e),o),n;if(a){n=l(e,"data-atp-logkey").atpAttr||l(e,"data-atp-url").atpAttr;g(a,n)}}a.on(r.body,"click",function(e){return v(e.target)});i.atpanelFun=g;i.sendAtp=v;i.clicklog=g;i.exposelog=m;i.__atplog_inited__=1})});(function(e){e.use("dom,sizzle,event",function(e,t,a,n){var i="data-rn";function r(e){var a=e.currentTarget;if(a._rned)return;var n=t.attr(this,i),r=a.href,s=a.search;if(r&&/^https*:\/\/\b/.test(r)){if(s==""){a.search+="?rn="+n}else{!/\brn=\w+\b/g.test(s)&&(a.search+="&rn="+n)}}a._rned=true}n.delegate("["+i+"]","mouseenter","a",r)})})(KISSY);(function(e){e.use("dom,event,ua",function(e,t,a,n){var i=document,r=n.ie<9,s=n.ie<8;function o(e){var t;if(i.createEvent){var a=i.createEvent("HTMLEvents");a.initEvent(e,true,true);t=this.dispatchEvent(a)}else if(this.fireEvent){if(e!=="aftersubmit"){t=this.fireEvent("on"+e)}}return t}function c(e){return o.call(e,"submit")}function l(e){return o.call(e,"aftersubmit")}e.ready(function(){var n=window.g_config.toggle,o=n?n.filter:0;if(!o)return;var u=function(a){var n=a.elements,i=a.length;for(var r=0,s;r