index.409d377b.js 28 KB

1
  1. import{d as q,ah as D,ag as w,r as x,$ as M,c as t,q as l,o as H,B as X,P as N,a$ as J,m as h,F as E,a5 as G,b6 as I,_ as B,ak as Q,al as W,R as $,f as ee,bd as te,bo as z,bg as se,l as oe,be as ae}from"./index.332c7f08.js";import{F as re}from"./index.f74c7b35.js";import{C as T}from"./index.324108a5.js";import{F as S}from"./index.1ed6273e.js";import{R as ue,a as Y}from"./index.a4155be3.js";import{T as k}from"./index.98482791.js";import{I as v}from"./index.96a8db5e.js";import{P as R}from"./index.656e257f.js";import{s as ne}from"./function-call.3db51140.js";import{O as le}from"./index.d7c1b6ac.js";import{C as ie}from"./countUp.min.9e8207da.js";import{O as K}from"./index.ed5fc819.js";import{M as ce,G as de}from"./index.bee2a0d1.js";import{O as L}from"./index.a8f5f4b5.js";import{C as pe}from"./index.4b720f43.js";import{C as _}from"./index.91135ff9.js";import{C as O}from"./index.2e331ab5.js";import{b as me}from"./index.b28db9f5.js";import{L as ge}from"./index.b186dfda.js";import{G as fe,a as he}from"./index.5e198b6f.js";import{S as ye}from"./index.4aa8e076.js";import{T as Ce,a as V}from"./index.7c580591.js";import"./Checker.1af5496e.js";import"./Picker.e56f94bd.js";import"./ImagePreview.e5b44a77.js";import"./index.1e2dfe6e.js";import"./use-tab-status.9d769af8.js";const Fe="_preApply_1smuq_1",Ae="_popupContainer_1smuq_15",Ie="_dialogTitle_1smuq_19",_e="_popupTips_1smuq_35",Se="_title1_1smuq_40",Te="_banner_1smuq_55",xe="_orchestraName_1smuq_61",Pe="_instrumentPriceImg_1smuq_69",be="_applyTitle_1smuq_79",Ee="_applyTips_1smuq_96",Be="_applyCellGroup_1smuq_101",ke="_radioSection_1smuq_108",ve="_radioItem_1smuq_113",Ne="_mlr13_1smuq_124",qe="_paymentTips_1smuq_127",De="_paymentContainer_1smuq_141",we="_needPrice_1smuq_148",Ge="_allPrice_1smuq_163",Re="_sectionCell_1smuq_171",Oe="_checkbox_1smuq_181",Ve="_extra_1smuq_184",Ue="_sectionPrice_1smuq_187",je="_price_1smuq_194",Le="_free_1smuq_207",Me="_gives_1smuq_210",ze="_sectionTips_1smuq_215",Ye="_iconGives_1smuq_224",Ke="_iconChecked_1smuq_229",He="_numFont_1smuq_245",Xe="_numPrefix_1smuq_248",Ze="_section_1smuq_171",Je="_img_1smuq_255",Qe="_brandName_1smuq_269",We="_model_1smuq_275",$e="_orderCellGroup_1smuq_281",et="_payTime_1smuq_288",tt="_payStatus_1smuq_293",st="_paySuccess_1smuq_296",ot="_imgGroup_1smuq_299",at="_orderPriceInfo_1smuq_311",rt="_orderPriceNum_1smuq_318",ut="_opNums_1smuq_326",nt="_opBuyLength_1smuq_336",lt="_btnGroup_1smuq_341",it="_btnPrice_1smuq_344",ct="_btns_1smuq_363",dt="_preApplyC_1smuq_366",pt="_dialogRefund_1smuq_386",mt="_refundContent_1smuq_389",gt="_tips_1smuq_392",ft="_container_1smuq_397",ht="_refundTitle_1smuq_401",yt="_phoneName_1smuq_411";var s={preApply:Fe,popupContainer:Ae,dialogTitle:Ie,popupTips:_e,title1:Se,banner:Te,orchestraName:xe,instrumentPriceImg:Pe,applyTitle:be,applyTips:Ee,applyCellGroup:Be,radioSection:ke,radioItem:ve,mlr13:Ne,paymentTips:qe,paymentContainer:De,needPrice:we,allPrice:Ge,sectionCell:Re,checkbox:Oe,extra:Ve,sectionPrice:Ue,price:je,free:Le,gives:Me,sectionTips:ze,iconGives:Ye,iconChecked:Ke,numFont:He,numPrefix:Xe,section:Ze,img:Je,brandName:Qe,model:We,orderCellGroup:$e,payTime:et,payStatus:tt,paySuccess:st,imgGroup:ot,orderPriceInfo:at,orderPriceNum:rt,opNums:ut,opBuyLength:nt,btnGroup:lt,btnPrice:it,btns:ct,preApplyC:dt,dialogRefund:pt,refundContent:mt,tips:gt,container:ft,refundTitle:ht,phoneName:yt};const Z=[];for(let d=1;d<=40;d++)Z.push({text:d+"\u73ED",value:d});var Ct=q({name:"apply",props:{schoolSystem:{type:String,default:"sixYearSystem"},registerInfo:{type:Object,defualt:{}},code:{type:String,default:""}},emits:["next"],setup(d,{slots:F,attrs:e,emit:C}){const y=D();w();const r=x({detail:{},currentGrade:[{text:"\u4E00\u5E74\u7EA7",value:1},{text:"\u4E8C\u5E74\u7EA7",value:2},{text:"\u4E09\u5E74\u7EA7",value:3},{text:"\u56DB\u5E74\u7EA7",value:4},{text:"\u4E94\u5E74\u7EA7",value:5},{text:"\u516D\u5E74\u7EA7",value:6},{text:"\u4E03\u5E74\u7EA7",value:7},{text:"\u516B\u5E74\u7EA7",value:8},{text:"\u4E5D\u5E74\u7EA7",value:9}],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}),a=x({username:null,sex:null,currentGrade:null,currentGradeTxt:null,currentClass:"",currentClassTxt:null,registerSubjectId:"",registerSubjectTxt:null,parentName:null,phone:null}),g=async()=>{try{const{data:u}=await h.get("/api-student/orchestraRegister/register/"+y.query.id),n=u||{};r.detail=n;const c=r.currentGrade.find(b=>b.value==n.currentGrade),f=r.classList.find(b=>b.value==n.currentClass),P=r.subjectList.find(b=>b.value==n.registerSubjectId);a.username=n.username,a.sex=n.sex?1:0,a.currentGrade=n.currentGrade,a.currentGradeTxt=c?c.text:"",a.currentClass=n.currentClass,a.currentClassTxt=f?f.text:"",a.registerSubjectId=n.registerSubjectId,a.registerSubjectTxt=P?P.text:"",a.parentName=n.parentName,a.phone=n.phone}catch(u){console.log(u)}},p=async()=>{try{((await h.post("/api-student/open/orchestraSubjectConfig/pageByOrchestraId",{data:{orchestraId:y.query.id,page:1,rows:100}})).data.rows||[]).forEach(c=>{r.subjectList.push({text:c.name,value:c.subjectId})})}catch{}},i=u=>r.nameReg.test(u)&&u.length>=2&&u.length<=15,m=u=>u?r.nameReg.test(u)?u.length<2||u.length>15?"\u5B66\u5458\u59D3\u540D\u5FC5\u987B\u4E3A2~15\u4E2A\u5B57":"":"\u5B66\u5458\u59D3\u540D\u5FC5\u987B\u4E3A\u4E2D\u6587":"\u8BF7\u586B\u5199\u5B66\u5458\u771F\u5B9E\u59D3\u540D",o=async()=>{try{const u={orchestraId:y.query.id,schoolId:r.detail.schoolId,...a};r.detail.id&&(u.id=r.detail.id),await h.post("/api-student/orchestraRegister/save",{hideLoading:!1,data:{...u,code:d.code}}),setTimeout(()=>{C("next","payment")},100)}catch{}},A=()=>{var u;ne([(u=d.registerInfo)==null?void 0:u.instrumentPriceImg])};return M(async()=>{await p(),await g()}),()=>t("div",{class:s.preApplyC},[t(re,{validateFirst:!0,scrollToError:!0,onSubmit:o,ref:"form",class:s.form},{default:()=>{var u,n;return[t("div",{class:s.applyTitle},[l("\u5B66\u5458\u4FE1\u606F")]),t(T,{inset:!0,class:s.applyCellGroup},{default:()=>[t(S,{required:!0,label:"\u5B66\u5458\u4FE1\u606F",placeholder:"\u8BF7\u586B\u5199\u5B66\u5458\u771F\u5B9E\u59D3\u540D",inputAlign:"right",modelValue:a.username,"onUpdate:modelValue":c=>a.username=c,maxlength:15,rules:[{validator:i,message:m}]},null),t(S,{required:!0,label:"\u6027\u522B",inputAlign:"right",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6027\u522B"}]},{input:()=>t(ue,{modelValue:a.sex,"onUpdate:modelValue":c=>a.sex=c},{default:()=>[t(k,{size:"large",type:"primary",color:a.sex!==1?"#EAEAEA":"#FF8057",textColor:a.sex!==1?"#AAA":"#FFF",class:s.radioSection,round:!0},{default:()=>[t(Y,{class:s.radioItem,name:1},null),l("\u7537\u751F")]}),t(k,{size:"large",type:"primary",color:a.sex!==0?"#EAEAEA":"#FF8057",textColor:a.sex!==0?"#AAA":"#FFF",class:s.radioSection,round:!0},{default:()=>[t(Y,{class:s.radioItem,name:0},null),l("\u5973\u751F")]})]})}),t(S,{required:!0,label:"\u5E74\u7EA7",inputAlign:"right",readonly:!0,isLink:!0,placeholder:"\u8BF7\u9009\u62E9\u5E74\u7EA7",modelValue:a.currentGradeTxt,"onUpdate:modelValue":c=>a.currentGradeTxt=c,onClick:()=>r.gradeStatus=!0,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5E74\u7EA7"}]},null),t(S,{required:!0,label:"\u73ED\u7EA7",inputAlign:"right",readonly:!0,isLink:!0,placeholder:"\u8BF7\u9009\u62E9\u73ED\u7EA7",modelValue:a.currentClassTxt,"onUpdate:modelValue":c=>a.currentClassTxt=c,onClick:()=>r.classStatus=!0,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u73ED\u7EA7"}]},null)]}),t("div",{class:s.applyTitle},[l("\u58F0\u90E8\u4FE1\u606F")]),t("div",{class:s.applyTips},[l("(\u8BF7\u52A1\u5FC5\u6309\u7167\u5B66\u751F\u7684\u5F55\u53D6\u58F0\u90E8\u586B\u62A5)")]),t(T,{inset:!0,class:s.applyCellGroup},{default:()=>[t(S,{required:!0,label:"\u58F0\u90E8",inputAlign:"right",readonly:!0,isLink:!0,placeholder:"\u8BF7\u9009\u62E9\u58F0\u90E8",modelValue:a.registerSubjectTxt,"onUpdate:modelValue":c=>a.registerSubjectTxt=c,onClick:()=>{var c,f,P;if(r.subjectList.length<=0){H("\u6682\u65E0\u62A5\u540D\u58F0\u90E8");return}if(((c=d.registerInfo)==null?void 0:c.registerStatus)==="LEARNING"||((f=d.registerInfo)==null?void 0:f.registerStatus)==="OUTOF_ORCHESTRA"&&((P=d.registerInfo)==null?void 0:P.orderNumber)>0){r.subjectChangeStatus=!0;return}r.subjectStatus=!0},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u58F0\u90E8"}]},null)]}),((u=d.registerInfo)==null?void 0:u.orchestraRegisterType)==="PARENT_CONFERENCES"&&t(v,{src:(n=d.registerInfo)==null?void 0:n.instrumentPriceImg,class:s.instrumentPriceImg,onClick:A},null),t("div",{class:s.applyTitle},[l("\u5BB6\u957F\u4FE1\u606F")]),t(T,{inset:!0,class:s.applyCellGroup},{default:()=>[t(S,{required:!0,label:"\u5BB6\u957F\u59D3\u540D",inputAlign:"right",placeholder:"\u8BF7\u586B\u5199\u5BB6\u957F\u771F\u5B9E\u59D3\u540D",modelValue:a.parentName,"onUpdate:modelValue":c=>a.parentName=c,maxlength:15,rules:[{required:!0,message:"\u8BF7\u586B\u5199\u5BB6\u957F\u771F\u5B9E\u59D3\u540D"}]},null),t(S,{required:!0,label:"\u624B\u673A\u53F7",inputAlign:"right",placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7",modelValue:a.phone,"onUpdate:modelValue":c=>a.phone=c,maxlength:11,type:"tel",rules:[{pattern:r.pattern,message:"\u8F93\u5165\u76D1\u62A4\u4EBA\u624B\u673A\u53F7\u7801\u6709\u8BEF"}]},null)]}),t("div",{class:"btnGroup",style:{paddingTop:"30px"}},[t(X,{type:"primary",round:!0,block:!0,"native-type":"submit"},{default:()=>[l("\u4E0B\u4E00\u6B65")]})])]}}),t(N,{show:r.gradeStatus,"onUpdate:show":u=>r.gradeStatus=u,position:"bottom",round:!0,safeAreaInsetBottom:!0,lazyRender:!1,class:"popupBottomSearch"},{default:()=>[t(R,{showToolbar:!0,columns:r.currentGrade,onCancel:()=>r.gradeStatus=!1,onConfirm:u=>{const n=u.selectedOptions[0];a.currentGrade=n.value,a.currentGradeTxt=n.text,r.gradeStatus=!1}},null)]}),t(N,{show:r.classStatus,"onUpdate:show":u=>r.classStatus=u,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[t(R,{showToolbar:!0,columns:r.classList,onCancel:()=>r.classStatus=!1,onConfirm:u=>{const n=u.selectedOptions[0];a.currentClass=n.value,a.currentClassTxt=n.text,r.classStatus=!1}},null)]}),t(N,{show:r.subjectStatus,"onUpdate:show":u=>r.subjectStatus=u,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[t(R,{showToolbar:!0,columns:r.subjectList,onCancel:()=>r.subjectStatus=!1,onConfirm:u=>{const n=u.selectedOptions[0];a.registerSubjectId=n.value,a.registerSubjectTxt=n.text,r.subjectStatus=!1}},null)]}),t(J,{show:r.subjectChangeStatus,"onUpdate:show":u=>r.subjectChangeStatus=u,message:"\u60A8\u5DF2\u6709\u62A5\u540D\u8BA2\u5355\uFF0C\u4E0D\u53EF\u66F4\u6362\u58F0\u90E8",messageAlign:"center",confirmButtonText:"\u786E\u5B9A"},{title:()=>t("div",{class:s.dialogTitle},[t("i",null,null),l("\u63D0\u793A")])})])}}),U="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",j="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==",Ft=q({name:"payment",emits:["next"],setup(){const d=D(),F=w(),e=x({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:{}}),C=async()=>{try{const{data:o}=await h.get("/api-student/sysParamConfig/queryByParamName",{params:{paramName:"payment_service_provider"}});e.paymentType=o.paramValue||""}catch{}},y=async()=>{try{const{data:o}=await h.get("/api-student/userPaymentOrder/unpaid",{params:{orchestraId:d.query.id}});o.id&&(o.orchestraId!==d.query.id?(e.dialogMessage="\u60A8\u5728\u5176\u5B83\u4E50\u56E2\u5B58\u5728\u5F85\u652F\u4ED8\u8BA2\u5355\uFF0C\u53D6\u6D88\u540E\u624D\u53EF\u7EE7\u7EED\u62A5\u540D\uFF0C\u662F\u5426\u786E\u8BA4\u53D6\u6D88\uFF1F",e.dialogStatus=!0,e.dialogOrchestraStatus=!0,e.dialogConfig=o):(e.dialogMessage="\u60A8\u6709\u5F85\u652F\u4ED8\u7684\u8BA2\u5355\uFF0C\u662F\u5426\u7EE7\u7EED\u652F\u4ED8",e.dialogStatus=!0,e.dialogConfig=o))}catch{}},r=async()=>{try{const{data:o}=await h.get("/api-student/orchestraRegister/registerGoods/"+d.query.id);e.musicPaymentType=o.paymentServiceProvider||"",(o.paymentOrderDetails||[]).forEach(n=>{e.paymentOrderDetails.push(n.goodsType)});const u=o.details||[];u.forEach(n=>{if(n.goodsType==="INSTRUMENTS"){const c=n.goodsUrl?n.goodsUrl.split(",")[0]:"";e.goodsInfo={...n,goodsUrl:c}}else if(n.goodsType==="TEXTBOOK"){const c=n.goodsUrl?n.goodsUrl.split(",")[0]:"";e.textBookInfo={...n,goodsUrl:c}}else n.goodsType==="REPAIR"?e.repaireInfo={...n}:n.goodsType==="VIP"&&(e.vipInfo={...n});e.details=u,!e.paymentOrderDetails.includes(n.goodsType)&&n.goodsType=="TEXTBOOK"&&e.check.push(n.goodsId)}),g()}catch{}},a=o=>{e.checkboxRefs[o].toggle(),g()},g=()=>{const o=e.details,A={needPrice:0,originalPrice:0};o.forEach(u=>{e.check.includes(u.goodsId)&&!e.paymentOrderDetails.includes(u.goodsType)&&(A.needPrice+=parseFloat(u.currentPrice||0),A.originalPrice+=parseFloat(u.originalPrice||0))}),e.orderInfo=A,i()},p=x({needPrice:null,originalPrice:null}),i=()=>{B(()=>{p.needPrice?p.needPrice.update(e.orderInfo.needPrice):(p.needPrice=new ie("needPrice",e.orderInfo.needPrice,{decimalPlaces:2}),p.needPrice.error?console.error(p.needPrice.error):p.needPrice.start())})},m=async()=>{try{if(e.check.length<=0){H("\u8BF7\u9009\u62E9\u60A8\u8981\u8D2D\u4E70\u7684\u5546\u54C1");return}g();const o=[],A=e.details;let u=!1;A.forEach(f=>{e.check.includes(f.goodsId)&&!e.paymentOrderDetails.includes(f.goodsType)&&o.push({goodsId:f.goodsId,goodsNum:1,goodsType:f.goodsType,paymentCashAmount:f.currentPrice,paymentCouponAmount:0}),f.goodsType==="INSTRUMENTS"&&e.check.includes(f.goodsId)&&!e.paymentOrderDetails.includes(f.goodsType)&&(u=!1)});const n=e.repaireInfo;u&&n.goodsId&&o.push({goodsId:n.goodsId,goodsNum:1,goodsType:n.goodsType,paymentCashAmount:n.currentPrice,paymentCouponAmount:0});const{data:c}=await h.post("/api-student/userPaymentOrder/executeOrder",{hideLoading:!1,data:{paymentType:e.musicPaymentType||e.paymentType,bizId:d.query.id,orderType:"ORCHESTRA",paymentCashAmount:e.orderInfo.needPrice||0,paymentCouponAmount:0,goodsInfos:o,orderName:"\u4E50\u56E2\u62A5\u540D\u7F34\u8D39",orderDesc:"\u4E50\u56E2\u62A5\u540D\u7F34\u8D39"}});console.log(c),F.push({path:"/orderDetail",query:{pm:1,config:JSON.stringify({...c.paymentConfig,paymentType:c.paymentType}),orderNo:c.orderNo}})}catch(o){console.log(o)}};return M(()=>{C(),r(),y()}),()=>t(E,null,[t("div",{class:s.applyTitle},[l("\u62A5\u540D\u987B\u77E5")]),t("div",{class:[s.paymentTips,s.mlr13]},[t("p",null,[l("1\u3001"),t("span",null,[l("\u4E50\u56E2\u514D\u8D39\u653F\u7B56")]),l("\uFF1A\u5B66\u751F\u5728\u56E2\u671F\u95F4\u8BAD\u7EC3\u53CA\u6559\u6750\u514D\u8D39\u653F\u7B56\uFF08\u6559\u6750\u90AE\u8D39\u9700\u81EA\u7406\uFF09\uFF1B")]),t("p",null,[l("2\u3001"),t("span",null,[l("\u5165\u56E2\u5FC5\u5907\u5DE5\u5177")]),l("\uFF1A\u4E3A\u4E86\u7B26\u5408\u4E50\u56E2\u5B66\u7EC3\u540C\u9891\u7684\u8981\u6C42\uFF0C\u5B66\u751F\u5728\u5165\u56E2\u524D\u9700\u51C6\u5907\u597D\u4E50\u56E2Ai\u8BAD\u7EC3\u5DE5\u5177\u548C\u4E50\u5668\u4E24\u9879\u5DE5\u5177\uFF1B")]),t("p",null,[l("3\u3001"),t("span",null,[l("\u5165\u56E2\u5FC5\u5907\u5DE5\u5177\u51C6\u5907\u7684\u539F\u5219")]),l("\uFF1A\u5BB6\u957F\u53EF\u81EA\u884C\u51C6\u5907\uFF08\u9700\u6309\u7167\u4E50\u56E2\u63D0\u4F9B\u7684\u53C2\u8003\u53C2\u6570\u51C6\u5907\uFF09\uFF0C\u4E5F\u53EF\u52FE\u9009\u4E0B\u65B9\u9879\u76EE\u6280\u672F\u65B9\u63D0\u4F9B\u7684\u4E50\u56E2\u5DE5\u5177\uFF1B")]),t("p",null,[l("4\u3001"),t("span",null,[l("\u6E29\u99A8\u63D0\u793A")]),l("\uFF1A\u81EA\u884C\u51C6\u5907\u7684\u5BB6\u957F\u8BF7\u5728\u6536\u5230\u5F00\u56E2\u4FE1\u606F\u540E\u518D\u8FDB\u884C\u5DE5\u5177\u51C6\u5907\uFF08\u907F\u514D\u51FA\u73B0\u65F6\u95F4\u6D6A\u8D39\uFF09\uFF0C\u5728\u9879\u76EE\u6280\u672F\u65B9\u8D2D\u7F6E\u7684\u5BB6\u957F\u8BF7\u653E\u5FC3\u63D0\u4EA4\uFF08Ai\u5B66\u7EC3\u5DE5\u5177\u5C06\u5728\u9996\u6B21\u8BAD\u7EC3\u65F6\u6FC0\u6D3B\uFF09")])]),t(pe,{modelValue:e.check,"onUpdate:modelValue":o=>e.check=o,style:{paddingBottom:"20px"},onChange:()=>{g()}},{default:()=>[!e.paymentOrderDetails.includes("VIP")&&t(E,null,[t(T,{inset:!0,class:[s.mlr13,s.sectionCell],onClick:()=>a(e.vipInfo.goodsId)},{default:()=>[t(_,{border:!1},{icon:()=>t(O,{name:e.vipInfo.goodsId,class:s.checkbox,ref:o=>e.checkboxRefs[e.vipInfo.goodsId]=o,onClick:o=>{o.stopPropagation()}},{icon:o=>t(G,{class:s.iconChecked,name:o.checked?U:j},null)}),title:()=>t("div",{class:s.section},[t(v,{class:s.img,src:e.vipInfo.goodsUrl,onClick:o=>{o.stopPropagation(),e.memberBaoStatus=!0}},null),t("div",{class:s.sectionContent},[t("h2",{onClick:o=>{o.stopPropagation(),e.memberBaoStatus=!0}},[e.vipInfo.goodsName]),t(k,{color:"linear-gradient(135deg, #FF8C4A 0%, #FF531C 100%)",textColor:"#fff",class:s.brandName},{default:()=>[l("6\u4E2A\u6708")]}),t("p",{class:[s.model,"van-multi-ellipsis--l2"]},[e.vipInfo.description])])])}),t(_,null,{title:()=>t("div",{class:s.extra},[t("div",{class:s.sectionPrice},[t("p",{class:s.price},[l("\u56E2\u8D2D\u4EF7\uFF1A"),t("span",{class:s.numFont},[t("span",{class:s.numPrefix},[l("\xA5")]),I(e.vipInfo.currentPrice)])]),t("p",{class:s.originPrice},[l("\u539F\u4EF7\uFF1A"),t("del",{class:s.numFont},[l("\xA5 "),I(e.vipInfo.originalPrice)])])])])})]})]),!e.paymentOrderDetails.includes("INSTRUMENTS")&&t(E,null,[t(T,{inset:!0,class:[s.mlr13,s.sectionCell],onClick:()=>a(e.goodsInfo.goodsId)},{default:()=>[t(_,{border:!1},{icon:()=>t(O,{name:e.goodsInfo.goodsId,class:s.checkbox,ref:o=>e.checkboxRefs[e.goodsInfo.goodsId]=o,onClick:o=>{o.stopPropagation()}},{icon:o=>t(G,{class:s.iconChecked,name:o.checked?U:j},null)}),title:()=>t("div",{class:s.section},[t(v,{class:s.img,src:e.goodsInfo.goodsUrl,onClick:o=>{o.stopPropagation(),e.selectGoodsId=e.goodsInfo.goodsId,e.currentPrice=e.goodsInfo.currentPrice,e.selectGoodsInfo={showFree:!0,originalPrice:e.repaireInfo.originalPrice},e.goodsStatus=!0}},null),t("div",{class:s.sectionContent},[t("h2",{onClick:o=>{o.stopPropagation(),e.selectGoodsId=e.goodsInfo.goodsId,e.currentPrice=e.goodsInfo.currentPrice,e.goodsStatus=!0}},[e.goodsInfo.goodsName]),t(k,{color:"linear-gradient(135deg, #FF8C4A 0%, #FF531C 100%)",textColor:"#fff",class:s.brandName},{default:()=>[e.goodsInfo.brandName]}),t("p",{class:[s.model,"van-multi-ellipsis--l2"]},[e.goodsInfo.description])])])}),t(_,{border:!1},{title:()=>t("div",{class:s.extra},[t("div",{class:s.sectionPrice},[t("p",{class:s.price},[l("\u56E2\u8D2D\u4EF7\uFF1A"),t("span",{class:s.numFont},[t("span",{class:s.numPrefix},[l("\xA5 ")]),I(e.goodsInfo.currentPrice)])]),t("p",{class:s.originPrice},[l("\u539F\u4EF7\uFF1A"),t("del",{class:s.numFont},[l("\xA5 "),I(e.goodsInfo.originalPrice)])])])])})]})]),!e.paymentOrderDetails.includes("TEXTBOOK")&&t(E,null,[t(T,{inset:!0,class:[s.mlr13,s.sectionCell],onClick:()=>{}},{default:()=>[t(_,{border:!1},{icon:()=>t(O,{name:e.textBookInfo.goodsId,disabled:!0,class:s.checkbox,ref:o=>e.checkboxRefs[e.textBookInfo.goodsId]=o,onClick:o=>{o.stopPropagation()}},{icon:o=>t(G,{class:s.iconChecked,name:o.checked?U:j},null)}),title:()=>t("div",{class:s.section},[t(v,{class:s.img,src:e.textBookInfo.goodsUrl,onClick:o=>{o.stopPropagation(),e.selectGoodsId=e.textBookInfo.goodsId,e.currentPrice=e.textBookInfo.currentPrice,e.selectGoodsInfo={},e.goodsStatus=!0}},null),t("div",{class:s.sectionContent},[t("h2",{onClick:o=>{o.stopPropagation(),e.selectGoodsId=e.textBookInfo.goodsId,e.currentPrice=e.textBookInfo.currentPrice,e.selectGoodsInfo={},e.goodsStatus=!0}},[e.textBookInfo.goodsName]),t(k,{color:"linear-gradient(135deg, #FF8C4A 0%, #FF531C 100%)",textColor:"#fff",class:s.brandName},{default:()=>[e.textBookInfo.brandName]}),t("p",{class:[s.model,"van-multi-ellipsis--l2"]},[e.textBookInfo.description])])])}),t(_,null,{title:()=>t("div",{class:s.extra},[t("div",{class:s.sectionPrice},[t("p",{class:s.price},[l("\u56E2\u8D2D\u4EF7\uFF1A"),t("span",{class:[e.textBookInfo.currentPrice>0?s.numFont:s.free]},[e.textBookInfo.currentPrice>0?t(E,null,[t("span",{class:s.numPrefix},[l("\xA5 ")]),I(e.textBookInfo.currentPrice)]):"\u514D\u8D39"])]),t("p",{class:s.originPrice},[l("\u539F\u4EF7\uFF1A"),t("del",{class:s.numFont},[l("\xA5 "),I(e.textBookInfo.originalPrice)])])])])})]})])]}),t(le,{position:"bottom",background:"white"},{default:()=>[t("div",{class:s.paymentContainer},[t("div",{class:s.payemntPrice},[t("p",{class:s.needPrice},[l("\u652F\u4ED8\u91D1\u989D\uFF1A"),t("span",{class:s.numFont},[t("span",null,[l("\xA5 ")]),t("i",{style:"font-style: normal",id:"needPrice"},null)])]),t("p",{class:s.allPrice},[t("del",{class:s.numFont},[l("\u603B\u539F\u4EF7\uFF1A\xA5 "),I(e.orderInfo.originalPrice)])])]),t("div",{class:s.paymentBtn},[t(X,{color:"linear-gradient(135deg, #FF8C4A 0%, #FF531C 100%)",round:!0,onClick:m},{default:()=>[l("\u7ACB\u5373\u63D0\u4EA4")]})])])]}),t(K,{modelValue:e.memberBaoStatus,"onUpdate:modelValue":o=>e.memberBaoStatus=o,position:"right"},{default:()=>[t(ce,null,null)]}),t(K,{modelValue:e.goodsStatus,"onUpdate:modelValue":o=>e.goodsStatus=o,position:"right",destroy:!0},{default:()=>[e.goodsStatus&&t(de,{id:e.selectGoodsId,groupPrice:e.currentPrice,goodsInfo:e.selectGoodsInfo},null)]}),t(L,{title:"\u63D0\u793A",show:e.dialogStatus,"onUpdate:show":o=>e.dialogStatus=o,message:e.dialogMessage,confirmButtonText:e.dialogOrchestraStatus?"\u786E\u8BA4\u53D6\u6D88":"\u7EE7\u7EED\u652F\u4ED8",cancelButtonText:"\u53D6\u6D88\u8BA2\u5355",showCancelButton:!e.dialogOrchestraStatus,messageAlign:e.dialogOrchestraStatus?"left":"center",onConfirm:async()=>{if(e.dialogOrchestraStatus)try{await h.post("/api-student/userPaymentOrder/cancelPayment/"+e.dialogConfig.orderNo)}catch{}else{const o=e.dialogConfig.paymentConfig;F.push({path:"/orderDetail",query:{pm:1,config:JSON.stringify({...o.paymentConfig,paymentType:o.paymentType}),orderNo:o.orderNo}})}},onCancel:async()=>{try{await h.post("/api-student/userPaymentOrder/cancelPayment/"+e.dialogConfig.orderNo)}catch{}}},null)])}});function At(d){return typeof d=="function"||Object.prototype.toString.call(d)==="[object Object]"&&!W(d)}var It=q({name:"order",emits:["next"],setup(){const d=w(),F=D(),e=x({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(e.isClick)return;e.isClick=!0;const r=await h.post("/api-student/userPaymentOrder/page",{data:{...e.params,bizId:F.query.id,goodsQuery:!0}});e.listState.loading=!1;const a=r.data||{};if(e.list.length>0&&a.current===1)return;const g=a.rows||[];g.goodsInfos&&g.goodsInfos.forEach(p=>{const i=p.goodsUrl?p.goodsUrl.split(",")[0]:"";p.goodsUrl=i}),e.list=e.list.concat(g),e.listState.finished=a.current>=a.pages,e.params.page=a.current+1,e.listState.dataShow=e.list.length>0,e.isClick=!1}catch{e.listState.dataShow=!1,e.listState.finished=!0,e.isClick=!1}},y=r=>{d.push({path:"payment-result",query:{orderNo:r.orderNo,refund:"refund"}})};return M(()=>{C()}),()=>{let r;return t("div",{style:{paddingTop:"20px"}},[e.listState.dataShow?t(ge,{finished:e.listState.finished,finishedText:" ",class:[s.liveList],onLoad:C,immediateCheck:!1},At(r=e.list.map(a=>t(T,{inset:!0,class:s.orderCellGroup,onClick:()=>y(a)},{default:()=>[t(_,{title:a.createTime,titleClass:s.payTime,value:me[a.status],valueClass:a.status==="WAIT_PAY"?s.payStatus:a.status==="PAID"?s.paySuccess:""},null),t(_,{border:!1,class:s.imgGroup,center:!0},{title:()=>t("div",{class:s.orderPriceInfo},[t(fe,{border:!1,columnNum:3},{default:()=>[a.goodsInfos&&a.goodsInfos.map((g,p)=>p<3&&t(he,null,{default:()=>[t(v,{class:s.img,src:g.goodsUrl},null)]}))]}),t("div",{class:s.orderPriceNum},[t("div",{class:s.opNums},[t("span",null,[l("\xA5 ")]),I(a.currentPrice)]),t("div",{class:s.opBuyLength},[l("\u5171"),a.goodsInfos&&a.goodsInfos.length||0,l("\u4EF6")])])])})]})))?r:{default:()=>[r]}):t(Q,{btnStatus:!1,tips:"\u6682\u65E0\u8BA2\u5355"},null)])}}}),Zt=q({name:"pre-apply",setup(){const d=D(),F=w(),e=x({tabValue:"apply",heightV:235,registerInfo:{},purchase:!1,register:!0,code:"",dialogStatus:!1,dialogMessage:"",studentReadStatus:!1,testIsWeixin:!1}),C=$(!1),y=async i=>{i==="payment"&&await r(),B(()=>{e.tabValue=i,window.scrollTo(0,0)})},r=async()=>{var i;try{const{data:m}=await h.get("/api-student/orchestraRegister/registerStatus/"+d.query.id);e.registerInfo=m||{},(i=m.learningOrchestra)!=null&&i.length&&(e.studentReadStatus=!0),m.registerStatus==="OUTOF_ORCHESTRA"?B(()=>{e.tabValue="apply"}):(e.register=m.register,m.register&&B(()=>{e.tabValue="payment"}),m.purchase&&(e.purchase=m.purchase,B(()=>{e.tabValue="order"})));const o=m.status;if(o!=="REGISTER"&&o!=="DOING"&&o!=="DONE"&&o!=="PARENT_TEACHER_REGISTRATION"){e.dialogMessage="\u4E50\u56E2\u5EFA\u8BBE\u4E2D\uFF0C\u8BF7\u7A0D\u7B49",e.dialogStatus=!0;return}if(m.registerOrchestra>=1){e.dialogMessage="\u60A8\u5DF2\u5728\u5176\u5B83\u4E50\u56E2",e.dialogStatus=!0;return}}catch{}},a=async i=>{if(i==="apply")try{const{data:m}=await h.get("/api-student/orchestraRegister/registerStatus/"+d.query.id);e.registerInfo=m||{}}catch{}window.scrollTo(0,0)},g=async()=>{try{const{data:i}=await h.get("/api-student/open/paramConfig/wechatAppId");i&&se(i)}catch{}},p=()=>{z(),oe();const i={returnUrl:d.path,...d.query};window.location.href=window.location.origin+window.location.pathname+"#/loginMusic?"+ae.stringify(i),F.replace({path:"/loginMusic",query:i})};if(e.testIsWeixin)r();else if(ee().weixin){const i=te();i?(e.code=i,r()):g()}else p();return()=>t("div",{class:s.preApply},[t("div",{class:s.banner},[t("p",{class:s.orchestraName},[e.registerInfo.orchestraName])]),t(ye,{position:"top"},{default:()=>[t(Ce,{lineWidth:20,lineHeight:4,active:e.tabValue,"onUpdate:active":i=>e.tabValue=i,onChange:i=>a(i)},{default:()=>[t(V,{title:"\u57FA\u7840\u4FE1\u606F",name:"apply",disabled:e.purchase},null),t(V,{title:"\u5DE5\u5177\u51C6\u5907",name:"payment",disabled:e.purchase||!e.register},null),t(V,{title:"\u5B8C\u6210\u62A5\u540D",name:"order",disabled:!e.register},null)]})]}),e.tabValue==="apply"&&t(Ct,{onNext:y,code:e.code,registerInfo:e.registerInfo,schoolSystem:e.registerInfo.schoolSystem},null),e.tabValue==="payment"&&t(Ft,{onNext:y},null),e.tabValue==="order"&&t(It,{onNext:y},null),t(L,{title:"\u63D0\u793A",show:e.dialogStatus,"onUpdate:show":i=>e.dialogStatus=i,message:e.dialogMessage,confirmButtonText:"\u786E\u5B9A",onConfirm:()=>{z();const i={returnUrl:d.path,...d.query};F.replace({path:"/loginMusic",query:i})}},null),t(L,{title:"\u63D0\u793A",show:e.studentReadStatus,"onUpdate:show":i=>e.studentReadStatus=i,message:"\u60A8\u5DF2\u5728\u5176\u4ED6\u4E50\u56E2\u5728\u8BFB\uFF0C\u8BF7\u9000\u56E2\u518D\u62A5\u540D\u8BE5\u4E50\u56E2\u3002",confirmButtonText:"\u786E\u8BA4",showCancelButton:!1,onConfirm:()=>{p()}},null),t(N,{show:C.value,"onUpdate:show":i=>C.value=i,round:!0,style:{width:"88%",marginTop:"-6vh"},closeOnClickOverlay:!1,class:s.wxPopupDialog},{default:()=>[t("div",{class:s.popupContainer},[t("p",{class:s.title1},[l("\u6E29\u99A8\u63D0\u793A")]),t("p",{class:s.popupTips},[l("\u4E50\u56E2\u62A5\u540D\u65F6\u95F4\u5DF2\u8FC7\uFF0C\u8BF7\u7B49\u5F85\u901A\u77E5")])])]})])}});export{Zt as default};