import{d as w,ah as _,ag as h,r as i,$ as C,e as l,b7 as B,c as a,aj as b,q as u,B as E,m as o,o as g}from"./index.5f7ffb46.js";import{i as F}from"./icon_student.660125da.js";import{O as y}from"./index.7790de2a.js";import{O as c}from"./index.95a99ca5.js";import{I}from"./index.276a5d68.js";import{F as v}from"./index.6438a25f.js";import"./index.abd668f7.js";const A="_headers_1wbw9_1",D="_userInfo_1wbw9_6",T="_img_1wbw9_11",x="_userName_1wbw9_23",k="_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:D,img:T,userName:x,timer:k,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 o.post("/api-student/student/getOrchestraDate/"+t.id);t.dataInfo=s}catch{}},f=async()=>{if(!t.reason){g("\u8BF7\u8F93\u5165\u9000\u56E2\u539F\u56E0");return}try{const{data:s}=await o.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 o.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(I,{src:t.dataInfo.studentAvatar||F,class:e.img,fit:"contain"},null),a("div",{class:e.userName},[t.dataInfo.studentName,u(" \u540C\u5B66")]),a("div",{class:e.timer},[u("\u60A8\u5DF2\u5728"),t.dataInfo.orchestraName,u("\u8BAD\u7EC3"),a("span",null,[t.dataInfo.joinDays]),u("\u5929")])])]),a("div",{class:e.content},[u("\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),u("\u9000\u56E2\u539F\u56E0"),a("span",null,[u("*")])]),a("div",{class:e.nums},[t.reason.length||0,u("/400")])]),a(v,{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(y,{position:"bottom"},{default:()=>[a("div",{class:"btnGroup"},[a(E,{block:!0,round:!0,type:"primary",onClick:f,disabled:t.isClick},{default:()=>[u("\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};