| 1 |
- System.register(["./index-legacy-1099009e.js"],(function(e,t){"use strict";var o,n,i,s,a,r,l,p,c,u,m,d,_,g,f,h,w;return{setters:[e=>{o=e.b5,n=e.c,i=e.b,s=e.m,a=e.t,r=e.d,l=e.af,p=e.e,c=e.w,u=e.Y,m=e.a,d=e.k,_=e.r,g=e.y,f=e.R,h=e.V,w=e.F}],execute:function(){var S=document.createElement("style");S.textContent='._wxPopupDialog_1m2qo_1{overflow:initial}._wxPopupDialog_1m2qo_1:before{position:absolute;content:" ";top:-1.94667rem;left:50%;margin-left:-2.29333rem;display:inline-block;background:url('+new URL("wx-no-top-562db7f2.png",t.meta.url).href+") no-repeat top center;background-size:contain;width:4.58667rem;height:4.10667rem}._popupContainer_1m2qo_16{background:url("+new URL("wx-no-bg-f12a4a6d.png",t.meta.url).href+") no-repeat top center;background-size:cover;border-radius:.53333rem;overflow:hidden}._popupContainer_1m2qo_16 ._title1_1m2qo_22{padding-top:1.52rem;text-align:center;font-size:.48rem;font-weight:500;color:#3b2300}._popupContainer_1m2qo_16 ._popupTips_1m2qo_29{padding-top:.42667rem;padding-bottom:1.25333rem;text-align:center;font-size:.4rem;color:#777;line-height:.56rem}\n",document.head.appendChild(S);const[v,b]=n("count-down"),x={time:i(0),format:s("HH:mm:ss"),autoStart:a,millisecond:Boolean};var q=r({name:v,props:x,emits:["change","finish"],setup(e,{emit:t,slots:n}){const{start:i,pause:s,reset:a,current:r}=l({time:+e.time,millisecond:e.millisecond,onChange:e=>t("change",e),onFinish:()=>t("finish")}),d=p((()=>function(e,t){const{days:n}=t;let{hours:i,minutes:s,seconds:a,milliseconds:r}=t;if(e.includes("DD")?e=e.replace("DD",o(n)):i+=24*n,e.includes("HH")?e=e.replace("HH",o(i)):s+=60*i,e.includes("mm")?e=e.replace("mm",o(s)):a+=60*s,e.includes("ss")?e=e.replace("ss",o(a)):r+=1e3*a,e.includes("S")){const t=o(r,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,r.value))),_=()=>{a(+e.time),e.autoStart&&i()};return c((()=>e.time),_,{immediate:!0}),u({start:i,pause:s,reset:_}),()=>m("div",{role:"timer",class:b()},[n.default?n.default(r.value):d.value])}});e("C",d(q));const y="_wxPopupDialog_1m2qo_1",C="_popupContainer_1m2qo_16",k="_title1_1m2qo_22",D="_popupTips_1m2qo_29";e("O",r({name:"m-wx-tip",props:{show:{type:Boolean,default:!0},title:{type:String,default:"温馨提示"},message:{type:String,default:"请使用微信打开"}},setup(e){const t=_(!1);return g((()=>{f().weixin&&!e.show||(t.value=!0)})),c((()=>[e.show,e.message]),(()=>{e.show&&(t.value=!0)})),()=>m(w,null,[m(h,{show:t.value,"onUpdate:show":e=>t.value=e,round:!0,style:{width:"88%"},closeOnClickOverlay:!1,class:y},{default:()=>[m("div",{class:C},[m("p",{class:k},[e.title]),m("p",{class:D},[e.message])])]})])}}))}}}));
|