!function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var r=1;r=2&&e.length<=15},ee=function(e){return e?H.nameReg.test(e)?e.length<2||e.length>15?"学员姓名必须为2~15个字":"":"学员姓名必须为中文":"请填写学员真实姓名"},te=function(){var r=o(regeneratorRuntime.mark((function r(){var o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,o=t({orchestraId:e.query.id,schoolId:H.detail.schoolId},W),r.next=4,v.post("/api-student/orchestraRegister/save",{hideLoading:!1,data:t(t({},o),{},{code:H.code})});case 4:"SELF"===W.groupBuyType&&n.push({path:"/preGoodsSuccess"}),r.next=10;break;case 7:return r.prev=7,r.t0=r.catch(0),r.abrupt("return",Promise.reject(r.t0));case 10:case"end":return r.stop()}}),r,null,[[0,7]])})));return function(){return r.apply(this,arguments)}}(),ne=function(){var r=o(regeneratorRuntime.mark((function r(){var o,a,s,u,i,l,c;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,"SELF"!==W.groupBuyType){r.next=4;break}return H.submitStatus=!0,r.abrupt("return");case 4:return r.next=6,te();case 6:return ie(),o=[],a=H.textBookInfo,o.push({goodsId:a.goodsId,goodsNum:1,goodsType:a.goodsType,paymentCashAmount:a.currentPrice,paymentCouponAmount:0}),s=H.goodsInfo,o.push({goodsId:s.goodsId,goodsNum:1,goodsType:s.goodsType,paymentCashAmount:s.currentPrice,paymentCouponAmount:0}),H.inspectStatus&&(u=H.inspectInfo,o.push({goodsId:u.goodsId,goodsNum:1,goodsType:u.goodsType,paymentCashAmount:u.currentPrice,paymentCouponAmount:0})),i=H.vipYearInfo,o.push({goodsId:i.goodsId,goodsNum:1,goodsType:i.goodsType,paymentCashAmount:i.currentPrice,paymentCouponAmount:0}),r.next=17,v.post("/api-student/userPaymentOrder/executeOrder",{hideLoading:!1,data:{paymentType:H.musicPaymentType||H.paymentType,bizId:e.query.id,orderType:"ORCHESTRA",paymentCashAmount:H.orderInfo.needPrice||0,paymentCouponAmount:0,goodsInfos:o,orderName:"乐团报名缴费",orderDesc:"乐团报名缴费"}});case 17:l=r.sent,c=l.data,console.log(c),n.push({path:"/orderDetail",query:{pm:1,config:JSON.stringify(t(t({},c.paymentConfig),{},{paymentType:c.paymentType})),orderNo:c.orderNo}}),r.next=25;break;case 23:r.prev=23,r.t0=r.catch(0);case 25:case"end":return r.stop()}}),r,null,[[0,23]])})));return function(){return r.apply(this,arguments)}}(),re=function(){var t=o(regeneratorRuntime.mark((function t(){var n,r,o,a,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,v.get("/api-student/orchestraRegister/registerStatus/"+e.query.id);case 3:r=t.sent,o=r.data,H.registerInfo=o||{},a=o.trainingToolsConfig?JSON.parse(o.trainingToolsConfig):{},K.toolPlan=a,s=o.musicalInstrumentConfig?JSON.parse(o.musicalInstrumentConfig):{},K.leBao=s,H.inspectStatus=!!s.selected,null!==(n=o.learningOrchestra)&&void 0!==n&&n.length&&(H.studentReadStatus=!0),t.next=16;break;case 14:t.prev=14,t.t0=t.catch(0);case 16:case"end":return t.stop()}}),t,null,[[0,14]])})));return function(){return t.apply(this,arguments)}}(),oe=function(){var e=o(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,v.get("/api-student/open/paramConfig/wechatAppId");case 3:t=e.sent,(n=t.data)&&b(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)}}(),ae=function(){var t=o(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,v.get("/api-student/userPaymentOrder/unpaid",{params:{orchestraId:e.query.id}});case 3:n=t.sent,(r=n.data).id&&(r.orchestraId!==e.query.id?(H.dialogMessage="您在其它乐团存在待支付订单,取消后才可继续报名,是否确认取消?",H.dialogStatus=!0,H.dialogOrchestraStatus=!0,H.dialogConfig=r):(H.dialogMessage="您有待支付的订单,是否继续支付",H.dialogStatus=!0,H.dialogConfig=r)),t.next=10;break;case 8:t.prev=8,t.t0=t.catch(0);case 10:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(){return t.apply(this,arguments)}}(),se=function(){var e=o(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,v.get("/api-student/sysParamConfig/queryByParamName",{params:{paramName:"payment_service_provider"}});case 3:t=e.sent,n=t.data,H.paymentType=n.paramValue||"",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)}}(),ue=function(){var n=o(regeneratorRuntime.mark((function n(){var r,o,a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,v.get("/api-student/orchestraRegister/registerGoods/"+e.query.id,{params:{subjectId:W.registerSubjectId}});case 3:r=n.sent,o=r.data,H.musicPaymentType=o.paymentServiceProvider||"",(a=o.details||[]).forEach((function(e){if("INSTRUMENTS"===e.goodsType){var n=e.goodsUrl?e.goodsUrl.split(",")[0]:"";H.goodsInfo=t(t({},e),{},{goodsUrl:n}),H.instrumentsInspectionDescribe=e.instrumentsInspectionDescribe}else if("TEXTBOOK"===e.goodsType){var r=e.goodsUrl?e.goodsUrl.split(",")[0]:"";H.textBookInfo=t(t({},e),{},{goodsUrl:r})}else"INSTRUMENT_INSPECT"===e.goodsType?H.inspectInfo=t({},e):"VIP_YEAR"===e.goodsType&&(H.vipYearInfo=t({},e));H.details=a})),ie(),n.next=13;break;case 11:n.prev=11,n.t0=n.catch(0);case 13:case"end":return n.stop()}}),n,null,[[0,11]])})));return function(){return n.apply(this,arguments)}}(),ie=function(){var e={needPrice:0,originalPrice:0};e.needPrice+=parseFloat(H.goodsInfo.currentPrice||0),e.originalPrice+=parseFloat(H.goodsInfo.originalPrice||0),e.needPrice+=parseFloat(H.vipYearInfo.currentPrice||0),e.originalPrice+=parseFloat(H.vipYearInfo.originalPrice||0),e.needPrice+=parseFloat(H.textBookInfo.currentPrice||0),e.originalPrice+=parseFloat(H.textBookInfo.originalPrice||0),H.inspectStatus&&(e.needPrice+=parseFloat(H.inspectInfo.currentPrice||0),e.originalPrice+=parseFloat(H.inspectInfo.originalPrice||0)),H.orderInfo=e},le=function(){x(),I();var n=t({returnUrl:e.path},e.query);window.location.href=window.location.origin+window.location.pathname+"#/loginMusic?"+S.stringify(n)};if(l(o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Q();case 2:return e.next=4,X();case 4:se(),ae();case 6:case"end":return e.stop()}}),e)})))),H.testIsWeixin)re();else if(c().weixin){var ce=d();ce?(H.code=ce,re()):oe()}else le();return function(){return r("div",{class:P.goodsApply},[r("img",{src:T,class:P.headBg},null),r("div",{class:P.goodsHeader},[r("div",{class:P.orchestraTitle},[r("img",{class:P.headTitle,src:C},null),r("p",{class:[P.name,"van-multi-ellipsis--l3"]},[H.registerInfo.orchestraName])]),r("img",{src:w,class:P.headPhone},null)]),r(_,{validateFirst:!0,errorMessageAlign:"right",scrollToError:!0,onSubmit:ne,onFailed:function(e){p((function(){var e;null===(e=document.getElementsByClassName("van-field__error-message")[0])||void 0===e||e.scrollIntoView({block:"center",behavior:"smooth"})}))},ref:"form",class:P.form},{default:function(){return[r(F,{class:P.applyCellGroup,border:!1},{default:function(){return[r("div",{class:[P.title,P.titleApply]},null),r(N,{required:!0,label:"学员信息",placeholder:"请填写学员真实姓名",inputAlign:"right",modelValue:W.username,"onUpdate:modelValue":function(e){return W.username=e},maxlength:15,rules:[{validator:Z,message:ee}]},null),r(N,{required:!0,label:"性别",inputAlign:"right",rules:[{required:!0,message:"请选择性别"}]},{input:function(){return r(q,{modelValue:W.sex,"onUpdate:modelValue":function(e){return W.sex=e}},{default:function(){return[r(V,{size:"large",type:"primary",class:[P.radioSection,1===W.sex?P.active:""]},{default:function(){return[r(G,{class:P.radioItem,name:1},null),a("男生")]}}),r(V,{size:"large",type:"primary",class:[P.radioSection,0===W.sex?P.active:""]},{default:function(){return[r(G,{class:P.radioItem,name:0},null),a("女生")]}})]}})}}),r(N,{required:!0,label:"年级",inputAlign:"right",readonly:!0,isLink:!0,clickable:!1,placeholder:"请选择年级",modelValue:W.currentGradeTxt,"onUpdate:modelValue":function(e){return W.currentGradeTxt=e},onClick:function(){return H.gradeStatus=!0},rules:[{required:!0,message:"请选择年级"}]},null),r(N,{required:!0,label:"班级",inputAlign:"right",readonly:!0,isLink:!0,clickable:!1,placeholder:"请选择班级",modelValue:W.currentClassTxt,"onUpdate:modelValue":function(e){return W.currentClassTxt=e},onClick:function(){return H.classStatus=!0},rules:[{required:!0,message:"请选择班级"}]},null),r(N,{required:!0,label:"入选声部",inputAlign:"right",readonly:!0,isLink:!0,clickable:!1,placeholder:"请选择入选声部",modelValue:W.registerSubjectTxt,"onUpdate:modelValue":function(e){return W.registerSubjectTxt=e},onClick:function(){H.subjectList.length<=0?g("暂无报名入选声部"):H.subjectStatus=!0},rules:[{required:!0,message:"请选择入选声部"}]},null)]}}),r(F,{class:P.applyCellGroup,border:!1},{default:function(){return[r("div",{class:[P.title,P.titleParent]},null),r(N,{required:!0,label:"家长姓名",inputAlign:"right",placeholder:"请填写家长真实姓名",modelValue:W.parentName,"onUpdate:modelValue":function(e){return W.parentName=e},maxlength:15,rules:[{required:!0,message:"请填写家长真实姓名"}]},null),r(N,{required:!0,label:"手机号",inputAlign:"right",placeholder:"请输入手机号",modelValue:W.phone,"onUpdate:modelValue":function(e){return W.phone=e},maxlength:11,type:"tel",rules:[{pattern:H.pattern,message:"输入监护人手机号码有误"}]},null)]}}),r(F,{class:P.applyCellGroup,border:!1},{default:function(){return[r("div",{class:[P.title,P.titleTips]},null),r("div",{class:P.tipsContainer,innerHTML:H.registerInfo.joinNotice},null)]}}),r(F,{class:P.applyCellGroup,border:!1},{default:function(){return[r("div",{class:[P.title,P.titleTool]},null),r(N,{required:!0,label:K.toolPlan.title,labelAlign:"top",rules:[{required:!0,message:K.toolPlan.title}]},{input:function(){return r(q,{modelValue:W.groupBuyType,"onUpdate:modelValue":function(e){return W.groupBuyType=e},class:P.toolRadioGroup},{default:function(){return[r(V,{size:"large",type:"primary",class:[P.radioSectionTag,P.radioSection,"GROUP_BUY"===W.groupBuyType?P.active:""]},{default:function(){return[r(G,{class:P.radioItem,name:"GROUP_BUY",disabled:!W.registerSubjectId,onClick:function(){W.registerSubjectId||g("请选择入选声部")}},null),K.toolPlan.groupTitle,r("p",{class:P.radioTip},[K.toolPlan.groupDesc])]}}),r(V,{size:"large",type:"primary",class:[P.radioSectionTag,P.radioSection,"SELF"===W.groupBuyType?P.active:""]},{default:function(){return[r(G,{class:P.radioItem,name:"SELF"},null),K.toolPlan.selfTitle,r("p",{class:P.radioTip},[K.toolPlan.selfDesc])]}})]}})}})]}}),"GROUP_BUY"===W.groupBuyType&&r(f,null,[r(F,{class:[P.applyCellGroup,P.groupBuy],border:!1},{default:function(){return[r("div",{class:[P.title,P.titleIntrumentTool]},null),r(L,{border:!1},{icon:function(){return r(E,{src:H.vipYearInfo.goodsUrl,class:P.goodsImg},null)},value:function(){return r("div",{class:P.vipYearInfo},[r("div",{class:P.goodsTitle},[H.vipYearInfo.goodsName,a(" "),r("img",{src:j},null)]),r("p",{class:P.goodsTips},[a("乐团首次训练之日起生效")]),r("p",{class:[P.goodsMemo,"van-multi-ellipsis--l2"]},[H.vipYearInfo.description]),r("div",{class:P.goodsPrice},[r("div",{class:P.priceGroup},[a("团购价:"),r("p",null,[r("span",null,[a("¥")]),a(" "),m(H.vipYearInfo.currentPrice)])])])])}}),r(L,{border:!1},{icon:function(){return r(E,{src:H.goodsInfo.goodsUrl,class:P.goodsImg},null)},value:function(){return r("div",{class:P.goodsInfo},[r("div",{class:P.goodsTitle},[H.goodsInfo.goodsName,H.goodsInfo.currentPrice<=0?r("img",{src:k},null):""]),r("p",{class:[P.goodsMemo,"van-multi-ellipsis--l2"]},[H.goodsInfo.description]),r("div",{class:P.goodsPrice},[r("div",{class:P.priceGroup},[a("团购价:"),r("p",null,[H.goodsInfo.currentPrice<=0?r("del",null,[r("span",null,[a("¥")]),a(" "),m(H.goodsInfo.groupPrice)]):r(f,null,[r("span",null,[a("¥")]),a(" "),m(H.goodsInfo.currentPrice)])])])])])}}),K.leBao.show?r(L,{class:P.inspectCell,style:{backgroundColor:H.inspectStatus?"#FFF3EA":"#f4f4f4"}},{icon:function(){return r("img",{src:R,class:P.iconBao,onClick:function(){H.instrumentsInspectionDescribe&&(H.inspectPopupStatus=!0)}},null)},value:function(){return r("div",{class:P.baoContainer},[r("div",{class:P.baoTitle,onClick:function(){H.instrumentsInspectionDescribe&&(H.inspectPopupStatus=!0)}},[a("下校检查乐器 1-2次/学期")]),r("div",{class:P.baoPrice},[r("p",{onClick:function(){H.inspectStatus=!H.inspectStatus,ie()}},[r("span",{class:P.prefix},[a("¥")]),a(" "),H.inspectInfo.currentPrice,r("span",{class:P.suffix},[a("/年")])]),r(M,{modelValue:H.inspectStatus,"onUpdate:modelValue":function(e){return H.inspectStatus=e},onClick:function(){ie()}},{icon:function(e){return r("img",{class:P.checkboxImg,src:e.checked?B:O},null)}})])])}}):""]}}),r(A,{position:"bottom"},{default:function(){return[r("div",{class:P.paymentContainer},[r("div",{class:P.payemntPrice},[r("p",{class:P.needPrice},[a("总计:"),r("span",{class:P.numFont},[r("span",null,[a("¥ ")]),m(H.orderInfo.needPrice)])])]),r("div",{class:P.paymentBtn},[r(y,{color:"linear-gradient(135deg, #FF8C4A 0%, #FF531C 100%)",round:!0,"native-type":"submit"},{default:function(){return[a("团购支付")]}})])])]}})]),"SELF"===W.groupBuyType&&r(f,null,[r(F,{class:[P.applyCellGroup,P.self],border:!1},{default:function(){var e;return[r("div",{class:P.toolImg,onClick:function(){var e;D([null===(e=H.registerInfo)||void 0===e?void 0:e.instrumentPriceImg]),localStorage.setItem("read-tool-image","1"),H.toolImgStatus=!0}},[r(E,{src:null===(e=H.registerInfo)||void 0===e?void 0:e.instrumentPriceImg},null),!H.toolImgStatus&&r("div",{class:P.toolImgOverflow},[r(y,null,{default:function(){return[a("点击查看《乐团训练工具标准配置表》")]}}),r("img",{src:"./assets/icon-head.d20f814d.png",class:P.iconHead},null)])]),r(N,{required:!0,label:"您计划配置的乐器品牌",labelAlign:"top",border:!1,placeholder:"请填写您计划配置的乐器品牌",modelValue:W.instrumentsBrand,"onUpdate:modelValue":function(e){return W.instrumentsBrand=e},maxlength:20,class:P.toolInput,rules:[{required:!0,message:"请填写您计划配置的乐器品牌"}]},null),r(N,{style:"padding-top: 0;",required:!0,label:"您计划配置的AI学练工具品牌",labelAlign:"top",border:!1,class:P.toolInput,placeholder:"请填写您计划配置的AI学练工具品牌",modelValue:W.learningTools,"onUpdate:modelValue":function(e){return W.learningTools=e},maxlength:20,rules:[{required:!0,message:"请填写您计划配置的AI学练工具品牌"}]},null)]}}),r("div",{class:"btnGroup",style:{paddingTop:"30px"}},[r(y,{type:"primary",color:"linear-gradient(135deg, #FF8C4A 0%, #FF531C 100%)",round:!0,block:!0,"native-type":"submit"},{default:function(){return[a("提交")]}})])])]}}),r(h,{show:H.gradeStatus,"onUpdate:show":function(e){return H.gradeStatus=e},position:"bottom",round:!0,safeAreaInsetBottom:!0,lazyRender:!1,class:"popupBottomSearch"},{default:function(){return[r(Y,{showToolbar:!0,columns:H.currentGrade,onCancel:function(){return H.gradeStatus=!1},onConfirm:function(e){var t=e.selectedOptions[0];W.currentGrade=t.value,W.currentGradeTxt=t.text,H.gradeStatus=!1}},null)]}}),r(h,{show:H.classStatus,"onUpdate:show":function(e){return H.classStatus=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[r(Y,{showToolbar:!0,columns:H.classList,onCancel:function(){return H.classStatus=!1},onConfirm:function(e){var t=e.selectedOptions[0];W.currentClass=t.value,W.currentClassTxt=t.text,H.classStatus=!1}},null)]}}),r(h,{show:H.subjectStatus,"onUpdate:show":function(e){return H.subjectStatus=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[r(Y,{showToolbar:!0,columns:H.subjectList,onCancel:function(){return H.subjectStatus=!1},onConfirm:(e=o(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.selectedOptions[0],W.registerSubjectId=n.value,W.registerSubjectTxt=n.text,H.subjectStatus=!1,e.next=6,ue();case 6:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})},null)];var e}}),r(h,{show:H.inspectPopupStatus,"onUpdate:show":function(e){return H.inspectPopupStatus=e},round:!0,closeable:!0,class:P.inspectPopup},{default:function(){return[r(J,{describe:H.instrumentsInspectionDescribe},null)]}}),r(U,{title:"确认信息",show:H.submitStatus,"onUpdate:show":function(e){return H.submitStatus=e},message:'

请确认您准备的乐器和AI学练工具符合《乐团训练工具标准配置表》

',class:P.dialogSubmit,allowHtml:!0,confirmButtonText:"返回",cancelButtonText:"确认",showCancelButton:!0,onConfirm:function(){H.submitStatus=!1},onCancel:(u=o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:te();case 1:case"end":return e.stop()}}),e)}))),function(){return u.apply(this,arguments)})},null),r(U,{title:"提示",show:H.studentReadStatus,"onUpdate:show":function(e){return H.studentReadStatus=e},message:"您已在其他乐团在读,请退团再报名该乐团。",confirmButtonText:"确认",showCancelButton:!1,onConfirm:function(){le()}},null),r(U,{title:"提示",show:H.dialogStatus,"onUpdate:show":function(e){return H.dialogStatus=e},message:H.dialogMessage,confirmButtonText:H.dialogOrchestraStatus?"确认取消":"继续支付",cancelButtonText:"取消订单",showCancelButton:!H.dialogOrchestraStatus,messageAlign:H.dialogOrchestraStatus?"left":"center",onConfirm:(s=o(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!H.dialogOrchestraStatus){e.next=10;break}return e.prev=1,e.next=4,v.post("/api-student/userPaymentOrder/cancelPayment/"+H.dialogConfig.orderNo);case 4:e.next=8;break;case 6:e.prev=6,e.t0=e.catch(1);case 8:e.next=12;break;case 10:r=H.dialogConfig.paymentConfig,n.push({path:"/orderDetail",query:{pm:1,config:JSON.stringify(t(t({},r.paymentConfig),{},{paymentType:r.paymentType})),orderNo:r.orderNo}});case 12:case"end":return e.stop()}}),e,null,[[1,6]])}))),function(){return s.apply(this,arguments)}),onCancel:(e=o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v.post("/api-student/userPaymentOrder/cancelPayment/"+H.dialogConfig.orderNo);case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:case"end":return e.stop()}}),e,null,[[0,5]])}))),function(){return e.apply(this,arguments)})},null)]);var e,s,u}}}))}}}))}();