');l.css({width:d.width()+"px",height:d.height()+"px","max-width":"none",left:0-i(p.css("left"))*d.width()+"px",right:0-i(p.css("right"))*d.width()+"px",top:0-i(p.css("top"))*d.height()+"px",bottom:0-i(p.css("bottom"))*d.height()+"px",position:"absolute"});var f=$("
");f.css({width:p.width()+"px",height:p.height()+"px",left:"-1000px",top:"-1000px",right:"-1000px",bottom:"-1000px",margin:"auto",position:"absolute"}),h.append(f),f.append(l);var u=[100-parseFloat(p.css("right"))-parseFloat(p.css("left")),100-parseFloat(p.css("top"))-parseFloat(p.css("bottom"))],m="all 0.25s cubic-bezier(.09,.7,.61,1.23)";setTimeout(function(){h.css({transition:m})}),n(),p.on("tap click",function(){r("a").css("pointer-events","none")}),a[t].animate=function(i){return o?void(i&&i.preventDefault()):(e=t,o=!0,s&&s!==n&&s(),s=n,h.css({left:p.css("left"),right:p.css("right"),top:p.css("top"),bottom:p.css("bottom")}),void setTimeout(function(){h.css("transition","none"),setTimeout(function(){h.css("transition",m)}),h.width(p.width()),h.height(p.height()),o=!1,r("a[data-href]").css("pointer-events","all")},250))},p.on("touchstart mousedown",a[t].animate)})}var a=$(this),r=a.find.bind(a),c=a.data("link_mask-params"),d=r("img").eq(0);a.css("overflow","hidden"),d.prop("complete")?o():d.on("load",o);var s=void 0})}(a,t),t.exports&&(c["/cloud/action/link_mask/link_mask.js.js"]=t.exports)}(),i.forEach(function(t){t()})}(),function(){function t(t){$.ajax({type:"get",url:"http://m.xiaomiyoupin.com/app/shop/stat?page=topic&href="+escape(t)+"&t="+Math.floor(Date.now()/1e3),dataType:"jsonp"})}function o(){var o=e.scrollTop(),a=e.height();i.each(function(){var e=$(this),n=e.offset().top;if(!e.data("statistics-complete")){var r=e.height();if(r){var c=(e.find("a").attr("href"),n+r/2);if(c>o&&c=o)&&(a.push(t),!0)}),a.join(",")}var n={unit:"元",name:"",src:"",descr:"",price:"",marketPrice:"",showMarketPrice:"",showTag:t.showTag};if(o.attr_ext){var r=o.attr_ext;(1===r.price_tag||t.daiqi)&&(n.unit="元起"),r.custom_name&&!t.name&&(n.name=r.custom_name)}return n.name||(n.name=t.name||o.name),t.src?n.src=t.src:"限时购"===t.mode||t.showWhiteProductImage?n.src=o.pic_url:n.src=o.album[0],t.descr?n.descr=t.descr:i?n.descr=a(o.summary,18):n.descr=o.summary,o.market_price||(o.market_price=o.price_min),t.price?n.price=t.price:(n.price=e(o.price_min,"cent").short,n.marketPrice=e(o.market_price,"cent").short,n.showMarketPrice=n.marketPrice!==n.price,n.downPrice=e(o.market_price-o.price_min,"cent").short,n.downPriceText="直降"+n.downPrice+"元"),n}function e(t,o){t(".unit").text(o.unit),t(".product-name").html(o.name),t(".product-descr").html(o.descr),t(".price-wrap .num").text(o.price),o.showMarketPrice&&(t(".price-wrap-market").show(),t(".price-wrap-market .num").text(o.marketPrice),o.showTag&&t(".link-wrap>.tag").show().text(o.downPriceText));var i=t('[data-editor-tag-name="horizontal_border_label"]'),e=t('[data-editor-tag-name="circle-background-double-line"]'),a=i.find(".tag-content"),n=e.find(".tag-content");i.length&&o.showMarketPrice&&(a.text()||(a.text(o.downPriceText),i.children().show())),e.length&&o.showMarketPrice&&(n.text().trim()||(n.html("直降
"+o.downPrice+"元
"),e.children().show()))}function a(t){function o(t,o){return t.length-1&&(a[o]=t.name)})}),{map_id:i.map_id,pid:i.pid,type:a,price:i.price,inventory:parseInt(i.inventory),image_url:i.img,origin_price:parseInt(i.market_price),name:i.name}}),a={price:f(t.detail.data.good.price_min,"cent").short,productName:t.detail.data.good.name,image_url:t.detail.data.good.pic_url};return{info:a,type:i,list:e}}function a(t,o){var e=void 0,a=void 0;parseInt(t)>1e8?(e={model:"Cart",action:"add",parameters:{product_id:t,consumption:"1"}},a=p({url:s,$dom:i})):(e={model:"Cart",action:"add",parameters:{pid:t,num:"1"}},a=p({url:l,$dom:i})),d({detail:e},function(t){t.detail.code?toast(h(t.detail)||"加入购物车失败"):(u.app?toast("加入购物车成功"):toast("已加入购物车,请前往有品App结算"),o&&o())},!1,a)}function n(){function o(t){r(".bottom").hide(),r('.bottom[data-mode="'+t+'"]').show()}function e(){function t(t,o){for(var i in o)if(t.type[i]!=o[i])return!1;return!0}var i={};r(".tag.active").each(function(){var t=$(this),o=t.parent().data("type-name"),e=t.text().trim();i[o]=e});for(var e in i)r(".tag:not(.active)").addClass("disabled");var a=void 0;_.list.forEach(function(o){if(t(o,i)){a=o;for(var e in o.type)i[e]||r('[data-type-name="'+e+"\"] .tag[data-tag='"+o.type[e]+"']").removeClass("disabled")}});var n=function(o){var e=Object.assign({},i);delete e[o],_.list.forEach(function(i){t(i,e)&&r('[data-type-name="'+o+'"] [data-tag="'+i.type[o]+'"]').removeClass("disabled")})};for(var e in i)n(e);Object.keys(i).length===Object.keys(_.type).length&&a?(r(".title").text(a.name),r(".price").text("¥"+f(a.price,"cent").short),r(".product-img").attr("src",a.image_url),p=a,o(a.inventory?"ready":"gone")):(r(".title").text(_.info.productName),r(".price").text("¥"+_.info.price),r(".product-img").attr("src",_.info.image_url),p=void 0,o("wait"))}var n=$(c(_.info.productName,_.info.price,_.info.image_url)),r=n.find.bind(n),d=function(t){var o=_.type[t],i=$(b(t));r(".layer>main").append(i),o.forEach(function(t){i.find("main").append($(w(t)))})};for(var s in _.type)d(s);var p=void 0;r(".add-cart").on("tap",function(){a(p.pid||p.mapId)});var h=void 0;r(".go-checkout").on("tap",function(){var o=i;if(!p)return void toast("请先选中商品");if(p.pid){if(p.map_id&&"0"!==p.map_id)return h(),void m("https://m.xiaomiyoupin.com/shop/detail?gid="+t.gid+"&pid="+p.pid,{$dom:o});u.app?(h(),m("https://m.xiaomiyoupin.com/shop/check?quickOrder=2&pid="+p.pid,{$dom:o})):(h(),m("https://m.xiaomiyoupin.com/shop/checkshop/check?quickOrder=2&pid="+p.pid,{$dom:o}))}else a(p.mapId,function(){h(),m("https://m.xiaomiyoupin.com/shop/cart",{$dom:o})})}),e(),n.on("tap",".tag",function(){var t=$(this),o=t.parent();t.hasClass("disabled")||(t.hasClass("active")?(t.inactive(),o.inactive()):(t.active(),o.active(),t.siblings().inactive()),e())});var l=g(n,function(){},!1,!0,!0);h=l.exit,n.parent().css({left:0,right:0,"max-width":"none"})}var c=function(t,o,i){return'\n
\n
\n \n

