1 |
- System.register(["./index-legacy-7aaf3ce7.js"],(function(e,t){"use strict";var n,o,r,i,a,s,l,p,u,c,d,m,f,_,g,h,w,z;return{setters:[e=>{n=e.bF,o=e.c,r=e.b,i=e.m,a=e.t,s=e.d,l=e.ag,p=e.e,u=e.w,c=e.Z,d=e.a,m=e.k,f=e.r,_=e.y,g=e.S,h=e.R,w=e.C,z=e.F}],execute:function(){var b=document.createElement("style");b.textContent='._wxPopupDialog_tpzfq_1{overflow:initial;border-radius:.53333rem!important}._wxPopupDialog_tpzfq_1:before{position:absolute;content:" ";top:-.58667rem;left:50%;margin-left:-1.36rem;display:inline-block;background:url('+new URL("wx-no-top-8a65cbdf.png",t.meta.url).href+") no-repeat top center;background-size:contain;width:2.74667rem;height:1.49333rem}._popupContainer_tpzfq_17{background:url("+new URL("wx-no-bg-da66d220.png",t.meta.url).href+") no-repeat top center;background-size:cover;border-radius:.53333rem;overflow:hidden;padding-bottom:.42667rem;text-align:center}._popupContainer_tpzfq_17 ._title1_tpzfq_25{padding-top:1.52rem;text-align:center;font-size:.48rem;font-weight:500;color:#000}._popupContainer_tpzfq_17 ._popupTips_tpzfq_32{padding:.42667rem .53333rem;text-align:center;font-size:.4rem;color:#666;line-height:.61333rem}._popupContainer_tpzfq_17 ._button_tpzfq_39{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:r(0),format:i("HH:mm:ss"),autoStart:a,millisecond:Boolean};var q=s({name:S,props:x,emits:["change","finish"],setup(e,{emit:t,slots:o}){const{start:r,pause:i,reset:a,current:s}=l({time:+e.time,millisecond:e.millisecond,onChange:e=>t("change",e),onFinish:()=>t("finish")}),m=p((()=>function(e,t){const{days:o}=t;let{hours:r,minutes:i,seconds:a,milliseconds:s}=t;if(e.includes("DD")?e=e.replace("DD",n(o)):r+=24*o,e.includes("HH")?e=e.replace("HH",n(r)):i+=60*r,e.includes("mm")?e=e.replace("mm",n(i)):a+=60*i,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))),f=()=>{a(+e.time),e.autoStart&&r()};return u((()=>e.time),f,{immediate:!0}),c({start:r,pause:i,reset:f}),()=>d("div",{role:"timer",class:v()},[o.default?o.default(s.value):m.value])}});e("C",m(q));const y="_wxPopupDialog_tpzfq_1",C="_popupContainer_tpzfq_17",k="_title1_tpzfq_25",D="_popupTips_tpzfq_32",H="_button_tpzfq_39";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=f(!1);return _((()=>{g().weixin||!e.show||(n.value=!0)})),u((()=>[e.show,e.message]),(()=>{e.show?n.value=!0:n.value=!1})),()=>d(z,null,[d(h,{show:n.value,"onUpdate:show":e=>n.value=e,round:!0,style:{width:"70%",maxWidth:"520px"},closeOnClickOverlay:!1,class:y},{default:()=>[d("div",{class:C},[d("p",{class:k},[e.title]),d("p",{class:D},[e.message]),e.showButton&&d(w,{round:!0,class:H,onClick:()=>t("confirm")},{default:()=>[e.buttonText]})])]})])}}))}}}));
|