apply-withdrawal-legacy.942f0e80.js 6.6 KB

1
  1. !function(){function e(e,t,n,r,a,i,o){try{var s=e[i](o),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,a)}function t(t){return function(){var n=this,r=arguments;return new Promise((function(a,i){var o=t.apply(n,r);function s(t){e(o,a,i,s,c,"next",t)}function c(t){e(o,a,i,s,c,"throw",t)}s(void 0)}))}}var n=document.createElement("style");n.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(n),System.register(["./index-legacy.81fd4e6f.js","./icon_student-legacy.6118fd72.js","./index-legacy.00d82922.js","./index-legacy.a9944503.js","./index-legacy.ea1cf20b.js","./index-legacy.aa24f77a.js","./index-legacy.0256f666.js","./index-legacy.819d05e3.js","./index-legacy.16d013c6.js"],(function(e){"use strict";var n,r,a,i,o,s,c,u,d,l,f,_,w,m,g,p,b,h;return{setters:[function(e){n=e.O},function(e){r=e.i},function(e){a=e.O},function(e){i=e.d,o=e.aU,s=e.ag,c=e.r,u=e.$,d=e.k,l=e.aZ,f=e.c,_=e.q,w=e.B,m=e.m,g=e.o},function(e){p=e.O},function(e){b=e.I},function(e){h=e.F},function(){},function(){}],execute:function(){var v="_headers_1wbw9_1",x="_userInfo_1wbw9_6",y="_img_1wbw9_11",k="_userName_1wbw9_23",I="_timer_1wbw9_30",C="_content_1wbw9_41",B="_resion_1wbw9_53",T="_title_1wbw9_59",j="_name_1wbw9_64",z="_nums_1wbw9_83",O="_applyWithdrawal_1wbw9_88";e("default",i({name:"apply-withdrawal",setup:function(){var e=o(),i=s(),R=c({headBg:"transparent",textColor:"#fff"}),M=c({status:!1,statusMember:!1,reason:"",id:e.query.id,dataInfo:{},isClick:!1}),A=function(){var e=t(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,m.post("/api-student/student/getOrchestraDate/"+M.id);case 3:t=e.sent,n=t.data,M.dataInfo=n,e.next=10;break;case 8:e.prev=8,e.t0=e.catch(0);case 10:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),N=function(){var e=t(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(M.reason){e.next=3;break}return g("请输入退团原因"),e.abrupt("return");case 3:return e.prev=3,e.next=6,m.post("/api-student/student/hasWaitActivateVipOrder",{requestType:"form",data:{orchestraId:M.id}});case 6:t=e.sent,t.data?M.statusMember=!0:M.status=!0,e.next=13;break;case 11:e.prev=11,e.t0=e.catch(3);case 13:case"end":return e.stop()}}),e,null,[[3,11]])})));return function(){return e.apply(this,arguments)}}(),U=function(){var e=t(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,M.isClick=!0,e.next=4,m.post("/api-student/orchestra/leaveOrchestra",{data:{studentId:M.dataInfo.studentId,orchestraId:M.id,reason:M.reason}});case 4:M.isClick=!1,i.back(),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),M.isClick=!1;case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}();return u((function(){d({api:"setStatusBarTextColor",content:{statusBarTextColor:!0}}),A()})),l((function(){d({api:"setStatusBarTextColor",content:{statusBarTextColor:!1}})})),function(){return f("div",{class:O},[f("div",{class:v},[f(n,{background:R.headBg,color:R.textColor,border:!1,backIconColor:"white"},null),f("div",{class:x},[f(b,{src:M.dataInfo.studentAvatar||r,class:y,fit:"contain"},null),f("div",{class:k},[M.dataInfo.studentName,_(" 同学")]),f("div",{class:I},[_("您已在"),M.dataInfo.orchestraName,_("训练"),f("span",null,[M.dataInfo.joinDays]),_("天")])])]),f("div",{class:C},[_("在乐团训练的日子里,有付出有汗水,有从0到1的喜悦也有攻克难关的坚持。你的付出为你带来成长,你的成长让老师感到欣喜。")]),f("div",{class:B},[f("div",{class:T},[f("div",{class:j},[f("i",null,null),_("退团原因"),f("span",null,[_("*")])]),f("div",{class:z},[M.reason.length||0,_("/400")])]),f(h,{modelValue:M.reason,"onUpdate:modelValue":function(e){return M.reason=e},placeholder:"请输入退团详细原因",type:"textarea",rows:3},null)]),f(a,{position:"bottom"},{default:function(){return[f("div",{class:"btnGroup"},[f(w,{block:!0,round:!0,type:"primary",onClick:N,disabled:M.isClick},{default:function(){return[_("确定")]}})])]}}),f(p,{show:M.status,"onUpdate:show":function(e){return M.status=e},title:"提示",message:"确定要提交退团申请吗?",messageAlign:"left",confirmButtonText:"确定",cancelButtonText:"取消",showCancelButton:!0,onConfirm:U},null),f(p,{show:M.statusMember,"onUpdate:show":function(e){return M.statusMember=e},title:"提示",message:"您有待激活的团练宝订单,是否继续退团?",messageAlign:"left",confirmButtonText:"继续",cancelButtonText:"取消",showCancelButton:!0,onConfirm:U},null)])}}}))}}}))}();