apply-withdrawal-legacy.617f330f.js 6.8 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.90c82f08.js","./icon_student-legacy.6118fd72.js","./index-legacy.84457c4c.js","./index-legacy.f1d613e0.js","./index-legacy.eb4bc59e.js","./index-legacy.3c5580aa.js","./index-legacy.f3e5e283.js"],(function(e){"use strict";var n,r,a,i,o,s,c,u,d,l,f,m,_,w,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,c=e.b3,u=e.c,d=e.aj,l=e.q,f=e.B,m=e.m,_=e.o},function(e){w=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",M="_applyWithdrawal_1wbw9_88";e("default",n({name:"apply-withdrawal",setup:function(){var e=r(),n=a(),R=i({headBg:"transparent",textColor:"#fff"}),O=i({status:!1,statusMember:!1,reason:"",id:e.query.id,dataInfo:{},isClick:!1,memberMessage:"您有待激活的团练宝订单,是否继续退团?"}),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/"+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,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(O.reason){e.next=3;break}return _("请输入退团原因"),e.abrupt("return");case 3:return e.prev=3,e.next=6,m.post("/api-student/student/hasWaitActivateOrderGoods",{requestType:"form",data:{orchestraId:O.id}});case 6:t=e.sent,(n=t.data).vip||n.instrumentInspection?(O.statusMember=!0,n.vip&&n.instrumentInspection?O.memberMessage="您有待激活的团练宝订单和乐器检查服务,是否继续退团?":n.instrumentInspection&&(O.memberMessage="您有待激活的乐器检查服务,是否继续退团?")):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,m.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()})),c((function(){s({api:"setStatusBarTextColor",content:{statusBarTextColor:!1}})})),function(){return u("div",{class:M},[u("div",{class:v},[u(d,{background:R.headBg,color:R.textColor,border:!1,backIconColor:"white"},null),u("div",{class:x},[u(g,{src:O.dataInfo.studentAvatar||w,class:y,fit:"contain"},null),u("div",{class:k},[O.dataInfo.studentName,l(" 同学")]),u("div",{class:I},[l("您已在"),O.dataInfo.orchestraName,l("训练"),u("span",null,[O.dataInfo.joinDays]),l("天")])])]),u("div",{class:C},[l("在乐团训练的日子里,有付出有汗水,有从0到1的喜悦也有攻克难关的坚持。你的付出为你带来成长,你的成长让老师感到欣喜。")]),u("div",{class:B},[u("div",{class:T},[u("div",{class:j},[u("i",null,null),l("退团原因"),u("span",null,[l("*")])]),u("div",{class:z},[O.reason.length||0,l("/400")])]),u(h,{modelValue:O.reason,"onUpdate:modelValue":function(e){return O.reason=e},placeholder:"请输入退团详细原因",type:"textarea",rows:3},null)]),u(p,{position:"bottom"},{default:function(){return[u("div",{class:"btnGroup"},[u(f,{block:!0,round:!0,type:"primary",onClick:N,disabled:O.isClick},{default:function(){return[l("确定")]}})])]}}),u(b,{show:O.status,"onUpdate:show":function(e){return O.status=e},title:"提示",message:"确定要提交退团申请吗?",messageAlign:"left",confirmButtonText:"确定",cancelButtonText:"取消",showCancelButton:!0,onConfirm:q},null),u(b,{show:O.statusMember,"onUpdate:show":function(e){return O.statusMember=e},title:"提示",message:O.memberMessage,messageAlign:"left",confirmButtonText:"继续",cancelButtonText:"取消",showCancelButton:!0,onConfirm:q},null)])}}}))}}}))}();