1 |
- !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<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?e(Object(o),!0).forEach((function(e){n(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function s(e){r(a,o,i,s,u,"next",e)}function u(e){r(a,o,i,s,u,"throw",e)}s(void 0)}))}}var i=document.createElement("style");i.innerHTML='._preApply_1smuq_1{--van-tab-active-text-color: var(--van-primary-color);--van-tab-text-color: #333;--van-tab-font-size: .42667rem}._preApply_1smuq_1 .van-tab{font-weight:600}._preApply_1smuq_1 .van-tabs__wrap{padding-bottom:.08rem}._preApply_1smuq_1 .van-field__error-message{text-align:right}._preApply_1smuq_1 ._popupContainer_1smuq_15{background:url(./assets/wx-no-bg.f12a4a6d.png) no-repeat top center;padding:0 .4rem}._preApply_1smuq_1 ._popupContainer_1smuq_15 ._dialogTitle_1smuq_19{text-align:left;font-size:.48rem;font-weight:500;color:#333;line-height:.66667rem;padding:.53333rem 0 .53333rem .66667rem}._preApply_1smuq_1 ._popupContainer_1smuq_15 ._dialogTitle_1smuq_19 i{display:inline-block;width:.10667rem;height:.37333rem;background:#ff8057;border-radius:.05333rem;margin-right:.16rem}._preApply_1smuq_1 ._popupContainer_1smuq_15 ._popupTips_1smuq_35{text-align:center;padding:.4rem 0 1.2rem;font-size:.42667rem}._preApply_1smuq_1 ._popupContainer_1smuq_15 ._title1_1smuq_40{padding-top:1.52rem;text-align:center;font-size:.48rem;font-weight:500;color:#3b2300}._preApply_1smuq_1 ._popupContainer_1smuq_15 ._popupTips_1smuq_35{padding-top:.32rem;padding-bottom:1.25333rem;text-align:left;font-size:.4rem;color:#777;line-height:.56rem}._preApply_1smuq_1 ._banner_1smuq_55{background:url(./assets/banner.0eea0eaf.png) no-repeat center center;background-size:cover;height:3.78667rem;width:100%}._preApply_1smuq_1 ._banner_1smuq_55 ._orchestraName_1smuq_61{display:block;padding:2.29333rem .48rem 0;max-width:6.13333rem;font-size:.42667rem;color:#fff;text-align:justify}._instrumentPriceImg_1smuq_69{padding:.32rem .34667rem 0;width:100%;min-height:2.66667rem;box-sizing:border-box;border-radius:var(--van-cell-group-inset-radius)}._instrumentPriceImg_1smuq_69 img{width:100%}._applyTitle_1smuq_79{display:flex;align-items:center;padding:.53333rem .53333rem .32rem;font-size:.42667rem;font-weight:600;color:#333}._applyTitle_1smuq_79:before{display:inline-block;content:" ";margin-right:.16rem;width:.10667rem;height:.37333rem;background:linear-gradient(180deg,#ffb790 0%,#ff8057 100%);border-radius:.08rem}._applyTips_1smuq_96{padding:0 .53333rem .32rem;font-size:.37333rem;color:#777}._applyCellGroup_1smuq_101{margin:0 .34667rem}._applyCellGroup_1smuq_101 .van-cell{font-size:.42667rem;padding:.48rem .32rem}._radioSection_1smuq_108{position:relative;min-width:.85333rem;justify-content:center}._radioSection_1smuq_108 ._radioItem_1smuq_113{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}._radioSection_1smuq_108+._radioSection_1smuq_108{margin-left:.32rem}._mlr13_1smuq_124{margin:0 .34667rem}._paymentTips_1smuq_127{background:#ffffff;border-radius:.26667rem;padding:.32rem .37333rem;margin-bottom:.32rem;font-size:.37333rem;color:#777;font-size:400;line-height:.53333rem;text-align:justify}._paymentTips_1smuq_127 span{color:#ff4e19}._paymentContainer_1smuq_141{display:flex;align-items:center;justify-content:space-between;font-size:.37333rem;padding:.4rem .32rem calc(.4rem + env(safe-area-inset-bottom)) .32rem}._paymentContainer_1smuq_141 ._needPrice_1smuq_148{display:flex;align-items:center;color:#333;padding-bottom:.18667rem}._paymentContainer_1smuq_141 ._needPrice_1smuq_148 span{font-size:.58667rem;font-weight:700;color:#ff4e19}._paymentContainer_1smuq_141 ._needPrice_1smuq_148 span span{font-size:.48rem;margin-right:.05333rem}._paymentContainer_1smuq_141 ._allPrice_1smuq_163{color:#aaa}._paymentContainer_1smuq_141 .van-button{height:1.06667rem;line-height:1.06667rem;min-width:2.98667rem}._sectionCell_1smuq_171{margin-bottom:.32rem;padding:.4rem .32rem;border-radius:.26667rem;overflow:hidden;--van-checkbox-border-color: transparent}._sectionCell_1smuq_171 .van-cell{padding:0}._sectionCell_1smuq_171 ._checkbox_1smuq_181{margin-right:.32rem}._sectionCell_1smuq_171 ._extra_1smuq_184{padding:.26667rem 0 0 .93333rem}._sectionCell_1smuq_171 ._extra_1smuq_184 ._sectionPrice_1smuq_187{display:flex;align-items:center;color:#aaa;font-weight:600;flex-wrap:wrap}._sectionCell_1smuq_171 ._extra_1smuq_184 ._price_1smuq_194{display:flex;align-items:center;font-size:.37333rem;color:#333;padding-right:.32rem;font-weight:400}._sectionCell_1smuq_171 ._extra_1smuq_184 ._price_1smuq_194 span{font-size:.42667rem;font-weight:700;color:#ff4e19}._sectionCell_1smuq_171 ._extra_1smuq_184 ._price_1smuq_194 ._free_1smuq_207{font-size:.37333rem}._sectionCell_1smuq_171 ._gives_1smuq_210{margin-top:.48rem;padding-top:.21333rem;border-top:.02667rem solid #f2f2f2}._sectionCell_1smuq_171 ._gives_1smuq_210 ._sectionTips_1smuq_215{display:flex;align-items:center;font-size:.37333rem;color:#ff4e19;padding:.13333rem .16rem;background:#ffebdd;border-radius:.16rem}._sectionCell_1smuq_171 ._gives_1smuq_210 ._iconGives_1smuq_224{width:.85333rem;height:.48rem;margin-right:.21333rem}._sectionCell_1smuq_171 ._iconChecked_1smuq_229{font-size:.48rem}._sectionCell_1smuq_171 ._iconChecked_1smuq_229 .van-icon__image{width:100%;height:100%}._sectionCell_1smuq_171 .van-checkbox__icon--disabled .van-icon{border-color:transparent;background-color:transparent;opacity:.6}._sectionCell_1smuq_171 .van-checkbox__icon--checked .van-icon{border-color:transparent;background-color:transparent}._numFont_1smuq_245{font-family:DINA}._numFont_1smuq_245 ._numPrefix_1smuq_248{font-size:.37333rem!important;margin-right:.05333rem}._section_1smuq_171{display:flex}._section_1smuq_171 ._img_1smuq_255{width:2.34667rem;height:2.34667rem;border-radius:.16rem;overflow:hidden;flex-shrink:0;margin-right:.37333rem}._section_1smuq_171 h2{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._section_1smuq_171 ._brandName_1smuq_269{line-height:.48rem;font-size:.32rem;padding:0 .16rem;border-radius:.10667rem}._section_1smuq_171 ._model_1smuq_275{padding-top:.08rem;font-size:.34667rem;color:#777;line-height:.48rem}._orderCellGroup_1smuq_281{margin:0 .34667rem .32rem}._orderCellGroup_1smuq_281 .van-cell{padding-left:.32rem;padding-right:.32rem}._payTime_1smuq_288{font-size:.42667rem;color:#777;flex:0 auto}._payStatus_1smuq_293{color:#ff4e19}._paySuccess_1smuq_296{color:var(--van-primary)}._imgGroup_1smuq_299{padding:.4rem .32rem .48rem .16rem!important}._imgGroup_1smuq_299 ._img_1smuq_255{width:1.86667rem;height:1.86667rem;border-radius:.16rem;overflow:hidden}._imgGroup_1smuq_299 .van-grid-item__content{padding:0}._imgGroup_1smuq_299 ._orderPriceInfo_1smuq_311{display:flex;align-content:center}._imgGroup_1smuq_299 ._orderPriceInfo_1smuq_311>div{flex:1 auto}._imgGroup_1smuq_299 ._orderPriceInfo_1smuq_311 ._orderPriceNum_1smuq_318{flex:0 auto;width:2.66667rem;text-align:right;display:flex;flex-direction:column;justify-content:center}._imgGroup_1smuq_299 ._orderPriceInfo_1smuq_311 ._orderPriceNum_1smuq_318 ._opNums_1smuq_326{font-size:.42667rem;font-family:DINA;font-weight:700;color:#333;line-height:.37333rem}._imgGroup_1smuq_299 ._orderPriceInfo_1smuq_311 ._orderPriceNum_1smuq_318 ._opNums_1smuq_326 span{font-size:.32rem}._imgGroup_1smuq_299 ._orderPriceInfo_1smuq_311 ._orderPriceNum_1smuq_318 ._opBuyLength_1smuq_336{font-size:.34667rem;color:#777;line-height:.48rem}._btnGroup_1smuq_341{padding-top:0}._btnGroup_1smuq_341 ._btnPrice_1smuq_344{font-family:DINA;font-size:.58667rem;font-weight:700;color:#ff4e19}._btnGroup_1smuq_341 .van-cell__value{flex:1 auto;display:flex;justify-content:flex-end}._btnGroup_1smuq_341 .van-button{height:.8rem;line-height:.8rem;min-width:2.13333rem}._btnGroup_1smuq_341 .van-button+.van-button{margin-left:.26667rem}._btnGroup_1smuq_341 ._btns_1smuq_363{display:flex}._preApplyC_1smuq_366{--van-dialog-message-font-size: .42667rem !important}._dialogTitle_1smuq_19{padding-left:.66667rem;text-align:left;font-size:.48rem;font-weight:500;color:#333;line-height:.66667rem;padding-bottom:.32rem}._dialogTitle_1smuq_19 i{display:inline-block;width:.10667rem;height:.37333rem;background:#ff8057;border-radius:.05333rem;margin-right:.16rem}._dialogRefund_1smuq_386{padding:.53333rem 0 .4rem .66667rem}._refundContent_1smuq_389{padding:0 .53333rem .66667rem}._refundContent_1smuq_389 ._tips_1smuq_392{font-size:.4rem;color:#333;line-height:.56rem}._container_1smuq_397 .van-button{font-size:.48rem;font-weight:500}._refundTitle_1smuq_401{padding-top:.66667rem;font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem}._refundTitle_1smuq_401 span{color:#f44541}._phoneName_1smuq_411{background:#f2f2f2;border-radius:.16rem}\n',document.head.appendChild(i),System.register(["./index-legacy.90c82f08.js","./index-legacy.d85a75b6.js","./index-legacy.55839436.js","./index-legacy.3c5580aa.js","./index-legacy.dc8d6058.js","./index-legacy.92c1b9d6.js","./index-legacy.eb4bc59e.js","./index-legacy.c8871c95.js","./function-call-legacy.aee1e992.js","./index-legacy.84457c4c.js","./countUp.min-legacy.52e432a0.js","./index-legacy.c223b3ce.js","./index-legacy.964c9f04.js","./index-legacy.f1d613e0.js","./index-legacy.b10d0450.js","./index-legacy.f3e5e283.js","./index-legacy.f7f96215.js","./index-legacy.4e015ad0.js","./index-legacy.789a0824.js","./index-legacy.e4343e46.js","./index-legacy.f9492e3a.js","./index-legacy.fe10c814.js","./Checker-legacy.1b485b9f.js","./Picker-legacy.aeff9f1a.js","./ImagePreview-legacy.356ad326.js","./index-legacy.64e3b474.js","./use-tab-status-legacy.bafe466c.js"],(function(e){"use strict";var n,r,i,a,s,u,c,l,d,m,p,f,g,_,h,y,b,v,x,q,C,I,k,P,T,S,A,w,N,R,j,G,O,B,F,V,E,z,U,D,L,M,Y,K,H,X,Z,J,Q,W;return{setters:[function(e){n=e.d,r=e.ah,i=e.ag,a=e.r,s=e.$,u=e.c,c=e.q,l=e.o,d=e.B,m=e.P,p=e.a$,f=e.m,g=e.F,_=e.a5,h=e.b6,y=e._,b=e.ak,v=e.al,x=e.R,q=e.f,C=e.bd,I=e.bo,k=e.bg,P=e.l,T=e.be},function(e){S=e.F},function(e){A=e.C},function(e){w=e.F},function(e){N=e.R,R=e.a},function(e){j=e.T},function(e){G=e.I},function(e){O=e.P},function(e){B=e.s},function(e){F=e.O},function(e){V=e.C},function(e){E=e.O},function(e){z=e.M,U=e.G},function(e){D=e.O},function(e){L=e.C},function(e){M=e.C},function(e){Y=e.C},function(e){K=e.b},function(e){H=e.L},function(e){X=e.G,Z=e.a},function(e){J=e.S},function(e){Q=e.T,W=e.a},function(){},function(){},function(){},function(){},function(){}],execute:function(){for(var $={preApply:"_preApply_1smuq_1",popupContainer:"_popupContainer_1smuq_15",dialogTitle:"_dialogTitle_1smuq_19",popupTips:"_popupTips_1smuq_35",title1:"_title1_1smuq_40",banner:"_banner_1smuq_55",orchestraName:"_orchestraName_1smuq_61",instrumentPriceImg:"_instrumentPriceImg_1smuq_69",applyTitle:"_applyTitle_1smuq_79",applyTips:"_applyTips_1smuq_96",applyCellGroup:"_applyCellGroup_1smuq_101",radioSection:"_radioSection_1smuq_108",radioItem:"_radioItem_1smuq_113",mlr13:"_mlr13_1smuq_124",paymentTips:"_paymentTips_1smuq_127",paymentContainer:"_paymentContainer_1smuq_141",needPrice:"_needPrice_1smuq_148",allPrice:"_allPrice_1smuq_163",sectionCell:"_sectionCell_1smuq_171",checkbox:"_checkbox_1smuq_181",extra:"_extra_1smuq_184",sectionPrice:"_sectionPrice_1smuq_187",price:"_price_1smuq_194",free:"_free_1smuq_207",gives:"_gives_1smuq_210",sectionTips:"_sectionTips_1smuq_215",iconGives:"_iconGives_1smuq_224",iconChecked:"_iconChecked_1smuq_229",numFont:"_numFont_1smuq_245",numPrefix:"_numPrefix_1smuq_248",section:"_section_1smuq_171",img:"_img_1smuq_255",brandName:"_brandName_1smuq_269",model:"_model_1smuq_275",orderCellGroup:"_orderCellGroup_1smuq_281",payTime:"_payTime_1smuq_288",payStatus:"_payStatus_1smuq_293",paySuccess:"_paySuccess_1smuq_296",imgGroup:"_imgGroup_1smuq_299",orderPriceInfo:"_orderPriceInfo_1smuq_311",orderPriceNum:"_orderPriceNum_1smuq_318",opNums:"_opNums_1smuq_326",opBuyLength:"_opBuyLength_1smuq_336",btnGroup:"_btnGroup_1smuq_341",btnPrice:"_btnPrice_1smuq_344",btns:"_btns_1smuq_363",preApplyC:"_preApplyC_1smuq_366",dialogRefund:"_dialogRefund_1smuq_386",refundContent:"_refundContent_1smuq_389",tips:"_tips_1smuq_392",container:"_container_1smuq_397",refundTitle:"_refundTitle_1smuq_401",phoneName:"_phoneName_1smuq_411"},ee=[],te=1;te<=40;te++)ee.push({text:te+"班",value:te});var ne=n({name:"apply",props:{schoolSystem:{type:String,default:"sixYearSystem"},registerInfo:{type:Object,defualt:{}},code:{type:String,default:""}},emits:["next"],setup:function(e,n){n.slots,n.attrs;var g=n.emit,_=r();i();var h=a({detail:{},currentGrade:[{text:"一年级",value:1},{text:"二年级",value:2},{text:"三年级",value:3},{text:"四年级",value:4},{text:"五年级",value:5},{text:"六年级",value:6},{text:"七年级",value:7},{text:"八年级",value:8},{text:"九年级",value:9}],classList:ee,subjectList:[],gradeStatus:!1,classStatus:!1,subjectStatus:!1,pattern:/^1(3|4|5|6|7|8|9)\d{9}$/,nameReg:/^[\u4E00-\u9FA5]+$/,subjectChangeStatus:!1}),y=a({username:null,sex:null,currentGrade:null,currentGradeTxt:null,currentClass:"",currentClassTxt:null,registerSubjectId:"",registerSubjectTxt:null,parentName:null,phone:null}),b=function(){var e=o(regeneratorRuntime.mark((function e(){var t,n,r,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,f.get("/api-student/orchestraRegister/register/"+_.query.id);case 3:t=e.sent,n=t.data,r=n||{},h.detail=r,o=h.currentGrade.find((function(e){return e.value==r.currentGrade})),i=h.classList.find((function(e){return e.value==r.currentClass})),a=h.subjectList.find((function(e){return e.value==r.registerSubjectId})),y.username=r.username,y.sex=r.sex?1:0,y.currentGrade=r.currentGrade,y.currentGradeTxt=o?o.text:"",y.currentClass=r.currentClass,y.currentClassTxt=i?i.text:"",y.registerSubjectId=r.registerSubjectId,y.registerSubjectTxt=a?a.text:"",y.parentName=r.parentName,y.phone=r.phone,e.next=25;break;case 22:e.prev=22,e.t0=e.catch(0),console.log(e.t0);case 25:case"end":return e.stop()}}),e,null,[[0,22]])})));return function(){return e.apply(this,arguments)}}(),v=function(){var e=o(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,f.post("/api-student/open/orchestraSubjectConfig/pageByOrchestraId",{data:{orchestraId:_.query.id,page:1,rows:100}});case 3:t=e.sent,(t.data.rows||[]).forEach((function(e){h.subjectList.push({text:e.name,value:e.subjectId})})),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)}}(),x=function(e){return h.nameReg.test(e)&&e.length>=2&&e.length<=15},q=function(e){return e?h.nameReg.test(e)?e.length<2||e.length>15?"学员姓名必须为2~15个字":"":"学员姓名必须为中文":"请填写学员真实姓名"},C=function(){var n=o(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,r=t({orchestraId:_.query.id,schoolId:h.detail.schoolId},y),h.detail.id&&(r.id=h.detail.id),n.next=5,f.post("/api-student/orchestraRegister/save",{hideLoading:!1,data:t(t({},r),{},{code:e.code})});case 5:setTimeout((function(){g("next","payment")}),100),n.next=10;break;case 8:n.prev=8,n.t0=n.catch(0);case 10:case"end":return n.stop()}}),n,null,[[0,8]])})));return function(){return n.apply(this,arguments)}}(),I=function(){var t;B([null===(t=e.registerInfo)||void 0===t?void 0:t.instrumentPriceImg])};return s(o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v();case 2:return e.next=4,b();case 4:case"end":return e.stop()}}),e)})))),function(){return u("div",{class:$.preApplyC},[u(S,{validateFirst:!0,scrollToError:!0,onSubmit:C,ref:"form",class:$.form},{default:function(){var t,n;return[u("div",{class:$.applyTitle},[c("学员信息")]),u(A,{inset:!0,class:$.applyCellGroup},{default:function(){return[u(w,{required:!0,label:"学员信息",placeholder:"请填写学员真实姓名",inputAlign:"right",modelValue:y.username,"onUpdate:modelValue":function(e){return y.username=e},maxlength:15,rules:[{validator:x,message:q}]},null),u(w,{required:!0,label:"性别",inputAlign:"right",rules:[{required:!0,message:"请选择性别"}]},{input:function(){return u(N,{modelValue:y.sex,"onUpdate:modelValue":function(e){return y.sex=e}},{default:function(){return[u(j,{size:"large",type:"primary",color:1!==y.sex?"#EAEAEA":"#FF8057",textColor:1!==y.sex?"#AAA":"#FFF",class:$.radioSection,round:!0},{default:function(){return[u(R,{class:$.radioItem,name:1},null),c("男生")]}}),u(j,{size:"large",type:"primary",color:0!==y.sex?"#EAEAEA":"#FF8057",textColor:0!==y.sex?"#AAA":"#FFF",class:$.radioSection,round:!0},{default:function(){return[u(R,{class:$.radioItem,name:0},null),c("女生")]}})]}})}}),u(w,{required:!0,label:"年级",inputAlign:"right",readonly:!0,isLink:!0,placeholder:"请选择年级",modelValue:y.currentGradeTxt,"onUpdate:modelValue":function(e){return y.currentGradeTxt=e},onClick:function(){return h.gradeStatus=!0},rules:[{required:!0,message:"请选择年级"}]},null),u(w,{required:!0,label:"班级",inputAlign:"right",readonly:!0,isLink:!0,placeholder:"请选择班级",modelValue:y.currentClassTxt,"onUpdate:modelValue":function(e){return y.currentClassTxt=e},onClick:function(){return h.classStatus=!0},rules:[{required:!0,message:"请选择班级"}]},null)]}}),u("div",{class:$.applyTitle},[c("声部信息")]),u("div",{class:$.applyTips},[c("(请务必按照学生的录取声部填报)")]),u(A,{inset:!0,class:$.applyCellGroup},{default:function(){return[u(w,{required:!0,label:"声部",inputAlign:"right",readonly:!0,isLink:!0,placeholder:"请选择声部",modelValue:y.registerSubjectTxt,"onUpdate:modelValue":function(e){return y.registerSubjectTxt=e},onClick:function(){var t,n,r;h.subjectList.length<=0?l("暂无报名声部"):"LEARNING"===(null===(t=e.registerInfo)||void 0===t?void 0:t.registerStatus)||"OUTOF_ORCHESTRA"===(null===(n=e.registerInfo)||void 0===n?void 0:n.registerStatus)&&(null===(r=e.registerInfo)||void 0===r?void 0:r.orderNumber)>0?h.subjectChangeStatus=!0:h.subjectStatus=!0},rules:[{required:!0,message:"请选择声部"}]},null)]}}),"PARENT_CONFERENCES"===(null===(t=e.registerInfo)||void 0===t?void 0:t.orchestraRegisterType)&&u(G,{src:null===(n=e.registerInfo)||void 0===n?void 0:n.instrumentPriceImg,class:$.instrumentPriceImg,onClick:I},null),u("div",{class:$.applyTitle},[c("家长信息")]),u(A,{inset:!0,class:$.applyCellGroup},{default:function(){return[u(w,{required:!0,label:"家长姓名",inputAlign:"right",placeholder:"请填写家长真实姓名",modelValue:y.parentName,"onUpdate:modelValue":function(e){return y.parentName=e},maxlength:15,rules:[{required:!0,message:"请填写家长真实姓名"}]},null),u(w,{required:!0,label:"手机号",inputAlign:"right",placeholder:"请输入手机号",modelValue:y.phone,"onUpdate:modelValue":function(e){return y.phone=e},maxlength:11,type:"tel",rules:[{pattern:h.pattern,message:"输入监护人手机号码有误"}]},null)]}}),u("div",{class:"btnGroup",style:{paddingTop:"30px"}},[u(d,{type:"primary",round:!0,block:!0,"native-type":"submit"},{default:function(){return[c("下一步")]}})])]}}),u(m,{show:h.gradeStatus,"onUpdate:show":function(e){return h.gradeStatus=e},position:"bottom",round:!0,safeAreaInsetBottom:!0,lazyRender:!1,class:"popupBottomSearch"},{default:function(){return[u(O,{showToolbar:!0,columns:h.currentGrade,onCancel:function(){return h.gradeStatus=!1},onConfirm:function(e){var t=e.selectedOptions[0];y.currentGrade=t.value,y.currentGradeTxt=t.text,h.gradeStatus=!1}},null)]}}),u(m,{show:h.classStatus,"onUpdate:show":function(e){return h.classStatus=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[u(O,{showToolbar:!0,columns:h.classList,onCancel:function(){return h.classStatus=!1},onConfirm:function(e){var t=e.selectedOptions[0];y.currentClass=t.value,y.currentClassTxt=t.text,h.classStatus=!1}},null)]}}),u(m,{show:h.subjectStatus,"onUpdate:show":function(e){return h.subjectStatus=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[u(O,{showToolbar:!0,columns:h.subjectList,onCancel:function(){return h.subjectStatus=!1},onConfirm:function(e){var t=e.selectedOptions[0];y.registerSubjectId=t.value,y.registerSubjectTxt=t.text,h.subjectStatus=!1}},null)]}}),u(p,{show:h.subjectChangeStatus,"onUpdate:show":function(e){return h.subjectChangeStatus=e},message:"您已有报名订单,不可更换声部",messageAlign:"center",confirmButtonText:"确定"},{title:function(){return u("div",{class:$.dialogTitle},[u("i",null,null),c("提示")])}})])}}}),re="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAeCAYAAAA/xX6fAAAAAXNSR0IArs4c6QAAAn5JREFUSEu9lk1ME0EUx3/T0hYa0BBNJCZEDVGiB48GDsjNix4pFTHePXgwKmoQXSpoKCfPXhQJgnjUizflQOPZBI0mRJRAgIiIVVpCx8xutx90t9sPs3Pcee/93nvzn9kncHkJJ54EgdbdAeIsgnYkRxE06n6SdQSfkcyCfI32Ykaor0VWUaDUznch5BCSVqfE9H3BJ6S4I7TJl3b2lkB5P3SEHc8E0FYSqNAohjd1QQxMz+/eKgDKSE8nqZTKcH+FMNNtDY+nS9x9/jY3Th4wDXsD+KuEme5JPJ4zudAMMN3G9/+hst25ruFNnTLbmwVq4dkqzsypITGhTbUbulLqVmpETjt5VbcvQkq9Qr9ng+G5kqVfKVVdmXtTx4XUuk+DyFNSpTEJ7oH6vbDyzSaE7BRSC0eBGxVDTMcDh+BSP9Q1wNMIfJ2zChkVcjD8DklHVcCDLXDxNtTVw3YSHvfDqkWVghlV4RLQZAv01oCUkNqxNmk+Br23IBCEZAImR2H+g124ZVXhFpKApYXK+PKosfVsGFa/55sdPgE9feCvhcRfmBiBhY/2zRIkigMbGuHKI/D54feGcTZri0bAlpMQvga+AGzFYfwhLH4pfjI60KmleuDraehPeBKBfU0Qugo1PvizCeMPYKngnbaC6y11Fk1u6+K/oDYI6mzjGzA2DCsLpWkuLZoRoM/Ro7kVem8a4lBrcx3GhrItdgygG0TLu/hK/kqR2wkD9mO5NEzGSl38cp82JRK1FLScZT5tysfVx9tMUrr5e9KrNOYY937AOtSYZ9wZMTKtdXOIykDdHBNzle7aIJwHzY765xC02Yz6MZCvqh71y7nXpdr+AzQ6A1zwOYWrAAAAAElFTkSuQmCC",oe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAk9JREFUSEvFljFoVEEQhr+5A1NdISgImiKFhCTYihYxnSgRxZA3AbGRaKeChVYWr7AxjaB2GmxEyDwvYjAodpoiwVZyElJYaFBQsHiNEd6NbHgXLmpyd0FettydmX/n35nZX2ix3F3MbLBUKg27+1HgoIjsDm7u/gNYFpH5er0+q6pzIuJbhZStDs1sFLgF9La6WH6+BNxU1aeb2f8T0Mx63P2JiBzJHT8Bz4FZ4D3wLd/fCxwChoEzQHee+YKInFPVj38C/wVoZkNAuOEeYEVEYnd/pKpZCzbKInLB3WNgP/AdGFXVN81+GwBzsNfALmAmTdPz4+PjaZt0rplNTk5WKpXKY+A08As43gy6DhhoBN6FzETk7uLi4rU4juudgDVs4zguDQwM3HH3q3mmhxv0rgNOTU3N5282U6vVzm4XrBm0v7//WcjU3RfGxsZChbMGmFdjEt4sTdO+TmncjIWc3g/5m0aheiX0WZIkYbNXRC5FUfRwOzRu5pMkyUV3fwAsRVHUJ9Vq9ViWZaGSQun3tKrGTi9jZmUgtEe3uw+FKTIBXAfuq+qVTgO2Y29m94DLIjIR6Hzr7oPASVV91U6ATm3M7ATwUkTmQoZfgH3AAVVd6TRYO/ZmFgbBZ+BryPCnu3cBXaoaGvW/LzMLg2RVRFaLB9wJSgsrGmAuUHrb3W8U1haFN37ho63w4d1oukK/pzzLYj/gHDTomWIkRoPaQkVUE2hxMrF5chcmhJtBQ59OT08PZll2Kogsd98g9UVkOYikcrn8YmRkpKXU/w3FMJTtm1XXOwAAAABJRU5ErkJggg==",ie=n({name:"payment",emits:["next"],setup:function(){var e=r(),n=i(),m=a({paymentType:"",musicPaymentType:"",check:[],checkboxRefs:[],details:[],goodsInfo:{},textBookInfo:{},repaireInfo:{},vipInfo:{},paymentOrderDetails:[],orderInfo:{needPrice:0,originalPrice:0},memberBaoStatus:!1,goodsStatus:!1,selectGoodsId:null,currentPrice:0,selectGoodsInfo:{},dialogStatus:!1,dialogMessage:"",dialogOrchestraStatus:!1,dialogConfig:{}}),p=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,f.get("/api-student/sysParamConfig/queryByParamName",{params:{paramName:"payment_service_provider"}});case 3:t=e.sent,n=t.data,m.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)}}(),b=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,f.get("/api-student/userPaymentOrder/unpaid",{params:{orchestraId:e.query.id}});case 3:n=t.sent,(r=n.data).id&&(r.orchestraId!==e.query.id?(m.dialogMessage="您在其它乐团存在待支付订单,取消后才可继续报名,是否确认取消?",m.dialogStatus=!0,m.dialogOrchestraStatus=!0,m.dialogConfig=r):(m.dialogMessage="您有待支付的订单,是否继续支付",m.dialogStatus=!0,m.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)}}(),v=function(){var n=o(regeneratorRuntime.mark((function n(){var r,o,i;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,f.get("/api-student/orchestraRegister/registerGoods/"+e.query.id);case 3:r=n.sent,o=r.data,m.musicPaymentType=o.paymentServiceProvider||"",(o.paymentOrderDetails||[]).forEach((function(e){m.paymentOrderDetails.push(e.goodsType)})),(i=o.details||[]).forEach((function(e){if("INSTRUMENTS"===e.goodsType){var n=e.goodsUrl?e.goodsUrl.split(",")[0]:"";m.goodsInfo=t(t({},e),{},{goodsUrl:n})}else if("TEXTBOOK"===e.goodsType){var r=e.goodsUrl?e.goodsUrl.split(",")[0]:"";m.textBookInfo=t(t({},e),{},{goodsUrl:r})}else"REPAIR"===e.goodsType?m.repaireInfo=t({},e):"VIP"===e.goodsType&&(m.vipInfo=t({},e));m.details=i,m.paymentOrderDetails.includes(e.goodsType)||"TEXTBOOK"!=e.goodsType||m.check.push(e.goodsId)})),q(),n.next=15;break;case 13:n.prev=13,n.t0=n.catch(0);case 15:case"end":return n.stop()}}),n,null,[[0,13]])})));return function(){return n.apply(this,arguments)}}(),x=function(e){m.checkboxRefs[e].toggle(),q()},q=function(){var e=m.details,t={needPrice:0,originalPrice:0};e.forEach((function(e){m.check.includes(e.goodsId)&&!m.paymentOrderDetails.includes(e.goodsType)&&(t.needPrice+=parseFloat(e.currentPrice||0),t.originalPrice+=parseFloat(e.originalPrice||0))})),m.orderInfo=t,I()},C=a({needPrice:null,originalPrice:null}),I=function(){y((function(){C.needPrice?C.needPrice.update(m.orderInfo.needPrice):(C.needPrice=new V("needPrice",m.orderInfo.needPrice,{decimalPlaces:2}),C.needPrice.error?console.error(C.needPrice.error):C.needPrice.start())}))},k=function(){var r=o(regeneratorRuntime.mark((function r(){var o,i,a,s,u,c;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,!(m.check.length<=0)){r.next=4;break}return l("请选择您要购买的商品"),r.abrupt("return");case 4:return q(),o=[],i=m.details,a=!1,i.forEach((function(e){m.check.includes(e.goodsId)&&!m.paymentOrderDetails.includes(e.goodsType)&&o.push({goodsId:e.goodsId,goodsNum:1,goodsType:e.goodsType,paymentCashAmount:e.currentPrice,paymentCouponAmount:0}),"INSTRUMENTS"===e.goodsType&&m.check.includes(e.goodsId)&&!m.paymentOrderDetails.includes(e.goodsType)&&(a=!1)})),s=m.repaireInfo,a&&s.goodsId&&o.push({goodsId:s.goodsId,goodsNum:1,goodsType:s.goodsType,paymentCashAmount:s.currentPrice,paymentCouponAmount:0}),r.next=13,f.post("/api-student/userPaymentOrder/executeOrder",{hideLoading:!1,data:{paymentType:m.musicPaymentType||m.paymentType,bizId:e.query.id,orderType:"ORCHESTRA",paymentCashAmount:m.orderInfo.needPrice||0,paymentCouponAmount:0,goodsInfos:o,orderName:"乐团报名缴费",orderDesc:"乐团报名缴费"}});case 13:u=r.sent,c=u.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=22;break;case 19:r.prev=19,r.t0=r.catch(0),console.log(r.t0);case 22:case"end":return r.stop()}}),r,null,[[0,19]])})));return function(){return r.apply(this,arguments)}}();return s((function(){p(),v(),b()})),function(){return u(g,null,[u("div",{class:$.applyTitle},[c("报名须知")]),u("div",{class:[$.paymentTips,$.mlr13]},[u("p",null,[c("1、"),u("span",null,[c("乐团免费政策")]),c(":学生在团期间训练及教材免费政策(教材邮费需自理);")]),u("p",null,[c("2、"),u("span",null,[c("入团必备工具")]),c(":为了符合乐团学练同频的要求,学生在入团前需准备好乐团Ai训练工具和乐器两项工具;")]),u("p",null,[c("3、"),u("span",null,[c("入团必备工具准备的原则")]),c(":家长可自行准备(需按照乐团提供的参考参数准备),也可勾选下方项目技术方提供的乐团工具;")]),u("p",null,[c("4、"),u("span",null,[c("温馨提示")]),c(":自行准备的家长请在收到开团信息后再进行工具准备(避免出现时间浪费),在项目技术方购置的家长请放心提交(Ai学练工具将在首次训练时激活)")])]),u(L,{modelValue:m.check,"onUpdate:modelValue":function(e){return m.check=e},style:{paddingBottom:"20px"},onChange:function(){q()}},{default:function(){return[!m.paymentOrderDetails.includes("VIP")&&u(g,null,[u(A,{inset:!0,class:[$.mlr13,$.sectionCell],onClick:function(){return x(m.vipInfo.goodsId)}},{default:function(){return[u(M,{border:!1},{icon:function(){return u(Y,{name:m.vipInfo.goodsId,class:$.checkbox,ref:function(e){return m.checkboxRefs[m.vipInfo.goodsId]=e},onClick:function(e){e.stopPropagation()}},{icon:function(e){return u(_,{class:$.iconChecked,name:e.checked?re:oe},null)}})},title:function(){return u("div",{class:$.section},[u(G,{class:$.img,src:m.vipInfo.goodsUrl,onClick:function(e){e.stopPropagation(),m.memberBaoStatus=!0}},null),u("div",{class:$.sectionContent},[u("h2",{onClick:function(e){e.stopPropagation(),m.memberBaoStatus=!0}},[m.vipInfo.goodsName]),u(j,{color:"linear-gradient(135deg, #FF8C4A 0%, #FF531C 100%)",textColor:"#fff",class:$.brandName},{default:function(){return[c("6个月")]}}),u("p",{class:[$.model,"van-multi-ellipsis--l2"]},[m.vipInfo.description])])])}}),u(M,null,{title:function(){return u("div",{class:$.extra},[u("div",{class:$.sectionPrice},[u("p",{class:$.price},[c("团购价:"),u("span",{class:$.numFont},[u("span",{class:$.numPrefix},[c("¥")]),h(m.vipInfo.currentPrice)])]),u("p",{class:$.originPrice},[c("原价:"),u("del",{class:$.numFont},[c("¥ "),h(m.vipInfo.originalPrice)])])])])}})]}})]),!m.paymentOrderDetails.includes("INSTRUMENTS")&&u(g,null,[u(A,{inset:!0,class:[$.mlr13,$.sectionCell],onClick:function(){return x(m.goodsInfo.goodsId)}},{default:function(){return[u(M,{border:!1},{icon:function(){return u(Y,{name:m.goodsInfo.goodsId,class:$.checkbox,ref:function(e){return m.checkboxRefs[m.goodsInfo.goodsId]=e},onClick:function(e){e.stopPropagation()}},{icon:function(e){return u(_,{class:$.iconChecked,name:e.checked?re:oe},null)}})},title:function(){return u("div",{class:$.section},[u(G,{class:$.img,src:m.goodsInfo.goodsUrl,onClick:function(e){e.stopPropagation(),m.selectGoodsId=m.goodsInfo.goodsId,m.currentPrice=m.goodsInfo.currentPrice,m.selectGoodsInfo={showFree:!0,originalPrice:m.repaireInfo.originalPrice},m.goodsStatus=!0}},null),u("div",{class:$.sectionContent},[u("h2",{onClick:function(e){e.stopPropagation(),m.selectGoodsId=m.goodsInfo.goodsId,m.currentPrice=m.goodsInfo.currentPrice,m.goodsStatus=!0}},[m.goodsInfo.goodsName]),u(j,{color:"linear-gradient(135deg, #FF8C4A 0%, #FF531C 100%)",textColor:"#fff",class:$.brandName},{default:function(){return[m.goodsInfo.brandName]}}),u("p",{class:[$.model,"van-multi-ellipsis--l2"]},[m.goodsInfo.description])])])}}),u(M,{border:!1},{title:function(){return u("div",{class:$.extra},[u("div",{class:$.sectionPrice},[u("p",{class:$.price},[c("团购价:"),u("span",{class:$.numFont},[u("span",{class:$.numPrefix},[c("¥ ")]),h(m.goodsInfo.currentPrice)])]),u("p",{class:$.originPrice},[c("原价:"),u("del",{class:$.numFont},[c("¥ "),h(m.goodsInfo.originalPrice)])])])])}})]}})]),!m.paymentOrderDetails.includes("TEXTBOOK")&&u(g,null,[u(A,{inset:!0,class:[$.mlr13,$.sectionCell],onClick:function(){}},{default:function(){return[u(M,{border:!1},{icon:function(){return u(Y,{name:m.textBookInfo.goodsId,disabled:!0,class:$.checkbox,ref:function(e){return m.checkboxRefs[m.textBookInfo.goodsId]=e},onClick:function(e){e.stopPropagation()}},{icon:function(e){return u(_,{class:$.iconChecked,name:e.checked?re:oe},null)}})},title:function(){return u("div",{class:$.section},[u(G,{class:$.img,src:m.textBookInfo.goodsUrl,onClick:function(e){e.stopPropagation(),m.selectGoodsId=m.textBookInfo.goodsId,m.currentPrice=m.textBookInfo.currentPrice,m.selectGoodsInfo={},m.goodsStatus=!0}},null),u("div",{class:$.sectionContent},[u("h2",{onClick:function(e){e.stopPropagation(),m.selectGoodsId=m.textBookInfo.goodsId,m.currentPrice=m.textBookInfo.currentPrice,m.selectGoodsInfo={},m.goodsStatus=!0}},[m.textBookInfo.goodsName]),u(j,{color:"linear-gradient(135deg, #FF8C4A 0%, #FF531C 100%)",textColor:"#fff",class:$.brandName},{default:function(){return[m.textBookInfo.brandName]}}),u("p",{class:[$.model,"van-multi-ellipsis--l2"]},[m.textBookInfo.description])])])}}),u(M,null,{title:function(){return u("div",{class:$.extra},[u("div",{class:$.sectionPrice},[u("p",{class:$.price},[c("团购价:"),u("span",{class:[m.textBookInfo.currentPrice>0?$.numFont:$.free]},[m.textBookInfo.currentPrice>0?u(g,null,[u("span",{class:$.numPrefix},[c("¥ ")]),h(m.textBookInfo.currentPrice)]):"免费"])]),u("p",{class:$.originPrice},[c("原价:"),u("del",{class:$.numFont},[c("¥ "),h(m.textBookInfo.originalPrice)])])])])}})]}})])]}}),u(F,{position:"bottom",background:"white"},{default:function(){return[u("div",{class:$.paymentContainer},[u("div",{class:$.payemntPrice},[u("p",{class:$.needPrice},[c("支付金额:"),u("span",{class:$.numFont},[u("span",null,[c("¥ ")]),u("i",{style:"font-style: normal",id:"needPrice"},null)])]),u("p",{class:$.allPrice},[u("del",{class:$.numFont},[c("总原价:¥ "),h(m.orderInfo.originalPrice)])])]),u("div",{class:$.paymentBtn},[u(d,{color:"linear-gradient(135deg, #FF8C4A 0%, #FF531C 100%)",round:!0,onClick:k},{default:function(){return[c("立即提交")]}})])])]}}),u(E,{modelValue:m.memberBaoStatus,"onUpdate:modelValue":function(e){return m.memberBaoStatus=e},position:"right"},{default:function(){return[u(z,null,null)]}}),u(E,{modelValue:m.goodsStatus,"onUpdate:modelValue":function(e){return m.goodsStatus=e},position:"right",destroy:!0},{default:function(){return[m.goodsStatus&&u(U,{id:m.selectGoodsId,groupPrice:m.currentPrice,goodsInfo:m.selectGoodsInfo},null)]}}),u(D,{title:"提示",show:m.dialogStatus,"onUpdate:show":function(e){return m.dialogStatus=e},message:m.dialogMessage,confirmButtonText:m.dialogOrchestraStatus?"确认取消":"继续支付",cancelButtonText:"取消订单",showCancelButton:!m.dialogOrchestraStatus,messageAlign:m.dialogOrchestraStatus?"left":"center",onConfirm:(r=o(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!m.dialogOrchestraStatus){e.next=10;break}return e.prev=1,e.next=4,f.post("/api-student/userPaymentOrder/cancelPayment/"+m.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=m.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 r.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,f.post("/api-student/userPaymentOrder/cancelPayment/"+m.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,r}}});var ae=n({name:"order",emits:["next"],setup:function(){var e=i(),n=r(),l=a({isClick:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{page:1,rows:20},resionList:[],refundStatus:!1,resion:null,refundSelect:{},checked:null}),d=function(){var e=o(regeneratorRuntime.mark((function e(){var r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!l.isClick){e.next=3;break}return e.abrupt("return");case 3:return l.isClick=!0,e.next=6,f.post("/api-student/userPaymentOrder/page",{data:t(t({},l.params),{},{bizId:n.query.id,goodsQuery:!0})});case 6:if(r=e.sent,l.listState.loading=!1,o=r.data||{},!(l.list.length>0&&1===o.current)){e.next=11;break}return e.abrupt("return");case 11:(i=o.rows||[]).goodsInfos&&i.goodsInfos.forEach((function(e){var t=e.goodsUrl?e.goodsUrl.split(",")[0]:"";e.goodsUrl=t})),l.list=l.list.concat(i),l.listState.finished=o.current>=o.pages,l.params.page=o.current+1,l.listState.dataShow=l.list.length>0,l.isClick=!1,e.next=25;break;case 20:e.prev=20,e.t0=e.catch(0),l.listState.dataShow=!1,l.listState.finished=!0,l.isClick=!1;case 25:case"end":return e.stop()}}),e,null,[[0,20]])})));return function(){return e.apply(this,arguments)}}();return s((function(){d()})),function(){var t,n;return u("div",{style:{paddingTop:"20px"}},[l.listState.dataShow?u(H,{finished:l.listState.finished,finishedText:" ",class:[$.liveList],onLoad:d,immediateCheck:!1},(n=t=l.list.map((function(t){return u(A,{inset:!0,class:$.orderCellGroup,onClick:function(){return function(t){e.push({path:"payment-result",query:{orderNo:t.orderNo,refund:"refund"}})}(t)}},{default:function(){return[u(M,{title:t.createTime,titleClass:$.payTime,value:K[t.status],valueClass:"WAIT_PAY"===t.status?$.payStatus:"PAID"===t.status?$.paySuccess:""},null),u(M,{border:!1,class:$.imgGroup,center:!0},{title:function(){return u("div",{class:$.orderPriceInfo},[u(X,{border:!1,columnNum:3},{default:function(){return[t.goodsInfos&&t.goodsInfos.map((function(e,t){return t<3&&u(Z,null,{default:function(){return[u(G,{class:$.img,src:e.goodsUrl},null)]}})}))]}}),u("div",{class:$.orderPriceNum},[u("div",{class:$.opNums},[u("span",null,[c("¥ ")]),h(t.currentPrice)]),u("div",{class:$.opBuyLength},[c("共"),t.goodsInfos&&t.goodsInfos.length||0,c("件")])])])}})]}})})),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!v(n)?t:{default:function(){return[t]}})):u(b,{btnStatus:!1,tips:"暂无订单"},null)])}}});e("default",n({name:"pre-apply",setup:function(){var e=r(),n=i(),s=a({tabValue:"apply",heightV:235,registerInfo:{},purchase:!1,register:!0,code:"",dialogStatus:!1,dialogMessage:"",studentReadStatus:!1,testIsWeixin:!1}),l=x(!1),d=function(){var e=o(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("payment"!==t){e.next=3;break}return e.next=3,p();case 3:y((function(){s.tabValue=t,window.scrollTo(0,0)}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),p=function(){var t=o(regeneratorRuntime.mark((function t(){var n,r,o,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,f.get("/api-student/orchestraRegister/registerStatus/"+e.query.id);case 3:if(r=t.sent,o=r.data,s.registerInfo=o||{},null!==(n=o.learningOrchestra)&&void 0!==n&&n.length&&(s.studentReadStatus=!0),"OUTOF_ORCHESTRA"===o.registerStatus?y((function(){s.tabValue="apply"})):(s.register=o.register,o.register&&y((function(){s.tabValue="payment"})),o.purchase&&(s.purchase=o.purchase,y((function(){s.tabValue="order"})))),"REGISTER"===(i=o.status)||"DOING"===i||"DONE"===i||"PARENT_TEACHER_REGISTRATION"===i){t.next=13;break}return s.dialogMessage="乐团建设中,请稍等",s.dialogStatus=!0,t.abrupt("return");case 13:if(!(o.registerOrchestra>=1)){t.next=17;break}return s.dialogMessage="您已在其它乐团",s.dialogStatus=!0,t.abrupt("return");case 17:t.next=21;break;case 19:t.prev=19,t.t0=t.catch(0);case 21:case"end":return t.stop()}}),t,null,[[0,19]])})));return function(){return t.apply(this,arguments)}}(),g=function(){var t=o(regeneratorRuntime.mark((function t(n){var r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("apply"!==n){t.next=11;break}return t.prev=1,t.next=4,f.get("/api-student/orchestraRegister/registerStatus/"+e.query.id);case 4:r=t.sent,o=r.data,s.registerInfo=o||{},t.next=11;break;case 9:t.prev=9,t.t0=t.catch(1);case 11:window.scrollTo(0,0);case 12:case"end":return t.stop()}}),t,null,[[1,9]])})));return function(e){return t.apply(this,arguments)}}(),_=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,f.get("/api-student/open/paramConfig/wechatAppId");case 3:t=e.sent,(n=t.data)&&k(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)}}(),h=function(){I(),P();var r=t({returnUrl:e.path},e.query);window.location.href=window.location.origin+window.location.pathname+"#/loginMusic?"+T.stringify(r),n.replace({path:"/loginMusic",query:r})};if(s.testIsWeixin)p();else if(q().weixin){var b=C();b?(s.code=b,p()):_()}else h();return function(){return u("div",{class:$.preApply},[u("div",{class:$.banner},[u("p",{class:$.orchestraName},[s.registerInfo.orchestraName])]),u(J,{position:"top"},{default:function(){return[u(Q,{lineWidth:20,lineHeight:4,active:s.tabValue,"onUpdate:active":function(e){return s.tabValue=e},onChange:function(e){return g(e)}},{default:function(){return[u(W,{title:"基础信息",name:"apply",disabled:s.purchase},null),u(W,{title:"工具准备",name:"payment",disabled:s.purchase||!s.register},null),u(W,{title:"完成报名",name:"order",disabled:!s.register},null)]}})]}}),"apply"===s.tabValue&&u(ne,{onNext:d,code:s.code,registerInfo:s.registerInfo,schoolSystem:s.registerInfo.schoolSystem},null),"payment"===s.tabValue&&u(ie,{onNext:d},null),"order"===s.tabValue&&u(ae,{onNext:d},null),u(D,{title:"提示",show:s.dialogStatus,"onUpdate:show":function(e){return s.dialogStatus=e},message:s.dialogMessage,confirmButtonText:"确定",onConfirm:function(){I();var r=t({returnUrl:e.path},e.query);n.replace({path:"/loginMusic",query:r})}},null),u(D,{title:"提示",show:s.studentReadStatus,"onUpdate:show":function(e){return s.studentReadStatus=e},message:"您已在其他乐团在读,请退团再报名该乐团。",confirmButtonText:"确认",showCancelButton:!1,onConfirm:function(){h()}},null),u(m,{show:l.value,"onUpdate:show":function(e){return l.value=e},round:!0,style:{width:"88%",marginTop:"-6vh"},closeOnClickOverlay:!1,class:$.wxPopupDialog},{default:function(){return[u("div",{class:$.popupContainer},[u("p",{class:$.title1},[c("温馨提示")]),u("p",{class:$.popupTips},[c("乐团报名时间已过,请等待通知")])])]}})])}}}))}}}))}();
|