index-legacy-9baea00d.js 3.1 KB

1
  1. System.register(["./index-legacy-e6be1dcb.js"],(function(e,t){"use strict";var n,o,i,r,a,s,l,c,u,d,p,m,_,g,f,h,k,w;return{setters:[e=>{n=e.bF,o=e.c,i=e.b,r=e.m,a=e.t,s=e.d,l=e.ag,c=e.e,u=e.w,d=e.Z,p=e.a,m=e.k,_=e.r,g=e.y,f=e.S,h=e.R,k=e.C,w=e.F}],execute:function(){var b=document.createElement("style");b.textContent='._wxPopupDialog_k3dc3_1{overflow:initial}._wxPopupDialog_k3dc3_1:before{position:absolute;content:" ";top:-.61333rem;left:50%;margin-left:-1.2rem;display:inline-block;background:url('+new URL("message-top-cae7ee12.png",t.meta.url).href+") no-repeat top center;background-size:contain;width:2.37333rem;height:1.52rem}._popupContainer_k3dc3_16{background:url("+new URL("message-bg-e3a906bc.png",t.meta.url).href+") no-repeat top center;background-size:cover;border-radius:.53333rem;overflow:hidden;padding-bottom:.42667rem;text-align:center}._popupContainer_k3dc3_16 ._title1_k3dc3_24{padding-top:1.52rem;text-align:center;font-size:.48rem;font-weight:500;color:#3b2300}._popupContainer_k3dc3_16 ._popupTips_k3dc3_31{padding:.42667rem .53333rem;text-align:center;font-size:.4rem;color:#777;line-height:.56rem}._popupContainer_k3dc3_16 ._button_k3dc3_38{padding:0 .85333rem;height:.8rem;font-size:.42667rem;font-size:.37333rem;color:#777;border-color:#e7e7e7}\n",document.head.appendChild(b);const[S,v]=o("count-down"),x={time:i(0),format:r("HH:mm:ss"),autoStart:a,millisecond:Boolean};var y=s({name:S,props:x,emits:["change","finish"],setup(e,{emit:t,slots:o}){const{start:i,pause:r,reset:a,current:s}=l({time:+e.time,millisecond:e.millisecond,onChange:e=>t("change",e),onFinish:()=>t("finish")}),m=c((()=>function(e,t){const{days:o}=t;let{hours:i,minutes:r,seconds:a,milliseconds:s}=t;if(e.includes("DD")?e=e.replace("DD",n(o)):i+=24*o,e.includes("HH")?e=e.replace("HH",n(i)):r+=60*i,e.includes("mm")?e=e.replace("mm",n(r)):a+=60*r,e.includes("ss")?e=e.replace("ss",n(a)):s+=1e3*a,e.includes("S")){const t=n(s,3);e=e.includes("SSS")?e.replace("SSS",t):e.includes("SS")?e.replace("SS",t.slice(0,2)):e.replace("S",t.charAt(0))}return e}(e.format,s.value))),_=()=>{a(+e.time),e.autoStart&&i()};return u((()=>e.time),_,{immediate:!0}),d({start:i,pause:r,reset:_}),()=>p("div",{role:"timer",class:v()},[o.default?o.default(s.value):m.value])}});e("C",m(y));const C="_wxPopupDialog_k3dc3_1",D="_popupContainer_k3dc3_16",z="_title1_k3dc3_24",H="_popupTips_k3dc3_31",B="_button_k3dc3_38";e("M",s({name:"m-wx-tip",props:{show:{type:Boolean,default:!0},title:{type:String,default:"温馨提示"},message:{type:String,default:"请使用微信打开"},showButton:{type:Boolean,default:!1},buttonText:{type:String,default:"确定"}},emits:["confirm"],setup(e,{emit:t}){const n=_(!1);return g((()=>{f().weixin||!e.show||(n.value=!0)})),u((()=>[e.show,e.message]),(()=>{e.show?n.value=!0:n.value=!1})),()=>p(w,null,[p(h,{show:n.value,"onUpdate:show":e=>n.value=e,round:!0,style:{width:"70%",maxWidth:"520px"},closeOnClickOverlay:!1,class:C},{default:()=>[p("div",{class:D},[p("p",{class:z},[e.title]),p("p",{class:H},[e.message]),e.showButton&&p(k,{round:!0,class:B,onClick:()=>t("confirm")},{default:()=>[e.buttonText]})])]})])}}))}}}));