import{c as s,w as t,n as e,s as a,i,r,o as n,a as o,b as u,f as c,d as l,t as d}from"./index-sVD-BO6M.js";import{_ as p}from"./guide-nav-bar.Calsbdur.js";import{_ as h,r as g}from"./uni-app.es.Bk8oaKUr.js";import{r as f,g as m}from"./settlement.IT1NYDUt.js";import{r as v,b as j}from"./router.DrNfFJ-r.js";import"./system.CMm6Pfb4.js";const k=h({components:{GuideNavBar:p},data:()=>({status:"pending",subjectType:"individual",reason:"",refreshing:!1,isLeaving:!1}),computed:{isRejected(){return"rejected"===this.status},resultTitle(){return this.isRejected?"进件审核未通过":"approved"===this.status?"进件审核已通过":"进件信息审核中"},resultTip(){return"approved"===this.status?"审核已通过,可以继续添加银行卡和提现":"审核通过后才能继续添加银行卡和提现"},statusIcon(){return this.isRejected?"/static/icons/message-warning.svg":"approved"===this.status?"/static/icons/shield-check.svg":"/static/icons/clock-3.svg"}},onShow(){this.loadStatus()},methods:{goBack(){this.isLeaving||(this.isLeaving=!0,setTimeout(()=>{j("/pages/withdrawal/index")},280))},loadStatus(){m().then(s=>{this.status=s&&s.status||"pending",this.subjectType=s&&"enterprise"===s.subjectType?"enterprise":"individual",this.reason=s&&s.reason||""})},refreshStatus(){this.refreshing||this.isRejected||(this.refreshing=!0,f().then(s=>{this.refreshing=!1,this.status=s&&s.status||this.status,this.reason=s&&s.reason||"","approved"===this.status?a({title:"审核已通过",icon:"success"}):a({title:"仍在审核中",icon:"none"})}).catch(()=>{this.refreshing=!1,a({title:"刷新失败,请重试",icon:"none"})}))},resubmit(){v("/pages/onboarding/index?subjectType="+encodeURIComponent(this.subjectType))},goWithdraw(){v("/pages/withdrawal-detail/index")}}},[["render",function(a,h,f,m,v,j){const k=g(r("guide-nav-bar"),p),_=u,b=i,y=c;return n(),s(b,{class:e(["page",{leaving:v.isLeaving}])},{default:t(()=>[o(k,{title:"导游进件",onBack:j.goBack},null,8,["onBack"]),o(b,{class:"result-content"},{default:t(()=>[o(b,{class:e(["status-icon-wrap",{rejected:j.isRejected,approved:"approved"===v.status}])},{default:t(()=>[o(_,{class:"status-icon",src:j.statusIcon,mode:"aspectFit"},null,8,["src"])]),_:1},8,["class"]),o(y,{class:"result-title"},{default:t(()=>[l(d(j.resultTitle),1)]),_:1}),j.isRejected&&v.reason?(n(),s(y,{key:0,class:"result-reason"},{default:t(()=>[l(d(v.reason),1)]),_:1})):(n(),s(y,{key:1,class:"result-tip"},{default:t(()=>[l(d(j.resultTip),1)]),_:1})),j.isRejected?(n(),s(b,{key:2,class:"return-button",onClick:j.resubmit},{default:t(()=>[o(y,null,{default:t(()=>[l("重新提交资料")]),_:1})]),_:1},8,["onClick"])):"approved"===v.status?(n(),s(b,{key:3,class:"return-button",onClick:j.goWithdraw},{default:t(()=>[o(y,null,{default:t(()=>[l("去提现")]),_:1})]),_:1},8,["onClick"])):(n(),s(b,{key:4,class:e(["return-button ghost",{disabled:v.refreshing}]),onClick:j.refreshStatus},{default:t(()=>[o(y,null,{default:t(()=>[l(d(v.refreshing?"刷新中":"刷新审核状态"),1)]),_:1})]),_:1},8,["class","onClick"])),o(b,{class:e(["return-button",{secondary:j.isRejected||"approved"===v.status}]),onClick:j.goBack},{default:t(()=>[o(y,null,{default:t(()=>[l("返回提现")]),_:1})]),_:1},8,["class","onClick"])]),_:1})]),_:1},8,["class"])}],["__scopeId","data-v-ad0c063f"]]);export{k as default};
|