index-legacy-f247d4cb.js 2.8 KB

1
  1. System.register(["./index-legacy-e6be1dcb.js"],(function(e,t){"use strict";var n,o,r,p,a,i,l,u;return{setters:[e=>{n=e.d,o=e.r,r=e.y,p=e.w,a=e.a,i=e.R,l=e.C,u=e.F}],execute:function(){var s=document.createElement("style");s.textContent='._wxPopupDialog_6ejrp_1{overflow:initial}._wxPopupDialog_6ejrp_1:before{position:absolute;content:" ";top:-.58667rem;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.49333rem}._popupContainer_6ejrp_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:.53333rem;text-align:center}._popupContainer_6ejrp_16 ._title1_6ejrp_24{padding-top:1.41333rem;text-align:center;font-size:.48rem;font-weight:500;color:#000}._popupContainer_6ejrp_16 ._popupTips_6ejrp_31{font-size:.4rem;color:#666;line-height:.56rem;padding:.42667rem .53333rem .53333rem;word-break:break-all}._popupContainer_6ejrp_16 ._button_6ejrp_38{padding:0 1.17333rem;height:1.06667rem;font-size:.42667rem;color:#333;border-color:#aaa;margin:0 .18667rem}._popupContainer_6ejrp_16 ._confirmBtn_6ejrp_46{background:linear-gradient(305deg,#40C8FF 0%,#3192FF 100%);color:#fff;border:none}\n",document.head.appendChild(s);const c={wxPopupDialog:"_wxPopupDialog_6ejrp_1",popupContainer:"_popupContainer_6ejrp_16",title1:"_title1_6ejrp_24",popupTips:"_popupTips_6ejrp_31",button:"_button_6ejrp_38",confirmBtn:"_confirmBtn_6ejrp_46"};e("M",n({name:"m-wx-tip",props:{show:{type:Boolean,default:!0},title:{type:String,default:"温馨提示"},message:{type:String,default:"请使用微信打开"},messageAlign:{type:String,default:"center"},showCancelButton:{type:Boolean,default:!1},showCancelButtonText:{type:String,default:"取消"},showConfirmButton:{type:Boolean,default:!0},showConfirmButtonText:{type:String,default:"确认"}},emits:["confirm","cancel"],setup(e,{emit:t}){const n=o(!1);return r((()=>{e.show&&(n.value=!0)})),p((()=>[e.show,e.message]),(()=>{e.show?n.value=!0:n.value=!1})),()=>a(u,null,[a(i,{show:n.value,"onUpdate:show":e=>n.value=e,round:!0,style:{width:"88%",maxWidth:"520px"},closeOnClickOverlay:!1,class:c.wxPopupDialog},{default:()=>[a("div",{class:c.popupContainer},[a("p",{class:c.title1,innerHTML:e.title},null),a("p",{class:c.popupTips,style:{"text-align":e.messageAlign},innerHTML:e.message},null),(e.showConfirmButton||e.showConfirmButton)&&a("div",{class:c.btnGroup},[e.showCancelButton&&a(l,{round:!0,class:[c.button,c.cancelBtn],onClick:()=>t("cancel")},{default:()=>[e.showCancelButtonText]}),e.showConfirmButton&&a(l,{round:!0,class:[c.button,c.confirmBtn],onClick:()=>t("confirm")},{default:()=>[e.showConfirmButtonText]})])])]})])}}))}}}));