",{src:e});return t[0].naturalWidth?Promise.resolve(t):(t.css({opacity:.01,position:"fixed",bottom:0,left:0,height:"1px",width:"1px","z-index":1e4,"pointer-events":"none"}),$(document.body).append(t),new Promise(function(e){t.on("load",function(){t.detach(),e(t)})}))}function c(e){e=e.replace(/https?:\/\/[\w.-]+/,location.protocol+"//"+location.host);var t=$('');$("body").append(t);var i=y(e).getSize();t.attr("height",i.h),t.attr("width",i.w);var o=t[0].getContext("2d");return Promise.all([r(e)]).then(function(e){o.drawImage(e[0][0],0,0)}).then(function(){return t.remove(),t[0].toDataURL("image/jpeg",.4)}).catch(function(e){alert("111"+e.message)})}function s(){var e=location.origin+location.pathname;return S.id&&(e=L(e,"id",S.id)),L(e,"needlogin",1)}function d(){return w({data:{detail:{model:"Ticket",action:"GetTicket",parameters:{}}},url:v}).then(function(e){return e.detail.data})}function g(){return w({data:{detail:{model:"Ticket",action:"CheckTicketStatus",parameters:{}}},url:v}).then(function(e){return e.detail.data})}function m(e){var t=e.title,i=e.image,o=e.url;_.wxminiprogram&&wx.miniProgram.postMessage({data:{shareTitle:encodeURIComponent(t),shareUrl:o,shareImg:encodeURIComponent(i)}})}var p,l,u,f=e("mi-home-lib"),h=f.ReactRag,b=f.showFloatingLayer2,_=f.ua,w=f.miFetch2,v=f.GPIPE_URL,y=f.SpecificCdnImg,C=f.checkAppApi,P=f.appApi,T=f.toast,k=(f.getPurePageUrl,f.isEditor),S=f.args,L=f.addParam;o.exports=(l=p=function(e){function o(){i(this,o);for(var e=arguments.length,t=Array(e),r=0;r1e8?(o={model:"Cart",action:"add",parameters:{product_id:e,consumption:"1"}},r=d({url:s,$dom:this.props.$sourceDom})):(o={model:"Cart",action:"add",parameters:{pid:e,num:"1"}},r=d({url:m,$dom:this.props.$sourceDom})),this.props.cartExtraParams&&Object.assign(o.parameters,this.props.cartExtraParams),y({data:{detail:o},url:r,$dom:this.props.$sourceDom}).then(function(e){e.detail.code?v(g(e.detail)||"加入购物车失败"):(w.emit("add-cart-success"),i.emit("cart-success"),v(l.app||l.weirdhybrid||$(".editor-fixed-cart-btn").length?"加入购物车成功":"已加入购物车"),t&&t())})}},{key:"renderSection",value:function(e){return'\n \n '+e+' \n \n \n \n \n '}},{key:"renderTag",value:function(e){return' \n '+e.name+" \n \n "}},{key:"renderFooter",value:function(){return'\n \n '}},{key:"renderPanel",value:function(e,t,i){return'\n \n \n \n \n \n \n '+e+'\n ¥'+t+'\n \n \n \n \n '+this.renderFooter()+"\n \n \n "}},{key:"getDetailWrap",value:function(){var e=this;this.getDetailP||(this.getDetailP=this.getDetail(this.props.gid).then(function(t){Object.assign(e.config,e.handleResult(t))}))}},{key:"onGetDetail",value:function(e){return!e||e.code?void console.log("error getting detail",this.props.gid,e):void(this.config=this.handleResult(e))}},{key:"trigger",value:function(){var t=this;if(window.isEditor)return void v("不支持编辑器内使用");if(!this.fetching){if(!this.config)return void this.getDetail(e({},this.props.gid,!0)).then(function(e){return e=e[t.props.gid],e.code?void v(g(e)):(t.onGetDetail(e),void t.trigger())});var i=0;if(!this.detailResult)return void v("数据加载中...");if(b("trigger-bottom",this.props.$sourceDom),!this.config.list)return this.detailResult&&this.detailgood.code&&v(g(this.detailgood)),void f().then(function(e){e||h()});this.config.list.forEach(function(e){e.inventory&&e.inventory>0&&i++}),i?this.config.list.length>1?(this.emit("show"),this.show()):this.addCart(this.config.list[0].pid):v("商品已售罄")}}},{key:"setMode",value:function(e){var t=this.$$;t(".bottom").hide(),t('.bottom[data-mode="'+e+'"]').show()}},{key:"onPressAddCart",value:function(e){this.addCart(e)}},{key:"onPressCheckout",value:function(){var e=this,t=this.props.$sourceDom;if(!this.selectingProduct)return void v("请先选中商品");if(this.selectingProduct.pid){var i=function(){if(e.selectingProduct.map_id&&"0"!==e.selectingProduct.map_id)return e.exit(),u("/detail?gid="+e.props.gid+"&pid="+e.selectingProduct.pid,{$dom:t}),{v:void 0};var i=void 0;i=l.app?"https://m.xiaomiyoupin.com/shop/check?quickOrder=2&pid="+e.selectingProduct.pid:"https://m.xiaomiyoupin.com/shop/checkshop/check?quickOrder=2&pid="+e.selectingProduct.pid,e.exit(),f().then(function(e){if(e)u(i,{$dom:t});else{var o=d({url:i,$dom:t});h(o)}})}();if("object"==typeof i)return i.v}else this.addCart(this.selectingProduct.mapId,function(){e.exit(),u("/cart",{$dom:t})})}},{key:"onTriggerTag",value:function(){function e(e,t){for(var i in t)if(!e.type[i]||""+e.type[i].tid!=""+t[i])return!1;return!0}var t=this,i=this.$$,o={};i(".tag.active").each(function(){var e=$(this),t=e.parent().data("type-name"),i=e.data("tag");o[t]=i}),i(".tag:not(.active)").addClass("disabled");var r=void 0;this.config.list.forEach(function(t){if(e(t,o)){r=t;for(var a in t.type)o[a]||i('[data-type-name="'+a+"\"] .tag[data-tag='"+t.type[a].tid+"']").removeClass("disabled")}});var a=function(r){var a=Object.assign({},o);delete a[r],t.config.list.forEach(function(t){e(t,a)&&i('[data-type-name="'+r+'"] [data-tag="'+t.type[r].tid+'"]').removeClass("disabled")})};for(var n in o)a(n);Object.keys(o).length===Object.keys(this.config.type).length&&r?(i(".title").text(r.name),i(".price").text("¥"+p(r.price,"cent").short),i(".product-img").attr("src",r.image_url),this.selectingProduct=r,r.inventory?this.setMode("ready"):this.setMode("gone")):(i(".title").text(this.config.info.productName),i(".price").text("¥"+this.config.info.price),i(".product-img").attr("src",this.config.info.image_url),this.selectingProduct=void 0,this.setMode("wait")),this.emit("trigger-tag")}},{key:"show",value:function(){var e=this,t=$(this.renderPanel(this.config.info.productName,this.config.info.price,this.config.info.image_url)),i=t.find.bind(t);this.$$=i;var o=function(t){var o=e.config.type[t],r=$(e.renderSection(t));i(".layer>main").append(r),o.forEach(function(t){r.find("main").append($(e.renderTag(t)))})};for(var r in this.config.type)o(r);i(".add-cart").on("tap",function(){e.onPressAddCart(e.selectingProduct.pid||e.selectingProduct.mapId)}),i(".go-checkout").on("tap",function(){e.onPressCheckout()}),this.onTriggerTag();var a=this;t.on("tap",".tag",function(){var e=$(this),t=e.parent();e.hasClass("disabled")||(e.hasClass("active")?(e.inactive(),t.inactive()):(e.active(),t.active(),e.siblings().inactive()),a.onTriggerTag())});var n=P({$dom:t,cb:function(){return e.emit("exit")},closeOnTap:!1,tapShadowHide:!0,backToExit:!0}),c=n.exit;this.exit=c,t.parent().css({left:0,right:0,"max-width":"none"})}},{key:"handleResult",value:function(e){var t=this;this.detailResult=e;var i={};if(!e.group){var o="none"===this.props.$sourceDom[0].style.display||this.props.$sourceDom.hasClass("hide");return void console.warn("商品信息错误",e,this.props.gid,o?"(已隐藏)":"")}var r=e.group;this.props.pidWhiteList&&this.props.pidWhiteList.match(/[^ ]/)&&!function(){var i=t.props.pidWhiteList.split(/ +/).filter(function(e){return e});e.tag_prop=e.tag_prop.filter(function(e){var t=e.pid;return i.indexOf(""+t)>-1}),e.props=e.props.filter(function(e){var t=e.pid;return i.indexOf(""+t)>-1});var o={};e.tag_prop.forEach(function(e){var t=e.tid;o[t]=!0}),e.group.forEach(function(e){e.tags=e.tags.filter(function(e){var t=e.tid;return o[t]})})}();var a=e.tag_prop;r.forEach(function(e){i[e.name]=[],e.tags.forEach(function(t){i[e.name].push(t)})});var n=e.props.filter(function(e){return"-1"!==e.status&&e.status!==-1}).map(function(e){var t=[],i={};a.forEach(function(i){i.pid===e.pid&&t.push(i.tid)}),r.forEach(function(e){var o=e.name;e.tags.forEach(function(e){var r=t.indexOf(e.tid);r>-1&&(i[o]=e)})});var o=void 0;return o=void 0!==e.onsale?e.onsale?1:0:parseInt(e.inventory),{map_id:e.map_id,pid:e.pid,type:i,price:e.price,inventory:o,image_url:e.img,origin_price:parseInt(e.market_price),name:e.name}}),c={price:p(e.good.price_min,"cent").short,productName:e.good.name,image_url:e.good.pic_url};return{info:c,type:i,list:n}}},{key:"preloadDetail",value:function(e){var t=this;r.getDetailCnt>50?(r.getDetailCnt=0,r.requestQueue=[]):clearTimeout(r.getDetailTimeout),r.requestQueue.push(e),r.getDetailCnt++;var i=r.requestQueue.slice();r.getDetailTimeout=setTimeout(function(){var e={};i.forEach(function(t){e[t.props.gid]=!0}),setTimeout(function(){t.getDetail(e).then(function(e){i.forEach(function(t){var i=t.props.gid;t.onGetDetail(e[i])}),i.length=0})},1e3)})}}]),r}(_);T.requestQueue=[],T.getDetailTimeout=0,T.getDetailCnt=0,r.exports=T}(r,o),o.exports&&(c["/cloud/module/product_big/bottom_window.js"]=o.exports)}(),g="/cloud/module/venue_main_product/venue_main_product.action.js",function(){var e={type:"resource"};!function(e,o){function r(e,t){var i=void 0,o=void 0;return parseInt(e)>1e8?(i={model:"Cart",action:"add",parameters:{product_id:e,consumption:"1"}},o=y({url:C,$dom:t})):(i={model:"Cart",action:"add",parameters:{pid:e,num:"1"}},o=y({url:P,$dom:t})),f({data:{detail:i},url:o,$dom:t}).then(function(e){b(e.detail.code?w(e.detail)||"加入购物车失败":u.app||u.weirdhybrid||$(".editor-fixed-cart-btn").length?"加入购物车成功":"已加入购物车")}).catch(function(e){})}function c(e,t){k&&clearTimeout(k),S.push({gid:e,cb:t}),k=setTimeout(function(){var e=S.slice(0);S.length=0,k=0;var t={model:"Product",action:"GetDetailLite",parameters:{}};t.parameters.gid=e.map(function(e){var t=e.gid;return t});var i=void 0;i="static.home.mi.com"===location.host?P:"/app/shopv3/pipe",f({data:{gid:t},success:function(t){if(t.code)return void b(w(t));var i=t.gid.data;e.forEach(function(e){var t=e.gid,o=e.cb;i[t]&&o(i[t])})},error:function(e){b("获取商品信息失败"),console.warn(e)},url:i,skipLogin:!0})},10)}function s(e,t){var i=e.optional||{},o=e.tag||{},r={gid:e.gid,pid:e.pid,name:"",summary:"",src:"",price:"",unit:"元",marketPrice:"",showMarketPrice:"",showTag:!1,tagLineCount:2,firstTagLine:"直降",secondTagLine:"",tagDifferent:!0,btnTitle:e.btnTitle,href:i.href,tagBgImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_afbd3e9203ca5887559d665f6172c625.png&w=120&h=121"};if(t.attr_ext){var a=t.attr_ext;r.name=i.name||a.custom_name,r.summary=i.summary||a.custom_summary,1===a.price_tag&&(r.unit="元起")}return r.name||(r.name=i.name||t.name),r.summary||(r.summary=i.summary||t.summary),t.price_min||(t.price_min=t.price),t.market_price||(t.market_price=t.price_min),i.price&&(t.price_min=Math.round(100*parseFloat(i.price))),i.originalPrice&&(t.market_price=Math.round(100*parseFloat(i.originalPrice))),r.price=l(t.price_min,"cent").short,r.marketPrice=l(t.market_price,"cent").short,r.showMarketPrice=1*t.price_min<1*t.market_price,r.downPriceValue=t.market_price-t.price_min,r.downPrice=l(r.downPriceValue,"cent").short,r.discountText=""+Math.ceil(t.price_min/t.market_price*100)/10,r.discountText=""+r.discountText.replace(/\.\d+/,function(e){return e.slice(0,2)}).replace(/\.0/,""),o.show&&"是"!==o.isUseDefault?(r.showTag=!0,r.tagLineCount=parseInt(o.lines),r.firstTagLine=1===r.tagLineCount?o.text:o.firstLine,r.secondTagLine=2===r.tagLineCount?o.secondLine||"":"",r.tagDifferent=2===r.tagLineCount&&o.different,r.tagBgImg=o.bgImg||"https://shop.io.mi-img.com/app/shop/img?id=shop_c4c9010921186fa4484ac898540d602e.png&w=114&h=132"):(r.showMarketPrice&&(r.showTag=!0,r.secondTagLine=r.downPrice),r.tagBgImg=o.bgImg||"https://shop.io.mi-img.com/app/shop/img?id=shop_c4c9010921186fa4484ac898540d602e.png&w=114&h=132"),t.inventory&&(r.inventory=t.inventory),r}function d(e,t){function i(e){var i="/detail?gid="+t.gid;t.pid&&(i+="&pid="+t.pid);var o=t.href||i;return setTimeout(function(){L||h(o,{$dom:a})}),e&&e.stopPropagation(),!1}var o=e.$$,a=e.$dom,n=o(".tag-box"),c=o(".img-box img"),s=o(".btn");m(a);o(".name").html(t.name).on("tap",i),o(".name-extra").html(t.name).on("tap",i),o(".desc").html(t.summary).on("tap",i),o(".desc-extra").html(t.summary).on("tap",i),o(".present-price").html(t.price),t.showMarketPrice&&o(".market-price").html(t.marketPrice+"元").show(),"元起"===t.unit&&o(".price-yen").html(t.unit),t.pid||s.html(t.btnTitle),t.showTag&&(n.addClass("in").css("background-image","url("+t.tagBgImg+")"),1===t.tagLineCount&&n.addClass("one-line"),t.tagDifferent&&n.addClass("different"),n.find(".first-line").html(t.firstTagLine),n.find(".second-line").html(t.secondTagLine)),c.on("tap",i),u.wxminiprogram&&a.on("tap",i),s.on("tap",function(){return s.hasClass("waiting")?void b("抢购还未开始,请保持关注"):s.hasClass("disable")?void(s.hasClass("soldoff")&&b("商品已售罄,下次早点来吧")):s.hasClass("success")?(g(t.gid,t.pid,a,t.btnTitle),void("加入购物车"===t.btnTitle?r(t.pid,a).catch(function(e){b(e)}):i())):void("加入购物车"===t.btnTitle?e.bottomWindow.trigger():i())})}function g(e,t,i,o){function r(e){var t=parseInt(e/3600),i=parseInt(e%3600/60),o=e-3600*t-60*i;return t<10&&(t="0"+t),i<10&&(i="0"+i),o<10&&(o="0"+o),t+":"+i+":"+o}function a(e,t){d.html(r(e--)),c&&clearInterval(c),c=setInterval(function(){e>0?d.html(r(e--)):t()},1e3)}function n(r){function n(){d.removeClass("waiting"),c&&clearInterval(c),!u.inventory||parseInt(u.inventory)<=0?d.html("已售罄").addClass("disable soldoff"):d.html(o).addClass("success toDetail")}var s=r.detail&&r.detail.data,m=r.activity&&r.activity.data,p=null,l=Array.isArray(s.props)&&s.props,u=null;return l&&l.forEach(function(e){e.pid==t&&(u=e)}),u?v().then(function(r){if(!Array.isArray(m)||0===m.length)return n(),Promise.resolve(u);for(var s=0,l=void 0;s-1||l.pids.indexOf(parseInt(t))>-1)&&r>l.start&&rr?(f=h-r,f>86400&&(f=86400),setTimeout(function(){c&&clearInterval(c),g(e,t,i,o)},1e3*f+500)):f=0,0===f)return void n();d.addClass("waiting");var b=parseInt(f/86400);b>1?(d.html("倒计时"+b+"天"),setTimeout(function(){c&&clearInterval(c),g(e,t,i,o)},1e3*(f-24*b*3600))):a(f,function(){return setTimeout(function(){g(e,t,i,o)},1e3)})}else n();return Promise.resolve(u)}):Promise.reject("no pid detail")}var c=void 0,s={activity:{model:"Activity",action:"getAct",parameters:{gid:e}},detail:{model:"Shopv2",action:"getDetail",parameters:{gid:e}}},d=i.find(".btn").removeClass("hide");return f({data:s}).then(n)}function m(e){var t=e.data("editor-trace");return window.articleModeTraceName+"-"+window.articleId+"-"+t}var p=e("mi-home-lib"),l=p.formatMoney,u=p.ua,f=(p.args,p.addParam,p.miFetch2),h=p.jumpTo,b=p.toast,_=p.Rag,w=p.getChineseMessage,v=(p.floatingLayerId,p.getServerTimestamp),y=p.getTracedUrl2,C=p.PIPE_URL,P=(p.SHOPV3_URL,p.GPIPE_URL),T=e("/cloud/module/product_big/bottom_window.js"),k=void 0,S=[],L=!1,x=void 0;$(window).on("scroll",function(){L=!0,x&&clearTimeout(x),x=setTimeout(function(){x=null,L=!1},100)}),o.exports=function(e){function o(e,t){i(this,o),a(Object.getPrototypeOf(o.prototype),"constructor",this).call(this,e,t),this.initBtnTitle=e.btnTitle,this.init(e,t)}return t(o,e),n(o,[{key:"init",value:function(e){var t=this,i=e.gid,o=e.pid;i&&(o?g(i,o,this.$dom,this.initBtnTitle).then(function(i){var o=s(e,i);d(t,o)}).catch(function(e){return console.log(e)}):c(i,function(o){if(!o)return void console.warn("gid error",i);var r=s(e,o);d(t,r)}),"加入购物车"===e.btnTitle&&(this.bottomWindow=new T({id:"venue-product-floating",gid:e.gid,$sourceDom:this.$dom})))}}]),o}(_)}(r,e),e.exports&&(c["/cloud/module/venue_main_product/venue_main_product.action.js"]=e.exports)}(),g="/cloud/container/venue_card_container/venue_card_container.action.js",function(){var e={type:"resource"};!function(e,t){t.exports=function(){function e(t,o){i(this,e);var r=$('[data-id="'+o+'"]'),a=r.children(),n=a.length;a.eq(Math.floor(Math.random()*n)).show()}return e}()}(r,e),e.exports&&(c["/cloud/container/venue_card_container/venue_card_container.action.js"]=e.exports)}(),g="/cloud/module/venue_main_product_card_a/venue_main_product_card_a.action.js",function(){var e={type:"resource"};!function(e,o){function r(e,t){var i=void 0,o=void 0;return parseInt(e)>1e8?(i={model:"Cart",action:"add",parameters:{product_id:e,consumption:"1"}},o=y({url:C,$dom:t})):(i={model:"Cart",action:"add",parameters:{pid:e,num:"1"}},o=y({url:P,$dom:t})),f({data:{detail:i},url:o,$dom:t}).then(function(e){b(e.detail.code?w(e.detail)||"加入购物车失败":u.app||u.weirdhybrid||$(".editor-fixed-cart-btn").length?"加入购物车成功":"已加入购物车")}).catch(function(e){})}function c(e,t){k&&clearTimeout(k),S.push({gid:e,cb:t}),k=setTimeout(function(){var e=S.slice(0);S.length=0,k=0;var t={model:"Product",action:"GetDetailLite",parameters:{}};t.parameters.gid=e.map(function(e){var t=e.gid;return t});var i=void 0;i="static.home.mi.com"===location.host?P:"/app/shopv3/pipe",f({data:{gid:t},success:function(t){if(t.code)return void b(w(t));var i=t.gid.data;e.forEach(function(e){var t=e.gid,o=e.cb;i[t]&&o(i[t])})},error:function(e){b("获取商品信息失败"),console.warn(e)},url:i,skipLogin:!0})},10)}function s(e,t){var i=e.optional||{},o=e.tag||{},r={gid:e.gid,pid:e.pid,name:"",summary:"",src:"",price:"",unit:"元",marketPrice:"",showMarketPrice:"",showTag:!1,tagLineCount:2,firstTagLine:"直降",secondTagLine:"",tagDifferent:!0,btnTitle:e.btnTitle,href:i.href,tagBgImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_afbd3e9203ca5887559d665f6172c625.png&w=120&h=121"};if(t.attr_ext){var a=t.attr_ext;r.name=i.name||a.custom_name,r.summary=i.summary||a.custom_summary,1===a.price_tag&&(r.unit="元起")}return r.name||(r.name=i.name||t.name),r.summary||(r.summary=i.summary||t.summary),t.price_min||(t.price_min=t.price),t.market_price||(t.market_price=t.price_min),i.price&&(t.price_min=Math.round(100*parseFloat(i.price))),i.originalPrice&&(t.market_price=Math.round(100*parseFloat(i.originalPrice))),r.price=l(t.price_min,"cent").short,r.marketPrice=l(t.market_price,"cent").short,r.showMarketPrice=1*t.price_min<1*t.market_price,r.downPriceValue=t.market_price-t.price_min,r.downPrice=l(r.downPriceValue,"cent").short,r.discountText=""+Math.ceil(t.price_min/t.market_price*100)/10,r.discountText=""+r.discountText.replace(/\.\d+/,function(e){return e.slice(0,2)}).replace(/\.0/,""),o.show&&"是"!==o.isUseDefault?(r.showTag=!0,r.tagLineCount=parseInt(o.lines),r.firstTagLine=1===r.tagLineCount?o.text:o.firstLine,r.secondTagLine=2===r.tagLineCount?o.secondLine||"":"",r.tagDifferent=2===r.tagLineCount&&o.different,r.tagBgImg=o.bgImg||"https://shop.io.mi-img.com/app/shop/img?id=shop_c4c9010921186fa4484ac898540d602e.png&w=114&h=132"):(r.showMarketPrice&&(r.showTag=!0, r.secondTagLine=r.downPrice),r.tagBgImg=o.bgImg||"https://shop.io.mi-img.com/app/shop/img?id=shop_c4c9010921186fa4484ac898540d602e.png&w=114&h=132"),t.inventory&&(r.inventory=t.inventory),r}function d(e,t){function i(e){var i="/detail?gid="+t.gid;t.pid&&(i+="&pid="+t.pid);var o=t.href||i;return setTimeout(function(){L||h(o,{$dom:a})}),e&&e.stopPropagation(),!1}var o=e.$$,a=e.$dom,n=o(".tag-box"),c=o(".img-box img"),s=o(".btn");m(a);o(".name").html(t.name).on("tap",i),o(".name-extra").html(t.name).on("tap",i),o(".desc").html(t.summary).on("tap",i),o(".desc-extra").html(t.summary).on("tap",i),o(".present-price").html(t.price),t.showMarketPrice&&o(".market-price").html(t.marketPrice+"元").show(),"元起"===t.unit&&o(".price-yen").html(t.unit),t.pid||s.html(t.btnTitle),t.showTag&&(n.addClass("in").css("background-image","url("+t.tagBgImg+")"),1===t.tagLineCount&&n.addClass("one-line"),t.tagDifferent&&n.addClass("different"),n.find(".first-line").html(t.firstTagLine),n.find(".second-line").html(t.secondTagLine)),c.on("tap",i),u.wxminiprogram&&a.on("tap",i),s.on("tap",function(){return s.hasClass("waiting")?void b("抢购还未开始,请保持关注"):s.hasClass("disable")?void(s.hasClass("soldoff")&&b("商品已售罄,下次早点来吧")):s.hasClass("success")?(g(t.gid,t.pid,a,t.btnTitle),void("加入购物车"===t.btnTitle?r(t.pid,a).catch(function(e){b(e)}):i())):void("加入购物车"===t.btnTitle?e.bottomWindow.trigger():i())})}function g(e,t,i,o){function r(e){var t=parseInt(e/3600),i=parseInt(e%3600/60),o=e-3600*t-60*i;return t<10&&(t="0"+t),i<10&&(i="0"+i),o<10&&(o="0"+o),t+":"+i+":"+o}function a(e,t){d.html(r(e--)),c&&clearInterval(c),c=setInterval(function(){e>0?d.html(r(e--)):t()},1e3)}function n(r){function n(){d.removeClass("waiting"),c&&clearInterval(c),!u.inventory||parseInt(u.inventory)<=0?d.html("已售罄").addClass("disable soldoff"):d.html(o).addClass("success toDetail")}var s=r.detail&&r.detail.data,m=r.activity&&r.activity.data,p=null,l=Array.isArray(s.props)&&s.props,u=null;return l&&l.forEach(function(e){e.pid==t&&(u=e)}),u?v().then(function(r){if(!Array.isArray(m)||0===m.length)return n(),Promise.resolve(u);for(var s=0,l=void 0;s-1||l.pids.indexOf(parseInt(t))>-1)&&r>l.start&&rr?(f=h-r,f>86400&&(f=86400),setTimeout(function(){c&&clearInterval(c),g(e,t,i,o)},1e3*f+500)):f=0,0===f)return void n();d.addClass("waiting");var b=parseInt(f/86400);b>1?(d.html("倒计时"+b+"天"),setTimeout(function(){c&&clearInterval(c),g(e,t,i,o)},1e3*(f-24*b*3600))):a(f,function(){return setTimeout(function(){g(e,t,i,o)},1e3)})}else n();return Promise.resolve(u)}):Promise.reject("no pid detail")}var c=void 0,s={activity:{model:"Activity",action:"getAct",parameters:{gid:e}},detail:{model:"Shopv2",action:"getDetail",parameters:{gid:e}}},d=i.find(".btn").removeClass("hide");return f({data:s}).then(n)}function m(e){var t=e.data("editor-trace");return window.articleModeTraceName+"-"+window.articleId+"-"+t}var p=e("mi-home-lib"),l=p.formatMoney,u=p.ua,f=(p.args,p.addParam,p.miFetch2),h=p.jumpTo,b=p.toast,_=p.Rag,w=p.getChineseMessage,v=(p.floatingLayerId,p.getServerTimestamp),y=p.getTracedUrl2,C=p.PIPE_URL,P=(p.SHOPV3_URL,p.GPIPE_URL),T=e("/cloud/module/product_big/bottom_window.js"),k=void 0,S=[],L=!1,x=void 0;$(window).on("scroll",function(){L=!0,x&&clearTimeout(x),x=setTimeout(function(){x=null,L=!1},100)}),o.exports=function(e){function o(e,t){i(this,o),a(Object.getPrototypeOf(o.prototype),"constructor",this).call(this,e,t),this.initBtnTitle=e.btnTitle,this.init(e,t)}return t(o,e),n(o,[{key:"init",value:function(e){var t=this,i=e.gid,o=e.pid;i&&(o?g(i,o,this.$dom,this.initBtnTitle).then(function(i){var o=s(e,i);d(t,o)}).catch(function(e){return console.log(e)}):c(i,function(o){if(!o)return void console.warn("gid error",i);var r=s(e,o);d(t,r)}),"加入购物车"===e.btnTitle&&(this.bottomWindow=new T({id:"venue-product-floating",gid:e.gid,$sourceDom:this.$dom})))}}]),o}(_)}(r,e),e.exports&&(c["/cloud/module/venue_main_product_card_a/venue_main_product_card_a.action.js"]=e.exports)}();var l=$('[data-id="editor-rag-2"]');l.length&&l.each(function(){var e=$(this),t=c["/cloud/module/2018_816_coupon/2018_816_coupon.action.js"];t.setDom(e),ReactDOM.render(React.createElement(t,{resources:[{f:"https://shop.io.mi-img.com/app/shop/img?id=shop_0b762ed6a3a29a11e8904175a7c9c34d.jpeg&w=800&h=1000",bg:"https://shop.io.mi-img.com/app/shop/img?id=shop_1c6edad99c57fb0d97f3a134d85e613e.jpeg&w=1080&h=1920",miniprogramPoster:"https://shop.io.mi-img.com/app/shop/img?id=shop_e4eb64cb68e63e1f129c68359769a26d.jpeg&w=500&h=400"}],"couponImg-raw":"https://shop.io.mi-img.com/app/shop/img?id=shop_f8771ec0546757465f28325ac0dbeae4.jpeg&w=1080&h=423","couponImg-fetched":"https://shop.io.mi-img.com/app/shop/img?id=shop_c3e73a278d9ddb812278a47a05682897.jpeg&w=1080&h=423"}),this)});var u=$('[data-id="editor-rag-6"]');u.length&&u.each(function(){var e=$(this),t=c["/cloud/module/2018_816_coupon/2018_816_coupon.action.js"];t.setDom(e),ReactDOM.render(React.createElement(t,{resources:[{bg:"https://shop.io.mi-img.com/app/shop/img?id=shop_1c6edad99c57fb0d97f3a134d85e613e.jpeg&w=1080&h=1920",miniprogramPoster:"https://shop.io.mi-img.com/app/shop/img?id=shop_e4eb64cb68e63e1f129c68359769a26d.jpeg&w=500&h=400",f:"https://shop.io.mi-img.com/app/shop/img?id=shop_0b762ed6a3a29a11e8904175a7c9c34d.jpeg&w=800&h=1000"}],couponImg1:"https://shop.io.mi-img.com/app/shop/img?id=shop_e34349e73b15336f35cabf7fab7b44c6.png&w=583&h=374",couponImg2:"https://shop.io.mi-img.com/app/shop/img?id=shop_e34349e73b15336f35cabf7fab7b44c6.png&w=583&h=374",couponId:4725,qrcodeFront:"",shareTitle:"领取属于你的车票,开启你的新生活","couponImg-fetched":"https://shop.io.mi-img.com/app/shop/img?id=shop_c3e73a278d9ddb812278a47a05682897.jpeg&w=1080&h=423","couponImg-raw":"https://shop.io.mi-img.com/app/shop/img?id=shop_f8771ec0546757465f28325ac0dbeae4.jpeg&w=1080&h=423",couponSucceedTip:"领取成功!你有一张优惠券入账!"}),this)}),p=m["/cloud/container/pure_container/pure_container.action.js"],p&&$('[data-id="editor-rag-4"]').length&&p("editor-rag-4",{mode:"没用"}),p=m["/cloud/container/pure_container/pure_container.action.js"],p&&$('[data-id="editor-rag-9"]').length&&p("editor-rag-9",{mode:"没用",hideInEditor:!1}),p=m["/cloud/container/pure_container/pure_container.action.js"],p&&$('[data-id="editor-rag-11"]').length&&p("editor-rag-11",{mode:"没用"}),p=m["/cloud/container/pure_container/pure_container.action.js"],p&&$('[data-id="editor-rag-18"]').length&&p("editor-rag-18",{mode:"没用",hideInEditor:!1}),p=m["/cloud/container/pure_container/pure_container.action.js"],p&&$('[data-id="editor-rag-25"]').length&&p("editor-rag-25",{mode:"没用"}),$('[data-id="editor-rag-10"]').length&&new c["/cloud/module/tab_switch/tab_switch.action.js"]({tabs:[{title:"男士",id:"a11",url1:"https://shop.io.mi-img.com/app/shop/img?id=shop_11fd0caa64971ce6f4371bb859ea57c1.jpeg&w=360&h=140",url2:"https://shop.io.mi-img.com/app/shop/img?id=shop_7ffbbd87fd71076a39873191f9c254c3.jpeg&w=360&h=140"},{title:"女士",id:"a22",url1:"https://shop.io.mi-img.com/app/shop/img?id=shop_4815484b352ef58a038435a5a4d53eb9.jpeg&w=360&h=140",url2:"https://shop.io.mi-img.com/app/shop/img?id=shop_9f682e7476e30b8f229c429cec1d68a1.jpeg&w=360&h=140"},{url1:"https://shop.io.mi-img.com/app/shop/img?id=shop_2b9e4a3fba14922cbbe36dd938fe5860.jpeg&w=360&h=140",url2:"https://shop.io.mi-img.com/app/shop/img?id=shop_3a6f58d1a41078ba56d4a3ac42d4e2d2.jpeg&w=360&h=140",id:"a33"}]},"editor-rag-10"),$('[data-id="editor-rag-12"]').length&&new c["/cloud/module/venue_main_product/venue_main_product.action.js"]({btnTitle:"立即购买",bgColor:"",imgPosition:"左",imgType:"800图",showCircleBg:!0,tag:{show:!1,bgImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_afbd3e9203ca5887559d665f6172c625.png&w=120&h=121",bgColor:"rgba(0,0,0,0)",textColor:"#fff",lines:"2",text:"众筹",firstLine:"直降",secondLine:"0",different:!0},optional:{show:!1},theme:{show:!1,titleColor:"#fff",titleSize:"39",summaryColor:"rgba(255,255,255,0.7)",summarySize:"30",priceColor:"#fde388",priceSize:"48",yenColor:"#fde388",yenSize:"33",marketPriceColor:"rgba(255,255,255,0.7)",marketPriceSize:"30",btnBgColor:"#fde388",btnBorderRadius:"9",btnColor:"#cc1212",btnSize:"39"},gid:"102122",_editor_only_:{gid:"102122",name:"小米8",summary:"骁龙845处理器,双频GPS",src:"//img.youpin.mi-img.com/800_pic/ba3dde926973d829cb46fef1a4f57334.png@base@tag=imgScale&w=300",price:"2699",marketPrice:"2699",showMarketPrice:!1,showTag:!1,tagLineCount:2,firstTagLine:"直降",secondTagLine:"",tagDifferent:!0,btnTitle:"立即购买",downPriceValue:0,downPrice:"0",discountText:"10"}},"editor-rag-12"),$('[data-id="editor-rag-19"]').length&&new c["/cloud/module/venue_main_product/venue_main_product.action.js"]({btnTitle:"立即购买",bgColor:"",imgPosition:"左",imgType:"800图",showCircleBg:!0,tag:{show:!1,bgImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_afbd3e9203ca5887559d665f6172c625.png&w=120&h=121",bgColor:"rgba(0,0,0,0)",textColor:"#fff",lines:"2",text:"众筹",firstLine:"直降",secondLine:"0",different:!0},optional:{show:!1},theme:{show:!1,titleColor:"#fff",titleSize:"39",summaryColor:"rgba(255,255,255,0.7)",summarySize:"30",priceColor:"#fde388",priceSize:"48",yenColor:"#fde388",yenSize:"33",marketPriceColor:"rgba(255,255,255,0.7)",marketPriceSize:"30",btnBgColor:"#fde388",btnBorderRadius:"9",btnColor:"#cc1212",btnSize:"39"},gid:"102553",_editor_only_:{gid:"102553",name:"乐秀立式大风量空气循环风扇",summary:"对流空气,如沐春风",src:"//img.youpin.mi-img.com/800_pic/4fa3ccae62fccf9d67dae63135b14cde.png@base@tag=imgScale&w=300",price:"499",marketPrice:"499",showMarketPrice:!1,showTag:!1,tagLineCount:2,firstTagLine:"直降",secondTagLine:"",tagDifferent:!0,btnTitle:"立即购买",downPriceValue:0,downPrice:"0",discountText:"10"}},"editor-rag-19"),$('[data-id="editor-rag-13"]').length&&new c["/cloud/container/venue_card_container/venue_card_container.action.js"]({bgColor:"",horizontalPad:"30",middlePad:"24",verticalPad:"0"},"editor-rag-13"),$('[data-id="editor-rag-20"]').length&&new c["/cloud/container/venue_card_container/venue_card_container.action.js"]({bgColor:"",horizontalPad:"30",middlePad:"24",verticalPad:"0"},"editor-rag-20"),$('[data-id="editor-rag-26"]').length&&new c["/cloud/container/venue_card_container/venue_card_container.action.js"]({bgColor:"",horizontalPad:"30",middlePad:"24",verticalPad:"0"},"editor-rag-26"),$('[data-id="editor-rag-41"]').length&&new c["/cloud/container/venue_card_container/venue_card_container.action.js"]({bgColor:"",horizontalPad:"30",middlePad:"24",verticalPad:"0"},"editor-rag-41"),$('[data-id="editor-rag-14"]').length&&new c["/cloud/module/venue_main_product_card_a/venue_main_product_card_a.action.js"]({btnTitle:"立即购买",bgColor:"",cardPosition:"左",imgType:"800图",tag:{show:!1,bgImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_afbd3e9203ca5887559d665f6172c625.png&w=120&h=121",bgColor:"rgba(0,0,0,0)",textColor:"#fff",lines:"2",text:"众筹",firstLine:"直降",secondLine:"0",different:!0},optional:{show:!1},theme:{titleColor:"#fff",titleSize:"39",summaryColor:"rgba(255,255,255,0.7)",summarySize:"30",priceColor:"#fde388",priceSize:"48",yenColor:"#fde388",yenSize:"33",marketPriceColor:"rgba(255,255,255,0.7)",marketPriceSize:"30",btnBgColor:"#fde388",btnBorderRadius:"9",btnColor:"#cc1212",btnSize:"39",whiteBgColor:"#fff6f5",show:!1},gid:100622,_editor_only_:{gid:100622,name:"经典爆款Classic",summary:"半导体指纹一步解锁",src:"//img.youpin.mi-img.com/800_pic/14509d8b5a51143239cfd8db2b9ca698.png@base@tag=imgScale&w=300",price:"1699",marketPrice:"1699",showMarketPrice:!1,showTag:!1,tagLineCount:2,firstTagLine:"直降",secondTagLine:"",tagDifferent:!0,btnTitle:"立即购买",downPriceValue:0,downPrice:"0",discountText:"10"}},"editor-rag-14"),$('[data-id="editor-rag-15"]').length&&new c["/cloud/module/venue_main_product_card_a/venue_main_product_card_a.action.js"]({btnTitle:"立即购买",bgColor:"",cardPosition:"左",imgType:"800图",tag:{show:!1,bgImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_afbd3e9203ca5887559d665f6172c625.png&w=120&h=121",bgColor:"rgba(0,0,0,0)",textColor:"#fff",lines:"2",text:"众筹",firstLine:"直降",secondLine:"0",different:!0},optional:{show:!1},theme:{titleColor:"#fff",titleSize:"39",summaryColor:"rgba(255,255,255,0.7)",summarySize:"30",priceColor:"#fde388",priceSize:"48",yenColor:"#fde388",yenSize:"33",marketPriceColor:"rgba(255,255,255,0.7)",marketPriceSize:"30",btnBgColor:"#fde388",btnBorderRadius:"9",btnColor:"#cc1212",btnSize:"39",whiteBgColor:"#fff6f5",show:!1},gid:102187,_editor_only_:{gid:102187,name:"WalkingPad走步机",summary:"新型对折收纳,脚感控制速度",src:"//img.youpin.mi-img.com/800_pic/101585_34bgob8taj4b2.png@base@tag=imgScale&w=300",price:"1999",marketPrice:"1999",showMarketPrice:!1,showTag:!1,tagLineCount:2,firstTagLine:"直降",secondTagLine:"",tagDifferent:!0,btnTitle:"立即购买",downPriceValue:0,downPrice:"0",discountText:"10"}},"editor-rag-15"),$('[data-id="editor-rag-16"]').length&&new c["/cloud/module/venue_main_product_card_a/venue_main_product_card_a.action.js"]({btnTitle:"立即购买",bgColor:"",cardPosition:"左",imgType:"800图",tag:{show:!1,bgImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_afbd3e9203ca5887559d665f6172c625.png&w=120&h=121",bgColor:"rgba(0,0,0,0)",textColor:"#fff",lines:"2",text:"众筹",firstLine:"直降",secondLine:"0",different:!0},optional:{show:!1},theme:{titleColor:"#fff",titleSize:"39",summaryColor:"rgba(255,255,255,0.7)",summarySize:"30",priceColor:"#fde388",priceSize:"48",yenColor:"#fde388",yenSize:"33",marketPriceColor:"rgba(255,255,255,0.7)",marketPriceSize:"30",btnBgColor:"#fde388",btnBorderRadius:"9",btnColor:"#cc1212",btnSize:"39",whiteBgColor:"#fff6f5",show:!1},gid:101963,_editor_only_:{gid:101963,name:"负离子速干电吹风",summary:"柔顺快干",src:"//img.youpin.mi-img.com/800_pic/5183c32a8bc224f4d53789cedbfb2988.png@base@tag=imgScale&w=300",price:"199",marketPrice:"199",showMarketPrice:!1,showTag:!1,tagLineCount:2,firstTagLine:"直降",secondTagLine:"",tagDifferent:!0,btnTitle:"立即购买",downPriceValue:0,downPrice:"0",discountText:"10"}},"editor-rag-16"),$('[data-id="editor-rag-17"]').length&&new c["/cloud/module/venue_main_product_card_a/venue_main_product_card_a.action.js"]({btnTitle:"立即购买",bgColor:"",cardPosition:"左",imgType:"800图",tag:{show:!1,bgImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_afbd3e9203ca5887559d665f6172c625.png&w=120&h=121",bgColor:"rgba(0,0,0,0)",textColor:"#fff",lines:"2",text:"众筹",firstLine:"直降",secondLine:"0",different:!0},optional:{show:!1},theme:{titleColor:"#fff",titleSize:"39",summaryColor:"rgba(255,255,255,0.7)",summarySize:"30",priceColor:"#fde388",priceSize:"48",yenColor:"#fde388",yenSize:"33",marketPriceColor:"rgba(255,255,255,0.7)",marketPriceSize:"30",btnBgColor:"#fde388",btnBorderRadius:"9",btnColor:"#cc1212",btnSize:"39",whiteBgColor:"#fff6f5",show:!1},gid:101959,_editor_only_:{gid:101959,name:"黑胡桃原木餐桌椅",summary:"黑胡桃原木",src:"//img.youpin.mi-img.com/800_pic/279e3de3e0d218fd869b8219124667c6.png@base@tag=imgScale&w=300",price:"289",marketPrice:"299",showMarketPrice:!0,showTag:!0,tagLineCount:2,firstTagLine:"直降",secondTagLine:"10",tagDifferent:!0,btnTitle:"立即购买",downPriceValue:1e3,downPrice:"10",discountText:"9.7",bgImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_afbd3e9203ca5887559d665f6172c625.png&w=120&h=121"}},"editor-rag-17"),$('[data-id="editor-rag-21"]').length&&new c["/cloud/module/venue_main_product_card_a/venue_main_product_card_a.action.js"]({btnTitle:"立即购买",bgColor:"",cardPosition:"左",imgType:"800图",tag:{show:!1,bgImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_afbd3e9203ca5887559d665f6172c625.png&w=120&h=121",bgColor:"rgba(0,0,0,0)",textColor:"#fff",lines:"2",text:"众筹",firstLine:"直降",secondLine:"0",different:!0},optional:{show:!1},theme:{titleColor:"#fff",titleSize:"39",summaryColor:"rgba(255,255,255,0.7)",summarySize:"30",priceColor:"#fde388",priceSize:"48",yenColor:"#fde388",yenSize:"33",marketPriceColor:"rgba(255,255,255,0.7)",marketPriceSize:"30",btnBgColor:"#fde388",btnBorderRadius:"9",btnColor:"#cc1212",btnSize:"39",whiteBgColor:"#fff6f5",show:!1},gid:756,_editor_only_:{gid:756,name:"便携式果蔬料理机",summary:"三个随行杯,三重联锁设计",src:"//img.youpin.mi-img.com/800_pic/9aa9c0c113310a5f9a83fbd5486d141b.png@base@tag=imgScale&w=300",price:"178",marketPrice:"199",showMarketPrice:!0,showTag:!0,tagLineCount:2,firstTagLine:"直降",secondTagLine:"21",tagDifferent:!0,btnTitle:"立即购买",downPriceValue:2100,downPrice:"21",discountText:"9",bgImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_afbd3e9203ca5887559d665f6172c625.png&w=120&h=121"}},"editor-rag-21"),$('[data-id="editor-rag-22"]').length&&new c["/cloud/module/venue_main_product_card_a/venue_main_product_card_a.action.js"]({btnTitle:"立即购买",bgColor:"",cardPosition:"左",imgType:"800图",tag:{show:!1,bgImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_afbd3e9203ca5887559d665f6172c625.png&w=120&h=121",bgColor:"rgba(0,0,0,0)",textColor:"#fff",lines:"2",text:"众筹",firstLine:"直降",secondLine:"0",different:!0},optional:{show:!1},theme:{titleColor:"#fff",titleSize:"39",summaryColor:"rgba(255,255,255,0.7)",summarySize:"30",priceColor:"#fde388",priceSize:"48",yenColor:"#fde388",yenSize:"33",marketPriceColor:"rgba(255,255,255,0.7)",marketPriceSize:"30",btnBgColor:"#fde388",btnBorderRadius:"9",btnColor:"#cc1212",btnSize:"39",whiteBgColor:"#fff6f5",show:!1},gid:102321,_editor_only_:{gid:102321,name:"小米炫彩小背包",summary:"4级防泼水,10L容量",src:"//img.youpin.mi-img.com/800_pic/701d67a6c1d2bf5ba316a94a58946ed6.png@base@tag=imgScale&w=300",price:"29",marketPrice:"29",showMarketPrice:!1,showTag:!1,tagLineCount:2,firstTagLine:"直降",secondTagLine:"",tagDifferent:!0,btnTitle:"立即购买",downPriceValue:0,downPrice:"0",discountText:"10"}},"editor-rag-22"),$('[data-id="editor-rag-23"]').length&&new c["/cloud/module/venue_main_product_card_a/venue_main_product_card_a.action.js"]({btnTitle:"立即购买",bgColor:"",cardPosition:"左",imgType:"800图",tag:{show:!1,bgImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_afbd3e9203ca5887559d665f6172c625.png&w=120&h=121",bgColor:"rgba(0,0,0,0)",textColor:"#fff",lines:"2",text:"众筹",firstLine:"直降",secondLine:"0",different:!0},optional:{show:!1},theme:{titleColor:"#fff",titleSize:"39",summaryColor:"rgba(255,255,255,0.7)",summarySize:"30",priceColor:"#fde388",priceSize:"48",yenColor:"#fde388",yenSize:"33",marketPriceColor:"rgba(255,255,255,0.7)",marketPriceSize:"30",btnBgColor:"#fde388",btnBorderRadius:"9",btnColor:"#cc1212",btnSize:"39",whiteBgColor:"#fff6f5",show:!1},gid:101325,_editor_only_:{gid:101325,name:"小米电视4C50英寸",summary:"4K HDR,钢琴烤漆",src:"//img.youpin.mi-img.com/800_pic/4b5c5aa0ea5f4492d34a6bae49d002f1.png@base@tag=imgScale&w=300",price:"1499",marketPrice:"1699",showMarketPrice:!0,showTag:!0,tagLineCount:2,firstTagLine:"直降",secondTagLine:"200",tagDifferent:!0,btnTitle:"立即购买",downPriceValue:2e4,downPrice:"200",discountText:"8.9",bgImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_afbd3e9203ca5887559d665f6172c625.png&w=120&h=121"}},"editor-rag-23"),$('[data-id="editor-rag-24"]').length&&new c["/cloud/module/venue_main_product_card_a/venue_main_product_card_a.action.js"]({btnTitle:"立即购买",bgColor:"",cardPosition:"左",imgType:"800图",tag:{show:!1,bgImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_afbd3e9203ca5887559d665f6172c625.png&w=120&h=121",bgColor:"rgba(0,0,0,0)",textColor:"#fff",lines:"2",text:"众筹",firstLine:"直降",secondLine:"0",different:!0},optional:{show:!1},theme:{titleColor:"#fff",titleSize:"39",summaryColor:"rgba(255,255,255,0.7)",summarySize:"30",priceColor:"#fde388",priceSize:"48",yenColor:"#fde388",yenSize:"33",marketPriceColor:"rgba(255,255,255,0.7)",marketPriceSize:"30",btnBgColor:"#fde388",btnBorderRadius:"9",btnColor:"#cc1212",btnSize:"39",whiteBgColor:"#fff6f5",show:!1},gid:101939,_editor_only_:{gid:101939,name:"喷水拖把",summary:"即拖即干不费力",src:"//img.youpin.mi-img.com/800_pic/b9347a5b5df39155e20a4899216ba681.png@base@tag=imgScale&w=300",price:"59",marketPrice:"59",showMarketPrice:!1,showTag:!1,tagLineCount:2,firstTagLine:"直降",secondTagLine:"",tagDifferent:!0,btnTitle:"立即购买",downPriceValue:0,downPrice:"0",discountText:"10"}},"editor-rag-24"),$('[data-id="editor-rag-27"]').length&&new c["/cloud/module/venue_main_product_card_a/venue_main_product_card_a.action.js"]({btnTitle:"立即购买",bgColor:"",cardPosition:"左",imgType:"800图",tag:{show:!1,bgImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_afbd3e9203ca5887559d665f6172c625.png&w=120&h=121",bgColor:"rgba(0,0,0,0)",textColor:"#fff",lines:"2",text:"众筹",firstLine:"直降",secondLine:"0",different:!0},optional:{show:!1},theme:{titleColor:"#fff",titleSize:"39",summaryColor:"rgba(255,255,255,0.7)",summarySize:"30",priceColor:"#fde388",priceSize:"48",yenColor:"#fde388",yenSize:"33",marketPriceColor:"rgba(255,255,255,0.7)",marketPriceSize:"30",btnBgColor:"#fde388",btnBorderRadius:"9",btnColor:"#cc1212",btnSize:"39",whiteBgColor:"#fff6f5",show:!1},gid:102706,_editor_only_:{gid:102706,name:"极蜂强光变焦手电筒",summary:"CREE 1000流明进口灯珠",src:"//img.youpin.mi-img.com/800_pic/817f9fc52421943196a770d53753f513.png@base@tag=imgScale&w=300",price:"139",marketPrice:"149",showMarketPrice:!0,showTag:!0,tagLineCount:2,firstTagLine:"直降",secondTagLine:"10",tagDifferent:!0,btnTitle:"立即购买",downPriceValue:1e3,downPrice:"10",discountText:"9.4",bgImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_afbd3e9203ca5887559d665f6172c625.png&w=120&h=121"}},"editor-rag-27"),$('[data-id="editor-rag-28"]').length&&new c["/cloud/module/venue_main_product_card_a/venue_main_product_card_a.action.js"]({btnTitle:"立即购买",bgColor:"",cardPosition:"左",imgType:"800图",tag:{show:!1,bgImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_afbd3e9203ca5887559d665f6172c625.png&w=120&h=121",bgColor:"rgba(0,0,0,0)",textColor:"#fff",lines:"2",text:"众筹",firstLine:"直降",secondLine:"0",different:!0},optional:{show:!1},theme:{titleColor:"#fff",titleSize:"39",summaryColor:"rgba(255,255,255,0.7)",summarySize:"30",priceColor:"#fde388",priceSize:"48",yenColor:"#fde388",yenSize:"33",marketPriceColor:"rgba(255,255,255,0.7)",marketPriceSize:"30",btnBgColor:"#fde388",btnBorderRadius:"9",btnColor:"#cc1212",btnSize:"39",whiteBgColor:"#fff6f5",show:!1},gid:102027,_editor_only_:{gid:102027,name:"玺佳机械表MY系列",summary:"德国iF设计金奖",src:"//img.youpin.mi-img.com/800_pic/96f266e13f27f13b6116f52004d4cf74.png@base@tag=imgScale&w=300",price:"899",marketPrice:"999",showMarketPrice:!0,showTag:!0,tagLineCount:2,firstTagLine:"直降",secondTagLine:"100",tagDifferent:!0,btnTitle:"立即购买",downPriceValue:1e4,downPrice:"100",discountText:"9",bgImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_afbd3e9203ca5887559d665f6172c625.png&w=120&h=121"}},"editor-rag-28"),$('[data-id="editor-rag-29"]').length&&new c["/cloud/module/venue_main_product_card_a/venue_main_product_card_a.action.js"]({btnTitle:"立即购买",bgColor:"",cardPosition:"左",imgType:"800图",tag:{show:!1,bgImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_afbd3e9203ca5887559d665f6172c625.png&w=120&h=121",bgColor:"rgba(0,0,0,0)",textColor:"#fff",lines:"2",text:"众筹",firstLine:"直降",secondLine:"0",different:!0},optional:{show:!1},theme:{titleColor:"#fff",titleSize:"39",summaryColor:"rgba(255,255,255,0.7)",summarySize:"30",priceColor:"#fde388",priceSize:"48",yenColor:"#fde388",yenSize:"33",marketPriceColor:"rgba(255,255,255,0.7)",marketPriceSize:"30",btnBgColor:"#fde388",btnBorderRadius:"9",btnColor:"#cc1212",btnSize:"39",whiteBgColor:"#fff6f5",show:!1},gid:100767,_editor_only_:{gid:100767,name:"极米H1S 家用智能投影",summary:"5大提升 更强大 音响升级 ",src:"//img.youpin.mi-img.com/800_pic/100767_19tjaf0dnsh3g.png@base@tag=imgScale&w=300",price:"3699",marketPrice:"4399",showMarketPrice:!0,showTag:!0,tagLineCount:2,firstTagLine:"直降",secondTagLine:"700",tagDifferent:!0,btnTitle:"立即购买",downPriceValue:7e4,downPrice:"700",discountText:"8.5"}},"editor-rag-29"),$('[data-id="editor-rag-30"]').length&&new c["/cloud/module/venue_main_product_card_a/venue_main_product_card_a.action.js"]({btnTitle:"立即购买",bgColor:"",cardPosition:"左",imgType:"800图",tag:{show:!1,bgImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_afbd3e9203ca5887559d665f6172c625.png&w=120&h=121",bgColor:"rgba(0,0,0,0)",textColor:"#fff",lines:"2",text:"众筹",firstLine:"直降",secondLine:"0",different:!0},optional:{show:!1},theme:{titleColor:"#fff",titleSize:"39",summaryColor:"rgba(255,255,255,0.7)",summarySize:"30",priceColor:"#fde388",priceSize:"48",yenColor:"#fde388",yenSize:"33",marketPriceColor:"rgba(255,255,255,0.7)",marketPriceSize:"30",btnBgColor:"#fde388",btnBorderRadius:"9",btnColor:"#cc1212",btnSize:"39",whiteBgColor:"#fff6f5",show:!1},gid:101809,_editor_only_:{gid:101809,name:"VH“悠”便携式手持风扇",summary:"7羽叶设计,三档风力",src:"//img.youpin.mi-img.com/800_pic/be468d9b5f325cb2764fe500a523e440.png@base@tag=imgScale&w=300",price:"39",marketPrice:"49",showMarketPrice:!0,showTag:!0,tagLineCount:2,firstTagLine:"直降",secondTagLine:"10",tagDifferent:!0,btnTitle:"立即购买",downPriceValue:1e3,downPrice:"10",discountText:"8",bgImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_afbd3e9203ca5887559d665f6172c625.png&w=120&h=121"}},"editor-rag-30"),$('[data-id="editor-rag-31"]').length&&new c["/cloud/module/venue_main_product_card_a/venue_main_product_card_a.action.js"]({btnTitle:"立即购买",bgColor:"",cardPosition:"左",imgType:"800图",tag:{show:!1,bgImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_afbd3e9203ca5887559d665f6172c625.png&w=120&h=121",bgColor:"rgba(0,0,0,0)",textColor:"#fff",lines:"2",text:"众筹",firstLine:"直降",secondLine:"0",different:!0},optional:{show:!1},theme:{titleColor:"#fff",titleSize:"39",summaryColor:"rgba(255,255,255,0.7)",summarySize:"30",priceColor:"#fde388",priceSize:"48",yenColor:"#fde388",yenSize:"33",marketPriceColor:"rgba(255,255,255,0.7)",marketPriceSize:"30",btnBgColor:"#fde388",btnBorderRadius:"9",btnColor:"#cc1212",btnSize:"39",whiteBgColor:"#fff6f5",show:!1},gid:100617,_editor_only_:{gid:100617,name:"番茄鸡蛋冻干面",summary:"新鲜口感汤汁浓郁",src:"//img.youpin.mi-img.com/800_pic/bdc8ecfd3487ce12b278560ed9c3e19c.png@base@tag=imgScale&w=300",price:"59.9",marketPrice:"59.9",showMarketPrice:!1,showTag:!1,tagLineCount:2,firstTagLine:"直降",secondTagLine:"",tagDifferent:!0,btnTitle:"立即购买",downPriceValue:0,downPrice:"0",discountText:"10"}},"editor-rag-31"),$('[data-id="editor-rag-32"]').length&&new c["/cloud/module/venue_main_product_card_a/venue_main_product_card_a.action.js"]({btnTitle:"立即购买",bgColor:"",cardPosition:"左",imgType:"800图",tag:{show:!1,bgImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_afbd3e9203ca5887559d665f6172c625.png&w=120&h=121",bgColor:"rgba(0,0,0,0)",textColor:"#fff",lines:"2",text:"众筹",firstLine:"直降",secondLine:"0",different:!0},optional:{show:!1},theme:{titleColor:"#fff",titleSize:"39",summaryColor:"rgba(255,255,255,0.7)",summarySize:"30",priceColor:"#fde388",priceSize:"48",yenColor:"#fde388",yenSize:"33",marketPriceColor:"rgba(255,255,255,0.7)",marketPriceSize:"30",btnBgColor:"#fde388",btnBorderRadius:"9",btnColor:"#cc1212",btnSize:"39",whiteBgColor:"#fff6f5",show:!1},gid:101601,_editor_only_:{gid:101601,name:"轻便四轮婴儿推车",summary:"轻巧便携,可坐可躺,一键折叠",src:"//img.youpin.mi-img.com/800_pic/48d99e233cc432ece4f979f006603d2e.png@base@tag=imgScale&w=300",price:"749",marketPrice:"749",showMarketPrice:!1,showTag:!1,tagLineCount:2,firstTagLine:"直降",secondTagLine:"",tagDifferent:!0,btnTitle:"立即购买",downPriceValue:0,downPrice:"0",discountText:"10"}},"editor-rag-32"),$('[data-id="editor-rag-42"]').length&&new c["/cloud/module/venue_main_product_card_a/venue_main_product_card_a.action.js"]({btnTitle:"立即购买",bgColor:"",cardPosition:"左",imgType:"800图",tag:{show:!1,bgImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_afbd3e9203ca5887559d665f6172c625.png&w=120&h=121",bgColor:"rgba(0,0,0,0)",textColor:"#fff",lines:"2",text:"众筹",firstLine:"直降",secondLine:"0",different:!0},optional:{show:!1},theme:{titleColor:"#fff",titleSize:"39",summaryColor:"rgba(255,255,255,0.7)",summarySize:"30",priceColor:"#fde388",priceSize:"48",yenColor:"#fde388",yenSize:"33",marketPriceColor:"rgba(255,255,255,0.7)",marketPriceSize:"30",btnBgColor:"#fde388",btnBorderRadius:"9",btnColor:"#cc1212",btnSize:"39",whiteBgColor:"#fff6f5",show:!1},gid:790,_editor_only_:{gid:790,name:"贝医生巴氏牙刷 四色装",summary:"德日进口刷毛",src:"//img.youpin.mi-img.com/800_pic/790_17jezit0y2q48.png@base@tag=imgScale&w=300",price:"39.9",marketPrice:"39.9",showMarketPrice:!1,showTag:!1,tagLineCount:2,firstTagLine:"直降",secondTagLine:"",tagDifferent:!0,btnTitle:"立即购买",downPriceValue:0,downPrice:"0",discountText:"10"}},"editor-rag-42"),$('[data-id="editor-rag-43"]').length&&new c["/cloud/module/venue_main_product_card_a/venue_main_product_card_a.action.js"]({btnTitle:"立即购买",bgColor:"",cardPosition:"左",imgType:"800图",tag:{show:!1,bgImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_afbd3e9203ca5887559d665f6172c625.png&w=120&h=121",bgColor:"rgba(0,0,0,0)",textColor:"#fff",lines:"2",text:"众筹",firstLine:"直降",secondLine:"0",different:!0},optional:{show:!1},theme:{titleColor:"#fff",titleSize:"39",summaryColor:"rgba(255,255,255,0.7)",summarySize:"30",priceColor:"#fde388",priceSize:"48",yenColor:"#fde388",yenSize:"33",marketPriceColor:"rgba(255,255,255,0.7)",marketPriceSize:"30",btnBgColor:"#fde388",btnBorderRadius:"9",btnColor:"#cc1212",btnSize:"39",whiteBgColor:"#fff6f5",show:!1},gid:103067,_editor_only_:{gid:103067,name:"8H Tree简约全实木床系列",summary:"北美A级白蜡木主材,未检出甲醛",src:"//img.youpin.mi-img.com/800_pic/dacbff6b9418d1e6c8d8034550168974.png@base@tag=imgScale&w=300",price:"599",marketPrice:"599",showMarketPrice:!1,showTag:!1,tagLineCount:2,firstTagLine:"直降",secondTagLine:"",tagDifferent:!0,btnTitle:"立即购买",downPriceValue:0,downPrice:"0",discountText:"10"}},"editor-rag-43"),$('[data-id="editor-rag-44"]').length&&new c["/cloud/module/venue_main_product_card_a/venue_main_product_card_a.action.js"]({btnTitle:"立即购买",bgColor:"",cardPosition:"左",imgType:"800图",tag:{show:!1,bgImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_afbd3e9203ca5887559d665f6172c625.png&w=120&h=121",bgColor:"rgba(0,0,0,0)",textColor:"#fff",lines:"2",text:"众筹",firstLine:"直降",secondLine:"0",different:!0},optional:{show:!1},theme:{titleColor:"#fff",titleSize:"39",summaryColor:"rgba(255,255,255,0.7)",summarySize:"30",priceColor:"#fde388",priceSize:"48",yenColor:"#fde388",yenSize:"33",marketPriceColor:"rgba(255,255,255,0.7)",marketPriceSize:"30",btnBgColor:"#fde388",btnBorderRadius:"9",btnColor:"#cc1212",btnSize:"39",whiteBgColor:"#fff6f5",show:!1},gid:435,_editor_only_:{gid:435,name:"智能LED吸顶灯",summary:"智能控制,荣获两项设计大奖",src:"//img.youpin.mi-img.com/800_pic/ffddb8026cce22b82bb5bffcd710e88c.png@base@tag=imgScale&w=300",price:"299",marketPrice:"379",showMarketPrice:!0,showTag:!0,tagLineCount:2,firstTagLine:"直降",secondTagLine:"80",tagDifferent:!0,btnTitle:"立即购买",downPriceValue:8e3,downPrice:"80",discountText:"7.9",bgImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_afbd3e9203ca5887559d665f6172c625.png&w=120&h=121"}},"editor-rag-44"),$('[data-id="editor-rag-45"]').length&&new c["/cloud/module/venue_main_product_card_a/venue_main_product_card_a.action.js"]({btnTitle:"立即购买",bgColor:"",cardPosition:"左",imgType:"800图",tag:{show:!1,bgImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_afbd3e9203ca5887559d665f6172c625.png&w=120&h=121",bgColor:"rgba(0,0,0,0)",textColor:"#fff",lines:"2",text:"众筹",firstLine:"直降",secondLine:"0",different:!0},optional:{show:!1},theme:{titleColor:"#fff",titleSize:"39",summaryColor:"rgba(255,255,255,0.7)",summarySize:"30",priceColor:"#fde388",priceSize:"48",yenColor:"#fde388",yenSize:"33",marketPriceColor:"rgba(255,255,255,0.7)",marketPriceSize:"30",btnBgColor:"#fde388",btnBorderRadius:"9",btnColor:"#cc1212",btnSize:"39",whiteBgColor:"#fff6f5",show:!1},gid:101567,_editor_only_:{gid:101567,name:"竹语天丝四件套",summary:"凉爽丝滑,天然抑菌",src:"//img.youpin.mi-img.com/800_pic/195c23b9e080d5af4673c06baff004a0.png@base@tag=imgScale&w=300",price:"349",marketPrice:"399",showMarketPrice:!0,showTag:!0,tagLineCount:2,firstTagLine:"直降",secondTagLine:"50",tagDifferent:!0,btnTitle:"立即购买",downPriceValue:5e3,downPrice:"50",discountText:"8.8",bgImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_afbd3e9203ca5887559d665f6172c625.png&w=120&h=121"}},"editor-rag-45"),$('[data-id="editor-rag-46"]').length&&new c["/cloud/module/venue_main_product_card_a/venue_main_product_card_a.action.js"]({ btnTitle:"立即购买",bgColor:"",cardPosition:"左",imgType:"800图",tag:{show:!1,bgImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_afbd3e9203ca5887559d665f6172c625.png&w=120&h=121",bgColor:"rgba(0,0,0,0)",textColor:"#fff",lines:"2",text:"众筹",firstLine:"直降",secondLine:"0",different:!0},optional:{show:!1},theme:{titleColor:"#fff",titleSize:"39",summaryColor:"rgba(255,255,255,0.7)",summarySize:"30",priceColor:"#fde388",priceSize:"48",yenColor:"#fde388",yenSize:"33",marketPriceColor:"rgba(255,255,255,0.7)",marketPriceSize:"30",btnBgColor:"#fde388",btnBorderRadius:"9",btnColor:"#cc1212",btnSize:"39",whiteBgColor:"#fff6f5",show:!1},gid:102607,_editor_only_:{gid:102607,name:"云米冰箱 21Face",summary:"AI语音控制",src:"//img.youpin.mi-img.com/800_pic/14af9af8b9729537dbbf0cf931cc40dd.png@base@tag=imgScale&w=300",price:"5999",marketPrice:"5999",showMarketPrice:!1,showTag:!1,tagLineCount:2,firstTagLine:"直降",secondTagLine:"",tagDifferent:!0,btnTitle:"立即购买",downPriceValue:0,downPrice:"0",discountText:"10"}},"editor-rag-46"),$('[data-id="editor-rag-47"]').length&&new c["/cloud/module/venue_main_product_card_a/venue_main_product_card_a.action.js"]({btnTitle:"立即购买",bgColor:"",cardPosition:"左",imgType:"800图",tag:{show:!1,bgImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_afbd3e9203ca5887559d665f6172c625.png&w=120&h=121",bgColor:"rgba(0,0,0,0)",textColor:"#fff",lines:"2",text:"众筹",firstLine:"直降",secondLine:"0",different:!0},optional:{show:!1},theme:{titleColor:"#fff",titleSize:"39",summaryColor:"rgba(255,255,255,0.7)",summarySize:"30",priceColor:"#fde388",priceSize:"48",yenColor:"#fde388",yenSize:"33",marketPriceColor:"rgba(255,255,255,0.7)",marketPriceSize:"30",btnBgColor:"#fde388",btnBorderRadius:"9",btnColor:"#cc1212",btnSize:"39",whiteBgColor:"#fff6f5",show:!1},gid:102554,_editor_only_:{gid:102554,name:"德尔玛环吸背式吸尘器",summary:"轻巧吸尘,一机多用洁净家",src:"//img.youpin.mi-img.com/800_pic/036b0aa20a20c3bddc1529987471e635.png@base@tag=imgScale&w=300",price:"399",marketPrice:"399",showMarketPrice:!1,showTag:!1,tagLineCount:2,firstTagLine:"直降",secondTagLine:"",tagDifferent:!0,btnTitle:"立即购买",downPriceValue:0,downPrice:"0",discountText:"10"}},"editor-rag-47"),$('[data-id="editor-rag-48"]').length&&new c["/cloud/module/venue_main_product_card_a/venue_main_product_card_a.action.js"]({btnTitle:"立即购买",bgColor:"",cardPosition:"左",imgType:"800图",tag:{show:!1,bgImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_afbd3e9203ca5887559d665f6172c625.png&w=120&h=121",bgColor:"rgba(0,0,0,0)",textColor:"#fff",lines:"2",text:"众筹",firstLine:"直降",secondLine:"0",different:!0},optional:{show:!1},theme:{titleColor:"#fff",titleSize:"39",summaryColor:"rgba(255,255,255,0.7)",summarySize:"30",priceColor:"#fde388",priceSize:"48",yenColor:"#fde388",yenSize:"33",marketPriceColor:"rgba(255,255,255,0.7)",marketPriceSize:"30",btnBgColor:"#fde388",btnBorderRadius:"9",btnColor:"#cc1212",btnSize:"39",whiteBgColor:"#fff6f5",show:!1},gid:"102876",_editor_only_:{gid:"102876",name:"多亲AI功能电话",summary:"内置小爱同学,语音红外遥控器",src:"//img.youpin.mi-img.com/800_pic/7887b091dafa47cb751ab9728b9a42f6.png@base@tag=imgScale&w=300",price:"199",marketPrice:"199",showMarketPrice:!1,showTag:!1,tagLineCount:2,firstTagLine:"直降",secondTagLine:"",tagDifferent:!0,btnTitle:"立即购买",downPriceValue:0,downPrice:"0",discountText:"10"}},"editor-rag-48"),$('[data-id="editor-rag-49"]').length&&new c["/cloud/module/venue_main_product_card_a/venue_main_product_card_a.action.js"]({btnTitle:"立即购买",bgColor:"",cardPosition:"左",imgType:"800图",tag:{show:!1,bgImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_afbd3e9203ca5887559d665f6172c625.png&w=120&h=121",bgColor:"rgba(0,0,0,0)",textColor:"#fff",lines:"2",text:"众筹",firstLine:"直降",secondLine:"0",different:!0},optional:{show:!1},theme:{titleColor:"#fff",titleSize:"39",summaryColor:"rgba(255,255,255,0.7)",summarySize:"30",priceColor:"#fde388",priceSize:"48",yenColor:"#fde388",yenSize:"33",marketPriceColor:"rgba(255,255,255,0.7)",marketPriceSize:"30",btnBgColor:"#fde388",btnBorderRadius:"9",btnColor:"#cc1212",btnSize:"39",whiteBgColor:"#fff6f5",show:!1},gid:101417,_editor_only_:{gid:101417,name:"谷小酒微醺版浓香",summary:"五粮酿造 冰川泉水 固态发酵",src:"//img.youpin.mi-img.com/800_pic/50e49ce7f8834cccd5f712d64ceb28ed.png@base@tag=imgScale&w=300",price:"16.9",marketPrice:"18.9",showMarketPrice:!0,showTag:!0,tagLineCount:2,firstTagLine:"直降",secondTagLine:"2",tagDifferent:!0,btnTitle:"立即购买",downPriceValue:200,downPrice:"2",discountText:"9",bgImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_afbd3e9203ca5887559d665f6172c625.png&w=120&h=121"}},"editor-rag-49")})