import{_ as r,e as d,r as u,c as h,w as t,C as f,H as _,E as m,o as g,k as s,j as y,l as x,az as C,p as i,t as n}from"./index-CZJgrp0v.js";const k={name:"ApplySuccessPopup",props:{show:{type:Boolean,default:!1},title:{type:String,default:"报名成功"},detailUrl:{type:String,default:""},homeUrl:{type:String,default:"/pages/tabbar/home/index"},homeText:{type:String,default:"返回首页"},detailText:{type:String,default:"查看报名详情"},detailHandler:{type:Function,default:null}},watch:{show:{immediate:!0,handler(e){e?this.$nextTick(()=>{this.$refs.popup&&this.$refs.popup.open()}):this.$refs.popup&&this.$refs.popup.close()}}},methods:{onChange(e){this.$emit("change",!!(e!=null&&e.show))},close(){this.$refs.popup&&this.$refs.popup.close()},handleDetail(){this.close(),typeof this.detailHandler=="function"?this.detailHandler():(this.$emit("detail"),this.detailUrl&&u({url:this.detailUrl}))},goHome(){this.close(),this.homeUrl&&d({url:this.homeUrl})}}};function v(e,w,o,$,S,l){const c=x,a=y,p=f(m("uv-popup"),_);return g(),h(p,{ref:"popup",position:"center",round:16,"bg-color":"#fff","close-on-click-overlay":!1,customStyle:{width:"80%"},onChange:l.onChange},{default:t(()=>[s(a,{class:"apply-success"},{default:t(()=>[s(c,{src:C,class:"img",mode:"aspectFit"}),s(a,{class:"title"},{default:t(()=>[i(n(o.title),1)]),_:1}),s(a,{class:"btn-row"},{default:t(()=>[s(a,{class:"btn-home",onClick:l.goHome},{default:t(()=>[i(n(o.homeText),1)]),_:1},8,["onClick"]),s(a,{class:"btn-detail",onClick:l.handleDetail},{default:t(()=>[i(n(o.detailText),1)]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["onChange"])}const b=r(k,[["render",v],["__scopeId","data-v-f49c30f7"]]);export{b as _};