\n
\n \n \n
\n \n
\n
\n
\n
\n
\n'},b=function(t){return'\n'},w=function(t){return' \n '+t+" \n\n"},_={};if(t.gid){if(window.isEditor)return;r(t.gid,function(t){Object.assign(_,e(t))})}else _=t.config;o(function(){if(t.productId)d({prop:{model:"Product",action:"GetProp",parameters:{pids:_.list.map(function(t){return 1*t.mapId})}}},function(t){if(t.prop.code)return void toast(t.prop.description);var o=t.prop.data,i=0;_.list.forEach(function(t){var e=o[t.mapId];e.inventory&&e.inventory>0&&i++,Object.assign(t,e)}),_.info.image_url=o[Object.keys(o)[0]].image_url,i?_.list.length>1?n():a(_.list[0].mapId):toast("商品已售罄")},!1,p({url:l,$dom:i}));else{var o=function(){var t=0;return _.list?(_.list.forEach(function(o){o.inventory&&o.inventory>0&&t++}),void(t?_.list.length>1?n():a(_.list[0].pid):toast("商品已售罄"))):(getLogin().then(function(t){t?toast("数据加载中..."):jumptoLogin()}),{v:void 0})}();if("object"==typeof o)return o.v}})}function r(t,o){w&&clearTimeout(w),_.push({gid:t,cb:o}),w=setTimeout(function(){var t=_.slice(0);_.length=0,w=0;var o={};t.forEach(function(t){var i=t.gid;o[i]={model:"Shopv2",action:"getDetail",parameters:{gid:i}}}),d(o,function(o){var i=function(i){t.forEach(function(t){var e=t.gid,a=t.cb;i==e&&a({detail:o[i]})})};for(var e in o)i(e)},function(t){toast("获取商品信息失败"),console.warn(t)},b("/app/shop/pipe","editor-cache",""+Math.floor(Date.now()/36e5)),!0)})}var c=t("util"),d=c.miFetch,s=c.PIPE_URL,p=c.getTracedUrl2,h=c.getChineseMessage,l=c.GPIPE_URL,f=c.formatMoney,u=c.ua,m=c.jumpTo,g=c.showBottomWindow,b=c.addParam,v="map_id_add_cart-floating-layer",w=void 0,_=[];o.exports={getFinalInfo:i,renderFinalInfo:e,getRemainTime:a,initBottomWindow:n,getDetail:r}}(a,t),t.exports&&(c["/cloud/module/product_big/util.js"]=t.exports)}(),p="/cloud/module/product_big/product_big.action.js",function(){var t={type:"resource"};!function(t,i){var e=t("util"),a=e.formatMoney,n=e.ua,c=e.setTrace,d=t("/cloud/module/product_big/util.js"),s=d.getFinalInfo,p=d.renderFinalInfo,h=d.getRemainTime,l=d.initBottomWindow;i.exports=function(){function t(i,e){var r=this;o(this,t);var d=$("[data-id="+e+"]"),h=d.find.bind(d);this.$$=h,this.$dom=d;var f=i.gid;if(f){n.pc&&1===window.devicePixelRatio&&d.find(".top-a-wrap").css("border","1px solid rgb(204,204,204)");var u=h("a.product-big-img-link"),m=h("a.buy-btn-wrap");i.startTime&&i.startTime>Date.now()/1e3&&this.initTimer(),i.href?(u.attr("href",i.href),m.attr("href",i.href)):(u.attr("href","//m.xiaomiyoupin.com/shop/detail?gid="+f),m.attr("href","//m.xiaomiyoupin.com/shop/detail?gid="+f)),c(u),c(m),h(".bottom-btn").on("tap",function(){window.countEvent&&window.countEvent("button",this)}),"加入购物车"===i.btn&&l(i,function(t){h(".bottom-btn.cart-btn").on("tap",t)},d);var g=d.parent().is('[data-name="horizontal_layout"],[data-name="test_container"]');this.isSmall=g;var b=d.find(".normal-mode"),v=$(".top-wrap");return n.android&&v.addClass("android"),n.iOS&&v.addClass("iOS"),n.pc&&v.addClass("pc"),g?b.addClass("thin"):b.addClass("big"),i.static?(p(h,i.finalInfo),void setTimeout(this.afterRender.bind(this))):void $.ajax({type:"GET",url:'//m.xiaomiyoupin.com/app/shop/jsonp?k=test&m=Product&a=GetDetail&p={"gid":'+f+"}",dataType:"jsonp",success:function(t){var o=t.data,e=s(i,o.goods,g,a);p(h,e),r.afterRender()},error:function(){}})}}return r(t,[{key:"initTimer",value:function(){function t(t){i.text(h(t))}var o=this.$$,i=o(".bottom-btn"),e="倒计时",a=o(".bottom-btn-wrap"),n=i.html();a.css({"pointer-events":"none",cursor:"not-allowed"});var r=config.startTime-Date.now()/1e3,c=r/3600/24;c>1?(i.text(""+e+Math.floor(c)+"天"),i.addClass("left-days")):!function(){i.addClass("left-time");var o=Math.ceil(config.startTime-Date.now()/1e3);t(o);var e=setInterval(function(){o--,o?t(o):(clearInterval(e),i.html(n).removeClass("left-days").removeClass("left-time"),a.css({"pointer-events":"all",cursor:"pointer"}))},1e3)}()}},{key:"afterRender",value:function(){function t(){var t=i.parent()[0].containerAdjustHeight;t&&t()}function o(){c&&c.css("position","static").removeClass("loading"),r.removeClass("loading").css({"min-height":"0px"}),a?r.css("height",n.width()+"px"):r.css("padding-top","0px")}var i=this.$dom,e=this.$$,a=this.isSmall,n=e(".product-img-wrap"),r=e(".product-big-img-link"),c=e(".product");t(),c.length?c[0].naturalWidth?o():(a?n.css("min-height",n.width()+"px"):n.css("min-height",n.width()/1017*451+"px"),c.on("load",o)):o()}}]),t}()}(a,t),t.exports&&(c["/cloud/module/product_big/product_big.action.js"]=t.exports)}(),p="/cloud/container/horizontal_layout/horizontal_layout.action.js",function(){var o={type:"resource"};!function(o,i){e(function(o,i){function e(){function o(t){var o=t.children()[0].scrollHeight,i=1*(t.css("border-bottom-width").match(/^[\d\.]+/)||[0])[0],e=1*(t.css("border-top-width").match(/^[\d\.]+/)||[0])[0];return o+i+e}var i=function(i){var e=c[i];if(e.length<2)return"continue";var a=Math.max.apply(Math,t(e.map(o)));e.forEach(function(t){t.css("min-height",a+"px")})};for(var e in c){i(e)}}function a(t){var o=t.match(/[?&]w=(\d+)\b/),i=t.match(/[?&]h=(\d+)\b/);return o&&i?{width:1*o[1],height:1*i[1]}:(toast("图片链接缺少尺寸参数:"+t),{width:0,height:0})}var n=$("[data-id="+o+"]"),r=n.find.bind(n),c={};if(r("[data-sync-height]").each(function(){var t=$(this),o=t.data("sync-height");c[o]||(c[o]=[]),c[o].push(t)}),Object.keys(c).length){var d=function(){setTimeout(e,200),setTimeout(e,2e3)};n[0].containerAdjustHeight=d,d(),$(window).on("resize",d)}if("等宽"!==i.mode){var s=n.children();n.addClass("stretch");var p=(100/s.length+"%",[]),h=0,l=1,f=i.rags.every(function(t){if(!t.src)return!1;var o=a(t.src),i=o.width,e=o.height;if(!i||!e)return!1;var n=l/e;return parseInt(n)!==n&&(l*=e),!0});f&&(i.rags.forEach(function(t,o){var i=a(t.src),e=i.width,n=i.height;p[o]=l/n*e,h+=p[o]}),i.rags.forEach(function(t,o){s.eq(o).css("width",100*p[o]/h+"%")}))}})}(a,o),o.exports&&(c["/cloud/container/horizontal_layout/horizontal_layout.action.js"]=o.exports)}(),l=h["/cloud/container/pure_container/pure_container.action.js"],l&&$('[data-id="editor-rag-7"]').length&&l("editor-rag-7",{mode:"没用"}),l=h["/cloud/container/pure_container/pure_container.action.js"],l&&$('[data-id="editor-rag-26"]').length&&l("editor-rag-26",{mode:"没用"}),$('[data-id="editor-rag-8"]').length&&new c["/cloud/module/product_big/product_big.action.js"]({btn:"加入购物车",links:[],begin:!1,gid:848,src:"https://shop.io.mi-img.com/app/shop/img?id=shop_ef9940782f76fea03abf11fa89bbb1f6.jpeg&w=1080&h=501",btnColor:"#f66f40",hideImg:!1,mode:"普通",showWhiteProductImage:!1,showTag:!1,btnColor2:"#cf2d2d",bottomBg:"#fff",daiqi:!1,fakeSrc:"https://shop.io.mi-img.com/app/shop/img?id=shop_ef9940782f76fea03abf11fa89bbb1f6.jpeg&w=1080&h=501",descr:"100%双宫蚕丝 冬暖夏凉 透气恒温"},"editor-rag-8"),$('[data-id="editor-rag-10"]').length&&new c["/cloud/module/product_big/product_big.action.js"]({btn:"加入购物车",links:[],begin:!1,gid:628,btnColor:"#f66f40",hideImg:!1,mode:"普通",showWhiteProductImage:!1,showTag:!1,btnColor2:"#cf2d2d",bottomBg:"#fff",daiqi:!1,fakeSrc:"https://static.home.mi.com/app/shop/img?id=shop_52a81a284b8e045681b92d4030f3ab7a.jpeg&w=1080&h=1270",descr:"轻薄丝滑 限时特惠"},"editor-rag-10"),$('[data-id="editor-rag-11"]').length&&new c["/cloud/module/product_big/product_big.action.js"]({btn:"加入购物车",links:[],begin:!1,gid:806,btnColor:"#f66f40",hideImg:!1,mode:"普通",showWhiteProductImage:!1,showTag:!1,btnColor2:"#cf2d2d",bottomBg:"#fff",daiqi:!1,fakeSrc:"https://static.home.mi.com/app/shop/img?id=shop_14c74efea85ada948cd106039ca5563a.jpeg&w=1080&h=1270",descr:"超轻便携 多场景使用"},"editor-rag-11"),$('[data-id="editor-rag-17"]').length&&new c["/cloud/module/product_big/product_big.action.js"]({btn:"加入购物车",links:[],begin:!1,gid:100310,btnColor:"#f66f40",hideImg:!1,mode:"普通",showWhiteProductImage:!1,showTag:!1,btnColor2:"#cf2d2d",bottomBg:"#fff",daiqi:!1,fakeSrc:"https://shop.io.mi-img.com/app/shop/img?id=shop_8abc2f2cea7d5726d7f08559cb20d56b.jpeg&w=1080&h=1270",descr:"吸湿透气 天然抑菌"},"editor-rag-17"),$('[data-id="editor-rag-18"]').length&&new c["/cloud/module/product_big/product_big.action.js"]({btn:"加入购物车",links:[],begin:!1,gid:653,btnColor:"#f66f40",hideImg:!1,mode:"普通",showWhiteProductImage:!1,showTag:!1,btnColor2:"#cf2d2d",bottomBg:"#fff",daiqi:!1,fakeSrc:"https://static.home.mi.com/app/shop/img?id=shop_05c56b0562cbc99ef2995064bec4c986.jpeg&w=1080&h=1270",descr:"抑菌洁净 睡得安心"},"editor-rag-18"),$('[data-id="editor-rag-20"]').length&&new c["/cloud/module/product_big/product_big.action.js"]({btn:"加入购物车",links:[],begin:!1,gid:100239,btnColor:"#f66f40",hideImg:!1,mode:"普通",showWhiteProductImage:!1,showTag:!1,btnColor2:"#cf2d2d",bottomBg:"#fff",daiqi:!1,fakeSrc:"https://shop.io.mi-img.com/app/shop/img?id=shop_0a027e6b1f33aefc3e3acf3f58bd0211.jpeg&w=1080&h=1270",descr:"针织面料 柔软透气"},"editor-rag-20"),$('[data-id="editor-rag-21"]').length&&new c["/cloud/module/product_big/product_big.action.js"]({btn:"加入购物车",links:[],begin:!1,gid:629,btnColor:"#f66f40",hideImg:!1,mode:"普通",showWhiteProductImage:!1,showTag:!1,btnColor2:"#cf2d2d",bottomBg:"#fff",daiqi:!1,fakeSrc:"https://static.home.mi.com/app/shop/img?id=shop_c0f230118dc3e8bbecc4003f5c631b9c.jpeg&w=1080&h=1270",descr:"顺滑亲肤 双面可用"},"editor-rag-21"),$('[data-id="editor-rag-23"]').length&&new c["/cloud/module/product_big/product_big.action.js"]({btn:"加入购物车",links:[],begin:!1,gid:652,btnColor:"#f66f40",hideImg:!1,mode:"普通",showWhiteProductImage:!1,showTag:!1,btnColor2:"#cf2d2d",bottomBg:"#fff",daiqi:!1,fakeSrc:"https://shop.io.mi-img.com/app/shop/img?id=shop_abf88289ac62f607ee3296d2e423efa4.png&w=1080&h=1270",src:"https://shop.io.mi-img.com/app/shop/img?id=shop_abf88289ac62f607ee3296d2e423efa4.png&w=1080&h=1270",descr:"天然色彩 柔软高弹"},"editor-rag-23"),$('[data-id="editor-rag-24"]').length&&new c["/cloud/module/product_big/product_big.action.js"]({btn:"加入购物车",links:[],begin:!1,gid:589,btnColor:"#f66f40",hideImg:!1,mode:"普通",showWhiteProductImage:!1,showTag:!1,btnColor2:"#cf2d2d",bottomBg:"#fff",daiqi:!1,fakeSrc:"https://shop.io.mi-img.com/app/shop/img?id=shop_3e8c259d8216c19d2e20b50924bbb49a.png&w=1080&h=1270",src:"https://shop.io.mi-img.com/app/shop/img?id=shop_3e8c259d8216c19d2e20b50924bbb49a.png&w=1080&h=1270",descr:"天然亚麻 抑菌除螨"},"editor-rag-24"),$('[data-id="editor-rag-27"]').length&&new c["/cloud/module/product_big/product_big.action.js"]({btn:"加入购物车",links:[],begin:!1,gid:228,src:"https://shop.io.mi-img.com/app/shop/img?id=shop_0e3c5661eea0ef4eaa351f9c646eee01.jpeg&w=1080&h=501",btnColor:"#f66f40",hideImg:!1,mode:"普通",showWhiteProductImage:!1,showTag:!1,btnColor2:"#cf2d2d",bottomBg:"#fff",daiqi:!1,fakeSrc:"https://shop.io.mi-img.com/app/shop/img?id=shop_0e3c5661eea0ef4eaa351f9c646eee01.jpeg&w=1080&h=501",descr:"与枕为伴 安然入睡 聆听风的亲昵"},"editor-rag-27"),$('[data-id="editor-rag-28"]').length&&new c["/cloud/module/product_big/product_big.action.js"]({btn:"加入购物车",links:[],begin:!1,gid:846,src:"https://shop.io.mi-img.com/app/shop/img?id=shop_377e3be88b6235de815fce33422e8c7a.jpeg&w=1080&h=501",btnColor:"#f66f40",hideImg:!1,mode:"普通",showWhiteProductImage:!1,showTag:!1,btnColor2:"#cf2d2d",bottomBg:"#fff",daiqi:!1,fakeSrc:"https://shop.io.mi-img.com/app/shop/img?id=shop_377e3be88b6235de815fce33422e8c7a.jpeg&w=1080&h=501",descr:"与枕为伴 安然入睡 聆听风的亲昵"},"editor-rag-28"),$('[data-id="editor-rag-30"]').length&&new c["/cloud/module/product_big/product_big.action.js"]({btn:"加入购物车",links:[],begin:!1,gid:155,btnColor:"#f66f40",hideImg:!1,mode:"普通",showWhiteProductImage:!1,showTag:!1,btnColor2:"#cf2d2d",bottomBg:"#fff",daiqi:!1,fakeSrc:"https://shop.io.mi-img.com/app/shop/img?id=shop_f164033a9f7ed95277aaad67312c4c67.jpeg&w=1080&h=1270",src:"https://shop.io.mi-img.com/app/shop/img?id=shop_f164033a9f7ed95277aaad67312c4c67.jpeg&w=1080&h=1270",descr:"天然乳胶 深度睡眠"},"editor-rag-30"),$('[data-id="editor-rag-31"]').length&&new c["/cloud/module/product_big/product_big.action.js"]({btn:"加入购物车",links:[],begin:!1,gid:330,btnColor:"#f66f40",hideImg:!1,mode:"普通",showWhiteProductImage:!1,showTag:!1,btnColor2:"#cf2d2d",bottomBg:"#fff",daiqi:!1,fakeSrc:"https://shop.io.mi-img.com/app/shop/img?id=shop_c25833bb929a039a1c1fe34fc9558021.png&w=1080&h=1270",descr:"蝶形设计 处处贴心",src:"https://shop.io.mi-img.com/app/shop/img?id=shop_c25833bb929a039a1c1fe34fc9558021.png&w=1080&h=1270"},"editor-rag-31"),$('[data-id="editor-rag-34"]').length&&new c["/cloud/module/product_big/product_big.action.js"]({btn:"加入购物车",links:[],begin:!1,gid:460,btnColor:"#f66f40",hideImg:!1,mode:"普通",showWhiteProductImage:!1,showTag:!1,btnColor2:"#cf2d2d",bottomBg:"#fff",daiqi:!1,fakeSrc:"https://shop.io.mi-img.com/app/shop/img?id=shop_23a46dad405e3c2ac09a8cb97dd84e78.png&w=1080&h=1270",src:"https://shop.io.mi-img.com/app/shop/img?id=shop_23a46dad405e3c2ac09a8cb97dd84e78.png&w=1080&h=1270",descr:"天然乳胶 全面透气"},"editor-rag-34"),$('[data-id="editor-rag-35"]').length&&new c["/cloud/module/product_big/product_big.action.js"]({btn:"加入购物车",links:[],begin:!1,gid:137,btnColor:"#f66f40",hideImg:!1,mode:"普通",showWhiteProductImage:!1,showTag:!1,btnColor2:"#cf2d2d",bottomBg:"#fff",daiqi:!1,fakeSrc:"https://shop.io.mi-img.com/app/shop/img?id=shop_4570eb93bf0f69bbdd5a5d2368685ab7.png&w=1080&h=1270",src:"https://shop.io.mi-img.com/app/shop/img?id=shop_4570eb93bf0f69bbdd5a5d2368685ab7.png&w=1080&h=1270",descr:"物理防螨 环保材质"},"editor-rag-35"),$('[data-id="editor-rag-37"]').length&&new c["/cloud/module/product_big/product_big.action.js"]({btn:"加入购物车",links:[],begin:!1,gid:206,btnColor:"#f66f40",hideImg:!1,mode:"普通",showWhiteProductImage:!1,showTag:!1,btnColor2:"#cf2d2d",bottomBg:"#fff",daiqi:!1,fakeSrc:"https://shop.io.mi-img.com/app/shop/img?id=shop_e02c407c5839defbc0b26d5ac8a57b8d.png&w=1080&h=1270",src:"https://shop.io.mi-img.com/app/shop/img?id=shop_e02c407c5839defbc0b26d5ac8a57b8d.png&w=1080&h=1270",descr:"分层设计 纯净睡眠"},"editor-rag-37"),$('[data-id="editor-rag-38"]').length&&new c["/cloud/module/product_big/product_big.action.js"]({btn:"加入购物车",links:[],begin:!1,gid:100309,btnColor:"#f66f40",hideImg:!1,mode:"普通",showWhiteProductImage:!1,showTag:!1,btnColor2:"#cf2d2d",bottomBg:"#fff",daiqi:!1,fakeSrc:"https://shop.io.mi-img.com/app/shop/img?id=shop_2a7adea23589e182b962c5001c3fae9a.jpeg&w=1080&h=1270",descr:"亲肤透气 一垫多用"},"editor-rag-38"),l=h["/cloud/container/horizontal_layout/horizontal_layout.action.js"],l&&$('[data-id="editor-rag-9"]').length&&l("editor-rag-9",{mode:"等宽"}),l=h["/cloud/container/horizontal_layout/horizontal_layout.action.js"],l&&$('[data-id="editor-rag-16"]').length&&l("editor-rag-16",{mode:"等宽"}),l=h["/cloud/container/horizontal_layout/horizontal_layout.action.js"],l&&$('[data-id="editor-rag-19"]').length&&l("editor-rag-19",{mode:"等宽"}),l=h["/cloud/container/horizontal_layout/horizontal_layout.action.js"],l&&$('[data-id="editor-rag-22"]').length&&l("editor-rag-22",{mode:"等宽"}),l=h["/cloud/container/horizontal_layout/horizontal_layout.action.js"],l&&$('[data-id="editor-rag-29"]').length&&l("editor-rag-29",{mode:"等宽"}),l=h["/cloud/container/horizontal_layout/horizontal_layout.action.js"],l&&$('[data-id="editor-rag-33"]').length&&l("editor-rag-33",{mode:"等宽"}),l=h["/cloud/container/horizontal_layout/horizontal_layout.action.js"],l&&$('[data-id="editor-rag-36"]').length&&l("editor-rag-36",{mode:"等宽"}),window.exportInfo={user:"wing",articleId:"5619",time:"2017年10月20日 14:48:1"},!function(){function t(t,o){document.dispatchEvent(new CustomEvent("share-result",{detail:{status:t,channel:o}}))}function o(t,o){var i=document.createElement("script");i.type="text/javascript",o&&(i.onload=o),document.body.parentNode.insertBefore(i,document.body),i.src=t}function i(){return new Promise(function(t,o){$.get("/app/shopv3/getwxticket",function(o){t(o)})})}function e(o){if(o){var i=parseURL(o);i=i.params;var e=parseURL(decodeURIComponent(i.pics));e=e.params.ids.split("-")[1],e="http://static.home.mi.com/app/shop/img?id=shop_"+e.split("_")[1]+".jpg";var a,n=decodeURIComponent(i.title);i.pyqTitle&&(a=decodeURIComponent(i.pyqTitle));var r=decodeURIComponent(i.content),c=decodeURIComponent(i.url);wx.ready(function(){wx.onMenuShareTimeline({title:a||r,link:c,imgUrl:e,success:function(){t("success","weixin_pyq")},cancel:function(){toast("分享失败"),t("faild","weixin_pyq")}}),wx.onMenuShareAppMessage({title:n,desc:r,link:c,imgUrl:e,success:function(){toast("分享成功"),t("success","weixin_friend")},cancel:function(){toast("分享失败"),t("faild","weixin_friend")}})})}}var a="http://m.xiaomiyoupin.com/shop/goshare?title=%E6%9A%96%E7%A7%8B%E5%BA%8A%E5%93%81%20%7C%20%E9%81%87%E8%A7%81%E4%BD%A0%EF%BC%8C%E4%BA%88%E8%A7%81%E6%B8%A9%E9%A6%A8&content=%E5%AF%92%E5%A4%9C%E6%9D%A5%E8%A2%AD%EF%BC%8C%E6%B8%A9%E8%BD%AF%E4%B8%8A%E7%BA%BF&url=https%3A%2F%2Fhome.mi.com%2Fapp%2Fshop%2Fcontent%3Fid%3Dobf825039b24c8092&ml=link&wx=link&pyq=link&wb=link&pyqTitle=%E5%AF%92%E5%A4%9C%E6%9D%A5%E8%A2%AD%EF%BC%8C%E6%B8%A9%E8%BD%AF%E4%B8%8A%E7%BA%BF&wbTitle=%E5%AF%92%E5%A4%9C%E6%9D%A5%E8%A2%AD%EF%BC%8C%E6%B8%A9%E8%BD%AF%E4%B8%8A%E7%BA%BF&wbContent=%E5%AF%92%E5%A4%9C%E6%9D%A5%E8%A2%AD%EF%BC%8C%E6%B8%A9%E8%BD%AF%E4%B8%8A%E7%BA%BF&pics=http%3A%2F%2Fapi.io.mi.com%2Fapp%2Fshop%2Fzimg%3Fids%3Dthumb_17af4d75f6331e0b6ac28095528bbd99-pic_17af4d75f6331e0b6ac28095528bbd99&img=https%3A%2F%2Fshop.io.mi-img.com%2Fapp%2Fshop%2Fimg%3Fid%3Dshop_17af4d75f6331e0b6ac28095528bbd99.jpeg%26w%3D200%26h%3D200&bimg=https%3A%2F%2Fshop.io.mi-img.com%2Fapp%2Fshop%2Fimg%3Fid%3Dshop_17af4d75f6331e0b6ac28095528bbd99.jpeg%26w%3D200%26h%3D200";
if(ua&&ua.app&&!args.mihomenoshare){var n=function(){window._MiHomeStore&&window._MiHomeStore.showShareIcon&&window._MiHomeStore.showShareIcon(a)};document.addEventListener("message",function(o){var i=JSON.parse(o.data);"ShareResult"===i.name&&("0"===i.result.toString()?t("success",i.channel):t("faild",i.channel))}),$.ajax({type:"GET",url:a,dataType:"json",timeout:3e3,success:function(){},error:function(){}}),setTimeout(n,1e3),setTimeout(n,2e3),setTimeout(n,1e4)}if(ua&&ua.wechat){var r=new Promise(function(t){o("https://res.wx.qq.com/open/js/jweixin-1.2.0.js",t)}),c=i();r.then(function(){return c}).then(function(t){if(t&&0==t.code&&t.data){var o=t.data;wx.config({debug:!1,appId:o.appId,timestamp:o.timestamp,nonceStr:o.nonceStr,signature:o.signature,jsApiList:["onMenuShareTimeline","onMenuShareAppMessage"]}),e(a)}})}}(),window.publicAttribute={"产品模块":{static:!1}},!function(){function t(){var t=document.createElement("div");t.style.visibility="hidden",t.style.width="100px",t.style.msOverflowStyle="scrollbar",document.body.appendChild(t);var o=t.offsetWidth;t.style.overflow="scroll";var i=document.createElement("div");i.style.width="100%",t.appendChild(i);var e=i.offsetWidth;return t.parentNode.removeChild(t),o-e}function o(){if("absolute"===c)n.css({position:"absolute",right:-a+"px",top:"0px",left:"auto"});else{var t=$("#wrap").width(),o=window.innerWidth;n.css({position:"fixed",left:(o-t)/2+t-d/2+"px",top:"0px",right:"auto"})}}function i(){var t=r.scrollTop();t>$(".editor-app-ad").height()?"absolute"===c&&(c="fixed",o()):"fixed"===c&&(c="absolute",o())}var e=articleMode,a=140;if(ua.pc){var n=$(' ');if("mi"===e)n.find("img").attr("src","//static.home.mi.com/app/shop/pages/editor-static/img/editor-output-qrcode-shop.jpg");else{if("news"!==e)return;n.find("img").attr("src","//m.xiaomiyoupin.com/img/editor-output-qrcode-wechat.png")}$("#wrap").append(n);var r=$(window);r.on("scroll",i),r.on("resize",o),setTimeout(i,200);var c="absolute";n.find(".editor-qrcode-close").on("tap",function(){r.off("scroll",i),r.off("resize",o),n.remove()});var d=t()}}(),function(){function t(t){var i=t.attr("data-lazy-src");i&&(t.attr("src",i).removeAttr("data-lazy-src").css("width","100%").css("opacity","1"),setTimeout(function(){t[0].complete&&o(t),t.on("load",function(){o(t)})}))}function o(t){var o=parseInt(t.css("height"));o<1&&console.log("reset failed"),t.parent().css("padding-top","0").css("overflow","visiable"),t.css("position","static")}function i(){var o=a.scrollTop(),i=a.height();e=e.filter(function(e,a,n){var r=e.offset().top;return!(r