1 |
- !function(){var e=document.createElement("style");e.innerHTML="._headers_1wbw9_1{min-height:7.81333rem;background:url(./assets/bg.69cd4088.png) no-repeat center center;background-size:cover}._userInfo_1wbw9_6{text-align:center;padding-top:.58667rem;padding-bottom:1.2rem}._userInfo_1wbw9_6 ._img_1wbw9_11{padding:.05333rem;background-color:#fff;width:1.78667rem;height:1.78667rem;border-radius:50%;overflow:hidden}._userInfo_1wbw9_6 ._img_1wbw9_11 img{border-radius:50%;overflow:hidden}._userInfo_1wbw9_6 ._userName_1wbw9_23{padding-top:.16rem;font-size:.48rem;font-weight:500;color:#fff;line-height:.66667rem}._userInfo_1wbw9_6 ._timer_1wbw9_30{padding:.4rem .34667rem 0;font-size:.42667rem;color:#fff;line-height:.58667rem}._userInfo_1wbw9_6 ._timer_1wbw9_30 span{font-size:.53333rem;font-weight:700;padding:0 .16rem}._content_1wbw9_41{margin:-.48rem .34667rem .32rem;padding:.4rem .48rem;font-size:.37333rem;color:#333;line-height:.58667rem;background:#ffffff;border-radius:.26667rem}._content_1wbw9_41 span{font-weight:600}._resion_1wbw9_53{margin:0 .34667rem .32rem;background:#ffffff;border-radius:.26667rem;overflow:hidden}._title_1wbw9_59{display:flex;justify-content:space-between;padding:.34667rem .42667rem .08rem}._title_1wbw9_59 ._name_1wbw9_64{display:flex;align-items:center;font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem}._title_1wbw9_59 ._name_1wbw9_64 i{display:inline-block;width:.10667rem;height:.37333rem;background:#ff8057;border-radius:.05333rem;margin-right:.16rem}._title_1wbw9_59 ._name_1wbw9_64 span{color:#f44541}._title_1wbw9_59 ._nums_1wbw9_83{font-size:.37333rem;color:#777;line-height:.53333rem}._applyWithdrawal_1wbw9_88{--van-dialog-message-font-size: .42667rem !important}._dialogTitle_1wbw9_91{padding-left:.66667rem;text-align:left;font-size:.48rem;font-weight:500;color:#333;line-height:.66667rem;padding-bottom:.32rem}._dialogTitle_1wbw9_91 i{display:inline-block;width:.10667rem;height:.37333rem;background:#ff8057;border-radius:.05333rem;margin-right:.16rem}\n",document.head.appendChild(e),System.register(["./index-legacy.eb062188.js","./icon_student-legacy.6118fd72.js","./index-legacy.ad813f4d.js","./index-legacy.e0860c0a.js","./index-legacy.fecc738b.js","./index-legacy.3a3e070a.js","./index-legacy.918b8c74.js"],(function(e){"use strict";var t,a,n,r,i,o,s,d,l,_,c,w,m,u,f,b,g,h;return{setters:[function(e){t=e.d,a=e.ah,n=e.ag,r=e.r,i=e.$,o=e.e,s=e.b7,d=e.c,l=e.aj,_=e.q,c=e.B,w=e.m,m=e.o},function(e){u=e.i},function(e){f=e.O},function(e){b=e.O},function(e){g=e.I},function(e){h=e.F},function(){}],execute:function(){var p="_headers_1wbw9_1",y="_userInfo_1wbw9_6",v="_img_1wbw9_11",x="_userName_1wbw9_23",I="_timer_1wbw9_30",k="_content_1wbw9_41",C="_resion_1wbw9_53",B="_title_1wbw9_59",T="_name_1wbw9_64",j="_nums_1wbw9_83",z="_applyWithdrawal_1wbw9_88";e("default",t({name:"apply-withdrawal",setup(){const e=a(),t=n(),M=r({headBg:"transparent",textColor:"#fff"}),O=r({status:!1,statusMember:!1,reason:"",id:e.query.id,dataInfo:{},isClick:!1}),A=async()=>{if(O.reason)try{const{data:e}=await w.post("/api-student/student/hasWaitActivateVipOrder",{requestType:"form",data:{orchestraId:O.id}});e?O.statusMember=!0:O.status=!0}catch{}else m("请输入退团原因")},N=async()=>{try{O.isClick=!0,await w.post("/api-student/orchestra/leaveOrchestra",{data:{studentId:O.dataInfo.studentId,orchestraId:O.id,reason:O.reason}}),O.isClick=!1,t.back()}catch{O.isClick=!1}};return i((()=>{o({api:"setStatusBarTextColor",content:{statusBarTextColor:!0}}),(async()=>{try{const{data:e}=await w.post("/api-student/student/getOrchestraDate/"+O.id);O.dataInfo=e}catch{}})()})),s((()=>{o({api:"setStatusBarTextColor",content:{statusBarTextColor:!1}})})),()=>d("div",{class:z},[d("div",{class:p},[d(l,{background:M.headBg,color:M.textColor,border:!1,backIconColor:"white"},null),d("div",{class:y},[d(g,{src:O.dataInfo.studentAvatar||u,class:v,fit:"contain"},null),d("div",{class:x},[O.dataInfo.studentName,_(" 同学")]),d("div",{class:I},[_("您已在"),O.dataInfo.orchestraName,_("训练"),d("span",null,[O.dataInfo.joinDays]),_("天")])])]),d("div",{class:k},[_("在乐团训练的日子里,有付出有汗水,有从0到1的喜悦也有攻克难关的坚持。你的付出为你带来成长,你的成长让老师感到欣喜。")]),d("div",{class:C},[d("div",{class:B},[d("div",{class:T},[d("i",null,null),_("退团原因"),d("span",null,[_("*")])]),d("div",{class:j},[O.reason.length||0,_("/400")])]),d(h,{modelValue:O.reason,"onUpdate:modelValue":e=>O.reason=e,placeholder:"请输入退团详细原因",type:"textarea",rows:3},null)]),d(f,{position:"bottom"},{default:()=>[d("div",{class:"btnGroup"},[d(c,{block:!0,round:!0,type:"primary",onClick:A,disabled:O.isClick},{default:()=>[_("确定")]})])]}),d(b,{show:O.status,"onUpdate:show":e=>O.status=e,title:"提示",message:"确定要提交退团申请吗?",messageAlign:"left",confirmButtonText:"确定",cancelButtonText:"取消",showCancelButton:!0,onConfirm:N},null),d(b,{show:O.statusMember,"onUpdate:show":e=>O.statusMember=e,title:"提示",message:"您有待激活的团练宝订单,是否继续退团?",messageAlign:"left",confirmButtonText:"继续",cancelButtonText:"取消",showCancelButton:!0,onConfirm:N},null)])}}))}}}))}();
|