1 |
- !function(){var e=document.createElement("style");e.innerHTML='._preApply_1kgew_1{--van-tab-active-text-color: var(--van-primary-color);--van-tab-text-color: #333;--van-tab-font-size: .42667rem}._preApply_1kgew_1 .van-tab{font-weight:600}._preApply_1kgew_1 .van-tabs__wrap{padding-bottom:.08rem}._preApply_1kgew_1 .van-field__error-message{text-align:right}._preApply_1kgew_1 ._popupContainer_1kgew_15{background:url(./assets/wx-no-bg.f12a4a6d.png) no-repeat top center;padding:0 .4rem}._preApply_1kgew_1 ._popupContainer_1kgew_15 ._dialogTitle_1kgew_19{text-align:left;font-size:.48rem;font-weight:500;color:#333;line-height:.66667rem;padding:.53333rem 0 .53333rem .66667rem}._preApply_1kgew_1 ._popupContainer_1kgew_15 ._dialogTitle_1kgew_19 i{display:inline-block;width:.10667rem;height:.37333rem;background:#ff8057;border-radius:.05333rem;margin-right:.16rem}._preApply_1kgew_1 ._popupContainer_1kgew_15 ._popupTips_1kgew_35{text-align:center;padding:.4rem 0 1.2rem;font-size:.42667rem}._preApply_1kgew_1 ._popupContainer_1kgew_15 ._title1_1kgew_40{padding-top:1.52rem;text-align:center;font-size:.48rem;font-weight:500;color:#3b2300}._preApply_1kgew_1 ._popupContainer_1kgew_15 ._popupTips_1kgew_35{padding-top:.32rem;padding-bottom:1.25333rem;text-align:left;font-size:.4rem;color:#777;line-height:.56rem}._preApply_1kgew_1 ._banner_1kgew_55{background:url(./assets/banner.0eea0eaf.png) no-repeat center center;background-size:cover;height:3.78667rem;width:100%}._preApply_1kgew_1 ._banner_1kgew_55 ._orchestraName_1kgew_61{display:block;padding:2.29333rem .48rem 0;max-width:6.13333rem;font-size:.42667rem;color:#fff;text-align:justify}._applyTitle_1kgew_69{display:flex;align-items:center;padding:.53333rem .53333rem .32rem;font-size:.42667rem;font-weight:600;color:#333}._applyTitle_1kgew_69:before{display:inline-block;content:" ";margin-right:.16rem;width:.10667rem;height:.37333rem;background:linear-gradient(180deg,#ffb790 0%,#ff8057 100%);border-radius:.08rem}._applyTips_1kgew_86{padding:0 .53333rem .32rem;font-size:.37333rem;color:#777}._applyCellGroup_1kgew_91{margin:0 .34667rem}._applyCellGroup_1kgew_91 .van-cell{font-size:.42667rem;padding:.48rem .32rem}._radioSection_1kgew_98{position:relative;min-width:.85333rem;justify-content:center}._radioSection_1kgew_98 ._radioItem_1kgew_103{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}._radioSection_1kgew_98+._radioSection_1kgew_98{margin-left:.32rem}._mlr13_1kgew_114{margin:0 .34667rem}._paymentTips_1kgew_117{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_1kgew_117 span{color:#ff4e19}._paymentContainer_1kgew_131{display:flex;align-items:center;justify-content:space-between;font-size:.37333rem;padding:0 .32rem calc(.4rem + env(safe-area-inset-bottom)) .32rem}._paymentContainer_1kgew_131 ._needPrice_1kgew_138{display:flex;align-items:center;color:#333;padding-bottom:.18667rem}._paymentContainer_1kgew_131 ._needPrice_1kgew_138 span{font-size:.58667rem;font-weight:700;color:#ff4e19}._paymentContainer_1kgew_131 ._needPrice_1kgew_138 span span{font-size:.48rem;margin-right:.05333rem}._paymentContainer_1kgew_131 ._allPrice_1kgew_153{color:#aaa}._paymentContainer_1kgew_131 .van-button{height:1.06667rem;line-height:1.06667rem;min-width:2.98667rem}._sectionCell_1kgew_161{margin-bottom:.32rem;padding:.4rem .32rem;border-radius:.26667rem;overflow:hidden;--van-checkbox-border-color: transparent}._sectionCell_1kgew_161 .van-cell{padding:0}._sectionCell_1kgew_161 ._checkbox_1kgew_171{margin-right:.32rem}._sectionCell_1kgew_161 ._extra_1kgew_174{padding:.26667rem 0 0 .93333rem}._sectionCell_1kgew_161 ._extra_1kgew_174 ._sectionPrice_1kgew_177{display:flex;align-items:center;color:#aaa;font-weight:600;flex-wrap:wrap}._sectionCell_1kgew_161 ._extra_1kgew_174 ._price_1kgew_184{display:flex;align-items:center;font-size:.37333rem;color:#333;padding-right:.32rem;font-weight:400}._sectionCell_1kgew_161 ._extra_1kgew_174 ._price_1kgew_184 span{font-size:.42667rem;font-weight:700;color:#ff4e19}._sectionCell_1kgew_161 ._extra_1kgew_174 ._price_1kgew_184 ._free_1kgew_197{font-size:.37333rem}._sectionCell_1kgew_161 ._gives_1kgew_200{margin-top:.48rem;padding-top:.21333rem;border-top:.02667rem solid #f2f2f2}._sectionCell_1kgew_161 ._gives_1kgew_200 ._sectionTips_1kgew_205{display:flex;align-items:center;font-size:.37333rem;color:#ff4e19;padding:.13333rem .16rem;background:#ffebdd;border-radius:.16rem}._sectionCell_1kgew_161 ._gives_1kgew_200 ._iconGives_1kgew_214{width:.85333rem;height:.48rem;margin-right:.21333rem}._sectionCell_1kgew_161 ._iconChecked_1kgew_219{font-size:.48rem}._sectionCell_1kgew_161 ._iconChecked_1kgew_219 .van-icon__image{width:100%;height:100%}._sectionCell_1kgew_161 .van-checkbox__icon--disabled .van-icon{border-color:transparent;background-color:transparent;opacity:.6}._sectionCell_1kgew_161 .van-checkbox__icon--checked .van-icon{border-color:transparent;background-color:transparent}._numFont_1kgew_235{font-family:DINA}._numFont_1kgew_235 ._numPrefix_1kgew_238{font-size:.37333rem!important;margin-right:.05333rem}._section_1kgew_161{display:flex}._section_1kgew_161 ._img_1kgew_245{width:2.34667rem;height:2.34667rem;border-radius:.16rem;overflow:hidden;flex-shrink:0;margin-right:.37333rem}._section_1kgew_161 h2{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._section_1kgew_161 ._brandName_1kgew_259{line-height:.48rem;font-size:.32rem;padding:0 .16rem;border-radius:.10667rem}._section_1kgew_161 ._model_1kgew_265{padding-top:.08rem;font-size:.34667rem;color:#777;line-height:.48rem}._orderCellGroup_1kgew_271{margin:0 .34667rem .32rem}._orderCellGroup_1kgew_271 .van-cell{padding-left:.32rem;padding-right:.32rem}._payTime_1kgew_278{font-size:.42667rem;color:#777;flex:0 auto}._payStatus_1kgew_283{color:#ff4e19}._paySuccess_1kgew_286{color:var(--van-primary)}._imgGroup_1kgew_289{padding:.4rem .32rem .48rem .16rem!important}._imgGroup_1kgew_289 ._img_1kgew_245{width:1.86667rem;height:1.86667rem;border-radius:.16rem;overflow:hidden}._imgGroup_1kgew_289 .van-grid-item__content{padding:0}._imgGroup_1kgew_289 ._orderPriceInfo_1kgew_301{display:flex;align-content:center}._imgGroup_1kgew_289 ._orderPriceInfo_1kgew_301>div{flex:1 auto}._imgGroup_1kgew_289 ._orderPriceInfo_1kgew_301 ._orderPriceNum_1kgew_308{flex:0 auto;width:2.66667rem;text-align:right;display:flex;flex-direction:column;justify-content:center}._imgGroup_1kgew_289 ._orderPriceInfo_1kgew_301 ._orderPriceNum_1kgew_308 ._opNums_1kgew_316{font-size:.42667rem;font-family:DINA;font-weight:700;color:#333;line-height:.37333rem}._imgGroup_1kgew_289 ._orderPriceInfo_1kgew_301 ._orderPriceNum_1kgew_308 ._opNums_1kgew_316 span{font-size:.32rem}._imgGroup_1kgew_289 ._orderPriceInfo_1kgew_301 ._orderPriceNum_1kgew_308 ._opBuyLength_1kgew_326{font-size:.34667rem;color:#777;line-height:.48rem}._btnGroup_1kgew_331{padding-top:0}._btnGroup_1kgew_331 ._btnPrice_1kgew_334{font-family:DINA;font-size:.58667rem;font-weight:700;color:#ff4e19}._btnGroup_1kgew_331 .van-cell__value{flex:1 auto;display:flex;justify-content:flex-end}._btnGroup_1kgew_331 .van-button{height:.8rem;line-height:.8rem;min-width:2.13333rem}._btnGroup_1kgew_331 .van-button+.van-button{margin-left:.26667rem}._btnGroup_1kgew_331 ._btns_1kgew_353{display:flex}._preApplyC_1kgew_356{--van-dialog-message-font-size: .42667rem !important}._dialogTitle_1kgew_19{padding-left:.66667rem;text-align:left;font-size:.48rem;font-weight:500;color:#333;line-height:.66667rem;padding-bottom:.32rem}._dialogTitle_1kgew_19 i{display:inline-block;width:.10667rem;height:.37333rem;background:#ff8057;border-radius:.05333rem;margin-right:.16rem}._dialogRefund_1kgew_376{padding:.53333rem 0 .4rem .66667rem}._refundContent_1kgew_379{padding:0 .53333rem .66667rem}._refundContent_1kgew_379 ._tips_1kgew_382{font-size:.4rem;color:#333;line-height:.56rem}._container_1kgew_387 .van-button{font-size:.48rem;font-weight:500}._refundTitle_1kgew_391{padding-top:.66667rem;font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem}._refundTitle_1kgew_391 span{color:#f44541}._phoneName_1kgew_401{background:#f2f2f2;border-radius:.16rem}\n',document.head.appendChild(e),System.register(["./index-legacy.eb062188.js","./index-legacy.2e890e1e.js","./index-legacy.148f784c.js","./index-legacy.3a3e070a.js","./index-legacy.23ddccbf.js","./index-legacy.11f1ea5f.js","./index-legacy.38b799d5.js","./index-legacy.ad813f4d.js","./countUp.min-legacy.feec0c73.js","./index-legacy.b1009ea0.js","./index-legacy.f7593006.js","./index-legacy.e0860c0a.js","./index-legacy.8fb0ec91.js","./index-legacy.d39f6f47.js","./index-legacy.918b8c74.js","./index-legacy.fecc738b.js","./index-legacy.4e015ad0.js","./index-legacy.fad72574.js","./index-legacy.761bf286.js","./index-legacy.10d8486a.js","./index-legacy.ac7c51db.js","./Checker-legacy.9bbda964.js","./Picker-legacy.95f03705.js","./function-call-legacy.0bd16987.js","./ImagePreview-legacy.747d0051.js","./index-legacy.fab451f1.js","./use-tab-status-legacy.91417466.js"],(function(e){"use strict";var t,o,n,r,a,i,s,l,c,d,g,p,u,_,m,f,k,h,w,y,b,x,I,C,T,v,P,A,S,N,G,F,j,B,V,U,z,E,O,R,D,q,L,Y,M,K,H;return{setters:[function(e){t=e.d,o=e.ah,n=e.ag,r=e.r,a=e.$,i=e.c,s=e.q,l=e.o,c=e.B,d=e.P,g=e.b3,p=e.m,u=e.a5,_=e.ba,m=e.F,f=e._,k=e.ak,h=e.al,w=e.R,y=e.f,b=e.bh,x=e.bt,I=e.bk},function(e){C=e.F},function(e){T=e.C},function(e){v=e.F},function(e){P=e.R,A=e.a},function(e){S=e.T},function(e){N=e.P},function(e){G=e.O},function(e){F=e.i},function(e){j=e.O},function(e){B=e.M,V=e.G},function(e){U=e.O},function(e){z=e.C},function(e){E=e.C},function(e){O=e.C},function(e){R=e.I},function(e){D=e.b},function(e){q=e.L},function(e){L=e.G,Y=e.a},function(e){M=e.S},function(e){K=e.T,H=e.a},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var X={preApply:"_preApply_1kgew_1",popupContainer:"_popupContainer_1kgew_15",dialogTitle:"_dialogTitle_1kgew_19",popupTips:"_popupTips_1kgew_35",title1:"_title1_1kgew_40",banner:"_banner_1kgew_55",orchestraName:"_orchestraName_1kgew_61",applyTitle:"_applyTitle_1kgew_69",applyTips:"_applyTips_1kgew_86",applyCellGroup:"_applyCellGroup_1kgew_91",radioSection:"_radioSection_1kgew_98",radioItem:"_radioItem_1kgew_103",mlr13:"_mlr13_1kgew_114",paymentTips:"_paymentTips_1kgew_117",paymentContainer:"_paymentContainer_1kgew_131",needPrice:"_needPrice_1kgew_138",allPrice:"_allPrice_1kgew_153",sectionCell:"_sectionCell_1kgew_161",checkbox:"_checkbox_1kgew_171",extra:"_extra_1kgew_174",sectionPrice:"_sectionPrice_1kgew_177",price:"_price_1kgew_184",free:"_free_1kgew_197",gives:"_gives_1kgew_200",sectionTips:"_sectionTips_1kgew_205",iconGives:"_iconGives_1kgew_214",iconChecked:"_iconChecked_1kgew_219",numFont:"_numFont_1kgew_235",numPrefix:"_numPrefix_1kgew_238",section:"_section_1kgew_161",img:"_img_1kgew_245",brandName:"_brandName_1kgew_259",model:"_model_1kgew_265",orderCellGroup:"_orderCellGroup_1kgew_271",payTime:"_payTime_1kgew_278",payStatus:"_payStatus_1kgew_283",paySuccess:"_paySuccess_1kgew_286",imgGroup:"_imgGroup_1kgew_289",orderPriceInfo:"_orderPriceInfo_1kgew_301",orderPriceNum:"_orderPriceNum_1kgew_308",opNums:"_opNums_1kgew_316",opBuyLength:"_opBuyLength_1kgew_326",btnGroup:"_btnGroup_1kgew_331",btnPrice:"_btnPrice_1kgew_334",btns:"_btns_1kgew_353",preApplyC:"_preApplyC_1kgew_356",dialogRefund:"_dialogRefund_1kgew_376",refundContent:"_refundContent_1kgew_379",tips:"_tips_1kgew_382",container:"_container_1kgew_387",refundTitle:"_refundTitle_1kgew_391",phoneName:"_phoneName_1kgew_401"};const Z=[];for(let e=1;e<=40;e++)Z.push({text:e+"班",value:e});var J=t({name:"apply",props:{schoolSystem:{type:String,default:"sixYearSystem"},registerInfo:{type:Object,defualt:{}},code:{type:String,default:""}},emits:["next"],setup(e,{slots:t,attrs:u,emit:_}){const m=o();n();const f=r({detail:{},currentGrade:[{text:"一年级",value:1},{text:"二年级",value:2},{text:"三年级",value:3},{text:"四年级",value:4},{text:"五年级",value:5}],classList:Z,subjectList:[],gradeStatus:!1,classStatus:!1,subjectStatus:!1,pattern:/^1(3|4|5|6|7|8|9)\d{9}$/,nameReg:/^[\u4E00-\u9FA5]+$/,subjectChangeStatus:!1}),k=r({username:null,sex:null,currentGrade:null,currentGradeTxt:null,currentClass:"",currentClassTxt:null,registerSubjectId:"",registerSubjectTxt:null,parentName:null,phone:null}),h=e=>f.nameReg.test(e)&&e.length>=2&&e.length<=15,w=e=>e?f.nameReg.test(e)?e.length<2||e.length>15?"学员姓名必须为2~15个字":"":"学员姓名必须为中文":"请填写学员真实姓名",y=async()=>{try{const t={orchestraId:m.query.id,schoolId:f.detail.schoolId,...k};f.detail.id&&(t.id=f.detail.id),await p.post("/api-student/orchestraRegister/save",{hideLoading:!1,data:{...t,code:e.code}}),setTimeout((()=>{_("next","payment")}),100)}catch{}};return a((async()=>{await(async()=>{try{((await p.post("/api-student/open/orchestraSubjectConfig/pageByOrchestraId",{data:{orchestraId:m.query.id,page:1,rows:100}})).data.rows||[]).forEach((e=>{f.subjectList.push({text:e.name,value:e.subjectId})}))}catch{}})(),"sixYearSystem"===e.schoolSystem&&f.currentGrade.push({text:"六年级",value:6}),await(async()=>{try{const{data:e}=await p.get("/api-student/orchestraRegister/register/"+m.query.id),t=e||{};f.detail=t;const o=f.currentGrade.find((e=>e.value==t.currentGrade)),n=f.classList.find((e=>e.value==t.currentClass)),r=f.subjectList.find((e=>e.value==t.registerSubjectId));k.username=t.username,k.sex=t.sex?1:0,k.currentGrade=t.currentGrade,k.currentGradeTxt=o?o.text:"",k.currentClass=t.currentClass,k.currentClassTxt=n?n.text:"",k.registerSubjectId=t.registerSubjectId,k.registerSubjectTxt=r?r.text:"",k.parentName=t.parentName,k.phone=t.phone}catch(e){console.log(e)}})()})),()=>i("div",{class:X.preApplyC},[i(C,{validateFirst:!0,scrollToError:!0,onSubmit:y,ref:"form",class:X.form},{default:()=>[i("div",{class:X.applyTitle},[s("学员信息")]),i(T,{inset:!0,class:X.applyCellGroup},{default:()=>[i(v,{required:!0,label:"学员信息",placeholder:"请填写学员真实姓名",inputAlign:"right",modelValue:k.username,"onUpdate:modelValue":e=>k.username=e,maxlength:15,rules:[{validator:h,message:w}]},null),i(v,{required:!0,label:"性别",inputAlign:"right",rules:[{required:!0,message:"请选择性别"}]},{input:()=>i(P,{modelValue:k.sex,"onUpdate:modelValue":e=>k.sex=e},{default:()=>[i(S,{size:"large",type:"primary",color:1!==k.sex?"#EAEAEA":"#FF8057",textColor:1!==k.sex?"#AAA":"#FFF",class:X.radioSection,round:!0},{default:()=>[i(A,{class:X.radioItem,name:1},null),s("男生")]}),i(S,{size:"large",type:"primary",color:0!==k.sex?"#EAEAEA":"#FF8057",textColor:0!==k.sex?"#AAA":"#FFF",class:X.radioSection,round:!0},{default:()=>[i(A,{class:X.radioItem,name:0},null),s("女生")]})]})}),i(v,{required:!0,label:"年级",inputAlign:"right",readonly:!0,isLink:!0,placeholder:"请选择年级",modelValue:k.currentGradeTxt,"onUpdate:modelValue":e=>k.currentGradeTxt=e,onClick:()=>f.gradeStatus=!0,rules:[{required:!0,message:"请选择年级"}]},null),i(v,{required:!0,label:"班级",inputAlign:"right",readonly:!0,isLink:!0,placeholder:"请选择班级",modelValue:k.currentClassTxt,"onUpdate:modelValue":e=>k.currentClassTxt=e,onClick:()=>f.classStatus=!0,rules:[{required:!0,message:"请选择班级"}]},null)]}),i("div",{class:X.applyTitle},[s("声部信息")]),i("div",{class:X.applyTips},[s("(请务必按照学生的录取声部填报)")]),i(T,{inset:!0,class:X.applyCellGroup},{default:()=>[i(v,{required:!0,label:"声部",inputAlign:"right",readonly:!0,isLink:!0,placeholder:"请选择声部",modelValue:k.registerSubjectTxt,"onUpdate:modelValue":e=>k.registerSubjectTxt=e,onClick:()=>{var t,o,n;f.subjectList.length<=0?l("暂无报名声部"):"LEARNING"===(null===(t=e.registerInfo)||void 0===t?void 0:t.registerStatus)||"OUTOF_ORCHESTRA"===(null===(o=e.registerInfo)||void 0===o?void 0:o.registerStatus)&&(null===(n=e.registerInfo)||void 0===n?void 0:n.orderNumber)>0?f.subjectChangeStatus=!0:f.subjectStatus=!0},rules:[{required:!0,message:"请选择声部"}]},null)]}),i("div",{class:X.applyTitle},[s("家长信息")]),i(T,{inset:!0,class:X.applyCellGroup},{default:()=>[i(v,{required:!0,label:"家长姓名",inputAlign:"right",placeholder:"请填写家长真实姓名",modelValue:k.parentName,"onUpdate:modelValue":e=>k.parentName=e,maxlength:15,rules:[{required:!0,message:"请填写家长真实姓名"}]},null),i(v,{required:!0,label:"手机号",inputAlign:"right",placeholder:"请输入手机号",modelValue:k.phone,"onUpdate:modelValue":e=>k.phone=e,maxlength:11,type:"tel",rules:[{pattern:f.pattern,message:"输入监护人手机号码有误"}]},null)]}),i("div",{class:"btnGroup",style:{paddingTop:"30px"}},[i(c,{type:"primary",round:!0,block:!0,"native-type":"submit"},{default:()=>[s("下一步")]})])]}),i(d,{show:f.gradeStatus,"onUpdate:show":e=>f.gradeStatus=e,position:"bottom",round:!0,safeAreaInsetBottom:!0,lazyRender:!1,class:"popupBottomSearch"},{default:()=>[i(N,{showToolbar:!0,columns:f.currentGrade,onCancel:()=>f.gradeStatus=!1,onConfirm:e=>{const t=e.selectedOptions[0];k.currentGrade=t.value,k.currentGradeTxt=t.text,f.gradeStatus=!1}},null)]}),i(d,{show:f.classStatus,"onUpdate:show":e=>f.classStatus=e,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[i(N,{showToolbar:!0,columns:f.classList,onCancel:()=>f.classStatus=!1,onConfirm:e=>{const t=e.selectedOptions[0];k.currentClass=t.value,k.currentClassTxt=t.text,f.classStatus=!1}},null)]}),i(d,{show:f.subjectStatus,"onUpdate:show":e=>f.subjectStatus=e,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[i(N,{showToolbar:!0,columns:f.subjectList,onCancel:()=>f.subjectStatus=!1,onConfirm:e=>{const t=e.selectedOptions[0];k.registerSubjectId=t.value,k.registerSubjectTxt=t.text,f.subjectStatus=!1}},null)]}),i(g,{show:f.subjectChangeStatus,"onUpdate:show":e=>f.subjectChangeStatus=e,message:"您已有报名订单,不可更换声部",messageAlign:"center",confirmButtonText:"确定"},{title:()=>i("div",{class:X.dialogTitle},[i("i",null,null),s("提示")])})])}}),Q="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",W="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==",$=t({name:"payment",emits:["next"],setup(){const e=o(),t=n(),d=r({paymentType:"",musicPaymentType:"",check:[],checkboxRefs:[],details:[],goodsInfo:{},textBookInfo:{},repaireInfo:{},vipInfo:{},depositInfo:{},paymentOrderDetails:[],orderInfo:{needPrice:0,originalPrice:0},memberBaoStatus:!1,goodsStatus:!1,selectGoodsId:null,currentPrice:0,selectGoodsInfo:{},dialogStatus:!1,dialogMessage:"",dialogConfig:{},isDeposit:!1,isVip:!1}),g=e=>{d.checkboxRefs[e].toggle(),k()},k=()=>{const e=d.details,t={needPrice:0,originalPrice:0};e.forEach((e=>{d.check.includes(e.goodsId)&&!d.paymentOrderDetails.includes(e.goodsType)&&(t.needPrice+=parseFloat(e.currentPrice||0),t.originalPrice+=parseFloat(e.originalPrice||0))})),d.orderInfo=t,w()},h=r({needPrice:null,originalPrice:null}),w=()=>{f((()=>{h.needPrice?h.needPrice.update(d.orderInfo.needPrice):(h.needPrice=new F("needPrice",d.orderInfo.needPrice,{decimalPlaces:2}),h.needPrice.error?console.error(h.needPrice.error):h.needPrice.start())}))},y=async()=>{try{if(d.check.length<=0)return void l("请选择您要购买的商品");k();const o=[],n=d.details;let r=!1;n.forEach((e=>{d.check.includes(e.goodsId)&&!d.paymentOrderDetails.includes(e.goodsType)&&o.push({goodsId:e.goodsId,goodsNum:1,goodsType:e.goodsType,paymentCashAmount:e.currentPrice,paymentCouponAmount:0}),"INSTRUMENTS"===e.goodsType&&d.check.includes(e.goodsId)&&!d.paymentOrderDetails.includes(e.goodsType)&&(r=!1)}));const a=d.repaireInfo;r&&a.goodsId&&o.push({goodsId:a.goodsId,goodsNum:1,goodsType:a.goodsType,paymentCashAmount:a.currentPrice,paymentCouponAmount:0});const{data:i}=await p.post("/api-student/userPaymentOrder/executeOrder",{hideLoading:!1,data:{paymentType:d.musicPaymentType||d.paymentType,bizId:e.query.id,orderType:"ORCHESTRA",paymentCashAmount:d.orderInfo.needPrice||0,paymentCouponAmount:0,goodsInfos:o,orderName:"乐团报名缴费",orderDesc:"乐团报名缴费"}});console.log(i),t.push({path:"/orderDetail",query:{pm:1,config:JSON.stringify({...i.paymentConfig,paymentType:i.paymentType}),orderNo:i.orderNo}})}catch(o){console.log(o)}};return a((()=>{(async()=>{try{const{data:e}=await p.get("/api-student/sysParamConfig/queryByParamName",{params:{paramName:"payment_service_provider"}});d.paymentType=e.paramValue||""}catch{}})(),(async()=>{try{const{data:t}=await p.get("/api-student/orchestraRegister/registerGoods/"+e.query.id);d.musicPaymentType=t.paymentServiceProvider||"",(t.paymentOrderDetails||[]).forEach((e=>{d.paymentOrderDetails.push(e.goodsType)}));const o=t.details||[];o.forEach((e=>{if("INSTRUMENTS"===e.goodsType){const t=e.goodsUrl?e.goodsUrl.split(",")[0]:"";d.goodsInfo={...e,goodsUrl:t}}else if("TEXTBOOK"===e.goodsType){const t=e.goodsUrl?e.goodsUrl.split(",")[0]:"";d.textBookInfo={...e,goodsUrl:t}}else if("REPAIR"===e.goodsType)d.repaireInfo={...e};else if("VIP"===e.goodsType)d.vipInfo={...e},d.isVip=!0;else if("DEPOSIT"===e.goodsType){d.isDeposit=!0;const t=o.find((e=>"VIP"===e.goodsType));t&&(e.originalPrice=t.currentPrice,d.depositInfo={...e})}d.details=o,!d.paymentOrderDetails.includes(e.goodsType)&&["INSTRUMENTS","TEXTBOOK","VIP"].includes(e.goodsType)&&d.check.push(e.goodsId)})),k()}catch{}})(),(async()=>{try{const{data:e}=await p.get("/api-student/userPaymentOrder/unpaid");e.id&&(d.dialogMessage="您有待支付的订单,是否继续支付",d.dialogStatus=!0,d.dialogConfig=e)}catch{}})()})),()=>i(m,null,[i("div",{class:X.applyTitle},[s("报名须知")]),i("div",{class:[X.paymentTips,X.mlr13]},[i("p",null,[s("1、"),i("span",null,[s("乐团免费政策")]),s(":学生在团期间训练及教材免费政策(教材邮费需自理);")]),i("p",null,[s("2、"),i("span",null,[s("入团须备工具")]),s(":家长在开训前自行为学生准备好①乐器、②乐团AI学练工具两项训练工具;")]),i("p",null,[s("3、参加团购可享受同类工具同等品质价格低30%的团购政策,由基金会统一协调乐器调试及运输、学练工具安装及激活;")]),i("p",null,[s("4、自行准备工具的家长,等收到开团确认信息后,可根据参考表开始为学生进行乐团训练工具准备。")])]),i(z,{modelValue:d.check,"onUpdate:modelValue":e=>d.check=e,style:{paddingBottom:"20px"},onChange:()=>{k()}},{default:()=>[!d.paymentOrderDetails.includes("VIP")&&!d.isDeposit&&i(T,{inset:!0,class:[X.mlr13,X.sectionCell],onClick:()=>g(d.vipInfo.goodsId)},{default:()=>[i(O,{border:!1},{icon:()=>i(E,{name:d.vipInfo.goodsId,class:X.checkbox,ref:e=>d.checkboxRefs[d.vipInfo.goodsId]=e,onClick:e=>{e.stopPropagation()}},{icon:e=>i(u,{class:X.iconChecked,name:e.checked?Q:W},null)}),title:()=>i("div",{class:X.section},[i(R,{class:X.img,src:d.vipInfo.goodsUrl,onClick:e=>{e.stopPropagation(),d.memberBaoStatus=!0}},null),i("div",{class:X.sectionContent},[i("h2",{onClick:e=>{e.stopPropagation(),d.memberBaoStatus=!0}},[d.vipInfo.goodsName]),i(S,{color:"linear-gradient(135deg, #FF8C4A 0%, #FF531C 100%)",textColor:"#fff",class:X.brandName},{default:()=>[s("6个月")]}),i("p",{class:[X.model,"van-multi-ellipsis--l2"]},[d.vipInfo.description])])])}),i(O,null,{title:()=>i("div",{class:X.extra},[i("div",{class:X.sectionPrice},[i("p",{class:X.price},[s("团购价:"),i("span",{class:X.numFont},[i("span",{class:X.numPrefix},[s("¥")]),_(d.vipInfo.currentPrice)])]),i("p",{class:X.originPrice},[s("原价:"),i("del",{class:X.numFont},[s("¥ "),_(d.vipInfo.originalPrice)])])])])})]}),!d.paymentOrderDetails.includes("DEPOSIT")&&d.isVip&&i(T,{inset:!0,class:[X.mlr13,X.sectionCell],onClick:()=>g(d.depositInfo.goodsId)},{default:()=>[i(O,{border:!1},{icon:()=>i(E,{name:d.depositInfo.goodsId,class:X.checkbox,ref:e=>d.checkboxRefs[d.depositInfo.goodsId]=e,onClick:e=>{e.stopPropagation()}},{icon:e=>i(u,{class:X.iconChecked,name:e.checked?Q:W},null)}),title:()=>i("div",{class:X.section},[i(R,{class:X.img,src:d.depositInfo.goodsUrl,onClick:e=>{e.stopPropagation(),d.memberBaoStatus=!0}},null),i("div",{class:X.sectionContent},[i("h2",{onClick:e=>{e.stopPropagation(),d.memberBaoStatus=!0}},[d.depositInfo.goodsName]),i(S,{color:"linear-gradient(135deg, #FF8C4A 0%, #FF531C 100%)",textColor:"#fff",class:X.brandName},{default:()=>[s("6个月")]}),i("p",{class:[X.model,"van-multi-ellipsis--l2"]},[d.depositInfo.description])])])}),i(O,null,{title:()=>i("div",{class:X.extra},[i("div",{class:X.sectionPrice},[i("p",{class:X.price},[s("定金:"),i("span",{class:X.numFont},[i("span",{class:X.numPrefix},[s("¥")]),_(d.depositInfo.currentPrice)])]),i("p",{class:X.originPrice},[s("团购价:"),i("span",{class:X.numFont},[s("¥ "),_(d.depositInfo.originalPrice)])])])])})]}),!d.paymentOrderDetails.includes("INSTRUMENTS")&&i(T,{inset:!0,class:[X.mlr13,X.sectionCell],onClick:()=>g(d.goodsInfo.goodsId)},{default:()=>[i(O,{border:!1},{icon:()=>i(E,{name:d.goodsInfo.goodsId,class:X.checkbox,ref:e=>d.checkboxRefs[d.goodsInfo.goodsId]=e,onClick:e=>{e.stopPropagation()}},{icon:e=>i(u,{class:X.iconChecked,name:e.checked?Q:W},null)}),title:()=>i("div",{class:X.section},[i(R,{class:X.img,src:d.goodsInfo.goodsUrl,onClick:e=>{e.stopPropagation(),d.selectGoodsId=d.goodsInfo.goodsId,d.currentPrice=d.goodsInfo.currentPrice,d.selectGoodsInfo={showFree:!0,originalPrice:d.repaireInfo.originalPrice},d.goodsStatus=!0}},null),i("div",{class:X.sectionContent},[i("h2",{onClick:e=>{e.stopPropagation(),d.selectGoodsId=d.goodsInfo.goodsId,d.currentPrice=d.goodsInfo.currentPrice,d.goodsStatus=!0}},[d.goodsInfo.goodsName]),i(S,{color:"linear-gradient(135deg, #FF8C4A 0%, #FF531C 100%)",textColor:"#fff",class:X.brandName},{default:()=>[d.goodsInfo.brandName]}),i("p",{class:[X.model,"van-multi-ellipsis--l2"]},[d.goodsInfo.description])])])}),i(O,{border:!1},{title:()=>i("div",{class:X.extra},[i("div",{class:X.sectionPrice},[i("p",{class:X.price},[s("团购价:"),i("span",{class:X.numFont},[i("span",{class:X.numPrefix},[s("¥ ")]),_(d.goodsInfo.currentPrice)])]),i("p",{class:X.originPrice},[s("原价:"),i("del",{class:X.numFont},[s("¥ "),_(d.goodsInfo.originalPrice)])])])])})]}),!d.paymentOrderDetails.includes("TEXTBOOK")&&i(T,{inset:!0,class:[X.mlr13,X.sectionCell],onClick:()=>{}},{default:()=>[i(O,{border:!1},{icon:()=>i(E,{name:d.textBookInfo.goodsId,disabled:!0,class:X.checkbox,ref:e=>d.checkboxRefs[d.textBookInfo.goodsId]=e,onClick:e=>{e.stopPropagation()}},{icon:e=>i(u,{class:X.iconChecked,name:e.checked?Q:W},null)}),title:()=>i("div",{class:X.section},[i(R,{class:X.img,src:d.textBookInfo.goodsUrl,onClick:e=>{e.stopPropagation(),d.selectGoodsId=d.textBookInfo.goodsId,d.currentPrice=d.textBookInfo.currentPrice,d.selectGoodsInfo={},d.goodsStatus=!0}},null),i("div",{class:X.sectionContent},[i("h2",{onClick:e=>{e.stopPropagation(),d.selectGoodsId=d.textBookInfo.goodsId,d.currentPrice=d.textBookInfo.currentPrice,d.selectGoodsInfo={},d.goodsStatus=!0}},[d.textBookInfo.goodsName]),i(S,{color:"linear-gradient(135deg, #FF8C4A 0%, #FF531C 100%)",textColor:"#fff",class:X.brandName},{default:()=>[d.textBookInfo.brandName]}),i("p",{class:[X.model,"van-multi-ellipsis--l2"]},[d.textBookInfo.description])])])}),i(O,null,{title:()=>i("div",{class:X.extra},[i("div",{class:X.sectionPrice},[i("p",{class:X.price},[s("团购价:"),i("span",{class:[d.textBookInfo.currentPrice>0?X.numFont:X.free]},[d.textBookInfo.currentPrice>0?i(m,null,[i("span",{class:X.numPrefix},[s("¥ ")]),_(d.textBookInfo.currentPrice)]):"免费"])]),i("p",{class:X.originPrice},[s("原价:"),i("del",{class:X.numFont},[s("¥ "),_(d.textBookInfo.originalPrice)])])])])})]})]}),i(G,{position:"bottom",background:"white"},{default:()=>[i("div",{class:X.paymentContainer},[i("div",{class:X.payemntPrice},[i("p",{class:X.needPrice},[s("支付金额:"),i("span",{class:X.numFont},[i("span",null,[s("¥ ")]),i("i",{style:"font-style: normal",id:"needPrice"},null)])]),i("p",{class:X.allPrice},[i("del",{class:X.numFont},[s("总原价:¥ "),_(d.orderInfo.originalPrice)])])]),i("div",{class:X.paymentBtn},[i(c,{color:"linear-gradient(135deg, #FF8C4A 0%, #FF531C 100%)",round:!0,onClick:y},{default:()=>[s("立即提交")]})])])]}),i(j,{modelValue:d.memberBaoStatus,"onUpdate:modelValue":e=>d.memberBaoStatus=e,position:"right"},{default:()=>[i(B,null,null)]}),i(j,{modelValue:d.goodsStatus,"onUpdate:modelValue":e=>d.goodsStatus=e,position:"right",destroy:!0},{default:()=>[d.goodsStatus&&i(V,{id:d.selectGoodsId,groupPrice:d.currentPrice,goodsInfo:d.selectGoodsInfo},null)]}),i(U,{title:"提示",show:d.dialogStatus,"onUpdate:show":e=>d.dialogStatus=e,message:d.dialogMessage,confirmButtonText:"继续支付",cancelButtonText:"取消订单",showCancelButton:!0,onConfirm:()=>{const e=d.dialogConfig.paymentConfig;t.push({path:"/orderDetail",query:{pm:1,config:JSON.stringify({...e.paymentConfig,paymentType:e.paymentType}),orderNo:e.orderNo}})},onCancel:async()=>{try{await p.post("/api-student/userPaymentOrder/cancelPayment/"+d.dialogConfig.orderNo)}catch{}}},null)])}});var ee=t({name:"order",emits:["next"],setup(){const e=n(),t=o(),l=r({isClick:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{page:1,rows:20},resionList:[],refundStatus:!1,resion:null,refundSelect:{},checked:null}),c=async()=>{try{if(l.isClick)return;l.isClick=!0;const e=await p.post("/api-student/userPaymentOrder/page",{data:{...l.params,bizId:t.query.id,goodsQuery:!0}});l.listState.loading=!1;const o=e.data||{};if(l.list.length>0&&1===o.current)return;const n=o.rows||[];n.goodsInfos&&n.goodsInfos.forEach((e=>{const t=e.goodsUrl?e.goodsUrl.split(",")[0]:"";e.goodsUrl=t})),l.list=l.list.concat(n),l.listState.finished=o.current>=o.pages,l.params.page=o.current+1,l.listState.dataShow=l.list.length>0,l.isClick=!1}catch{l.listState.dataShow=!1,l.listState.finished=!0,l.isClick=!1}};return a((()=>{c()})),()=>{let t;return i("div",{style:{paddingTop:"20px"}},[l.listState.dataShow?i(q,{finished:l.listState.finished,finishedText:" ",class:[X.liveList],onLoad:c,immediateCheck:!1},(o=t=l.list.map((t=>i(T,{inset:!0,class:X.orderCellGroup,onClick:()=>(t=>{e.push({path:"payment-result",query:{orderNo:t.orderNo,refund:"refund"}})})(t)},{default:()=>[i(O,{title:t.createTime,titleClass:X.payTime,value:D[t.status],valueClass:"WAIT_PAY"===t.status?X.payStatus:"PAID"===t.status?X.paySuccess:""},null),i(O,{border:!1,class:X.imgGroup,center:!0},{title:()=>i("div",{class:X.orderPriceInfo},[i(L,{border:!1,columnNum:3},{default:()=>[t.goodsInfos&&t.goodsInfos.map(((e,t)=>t<3&&i(Y,null,{default:()=>[i(R,{class:X.img,src:e.goodsUrl},null)]})))]}),i("div",{class:X.orderPriceNum},[i("div",{class:X.opNums},[i("span",null,[s("¥ ")]),_(t.currentPrice)]),i("div",{class:X.opBuyLength},[s("共"),t.goodsInfos&&t.goodsInfos.length||0,s("件")])])])})]}))),"function"==typeof o||"[object Object]"===Object.prototype.toString.call(o)&&!h(o)?t:{default:()=>[t]})):i(k,{btnStatus:!1,tips:"暂无订单"},null)]);var o}}});e("default",t({name:"pre-apply",setup(){const e=o(),t=n(),a=r({tabValue:"apply",heightV:235,registerInfo:{},purchase:!1,register:!0,code:"",dialogStatus:!1,dialogMessage:"",testIsWeixin:!1}),l=w(!1),c=w(["1656572729093021697","1656488025144713217","1661221287237820418","1661222465069686785"]);console.log("提示乐团报名失败",e.query.id,c.value.indexOf(e.query.id)),e.query.id&&-1!=c.value.indexOf(e.query.id)&&(console.log("提示乐团报名失败"),l.value=!0);const g=async e=>{"payment"===e&&await u(),f((()=>{a.tabValue=e,window.scrollTo(0,0)}))},u=async()=>{try{const{data:t}=await p.get("/api-student/orchestraRegister/registerStatus/"+e.query.id);a.registerInfo=t||{},"OUTOF_ORCHESTRA"===t.registerStatus?f((()=>{a.tabValue="apply"})):(a.register=t.register,t.register&&f((()=>{a.tabValue="payment"})),t.purchase&&(a.purchase=t.purchase,f((()=>{a.tabValue="order"}))));const o=t.status;if("REGISTER"!==o&&"DOING"!==o&&"DONE"!==o)return a.dialogMessage="乐团建设中,请稍等",void(a.dialogStatus=!0);if(t.registerOrchestra>=1)return a.dialogMessage="您已在其它乐团",void(a.dialogStatus=!0)}catch{}};if(a.testIsWeixin)u();else if(y().weixin){const e=b();e?(a.code=e,u()):(async()=>{try{const{data:e}=await p.get("/api-student/open/paramConfig/wechatAppId");e&&I(e)}catch{}})()}else{x();const o={returnUrl:e.path,...e.query};t.replace({path:"/loginMusic",query:o})}return()=>i("div",{class:X.preApply},[i("div",{class:X.banner},[i("p",{class:X.orchestraName},[a.registerInfo.orchestraName])]),i(M,{position:"top"},{default:()=>[i(K,{lineWidth:20,lineHeight:4,active:a.tabValue,"onUpdate:active":e=>a.tabValue=e,onChange:t=>(async t=>{if("apply"===t)try{const{data:t}=await p.get("/api-student/orchestraRegister/registerStatus/"+e.query.id);a.registerInfo=t||{}}catch{}window.scrollTo(0,0)})(t)},{default:()=>[i(H,{title:"基础信息",name:"apply",disabled:a.purchase},null),i(H,{title:"工具团购",name:"payment",disabled:a.purchase||!a.register},null),i(H,{title:"完成报名",name:"order",disabled:!a.register},null)]})]}),"apply"===a.tabValue&&i(J,{onNext:g,code:a.code,registerInfo:a.registerInfo,schoolSystem:a.registerInfo.schoolSystem},null),"payment"===a.tabValue&&i($,{onNext:g},null),"order"===a.tabValue&&i(ee,{onNext:g},null),i(U,{title:"提示",show:a.dialogStatus,"onUpdate:show":e=>a.dialogStatus=e,message:a.dialogMessage,confirmButtonText:"确定",onConfirm:()=>{x();const o={returnUrl:e.path,...e.query};t.replace({path:"/loginMusic",query:o})}},null),i(d,{show:l.value,"onUpdate:show":e=>l.value=e,round:!0,style:{width:"88%",marginTop:"-6vh"},closeOnClickOverlay:!1,class:X.wxPopupDialog},{default:()=>[i("div",{class:X.popupContainer},[i("p",{class:X.title1},[s("温馨提示")]),i("p",{class:X.popupTips},[s("乐团报名时间已过,请等待通知")])])]})])}}))}}}))}();
|