\n
\n '+r(e.value,"cent").short+'\n '+e.value_desc+'\n '+e.time_desc+"\n
";
return a+=t?'
\n ':'
'}},{key:"renderLItem",value:function(e){var o=1===+e.type?"https://shop.io.mi-img.com/app/shop/img?id=shop_87b2f8b191449474e5bbf086a352a677.png&w=38&h=48":"https://shop.io.mi-img.com/app/shop/img?id=shop_d8501df2481b23c7131f1fde4c9bdb33.png&w=38&h=48",i={0:"https://shop.io.mi-img.com/app/shop/img?id=shop_3894f25e06eb049feda310e9a24b59a3.png&w=180&h=54",1:"https://shop.io.mi-img.com/app/shop/img?id=shop_ce4c4244e7baa4a26abe6867ead89854.png&w=180&h=54",3:"https://shop.io.mi-img.com/app/shop/img?id=shop_3793132eb5b2bcfcf162e8f323fd6cec.png&w=180&h=54",4:"https://shop.io.mi-img.com/app/shop/img?id=shop_04ac9f9c467d360e1efee6661b2fc3d0.png&w=180&h=54"},t=i[3];2===+e.round_status&&(t=i[4]),0!==+e.status&&0!==+e.round_status||(t=i[0]),1===+e.fetched&&(t=i[1]);var n=void 0;n=1===+e.round_status&&1===+e.status?1:0;var a=r(e.value,"cent").short,d='\n
![优惠券长背景图](https://shop.io.mi-img.com/app/shop/img?id=shop_072f953004e2014da507fb1a3adabd82.png&w=510&h=198)
\n
![券标识]('+o+')
\n
\n
\n '+a+'\n '+e.value_desc+'\n
\n
\n
'+e.scope_desc+'\n
'+e.time_desc+'\n
![券状态按钮]('+t+')
\n
\n
';return d}}]),e}();o.exports=n}(r,e),e.exports&&(c["/cloud/module/coupon_seckill/main.js"]=e.exports)}(),m="/cloud/module/coupon_seckill/coupon_seckill.action.js",function(){var e={type:"resource"};!function(e,o){var t=e("util"),r=(t.ua,t.showFloatingLayer2),n=t.miFetch2,a=(t.countEvent,t.toast),c=(t.addParam,t.GPIPE_URL),s=(t.args,t.getChineseMessage),m=(t.getLogin,t.jumptoLogin,t.formatMoney,e("/cloud/module/coupon_seckill/test_data.js"),e("/cloud/module/coupon_seckill/nav.js")),l=e("/cloud/module/coupon_seckill/main.js"),g={starterCheck:function(e,o){return n({url:c,data:{result:{action:"GetUserActList",model:"CouponAct",parameters:{act_id:e,round_id:o}}}}).then(function(e){var o=e.result;if(o.code)throw a(s(o)),new Error(o);return o.data})},getCoupon:function(e,o,i){return n({url:c,data:{result:{action:"Fetch",model:"CouponAct",parameters:{type:e,id:o,act_id:i}}}}).then(function(e){var o=e.result;if(o.code)throw a(s(o)),new Error(o);return o})}};o.exports=function(){function e(o,t){var r=this;i(this,e);var n=$("[data-id="+t+"]"),a=n.find.bind(n);this.$$=a,this.$dom=n,this.props=o,g.starterCheck(this.props.actId).then(function(e){o.showNav?r.navRender(e.round_list):a(".nav-box").hide(),r.mainRender(r.props.itemStyle,e.coupon_list)})}return d(e,[{key:"navRender",value:function(e){var o=new m(e),i=this.props.actId,t=this.props.itemStyle;this.$$(".nav-tabs").empty().append(o.$dom);var r=this;r.$$(".nav-link").click(function(){r.$$(".nav-link").removeClass("active"),r.$$(this).addClass("active");var e=r.$$(this).attr("roundid");g.starterCheck(i,e).then(function(e){r.mainRender(t,e.coupon_list)})})}},{key:"mainRender",value:function(e,o){var i=new l(e,o),t=this.props.actId;this.$$(".main-list").empty().append(i.$dom);var r=this;r.$$(".item-box").click(function(){var e=this,o=r.$$(this).attr("cstatus"),i=r.$$(this).attr("fid"),n=r.$$(this).attr("ftype");return+o&&0!==+i?void g.getCoupon(n,i,t).then(function(o){o&&0===+o.code?(r.$$(e).find(".status").attr("src","https://shop.io.mi-img.com/app/shop/img?id=shop_ce4c4244e7baa4a26abe6867ead89854.png&w=180&h=54"),r.$$(e).find(".item-status").show().attr("src","https://shop.io.mi-img.com/app/shop/img?id=shop_42f2a4832f2780cba5d6ccca97bed21f.png&w=332&h=198"),r.showWin()):(r.$$(e).addClass("box-disable"),a(s(o)))}):void(0===+i&&a("您已经领取过了!"))})}},{key:"showWin",value:function(){console.log(this),console.log(this.props);var e=this.props.succWin,o=r({$dom:$("#"+e),closeOnTapWrap:!1,closeOnTapShadow:!1}),i=o.$wrap,t=o.exit;i.on("tap",".editor-action-click_to_remove",function(){t()})}}]),e}()}(r,e),e.exports&&(c["/cloud/module/coupon_seckill/coupon_seckill.action.js"]=e.exports)}(),m="/cloud/module/venue_minor_product/venue_minor_product.action.js",function(){var e={type:"resource"};!function(e,t){function r(e,o){var i=void 0,t=void 0;return parseInt(e)>1e8?(i={model:"Cart",action:"add",parameters:{product_id:e,consumption:"1"}},t=v({url:T,$dom:o})):(i={model:"Cart",action:"add",parameters:{pid:e,num:"1"}},t=v({url:P,$dom:o})),u({data:{detail:i},url:t,$dom:o}).then(function(e){_(e.detail.code?w(e.detail)||"加入购物车失败":p.app||p.weirdhybrid||$(".editor-fixed-cart-btn").length?"加入购物车成功":"已加入购物车")})}function n(e,o){L&&clearTimeout(L),z.push({gid:e,cb:o}),L=setTimeout(function(){var e=z.slice(0);z.length=0,L=0;var o={model:"Product",action:"GetDetailLite",parameters:{}};o.parameters.gid=e.map(function(e){var o=e.gid;return o});var i=void 0;i="static.home.mi.com"===location.host?P:"/app/shopv3/pipe",u({data:{gid:o},success:function(o){if(o.code)return void _(w(o));var i=o.gid.data;e.forEach(function(e){var o=e.gid,t=e.cb;i[o]&&t(i[o])})},error:function(e){_("获取商品信息失败"),console.warn(e)},url:h(i,"editor-cache",""+Math.floor(Date.now()/36e5)),skipLogin:!0})},10)}function c(e,o){var i=e.optional||{},t=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};if(o.attr_ext){var n=o.attr_ext;r.name=i.name||n.custom_name,r.summary=i.summary||n.custom_summary,1===n.price_tag&&(r.unit="元起")}return r.name||(r.name=i.name||o.name),r.summary||(r.summary=i.summary||o.summary),r.src=e.src||("场景图"===e.imgType?o.album_url:o.pic_url),r.src||(r.src=o.img),o.price_min||(o.price_min=o.price),o.market_price||(o.market_price=o.price_min),i.price&&(o.price_min=Math.round(100*parseFloat(i.price))),i.originalPrice&&(o.market_price=Math.round(100*parseFloat(i.originalPrice))),r.price=f(o.price_min,"cent").short,r.marketPrice=f(o.market_price,"cent").short,r.showMarketPrice=1*o.price_min<1*o.market_price,r.downPriceValue=o.market_price-o.price_min,r.downPrice=f(r.downPriceValue,"cent").short,r.discountText=""+Math.ceil(o.price_min/o.market_price*100)/10,r.discountText=""+r.discountText.replace(/\.\d+/,function(e){return e.slice(0,2)}).replace(/\.0/,""),t.show?(r.showTag=!0,r.tagLineCount=parseInt(t.lines),r.firstTagLine=1===r.tagLineCount?t.text:t.firstLine,r.secondTagLine=2===r.tagLineCount?t.secondLine||"":"",r.tagDifferent=2===r.tagLineCount&&t.different):r.showMarketPrice&&(r.showTag=!0,r.secondTagLine=r.downPrice),o.inventory&&(r.inventory=o.inventory),r}function s(e,o){function i(e){var i="//m.xiaomiyoupin.com/shop/detail?gid="+o.gid;o.pid&&(i+="&pid="+o.pid);var t=o.href||i;return b(t,{$dom:n}),e&&e.stopPropagation(),!1}var t=e.$$,n=e.$dom,a=t(".tag-box"),d=t(".img-box img"),c=t(".btn");l(n);d.setSrc(o.src),t(".name").html(o.name).on("tap",i),t(".desc").html(o.summary).on("tap",i),t(".present-price").html(o.price),o.showMarketPrice&&t(".market-price").html(o.marketPrice+"元").show(),"元起"===o.unit&&t(".price-yen").html(o.unit),o.pid||c.html(o.btnTitle),o.showTag&&(a.addClass("in"),1===o.tagLineCount&&a.addClass("one-line"),o.tagDifferent&&a.addClass("different"),a.find(".first-line").html(o.firstTagLine),a.find(".second-line").html(o.secondTagLine)),d.on("tap",i),p.wxminiprogram&&n.on("tap",i),c.on("tap",function(){return c.hasClass("waiting")?void _("抢购还未开始,请保持关注"):c.hasClass("disable")?void(c.hasClass("soldoff")&&_("商品已售罄,下次早点来吧")):c.hasClass("success")?(m(o.gid,o.pid,n,o.btnTitle),void("加入购物车"===o.btnTitle?(e.countEvent("addcart"),r(o.pid,n).catch(function(e){_(e)})):i())):void("加入购物车"===o.btnTitle?(e.countEvent("addcart"),e.bottomWindow.trigger()):i())})}function m(e,o,i,t){function r(e){var o=parseInt(e/3600),i=parseInt(e%3600/60),t=e-3600*o-60*i;return o<10&&(o="0"+o),i<10&&(i="0"+i),t<10&&(t="0"+t),o+":"+i+":"+t}function n(e,o){s.html(r(e--)),d&&clearInterval(d),d=setInterval(function(){e>0?s.html(r(e--)):o()},1e3)}function a(r){function a(){s.removeClass("waiting"),d&&clearInterval(d),!p.inventory||parseInt(p.inventory)<=0?s.html("已售罄").addClass("disable soldoff"):s.html(t).addClass("success toDetail")}var c=r.detail&&r.detail.data,l=r.activity&&r.activity.data,g=null,f=Array.isArray(c.props)&&c.props,p=null;return f&&f.forEach(function(e){e.pid==o&&(p=e)}),p?y().then(function(r){if(!Array.isArray(l)||0===l.length)return a(),Promise.resolve(p);for(var c=0,f=void 0;c-1||f.pids.indexOf(parseInt(o))>-1)&&r>f.start&&rr?(h=u-r,h>86400&&(h=86400),setTimeout(function(){d&&clearInterval(d),m(e,o,i,t)},1e3*h+500)):h=0,0===h)return void a();s.addClass("waiting");var b=parseInt(h/86400);b>1?(s.html("倒计时"+b+"天"),setTimeout(function(){d&&clearInterval(d),m(e,o,i,t)},1e3*(h-24*b*3600))):n(h,function(){return setTimeout(function(){m(e,o,i,t)},1e3)})}else a();return Promise.resolve(p)}):Promise.reject("no pid detail")}var d=void 0,c={activity:{model:"Activity",action:"getAct",parameters:{gid:e}},detail:{model:"Shopv2",action:"getDetail",parameters:{gid:e}}},s=i.find(".btn").removeClass("hide");return u({data:c}).then(a)}function l(e){var o=e.data("editor-trace");return window.articleModeTraceName+"-"+window.articleId+"-"+o}var g=e("mi-home-lib"),f=g.formatMoney,p=g.ua,h=(g.args,g.addParam),u=g.miFetch2,b=g.jumpTo,_=g.toast,C=g.Rag,w=g.getChineseMessage,y=(g.floatingLayerId,g.getServerTimestamp),v=g.getTracedUrl2,T=g.PIPE_URL,P=(g.SHOPV3_URL,g.GPIPE_URL),S=e("/cloud/module/product_big/bottom_window.js"),L=void 0,z=[];t.exports=function(e){function t(e,o){i(this,t),a(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e,o),this.initBtnTitle=e.btnTitle,this.init(e,o)}return o(t,e),d(t,[{key:"init",value:function(e){var o=this,i=e.gid,t=e.pid;i&&(t?m(i,t,this.$dom,this.initBtnTitle).then(function(i){var t=c(e,i);s(o,t)}).catch(function(e){return console.log(e)}):n(i,function(t){if(!t)return void console.warn("gid error",i);var r=c(e,t);s(o,r)}),"加入购物车"===e.btnTitle&&(this.bottomWindow=new S({id:"venue-product-floating",gid:e.gid,$sourceDom:this.$dom})))}}]),t}(C)}(r,e),e.exports&&(c["/cloud/module/venue_minor_product/venue_minor_product.action.js"]=e.exports)}(),m="/cloud/container/venue_card_container/venue_card_container.action.js",function(){var e={type:"resource"};!function(e,o){o.exports=function(){function e(o,t){i(this,e);var r=$('[data-id="'+t+'"]'),n=r.children(),a=n.length;n.eq(Math.floor(Math.random()*a)).show()}return e}()}(r,e),e.exports&&(c["/cloud/container/venue_card_container/venue_card_container.action.js"]=e.exports)}(),m="/cloud/module/venue_minor_product_card/venue_minor_product_card.action.js",function(){var e={type:"resource"};!function(e,t){function r(e,o){var i=void 0,t=void 0;return parseInt(e)>1e8?(i={model:"Cart",action:"add",parameters:{product_id:e,consumption:"1"}},t=v({url:T,$dom:o})):(i={model:"Cart",action:"add",parameters:{pid:e,num:"1"}},t=v({url:P,$dom:o})),u({data:{detail:i},url:t,$dom:o}).then(function(e){_(e.detail.code?w(e.detail)||"加入购物车失败":p.app||p.weirdhybrid||$(".editor-fixed-cart-btn").length?"加入购物车成功":"已加入购物车")})}function n(e,o){L&&clearTimeout(L),z.push({gid:e,cb:o}),L=setTimeout(function(){var e=z.slice(0);z.length=0,L=0;var o={model:"Product",action:"GetDetailLite",parameters:{}};o.parameters.gid=e.map(function(e){var o=e.gid;return o});var i=void 0;i="static.home.mi.com"===location.host?P:"/app/shopv3/pipe",u({data:{gid:o},success:function(o){if(o.code)return void _(w(o));var i=o.gid.data;e.forEach(function(e){var o=e.gid,t=e.cb;i[o]&&t(i[o])})},error:function(e){_("获取商品信息失败"),console.warn(e)},url:h(i,"editor-cache",""+Math.floor(Date.now()/36e5)),skipLogin:!0})},10)}function c(e,o){var i=e.optional||{},t=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};if(o.attr_ext){var n=o.attr_ext;r.name=i.name||n.custom_name,r.summary=i.summary||n.custom_summary,1===n.price_tag&&(r.unit="元起")}return r.name||(r.name=i.name||o.name),r.summary||(r.summary=i.summary||o.summary),r.src=e.src||("场景图"===e.imgType?o.album_url:o.pic_url),r.src||(r.src=o.img),o.price_min||(o.price_min=o.price),o.market_price||(o.market_price=o.price_min),i.price&&(o.price_min=Math.round(100*parseFloat(i.price))),i.originalPrice&&(o.market_price=Math.round(100*parseFloat(i.originalPrice))),r.price=f(o.price_min,"cent").short,r.marketPrice=f(o.market_price,"cent").short,r.showMarketPrice=1*o.price_min<1*o.market_price,r.downPriceValue=o.market_price-o.price_min,r.downPrice=f(r.downPriceValue,"cent").short,r.discountText=""+Math.ceil(o.price_min/o.market_price*100)/10,r.discountText=""+r.discountText.replace(/\.\d+/,function(e){return e.slice(0,2)}).replace(/\.0/,""),t.show?(r.showTag=!0,r.tagLineCount=parseInt(t.lines),r.firstTagLine=1===r.tagLineCount?t.text:t.firstLine,r.secondTagLine=2===r.tagLineCount?t.secondLine||"":"",r.tagDifferent=2===r.tagLineCount&&t.different):r.showMarketPrice&&(r.showTag=!0,r.secondTagLine=r.downPrice),o.inventory&&(r.inventory=o.inventory),r}function s(e,o){function i(e){var i="//m.xiaomiyoupin.com/shop/detail?gid="+o.gid;o.pid&&(i+="&pid="+o.pid);var t=o.href||i;return b(t,{$dom:n}),e&&e.stopPropagation(),!1}var t=e.$$,n=e.$dom,a=t(".tag-box"),d=t(".img-box img"),c=t(".btn");l(n);d.setSrc(o.src),t(".name").html(o.name).on("tap",i),t(".desc").html(o.summary).on("tap",i),t(".present-price").html(o.price),o.showMarketPrice&&t(".market-price").html(o.marketPrice+"元").show(),"元起"===o.unit&&t(".price-yen").html(o.unit),o.pid||c.html(o.btnTitle),o.showTag&&(a.addClass("in"),1===o.tagLineCount&&a.addClass("one-line"),o.tagDifferent&&a.addClass("different"),a.find(".first-line").html(o.firstTagLine),a.find(".second-line").html(o.secondTagLine)),d.on("tap",i),p.wxminiprogram&&n.on("tap",i),c.on("tap",function(){return c.hasClass("waiting")?void _("抢购还未开始,请保持关注"):c.hasClass("disable")?void(c.hasClass("soldoff")&&_("商品已售罄,下次早点来吧")):c.hasClass("success")?(m(o.gid,o.pid,n,o.btnTitle),void("加入购物车"===o.btnTitle?(e.countEvent("addcart"),r(o.pid,n).catch(function(e){_(e)})):i())):void("加入购物车"===o.btnTitle?(e.countEvent("addcart"),e.bottomWindow.trigger()):i())})}function m(e,o,i,t){function r(e){var o=parseInt(e/3600),i=parseInt(e%3600/60),t=e-3600*o-60*i;return o<10&&(o="0"+o),i<10&&(i="0"+i),t<10&&(t="0"+t),o+":"+i+":"+t}function n(e,o){s.html(r(e--)),d&&clearInterval(d),d=setInterval(function(){e>0?s.html(r(e--)):o()},1e3)}function a(r){function a(){s.removeClass("waiting"),d&&clearInterval(d),!p.inventory||parseInt(p.inventory)<=0?s.html("已售罄").addClass("disable soldoff"):s.html(t).addClass("success toDetail")}var c=r.detail&&r.detail.data,l=r.activity&&r.activity.data,g=null,f=Array.isArray(c.props)&&c.props,p=null;return f&&f.forEach(function(e){e.pid==o&&(p=e)}),p?y().then(function(r){if(!Array.isArray(l)||0===l.length)return a(),Promise.resolve(p);for(var c=0,f=void 0;c-1||f.pids.indexOf(parseInt(o))>-1)&&r>f.start&&rr?(h=u-r,h>86400&&(h=86400),setTimeout(function(){d&&clearInterval(d),m(e,o,i,t)},1e3*h+500)):h=0,0===h)return void a();s.addClass("waiting");var b=parseInt(h/86400);b>1?(s.html("倒计时"+b+"天"),setTimeout(function(){d&&clearInterval(d),m(e,o,i,t)},1e3*(h-24*b*3600))):n(h,function(){return setTimeout(function(){m(e,o,i,t)},1e3)})}else a();return Promise.resolve(p)}):Promise.reject("no pid detail")}var d=void 0,c={activity:{model:"Activity",action:"getAct",parameters:{gid:e}},detail:{model:"Shopv2",action:"getDetail",parameters:{gid:e}}},s=i.find(".btn").removeClass("hide");return u({data:c}).then(a)}function l(e){var o=e.data("editor-trace");return window.articleModeTraceName+"-"+window.articleId+"-"+o}var g=e("mi-home-lib"),f=g.formatMoney,p=g.ua,h=(g.args,g.addParam),u=g.miFetch2,b=g.jumpTo,_=g.toast,C=g.Rag,w=g.getChineseMessage,y=(g.floatingLayerId,g.getServerTimestamp),v=g.getTracedUrl2,T=g.PIPE_URL,P=(g.SHOPV3_URL,g.GPIPE_URL),S=e("/cloud/module/product_big/bottom_window.js"),L=void 0,z=[];t.exports=function(e){function t(e,o){i(this,t),a(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e,o),this.initBtnTitle=e.btnTitle,this.init(e,o)}return o(t,e),d(t,[{key:"init",value:function(e){var o=this,i=e.gid,t=e.pid;i&&(t?m(i,t,this.$dom,this.initBtnTitle).then(function(i){var t=c(e,i);s(o,t)}).catch(function(e){return console.log(e)}):n(i,function(t){if(!t)return void console.warn("gid error",i);var r=c(e,t);s(o,r)}),"加入购物车"===e.btnTitle&&(this.bottomWindow=new S({id:"venue-product-floating",gid:e.gid,$sourceDom:this.$dom})))}}]),t}(C)}(r,e),e.exports&&(c["/cloud/module/venue_minor_product_card/venue_minor_product_card.action.js"]=e.exports)}(),m="/cloud/container/venue_container/venue_container.action.js",function(){var e={type:"resource"};!function(e,o){}(r,e),e.exports&&(c["/cloud/container/venue_container/venue_container.action.js"]=e.exports)}(),m="/cloud/module/seckill_preview/seckill_preview.action.js",function(){var e={type:"resource"};!function(e,o){var t=e("util"),r=t.miFetch2,n=t.GPIPE_URL,a=(t.getChineseMessage,t.getTracedUrl2),c=r({url:n,data:{list:{model:"Couponv2",action:"GetFlashSaleList",parameters:{pid:"",gid:""}}}}).then(function(e){return e.list.data});o.exports=function(){function e(o,t){var r=this;i(this,e);var n=$('[data-id="'+t+'"]');this.props=o,this.$dom=n,this.$$=n.find.bind(n);var a=this;this.$$(".nav-btn").on("tap",function(){var e=1*$(this).data("nav-index");$(this).hasClass("disabled")||a.select(e)}),c.then(function(e){var o=r.handleData(e);if(r.data=o,o){var i=o[0]&&o[0].some(function(e){return e.to_fetch});o[0]&&r.enable(0),o[1]&&r.enable(1),o[0]?(r.select(0),!i&&o[1]&&r.select(1)):o[1]&&r.select(1)}})}return d(e,[{key:"renderProduct",value:function(e){var o=$('\n
\n \n
![]('+e.img+')
\n
\n \n '+e.name+'
\n ¥'+formatMoney(e.flash_price,"cent").short+'\n ¥'+formatMoney(e.origin_price,"cent").short+"
\n ");if(e.to_fetch){var i=a({url:"http://m.xiaomiyoupin.com/shop/detail?gid="+e.gid+"&pid="+e.pid,$dom:this.$dom,traceAppend:[e.pid],uid:!1});o.attr("href",i)}else o.append('\n 已抢完\n
');return ua.pc?o.css("zoom","1.3"):ua.iOS&&o.css("zoom","1.1"),o}},{key:"renderPage",value:function(e,o){for(var i=$(''),t=0;t'),n=t;no.name?1:-1:e.ctime-o.ctime});var s={};n.forEach(function(e){e.total<=0&&(e.total=1),e.to_fetch<0&&(e.to_fetch=0),e.to_fetch>e.total&&(e.to_fetch=e.total),1e3*e.start_time>t&&(e.to_fetch=e.total),s[e.start_time]||(s[e.start_time]=[]),s[e.start_time].push(e)});var m=Object.keys(s).sort(function(e,o){return 1*e-1*o}).map(function(e){return 1*e}),l=void 0,g=void 0;m.some(function(e,o){if(o===m.length-1)l||(l=m[o]);else{var i=m[o+1];if(0===o&&e>r)return g=e,!0;e<=r&&i>r&&(l=e,g=i)}});var f=function(e){var i=[];return e.length<=o.props.cnt?e:(e.forEach(function(e){e.to_fetch>0&&i.length40, 透气排汗,薄透",src:"https://shop.io.mi-img.com/app/shop/img?id=shop_b9d8ca6d22cbda917b563d50323c14e9.jpeg",price:"129",marketPrice:"129",showMarketPrice:!1,showTag:!1,tagLineCount:2,firstTagLine:"直降",secondTagLine:"",tagDifferent:!0,btnTitle:"加入购物车",downPriceValue:0,downPrice:"0",discountText:"10"}},"editor-rag-172"),$('[data-id="editor-rag-173"]').length&&new c["/cloud/module/venue_minor_product_card/venue_minor_product_card.action.js"]({btnTitle:"加入购物车",bgColor:"",cardPosition:"左",imgType:"白底图",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:!0,titleColor:"#ffffff",titleSize:"39",summaryColor:"rgba(51,51,51,0.7)",summarySize:"30",priceColor:"#fdd588",priceSize:"48",yenColor:"#fdd588",yenSize:"33",marketPriceColor:"#f1d1d1",marketPriceSize:"30",btnBgColor:"#fdd588",btnBorderRadius:"9",btnColor:"#cc1212",btnSize:"33",whiteBgColor:"#fff",summaryBgColor:"#EAEBEA"},gid:101975,_editor_only_:{gid:101975,name:"ZMI 无线充电器(套装版)",summary:"多协议快充/智能识别",src:"https://shop.io.mi-img.com/app/shop/img?id=shop_14f2f811186eb0a7bf608e5a569eba12.jpeg",price:"129",marketPrice:"129",showMarketPrice:!1,showTag:!1,tagLineCount:2,firstTagLine:"直降",secondTagLine:"",tagDifferent:!0,btnTitle:"加入购物车",downPriceValue:0,downPrice:"0",discountText:"10"}},"editor-rag-173"),g=l["/cloud/container/venue_container/venue_container.action.js"],g&&$('[data-id="editor-rag-49"]').length&&g("editor-rag-49",{bgColor:"#D03534",verticalPad:"0",hideInEditor:!1}),$('[data-id="editor-rag-91"]').length&&new c["/cloud/module/seckill_preview/seckill_preview.action.js"]({colorActive:"#d63a1a",colorRaw:"#d65c53",colorGo:"#db9672",colorDisabled:"#777",cnt:3,seckillHref:"https://m.xiaomiyoupin.com/shop/activity?cid=oed6fd0393b6297e1",cornorImg:"https://shop.io.mi-img.com/app/shop/img?id=shop_866e0de1646f445a15cc6ac3cb0a01f8.png&w=127&h=127"},"editor-rag-91");var f={title:"有品618狂欢购物节",wb:"link",pyq:"link",wx:"link",content:"新品天天5折抢,百元神券每天秒,下单抽奖,超值满减尽在有品618...",imgs:[["https://shop.io.mi-img.com/app/shop/img?id=shop_54eb82269b17596d570d76daf0bf065a.jpeg&w=200&h=200"],[],[]],bimg:"https%3A%2F%2Fshop.io.mi-img.com%2Fapp%2Fshop%2Fimg%3Fid%3Dshop_54eb82269b17596d570d76daf0bf065a.jpeg%26w%3D200%26h%3D200",pics:"http%3A%2F%2Fapi.io.mi.com%2Fapp%2Fshop%2Fzimg%3Fids%3Dthumb_54eb82269b17596d570d76daf0bf065a-pic_54eb82269b17596d570d76daf0bf065a",image:"https://shop.io.mi-img.com/app/shop/img?id=shop_54eb82269b17596d570d76daf0bf065a.jpeg&w=200&h=200"};window.editorPageShareParams=f,!shareInit(f,{disableAppShareToast:0})})