apply-withdrawal.2a4d43da.js 4.0 KB

1
  1. import{d as w,ah as _,ag as h,r as i,$ as C,e as l,b3 as b,c as e,aj as g,q as o,B,m as u,o as I}from"./index.332c7f08.js";import{i as y}from"./icon_student.660125da.js";import{O as v}from"./index.d7c1b6ac.js";import{O as c}from"./index.a8f5f4b5.js";import{I as F}from"./index.96a8db5e.js";import{F as E}from"./index.1ed6273e.js";import"./index.91135ff9.js";const A="_headers_1wbw9_1",T="_userInfo_1wbw9_6",x="_img_1wbw9_11",k="_userName_1wbw9_23",M="_timer_1wbw9_30",D="_content_1wbw9_41",N="_resion_1wbw9_53",O="_title_1wbw9_59",W="_name_1wbw9_64",S="_nums_1wbw9_83",q="_applyWithdrawal_1wbw9_88",U="_dialogTitle_1wbw9_91";var a={headers:A,userInfo:T,img:x,userName:k,timer:M,content:D,resion:N,title:O,name:W,nums:S,applyWithdrawal:q,dialogTitle:U},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,memberMessage:"\u60A8\u6709\u5F85\u6FC0\u6D3B\u7684\u56E2\u7EC3\u5B9D\u8BA2\u5355\uFF0C\u662F\u5426\u7EE7\u7EED\u9000\u56E2\uFF1F"}),p=async()=>{try{const{data:s}=await u.post("/api-student/student/getOrchestraDate/"+t.id);t.dataInfo=s}catch{}},f=async()=>{if(!t.reason){I("\u8BF7\u8F93\u5165\u9000\u56E2\u539F\u56E0");return}try{const{data:s}=await u.post("/api-student/student/hasWaitActivateOrderGoods",{requestType:"form",data:{orchestraId:t.id}});s.vip||s.instrumentInspection?(t.statusMember=!0,s.vip&&s.instrumentInspection?t.memberMessage="\u60A8\u6709\u5F85\u6FC0\u6D3B\u7684\u56E2\u7EC3\u5B9D\u8BA2\u5355\u548C\u4E50\u5668\u68C0\u67E5\u670D\u52A1\uFF0C\u662F\u5426\u7EE7\u7EED\u9000\u56E2\uFF1F":s.instrumentInspection&&(t.memberMessage="\u60A8\u6709\u5F85\u6FC0\u6D3B\u7684\u4E50\u5668\u68C0\u67E5\u670D\u52A1\uFF0C\u662F\u5426\u7EE7\u7EED\u9000\u56E2\uFF1F")):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}})}),()=>e("div",{class:a.applyWithdrawal},[e("div",{class:a.headers},[e(g,{background:n.headBg,color:n.textColor,border:!1,backIconColor:"white"},null),e("div",{class:a.userInfo},[e(F,{src:t.dataInfo.studentAvatar||y,class:a.img,fit:"contain"},null),e("div",{class:a.userName},[t.dataInfo.studentName,o(" \u540C\u5B66")]),e("div",{class:a.timer},[o("\u60A8\u5DF2\u5728"),t.dataInfo.orchestraName,o("\u8BAD\u7EC3"),e("span",null,[t.dataInfo.joinDays]),o("\u5929")])])]),e("div",{class:a.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")]),e("div",{class:a.resion},[e("div",{class:a.title},[e("div",{class:a.name},[e("i",null,null),o("\u9000\u56E2\u539F\u56E0"),e("span",null,[o("*")])]),e("div",{class:a.nums},[t.reason.length||0,o("/400")])]),e(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)]),e(v,{position:"bottom"},{default:()=>[e("div",{class:"btnGroup"},[e(B,{block:!0,round:!0,type:"primary",onClick:f,disabled:t.isClick},{default:()=>[o("\u786E\u5B9A")]})])]}),e(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),e(c,{show:t.statusMember,"onUpdate:show":s=>t.statusMember=s,title:"\u63D0\u793A",message:t.memberMessage,messageAlign:"left",confirmButtonText:"\u7EE7\u7EED",cancelButtonText:"\u53D6\u6D88",showCancelButton:!0,onConfirm:r},null)])}});export{J as default};