\n
\n '+n(t.value,"cent").short+'\n '+t.value_desc+'\n '+t.time_desc+"\n
";return s+=o?'\n ':''}},{key:"renderLItem",value:function(t){var e=1===+t.type?"https://shop.io.mi-img.com/app/shop/img?id=shop_79bb7d9bad6d1a85936c74def97de289.png&w=38&h=48":"https://shop.io.mi-img.com/app/shop/img?id=shop_a73947c94f59f6a4e763b3e1a1350ccc.png&w=38&h=48",i={0:"https://shop.io.mi-img.com/app/shop/img?id=shop_2cfd8cf3bba47a6cd00e8bd6995bbbbd.png&w=173&h=42",1:"https://shop.io.mi-img.com/app/shop/img?id=shop_3899517ec10ae1cca78cea3b34cedead.png&w=173&h=42",3:"https://shop.io.mi-img.com/app/shop/img?id=shop_7079df2c1ca300788a20f288f6edccb1.png&w=173&h=42",4:"https://shop.io.mi-img.com/app/shop/img?id=shop_f6c62c9ed05a2db14d261a01b61243fd.png&w=173&h=42"},o=i[3];2===+t.round_status&&(o=i[4]),0!==+t.status&&0!==+t.round_status||(o=i[0]),1===+t.fetched&&(o=i[1]);var a=void 0;a=1===+t.round_status&&1===+t.status?1:0;var s='\n
\n
\n
\n
\n '+n(t.value,"cent").short+'\n '+t.value_desc+'\n
\n
\n
'+t.scope_desc+'\n
'+t.time_desc+'\n
\n
\n
';return s}}]),e}();i.exports=s}(i,e),e.exports&&(a["/cloud/module/coupon_seckill/main.js"]=e.exports)}(),s="/cloud/module/coupon_seckill/coupon_seckill.action.js",function(){var e={type:"resource"};!function(e,i){var a=e("util"),n=(a.ua,a.showFloatingLayer2),s=a.miFetch2,r=(a.countEvent,a.toast),c=(a.addParam,a.GPIPE_URL),d=(a.args,a.getChineseMessage),p=(a.getLogin,a.jumptoLogin,a.formatMoney,e("/cloud/module/coupon_seckill/test_data.js"),e("/cloud/module/coupon_seckill/nav.js")),l=e("/cloud/module/coupon_seckill/main.js"),u={starterCheck:function(t,e){return s({url:c,data:{result:{action:"GetUserActList",model:"CouponAct",parameters:{act_id:t,round_id:e}}}}).then(function(t){var e=t.result;if(e.code)throw r(d(e)),new Error(e);return e.data})},getCoupon:function(t,e,i){return s({url:c,data:{result:{action:"Fetch",model:"CouponAct",parameters:{type:t,id:e,act_id:i}}}}).then(function(t){var e=t.result;if(e.code)throw r(d(e)),new Error(e);return e})}},h=void 0,m=void 0,f=void 0;i.exports=function(){function e(i,o){var a=this;t(this,e);var n=$("[data-id="+o+"]"),s=n.find.bind(n);this.$$=s,this.$dom=n,this.props=i,h=this.props.actId,m=this.props.itemStyle,f=this.props.succWin,u.starterCheck(this.props.actId).then(function(t){a.navRender(t.round_list),a.mainRender(a.props.itemStyle,t.coupon_list)})}return o(e,[{key:"navRender",value:function(t){var e=new p(t);this.$$(".nav-tabs").empty().append(e.$dom);var i=this;i.$$(".nav-link").click(function(){i.$$(".nav-link").removeClass("active"),i.$$(this).addClass("active");var t=i.$$(this).attr("roundid");u.starterCheck(h,t).then(function(t){i.mainRender(m,t.coupon_list)})})}},{key:"mainRender",value:function(t,e){var i=new l(t,e);this.$$(".main-list").empty().append(i.$dom);var o=this;o.$$(".item-box").click(function(){var t=this,e=o.$$(this).attr("cstatus"),i=o.$$(this).attr("fid"),a=o.$$(this).attr("ftype");return+e&&0!==+i?void u.getCoupon(a,i,h).then(function(e){o.$$(t).addClass("box-disable"),e&&0===+e.code?(o.$$(t).find(".status").attr("src","https://shop.io.mi-img.com/app/shop/img?id=shop_3899517ec10ae1cca78cea3b34cedead.png&w=173&h=42"),o.$$(t).find(".item-status").show().attr("src","https://shop.io.mi-img.com/app/shop/img?id=shop_42f2a4832f2780cba5d6ccca97bed21f.png&w=332&h=198"),o.showWin()):r(d(e))}):void(0===+i&&r("您已经领取过了!"))})}},{key:"showWin",value:function(){var t=n({$dom:$("#"+f),closeOnTapWrap:!1,closeOnTapShadow:!1}),e=t.$wrap,i=t.exit;e.on("tap",".editor-action-click_to_remove",function(){i()})}}]),e}()}(i,e),e.exports&&(a["/cloud/module/coupon_seckill/coupon_seckill.action.js"]=e.exports)}(),c=r["/cloud/container/pure_container/pure_container.action.js"],c&&$('[data-id="editor-rag-2"]').length&&c("editor-rag-2",{mode:"没用"}),c=r["/cloud/container/pure_container/pure_container.action.js"],c&&$('[data-id="editor-rag-20"]').length&&c("editor-rag-20",{mode:"没用"}),$('[data-id="editor-rag-4"]').length&&new a["/cloud/module/coupon_seckill/coupon_seckill.action.js"]({navBgc:"#ca0c1c",mainBgc:"#ca0c1c",itemStyle:"long",actId:3,succWin:"success"},"editor-rag-4"),!shareInit({title:"米粉节 一起狂欢8!",wb:"link",pyq:"link",wx:"link",content:"小米尖货限时开售/爆品最高降",imgs:[["https://shop.io.mi-img.com/app/shop/img?id=shop_8e2b3dd2e764a39c89728435b85fd7aa.jpeg&w=200&h=200"],[],[]],bimg:"https%3A%2F%2Fshop.io.mi-img.com%2Fapp%2Fshop%2Fimg%3Fid%3Dshop_8e2b3dd2e764a39c89728435b85fd7aa.jpeg%26w%3D200%26h%3D200",pics:"http%3A%2F%2Fapi.io.mi.com%2Fapp%2Fshop%2Fzimg%3Fids%3Dthumb_8e2b3dd2e764a39c89728435b85fd7aa-pic_8e2b3dd2e764a39c89728435b85fd7aa",image:"https://shop.io.mi-img.com/app/shop/img?id=shop_8e2b3dd2e764a39c89728435b85fd7aa.jpeg&w=200&h=200"},{disableAppShareToast:0})})