import{d as w,ah as _,ag as h,r as i,$ as C,e as l,b3 as b,c as a,aj as B,q as o,B as g,m as u,o as y}from"./index.1c621181.js";import{i as F}from"./icon_student.660125da.js";import{O as I}from"./index.b491c24a.js";import{O as c}from"./index.120b6f0d.js";import{I as v}from"./index.4c221cbe.js";import{F as E}from"./index.c7a20c76.js";import"./index.fd5ae97b.js";const A="_headers_1wbw9_1",T="_userInfo_1wbw9_6",x="_img_1wbw9_11",k="_userName_1wbw9_23",D="_timer_1wbw9_30",N="_content_1wbw9_41",O="_resion_1wbw9_53",M="_title_1wbw9_59",W="_name_1wbw9_64",S="_nums_1wbw9_83",V="_applyWithdrawal_1wbw9_88",q="_dialogTitle_1wbw9_91";var e={headers:A,userInfo:T,img:x,userName:k,timer:D,content:N,resion:O,title:M,name:W,nums:S,applyWithdrawal:V,dialogTitle:q},J=w({name:"apply-withdrawal",setup(){const d=_(),m=h(),n=i({headBg:"transparent",textColor:"#fff"}),t=i({status:!1,statusMember:!1,reason:"",id:d.query.id,dataInfo:{},isClick:!1}),p=async()=>{try{const{data:s}=await u.post("/api-student/student/getOrchestraDate/"+t.id);t.dataInfo=s}catch{}},f=async()=>{if(!t.reason){y("\u8BF7\u8F93\u5165\u9000\u56E2\u539F\u56E0");return}try{const{data:s}=await u.post("/api-student/student/hasWaitActivateVipOrder",{requestType:"form",data:{orchestraId:t.id}});s?t.statusMember=!0:t.status=!0}catch{}},r=async()=>{try{t.isClick=!0,await u.post("/api-student/orchestra/leaveOrchestra",{data:{studentId:t.dataInfo.studentId,orchestraId:t.id,reason:t.reason}}),t.isClick=!1,m.back()}catch{t.isClick=!1}};return C(()=>{l({api:"setStatusBarTextColor",content:{statusBarTextColor:!0}}),p()}),b(()=>{l({api:"setStatusBarTextColor",content:{statusBarTextColor:!1}})}),()=>a("div",{class:e.applyWithdrawal},[a("div",{class:e.headers},[a(B,{background:n.headBg,color:n.textColor,border:!1,backIconColor:"white"},null),a("div",{class:e.userInfo},[a(v,{src:t.dataInfo.studentAvatar||F,class:e.img,fit:"contain"},null),a("div",{class:e.userName},[t.dataInfo.studentName,o(" \u540C\u5B66")]),a("div",{class:e.timer},[o("\u60A8\u5DF2\u5728"),t.dataInfo.orchestraName,o("\u8BAD\u7EC3"),a("span",null,[t.dataInfo.joinDays]),o("\u5929")])])]),a("div",{class:e.content},[o("\u5728\u4E50\u56E2\u8BAD\u7EC3\u7684\u65E5\u5B50\u91CC\uFF0C\u6709\u4ED8\u51FA\u6709\u6C57\u6C34\uFF0C\u6709\u4ECE0\u52301\u7684\u559C\u60A6\u4E5F\u6709\u653B\u514B\u96BE\u5173\u7684\u575A\u6301\u3002\u4F60\u7684\u4ED8\u51FA\u4E3A\u4F60\u5E26\u6765\u6210\u957F\uFF0C\u4F60\u7684\u6210\u957F\u8BA9\u8001\u5E08\u611F\u5230\u6B23\u559C\u3002")]),a("div",{class:e.resion},[a("div",{class:e.title},[a("div",{class:e.name},[a("i",null,null),o("\u9000\u56E2\u539F\u56E0"),a("span",null,[o("*")])]),a("div",{class:e.nums},[t.reason.length||0,o("/400")])]),a(E,{modelValue:t.reason,"onUpdate:modelValue":s=>t.reason=s,placeholder:"\u8BF7\u8F93\u5165\u9000\u56E2\u8BE6\u7EC6\u539F\u56E0",type:"textarea",rows:3},null)]),a(I,{position:"bottom"},{default:()=>[a("div",{class:"btnGroup"},[a(g,{block:!0,round:!0,type:"primary",onClick:f,disabled:t.isClick},{default:()=>[o("\u786E\u5B9A")]})])]}),a(c,{show:t.status,"onUpdate:show":s=>t.status=s,title:"\u63D0\u793A",message:"\u786E\u5B9A\u8981\u63D0\u4EA4\u9000\u56E2\u7533\u8BF7\u5417\uFF1F",messageAlign:"left",confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",showCancelButton:!0,onConfirm:r},null),a(c,{show:t.statusMember,"onUpdate:show":s=>t.statusMember=s,title:"\u63D0\u793A",message:"\u60A8\u6709\u5F85\u6FC0\u6D3B\u7684\u56E2\u7EC3\u5B9D\u8BA2\u5355\uFF0C\u662F\u5426\u7EE7\u7EED\u9000\u56E2\uFF1F",messageAlign:"left",confirmButtonText:"\u7EE7\u7EED",cancelButtonText:"\u53D6\u6D88",showCancelButton:!0,onConfirm:r},null)])}});export{J as default};