apply-withdrawal-legacy.eb3f9309.js 6.5 KB

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