item-legacy.408891a4.js 5.9 KB

1
  1. !function(){var e=document.createElement("style");e.innerHTML='._coupons_1mgv5_1 .van-tab{font-size:.42667rem}._coupons_1mgv5_1 .van-tab--active{color:#2dc7aa}._list_1mgv5_7{margin:.37333rem;border-radius:.26667rem;--coupon-point: #f6f8f9}._item_1mgv5_12{position:relative;border-radius:.26667rem;background:#fae6e7;padding:.53333rem .26667rem .53333rem .48rem;color:#fc1a19}._item_1mgv5_12+._item_1mgv5_12{margin-top:.37333rem}._item_1mgv5_12._USED_1mgv5_22,._item_1mgv5_12._EXPIRED_1mgv5_23{background:#eaeaea;color:#666}._item_1mgv5_12._USED_1mgv5_22 ._conditionTag_1mgv5_27,._item_1mgv5_12._EXPIRED_1mgv5_23 ._conditionTag_1mgv5_27{background-color:#ebebeb}._item_1mgv5_12._select_1mgv5_31{padding-left:1.06667rem}._item_1mgv5_12._disabled_1mgv5_34{opacity:.6}._item_1mgv5_12:before,._item_1mgv5_12:after{position:absolute;width:.42667rem;height:.42667rem;border-radius:50%;content:" ";z-index:1;top:50%;background:var(--coupon-point);margin-top:-.21333rem}._item_1mgv5_12:before{left:-.21333rem}._item_1mgv5_12:after{right:-.21333rem}._item_1mgv5_12 ._top_1mgv5_55,._item_1mgv5_12 ._bottom_1mgv5_56{display:flex;align-items:center}._item_1mgv5_12 ._price_1mgv5_60{font-size:.96rem;font-weight:700;line-height:1.12rem;width:2.98667rem;font-family:PingFangSC-Regular,PingFang SC}._item_1mgv5_12 ._price_1mgv5_60 ._suffix_1mgv5_67{font-size:.64rem;line-height:.88rem}._item_1mgv5_12 ._price_1mgv5_60 ._number_1mgv5_71{display:inline-block;min-width:1.06667rem;text-align:center}._item_1mgv5_12 ._type_1mgv5_76{max-width:4.4rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:.42667rem;font-weight:500;line-height:.58667rem}._item_1mgv5_12 ._bottom_1mgv5_56{padding-top:.13333rem;font-size:.32rem}._item_1mgv5_12 ._condition_1mgv5_27{width:2.98667rem}._item_1mgv5_12 ._conditionTag_1mgv5_27{background:#fbd0d1;border-radius:.21333rem;font-weight:600;line-height:.45333rem;min-width:2.13333rem;display:inline-block;text-align:center}._item_1mgv5_12 ._iconUsed_1mgv5_101,._item_1mgv5_12 ._iconExpired_1mgv5_102{position:absolute;top:0;right:0;width:1.44rem;height:1.09333rem}._item_1mgv5_12 ._iconUsed_1mgv5_101{background:url(./assets/icon_used.e999937d.png) no-repeat center;background-size:contain}._item_1mgv5_12 ._iconExpired_1mgv5_102{background:url(./assets/icon_expired.3458a537.png) no-repeat center;background-size:contain}._item_1mgv5_12 ._img-icon_1mgv5_117{position:absolute;top:.24rem;left:.24rem;width:.58667rem;height:.58667rem}\n',document.head.appendChild(e),System.register(["./index-legacy.f8641610.js"],(function(e){"use strict";var i,t,_,m;return{setters:[function(e){i=e.d,t=e.i,_=e.A,m=e.x}],execute:function(){var o=e("s",{coupons:"_coupons_1mgv5_1",list:"_list_1mgv5_7",item:"_item_1mgv5_12",USED:"_USED_1mgv5_22",EXPIRED:"_EXPIRED_1mgv5_23",conditionTag:"_conditionTag_1mgv5_27",select:"_select_1mgv5_31",disabled:"_disabled_1mgv5_34",top:"_top_1mgv5_55",bottom:"_bottom_1mgv5_56",price:"_price_1mgv5_60",suffix:"_suffix_1mgv5_67",number:"_number_1mgv5_71",type:"_type_1mgv5_76",condition:"_condition_1mgv5_27",iconUsed:"_iconUsed_1mgv5_101",iconExpired:"_iconExpired_1mgv5_102","img-icon":"_img-icon_1mgv5_117"});e("I",i({name:"coupon-item",props:{item:{type:Object,default:{}},isSelect:{type:Boolean,default:!1},onClick:{type:Function,default:function(e){}}},render:function(){var e=this,i=this.item;return t("div",{class:[o.item,o[i.useState],this.isSelect&&o.select,i.disabled&&o.disabled],onClick:function(){i.disabled||e.onClick(i)},key:i.couponIssueId},["USABLE"===i.useState&&this.isSelect&&t("img",{class:o["img-icon"],src:i.checked?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAo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KGgoAAAANSUhEUgAAACwAAAAsCAMAAAApWqozAAAAAXNSR0IArs4c6QAAAH5QTFRFAAAA/6qq/5+f/5WV/5aW/5eX/5eS/5aW/5WV/5aW/5eV/5eV/5eV/5aV/5aW/5aV/5eW/5aV/5aV/5aV/5aV/5aV+8XF+8XG+8bH+8vM+83O+87P+8/Q+9DR/K+v/Ly8/aem/auq/a+v/bCw/paV/peW/piY/p6d/qCf/5aVkPCylQAAABZ0Uk5TAAYIJC4xNj+AjZiutc/V6+vu8/j7/sFjB4cAAAEkSURBVDjLpZXXdoJAFEUVVHqTOuAAgpTz/z+YiSaGEMrclf28H2ZuOfdw+AdHTbdcPwx919K146Z6NgNMCMzzqnqyY2Asq5QVBUurcgRi+7SoKkaEvs34hKztERnKX1d10DWMz2BNB0eduxcPQ8IXSAZ4l5l7RZ3zRfIa11+26uF+4yvc7vAmL1Ec1KuusGs4P780MOR8g3yA8a5v1CV8k6SLvutto+E7NLC/ehz3bE9mffzqvImW79LCfM5ZgGxfzhB8zqCGkUswQhOyjlJGLqEL2UIlI1ewhOwilZFTuEL2wWRkBl/IIQoZuUBIlUnPIH2QVDpSU0jtJg0SaURpw09aK5mFfbwXlhQFtJAhxRctGGmRSwtz2pmgHSDiaSMezR0+AKlUniAbus4fAAAAAElFTkSuQmCC"},null),t("div",{class:o.top},[t("div",{class:o.price},[t("span",{class:o.suffix},[_("¥")]),t("span",{class:o.number},[i.discountPrice])]),t("div",{class:o.type},[i.couponName])]),t("div",{class:o.bottom},[t("div",{class:o.condition},[t("span",{class:o.conditionTag},[i.useLimit>0?"满".concat(i.useLimit,"可用"):"无门槛"])]),t("div",{class:o.useTime},[_("有效期:"),m(i.startTime).format("YYYY.MM.DD"),_("~"),m(i.endTime).format("YYYY.MM.DD")])]),"USED"===i.useState&&t("div",{class:o.iconUsed},null),"EXPIRED"===i.useState&&t("div",{class:o.iconExpired},null)])}}))}}}))}();