1 |
- import{d as V,ah as G,ag as O,r as T,$ as j,c as t,q as u,o as K,B as H,P as N,a$ as J,m as y,a5 as w,b6 as C,F as q,_ as P,ak as Q,al as W,R as L,f as $,bd as ee,bn as z,bf as te}from"./index.e14866d9.js";import{F as se}from"./index.fd091f75.js";import{C as _}from"./index.2d393306.js";import{F as x}from"./index.045c4c40.js";import{R as oe,a as Y}from"./index.aecce579.js";import{T as S}from"./index.8f680c22.js";import{P as U}from"./index.356f54b6.js";import{O as ae}from"./index.2964afa1.js";import{C as re}from"./countUp.min.9e8207da.js";import{O as M}from"./index.aa1b2c93.js";import{M as ne,G as ue}from"./index.ca79e935.js";import{O as X}from"./index.928e16c6.js";import{C as le}from"./index.631fbed5.js";import{C as B}from"./index.109fca1c.js";import{C as A}from"./index.9ad92b5d.js";import{I as E}from"./index.e10558fc.js";import{b as ie}from"./index.b28db9f5.js";import{L as ce}from"./index.c5ede278.js";import{G as de,a as pe}from"./index.4e1ea854.js";import{S as ge}from"./index.a328fbf1.js";import{T as me,a as R}from"./index.153119ec.js";import"./Checker.b065e3f3.js";import"./Picker.e4603d0c.js";import"./index.339fc024.js";import"./function-call.4dc295be.js";import"./ImagePreview.207bb16b.js";import"./index.743c37cc.js";import"./use-tab-status.ee4e85f0.js";const fe="_preApply_1kgew_1",ye="_popupContainer_1kgew_15",he="_dialogTitle_1kgew_19",Fe="_popupTips_1kgew_35",Ce="_title1_1kgew_40",Ae="_banner_1kgew_55",Ie="_orchestraName_1kgew_61",ke="_applyTitle_1kgew_69",_e="_applyTips_1kgew_86",xe="_applyCellGroup_1kgew_91",Se="_radioSection_1kgew_98",Te="_radioItem_1kgew_103",be="_mlr13_1kgew_114",Pe="_paymentTips_1kgew_117",Ee="_paymentContainer_1kgew_131",we="_needPrice_1kgew_138",Be="_allPrice_1kgew_153",De="_sectionCell_1kgew_161",ve="_checkbox_1kgew_171",Ne="_extra_1kgew_174",Ve="_sectionPrice_1kgew_177",Ge="_price_1kgew_184",Oe="_free_1kgew_197",Ue="_gives_1kgew_200",Re="_sectionTips_1kgew_205",je="_iconGives_1kgew_214",qe="_iconChecked_1kgew_219",Le="_numFont_1kgew_235",ze="_numPrefix_1kgew_238",Ye="_section_1kgew_161",Me="_img_1kgew_245",Ke="_brandName_1kgew_259",He="_model_1kgew_265",Xe="_orderCellGroup_1kgew_271",Ze="_payTime_1kgew_278",Je="_payStatus_1kgew_283",Qe="_paySuccess_1kgew_286",We="_imgGroup_1kgew_289",$e="_orderPriceInfo_1kgew_301",et="_orderPriceNum_1kgew_308",tt="_opNums_1kgew_316",st="_opBuyLength_1kgew_326",ot="_btnGroup_1kgew_331",at="_btnPrice_1kgew_334",rt="_btns_1kgew_353",nt="_preApplyC_1kgew_356",ut="_dialogRefund_1kgew_376",lt="_refundContent_1kgew_379",it="_tips_1kgew_382",ct="_container_1kgew_387",dt="_refundTitle_1kgew_391",pt="_phoneName_1kgew_401";var s={preApply:fe,popupContainer:ye,dialogTitle:he,popupTips:Fe,title1:Ce,banner:Ae,orchestraName:Ie,applyTitle:ke,applyTips:_e,applyCellGroup:xe,radioSection:Se,radioItem:Te,mlr13:be,paymentTips:Pe,paymentContainer:Ee,needPrice:we,allPrice:Be,sectionCell:De,checkbox:ve,extra:Ne,sectionPrice:Ve,price:Ge,free:Oe,gives:Ue,sectionTips:Re,iconGives:je,iconChecked:qe,numFont:Le,numPrefix:ze,section:Ye,img:Me,brandName:Ke,model:He,orderCellGroup:Xe,payTime:Ze,payStatus:Je,paySuccess:Qe,imgGroup:We,orderPriceInfo:$e,orderPriceNum:et,opNums:tt,opBuyLength:st,btnGroup:ot,btnPrice:at,btns:rt,preApplyC:nt,dialogRefund:ut,refundContent:lt,tips:it,container:ct,refundTitle:dt,phoneName:pt};const Z=[];for(let d=1;d<=40;d++)Z.push({text:d+"\u73ED",value:d});var gt=V({name:"apply",props:{schoolSystem:{type:String,default:"sixYearSystem"},registerInfo:{type:Object,defualt:{}},code:{type:String,default:""}},emits:["next"],setup(d,{slots:k,attrs:e,emit:h}){const F=G();O();const n=T({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}],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=T({username:null,sex:null,currentGrade:null,currentGradeTxt:null,currentClass:"",currentClassTxt:null,registerSubjectId:"",registerSubjectTxt:null,parentName:null,phone:null}),g=async()=>{try{const{data:r}=await y.get("/api-student/orchestraRegister/register/"+F.query.id),i=r||{};n.detail=i;const c=n.currentGrade.find(b=>b.value==i.currentGrade),m=n.classList.find(b=>b.value==i.currentClass),f=n.subjectList.find(b=>b.value==i.registerSubjectId);a.username=i.username,a.sex=i.sex?1:0,a.currentGrade=i.currentGrade,a.currentGradeTxt=c?c.text:"",a.currentClass=i.currentClass,a.currentClassTxt=m?m.text:"",a.registerSubjectId=i.registerSubjectId,a.registerSubjectTxt=f?f.text:"",a.parentName=i.parentName,a.phone=i.phone}catch(r){console.log(r)}},p=async()=>{try{((await y.post("/api-student/open/orchestraSubjectConfig/pageByOrchestraId",{data:{orchestraId:F.query.id,page:1,rows:100}})).data.rows||[]).forEach(c=>{n.subjectList.push({text:c.name,value:c.subjectId})})}catch{}},l=r=>n.nameReg.test(r)&&r.length>=2&&r.length<=15,I=r=>r?n.nameReg.test(r)?r.length<2||r.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 r={orchestraId:F.query.id,schoolId:n.detail.schoolId,...a};n.detail.id&&(r.id=n.detail.id),await y.post("/api-student/orchestraRegister/save",{hideLoading:!1,data:{...r,code:d.code}}),setTimeout(()=>{h("next","payment")},100)}catch{}};return j(async()=>{await p(),d.schoolSystem==="sixYearSystem"&&n.currentGrade.push({text:"\u516D\u5E74\u7EA7",value:6}),await g()}),()=>t("div",{class:s.preApplyC},[t(se,{validateFirst:!0,scrollToError:!0,onSubmit:o,ref:"form",class:s.form},{default:()=>[t("div",{class:s.applyTitle},[u("\u5B66\u5458\u4FE1\u606F")]),t(_,{inset:!0,class:s.applyCellGroup},{default:()=>[t(x,{required:!0,label:"\u5B66\u5458\u4FE1\u606F",placeholder:"\u8BF7\u586B\u5199\u5B66\u5458\u771F\u5B9E\u59D3\u540D",inputAlign:"right",modelValue:a.username,"onUpdate:modelValue":r=>a.username=r,maxlength:15,rules:[{validator:l,message:I}]},null),t(x,{required:!0,label:"\u6027\u522B",inputAlign:"right",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6027\u522B"}]},{input:()=>t(oe,{modelValue:a.sex,"onUpdate:modelValue":r=>a.sex=r},{default:()=>[t(S,{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),u("\u7537\u751F")]}),t(S,{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),u("\u5973\u751F")]})]})}),t(x,{required:!0,label:"\u5E74\u7EA7",inputAlign:"right",readonly:!0,isLink:!0,placeholder:"\u8BF7\u9009\u62E9\u5E74\u7EA7",modelValue:a.currentGradeTxt,"onUpdate:modelValue":r=>a.currentGradeTxt=r,onClick:()=>n.gradeStatus=!0,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5E74\u7EA7"}]},null),t(x,{required:!0,label:"\u73ED\u7EA7",inputAlign:"right",readonly:!0,isLink:!0,placeholder:"\u8BF7\u9009\u62E9\u73ED\u7EA7",modelValue:a.currentClassTxt,"onUpdate:modelValue":r=>a.currentClassTxt=r,onClick:()=>n.classStatus=!0,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u73ED\u7EA7"}]},null)]}),t("div",{class:s.applyTitle},[u("\u58F0\u90E8\u4FE1\u606F")]),t("div",{class:s.applyTips},[u("(\u8BF7\u52A1\u5FC5\u6309\u7167\u5B66\u751F\u7684\u5F55\u53D6\u58F0\u90E8\u586B\u62A5)")]),t(_,{inset:!0,class:s.applyCellGroup},{default:()=>[t(x,{required:!0,label:"\u58F0\u90E8",inputAlign:"right",readonly:!0,isLink:!0,placeholder:"\u8BF7\u9009\u62E9\u58F0\u90E8",modelValue:a.registerSubjectTxt,"onUpdate:modelValue":r=>a.registerSubjectTxt=r,onClick:()=>{var r,i,c;if(n.subjectList.length<=0){K("\u6682\u65E0\u62A5\u540D\u58F0\u90E8");return}if(((r=d.registerInfo)==null?void 0:r.registerStatus)==="LEARNING"||((i=d.registerInfo)==null?void 0:i.registerStatus)==="OUTOF_ORCHESTRA"&&((c=d.registerInfo)==null?void 0:c.orderNumber)>0){n.subjectChangeStatus=!0;return}n.subjectStatus=!0},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u58F0\u90E8"}]},null)]}),t("div",{class:s.applyTitle},[u("\u5BB6\u957F\u4FE1\u606F")]),t(_,{inset:!0,class:s.applyCellGroup},{default:()=>[t(x,{required:!0,label:"\u5BB6\u957F\u59D3\u540D",inputAlign:"right",placeholder:"\u8BF7\u586B\u5199\u5BB6\u957F\u771F\u5B9E\u59D3\u540D",modelValue:a.parentName,"onUpdate:modelValue":r=>a.parentName=r,maxlength:15,rules:[{required:!0,message:"\u8BF7\u586B\u5199\u5BB6\u957F\u771F\u5B9E\u59D3\u540D"}]},null),t(x,{required:!0,label:"\u624B\u673A\u53F7",inputAlign:"right",placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7",modelValue:a.phone,"onUpdate:modelValue":r=>a.phone=r,maxlength:11,type:"tel",rules:[{pattern:n.pattern,message:"\u8F93\u5165\u76D1\u62A4\u4EBA\u624B\u673A\u53F7\u7801\u6709\u8BEF"}]},null)]}),t("div",{class:"btnGroup",style:{paddingTop:"30px"}},[t(H,{type:"primary",round:!0,block:!0,"native-type":"submit"},{default:()=>[u("\u4E0B\u4E00\u6B65")]})])]}),t(N,{show:n.gradeStatus,"onUpdate:show":r=>n.gradeStatus=r,position:"bottom",round:!0,safeAreaInsetBottom:!0,lazyRender:!1,class:"popupBottomSearch"},{default:()=>[t(U,{showToolbar:!0,columns:n.currentGrade,onCancel:()=>n.gradeStatus=!1,onConfirm:r=>{const i=r.selectedOptions[0];a.currentGrade=i.value,a.currentGradeTxt=i.text,n.gradeStatus=!1}},null)]}),t(N,{show:n.classStatus,"onUpdate:show":r=>n.classStatus=r,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[t(U,{showToolbar:!0,columns:n.classList,onCancel:()=>n.classStatus=!1,onConfirm:r=>{const i=r.selectedOptions[0];a.currentClass=i.value,a.currentClassTxt=i.text,n.classStatus=!1}},null)]}),t(N,{show:n.subjectStatus,"onUpdate:show":r=>n.subjectStatus=r,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[t(U,{showToolbar:!0,columns:n.subjectList,onCancel:()=>n.subjectStatus=!1,onConfirm:r=>{const i=r.selectedOptions[0];a.registerSubjectId=i.value,a.registerSubjectTxt=i.text,n.subjectStatus=!1}},null)]}),t(J,{show:n.subjectChangeStatus,"onUpdate:show":r=>n.subjectChangeStatus=r,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),u("\u63D0\u793A")])})])}}),D="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",v="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==",mt=V({name:"payment",emits:["next"],setup(){const d=G(),k=O(),e=T({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}),h=async()=>{try{const{data:o}=await y.get("/api-student/sysParamConfig/queryByParamName",{params:{paramName:"payment_service_provider"}});e.paymentType=o.paramValue||""}catch{}},F=async()=>{try{const{data:o}=await y.get("/api-student/userPaymentOrder/unpaid");o.id&&(e.dialogMessage="\u60A8\u6709\u5F85\u652F\u4ED8\u7684\u8BA2\u5355\uFF0C\u662F\u5426\u7EE7\u7EED\u652F\u4ED8",e.dialogStatus=!0,e.dialogConfig=o)}catch{}},n=async()=>{try{const{data:o}=await y.get("/api-student/orchestraRegister/registerGoods/"+d.query.id);e.musicPaymentType=o.paymentServiceProvider||"",(o.paymentOrderDetails||[]).forEach(c=>{e.paymentOrderDetails.push(c.goodsType)});const i=o.details||[];i.forEach(c=>{if(c.goodsType==="INSTRUMENTS"){const m=c.goodsUrl?c.goodsUrl.split(",")[0]:"";e.goodsInfo={...c,goodsUrl:m}}else if(c.goodsType==="TEXTBOOK"){const m=c.goodsUrl?c.goodsUrl.split(",")[0]:"";e.textBookInfo={...c,goodsUrl:m}}else if(c.goodsType==="REPAIR")e.repaireInfo={...c};else if(c.goodsType==="VIP")e.vipInfo={...c},e.isVip=!0;else if(c.goodsType==="DEPOSIT"){e.isDeposit=!0;const m=i.find(f=>f.goodsType==="VIP");m&&(c.originalPrice=m.currentPrice,e.depositInfo={...c})}e.details=i,!e.paymentOrderDetails.includes(c.goodsType)&&c.goodsType=="TEXTBOOK"&&e.check.push(c.goodsId)}),g()}catch{}},a=o=>{e.checkboxRefs[o].toggle(),g()},g=()=>{const o=e.details,r={needPrice:0,originalPrice:0};o.forEach(i=>{e.check.includes(i.goodsId)&&!e.paymentOrderDetails.includes(i.goodsType)&&(r.needPrice+=parseFloat(i.currentPrice||0),r.originalPrice+=parseFloat(i.originalPrice||0))}),e.orderInfo=r,l()},p=T({needPrice:null,originalPrice:null}),l=()=>{P(()=>{p.needPrice?p.needPrice.update(e.orderInfo.needPrice):(p.needPrice=new re("needPrice",e.orderInfo.needPrice,{decimalPlaces:2}),p.needPrice.error?console.error(p.needPrice.error):p.needPrice.start())})},I=async()=>{try{if(e.check.length<=0){K("\u8BF7\u9009\u62E9\u60A8\u8981\u8D2D\u4E70\u7684\u5546\u54C1");return}g();const o=[],r=e.details;let i=!1;r.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)&&(i=!1)});const c=e.repaireInfo;i&&c.goodsId&&o.push({goodsId:c.goodsId,goodsNum:1,goodsType:c.goodsType,paymentCashAmount:c.currentPrice,paymentCouponAmount:0});const{data:m}=await y.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(m),k.push({path:"/orderDetail",query:{pm:1,config:JSON.stringify({...m.paymentConfig,paymentType:m.paymentType}),orderNo:m.orderNo}})}catch(o){console.log(o)}};return j(()=>{h(),n(),F()}),()=>t(q,null,[t("div",{class:s.applyTitle},[u("\u62A5\u540D\u987B\u77E5")]),t("div",{class:[s.paymentTips,s.mlr13]},[t("p",null,[u("1\u3001"),t("span",null,[u("\u4E50\u56E2\u514D\u8D39\u653F\u7B56")]),u("\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,[u("2\u3001"),t("span",null,[u("\u5165\u56E2\u5FC5\u5907\u5DE5\u5177")]),u("\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,[u("3\u3001"),t("span",null,[u("\u5165\u56E2\u5FC5\u5907\u5DE5\u5177\u51C6\u5907\u7684\u539F\u5219")]),u("\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,[u("4\u3001"),t("span",null,[u("\u6E29\u99A8\u63D0\u793A")]),u("\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(le,{modelValue:e.check,"onUpdate:modelValue":o=>e.check=o,style:{paddingBottom:"20px"},onChange:()=>{g()}},{default:()=>[!e.paymentOrderDetails.includes("VIP")&&!e.isDeposit&&t(_,{inset:!0,class:[s.mlr13,s.sectionCell],onClick:()=>a(e.vipInfo.goodsId)},{default:()=>[t(A,{border:!1},{icon:()=>t(B,{name:e.vipInfo.goodsId,class:s.checkbox,ref:o=>e.checkboxRefs[e.vipInfo.goodsId]=o,onClick:o=>{o.stopPropagation()}},{icon:o=>t(w,{class:s.iconChecked,name:o.checked?D:v},null)}),title:()=>t("div",{class:s.section},[t(E,{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(S,{color:"linear-gradient(135deg, #FF8C4A 0%, #FF531C 100%)",textColor:"#fff",class:s.brandName},{default:()=>[u("6\u4E2A\u6708")]}),t("p",{class:[s.model,"van-multi-ellipsis--l2"]},[e.vipInfo.description])])])}),t(A,null,{title:()=>t("div",{class:s.extra},[t("div",{class:s.sectionPrice},[t("p",{class:s.price},[u("\u56E2\u8D2D\u4EF7\uFF1A"),t("span",{class:s.numFont},[t("span",{class:s.numPrefix},[u("\xA5")]),C(e.vipInfo.currentPrice)])]),t("p",{class:s.originPrice},[u("\u539F\u4EF7\uFF1A"),t("del",{class:s.numFont},[u("\xA5 "),C(e.vipInfo.originalPrice)])])])])})]}),!e.paymentOrderDetails.includes("DEPOSIT")&&e.isVip&&t(_,{inset:!0,class:[s.mlr13,s.sectionCell],onClick:()=>a(e.depositInfo.goodsId)},{default:()=>[t(A,{border:!1},{icon:()=>t(B,{name:e.depositInfo.goodsId,class:s.checkbox,ref:o=>e.checkboxRefs[e.depositInfo.goodsId]=o,onClick:o=>{o.stopPropagation()}},{icon:o=>t(w,{class:s.iconChecked,name:o.checked?D:v},null)}),title:()=>t("div",{class:s.section},[t(E,{class:s.img,src:e.depositInfo.goodsUrl,onClick:o=>{o.stopPropagation(),e.memberBaoStatus=!0}},null),t("div",{class:s.sectionContent},[t("h2",{onClick:o=>{o.stopPropagation(),e.memberBaoStatus=!0}},[e.depositInfo.goodsName]),t(S,{color:"linear-gradient(135deg, #FF8C4A 0%, #FF531C 100%)",textColor:"#fff",class:s.brandName},{default:()=>[u("6\u4E2A\u6708")]}),t("p",{class:[s.model,"van-multi-ellipsis--l2"]},[e.depositInfo.description])])])}),t(A,null,{title:()=>t("div",{class:s.extra},[t("div",{class:s.sectionPrice},[t("p",{class:s.price},[u("\u5B9A\u91D1\uFF1A"),t("span",{class:s.numFont},[t("span",{class:s.numPrefix},[u("\xA5")]),C(e.depositInfo.currentPrice)])]),t("p",{class:s.originPrice},[u("\u56E2\u8D2D\u4EF7\uFF1A"),t("span",{class:s.numFont},[u("\xA5 "),C(e.depositInfo.originalPrice)])])])])})]}),!e.paymentOrderDetails.includes("INSTRUMENTS")&&t(_,{inset:!0,class:[s.mlr13,s.sectionCell],onClick:()=>a(e.goodsInfo.goodsId)},{default:()=>[t(A,{border:!1},{icon:()=>t(B,{name:e.goodsInfo.goodsId,class:s.checkbox,ref:o=>e.checkboxRefs[e.goodsInfo.goodsId]=o,onClick:o=>{o.stopPropagation()}},{icon:o=>t(w,{class:s.iconChecked,name:o.checked?D:v},null)}),title:()=>t("div",{class:s.section},[t(E,{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(S,{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(A,{border:!1},{title:()=>t("div",{class:s.extra},[t("div",{class:s.sectionPrice},[t("p",{class:s.price},[u("\u56E2\u8D2D\u4EF7\uFF1A"),t("span",{class:s.numFont},[t("span",{class:s.numPrefix},[u("\xA5 ")]),C(e.goodsInfo.currentPrice)])]),t("p",{class:s.originPrice},[u("\u539F\u4EF7\uFF1A"),t("del",{class:s.numFont},[u("\xA5 "),C(e.goodsInfo.originalPrice)])])])])})]}),!e.paymentOrderDetails.includes("TEXTBOOK")&&t(_,{inset:!0,class:[s.mlr13,s.sectionCell],onClick:()=>{}},{default:()=>[t(A,{border:!1},{icon:()=>t(B,{name:e.textBookInfo.goodsId,disabled:!0,class:s.checkbox,ref:o=>e.checkboxRefs[e.textBookInfo.goodsId]=o,onClick:o=>{o.stopPropagation()}},{icon:o=>t(w,{class:s.iconChecked,name:o.checked?D:v},null)}),title:()=>t("div",{class:s.section},[t(E,{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(S,{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(A,null,{title:()=>t("div",{class:s.extra},[t("div",{class:s.sectionPrice},[t("p",{class:s.price},[u("\u56E2\u8D2D\u4EF7\uFF1A"),t("span",{class:[e.textBookInfo.currentPrice>0?s.numFont:s.free]},[e.textBookInfo.currentPrice>0?t(q,null,[t("span",{class:s.numPrefix},[u("\xA5 ")]),C(e.textBookInfo.currentPrice)]):"\u514D\u8D39"])]),t("p",{class:s.originPrice},[u("\u539F\u4EF7\uFF1A"),t("del",{class:s.numFont},[u("\xA5 "),C(e.textBookInfo.originalPrice)])])])])})]})]}),t(ae,{position:"bottom",background:"white"},{default:()=>[t("div",{class:s.paymentContainer},[t("div",{class:s.payemntPrice},[t("p",{class:s.needPrice},[u("\u652F\u4ED8\u91D1\u989D\uFF1A"),t("span",{class:s.numFont},[t("span",null,[u("\xA5 ")]),t("i",{style:"font-style: normal",id:"needPrice"},null)])]),t("p",{class:s.allPrice},[t("del",{class:s.numFont},[u("\u603B\u539F\u4EF7\uFF1A\xA5 "),C(e.orderInfo.originalPrice)])])]),t("div",{class:s.paymentBtn},[t(H,{color:"linear-gradient(135deg, #FF8C4A 0%, #FF531C 100%)",round:!0,onClick:I},{default:()=>[u("\u7ACB\u5373\u63D0\u4EA4")]})])])]}),t(M,{modelValue:e.memberBaoStatus,"onUpdate:modelValue":o=>e.memberBaoStatus=o,position:"right"},{default:()=>[t(ne,null,null)]}),t(M,{modelValue:e.goodsStatus,"onUpdate:modelValue":o=>e.goodsStatus=o,position:"right",destroy:!0},{default:()=>[e.goodsStatus&&t(ue,{id:e.selectGoodsId,groupPrice:e.currentPrice,goodsInfo:e.selectGoodsInfo},null)]}),t(X,{title:"\u63D0\u793A",show:e.dialogStatus,"onUpdate:show":o=>e.dialogStatus=o,message:e.dialogMessage,confirmButtonText:"\u7EE7\u7EED\u652F\u4ED8",cancelButtonText:"\u53D6\u6D88\u8BA2\u5355",showCancelButton:!0,onConfirm:()=>{const o=e.dialogConfig.paymentConfig;k.push({path:"/orderDetail",query:{pm:1,config:JSON.stringify(o.paymentConfig),orderNo:o.orderNo}})},onCancel:async()=>{try{await y.post("/api-student/userPaymentOrder/cancelPayment/"+e.dialogConfig.orderNo)}catch{}}},null)])}});function ft(d){return typeof d=="function"||Object.prototype.toString.call(d)==="[object Object]"&&!W(d)}var yt=V({name:"order",emits:["next"],setup(){const d=O(),k=G(),e=T({isClick:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{page:1,rows:20},resionList:[],refundStatus:!1,resion:null,refundSelect:{},checked:null}),h=async()=>{try{if(e.isClick)return;e.isClick=!0;const n=await y.post("/api-student/userPaymentOrder/page",{data:{...e.params,bizId:k.query.id,goodsQuery:!0}});e.listState.loading=!1;const a=n.data||{};if(e.list.length>0&&a.current===1)return;const g=a.rows||[];g.goodsInfos&&g.goodsInfos.forEach(p=>{const l=p.goodsUrl?p.goodsUrl.split(",")[0]:"";p.goodsUrl=l}),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}},F=n=>{d.push({path:"payment-result",query:{orderNo:n.orderNo,refund:"refund"}})};return j(()=>{h()}),()=>{let n;return t("div",{style:{paddingTop:"20px"}},[e.listState.dataShow?t(ce,{finished:e.listState.finished,finishedText:" ",class:[s.liveList],onLoad:h,immediateCheck:!1},ft(n=e.list.map(a=>t(_,{inset:!0,class:s.orderCellGroup,onClick:()=>F(a)},{default:()=>[t(A,{title:a.createTime,titleClass:s.payTime,value:ie[a.status],valueClass:a.status==="WAIT_PAY"?s.payStatus:a.status==="PAID"?s.paySuccess:""},null),t(A,{border:!1,class:s.imgGroup,center:!0},{title:()=>t("div",{class:s.orderPriceInfo},[t(de,{border:!1,columnNum:3},{default:()=>[a.goodsInfos&&a.goodsInfos.map((g,p)=>p<3&&t(pe,null,{default:()=>[t(E,{class:s.img,src:g.goodsUrl},null)]}))]}),t("div",{class:s.orderPriceNum},[t("div",{class:s.opNums},[t("span",null,[u("\xA5 ")]),C(a.currentPrice)]),t("div",{class:s.opBuyLength},[u("\u5171"),a.goodsInfos&&a.goodsInfos.length||0,u("\u4EF6")])])])})]})))?n:{default:()=>[n]}):t(Q,{btnStatus:!1,tips:"\u6682\u65E0\u8BA2\u5355"},null)])}}}),Mt=V({name:"pre-apply",setup(){const d=G(),k=O(),e=T({tabValue:"apply",heightV:235,registerInfo:{},purchase:!1,register:!0,code:"",dialogStatus:!1,dialogMessage:"",testIsWeixin:!1}),h=L(!1),F=L(["1656572729093021697","1656488025144713217","1661221287237820418","1661222465069686785"]);console.log("\u63D0\u793A\u4E50\u56E2\u62A5\u540D\u5931\u8D25",d.query.id,F.value.indexOf(d.query.id)),d.query.id&&F.value.indexOf(d.query.id)!=-1&&(console.log("\u63D0\u793A\u4E50\u56E2\u62A5\u540D\u5931\u8D25"),h.value=!0);const n=async l=>{l==="payment"&&await a(),P(()=>{e.tabValue=l,window.scrollTo(0,0)})},a=async()=>{try{const{data:l}=await y.get("/api-student/orchestraRegister/registerStatus/"+d.query.id);e.registerInfo=l||{},l.registerStatus==="OUTOF_ORCHESTRA"?P(()=>{e.tabValue="apply"}):(e.register=l.register,l.register&&P(()=>{e.tabValue="payment"}),l.purchase&&(e.purchase=l.purchase,P(()=>{e.tabValue="order"})));const I=l.status;if(I!=="REGISTER"&&I!=="DOING"&&I!=="DONE"){e.dialogMessage="\u4E50\u56E2\u5EFA\u8BBE\u4E2D\uFF0C\u8BF7\u7A0D\u7B49",e.dialogStatus=!0;return}if(l.registerOrchestra>=1){e.dialogMessage="\u60A8\u5DF2\u5728\u5176\u5B83\u4E50\u56E2",e.dialogStatus=!0;return}}catch{}},g=async l=>{if(l==="apply")try{const{data:I}=await y.get("/api-student/orchestraRegister/registerStatus/"+d.query.id);e.registerInfo=I||{}}catch{}window.scrollTo(0,0)},p=async()=>{try{const{data:l}=await y.get("/api-student/open/paramConfig/wechatAppId");l&&te(l)}catch{}};if(e.testIsWeixin)a();else if($().weixin){const l=ee();l?(e.code=l,a()):p()}else{z();const l={returnUrl:d.path,...d.query};k.replace({path:"/loginMusic",query:l})}return()=>t("div",{class:s.preApply},[t("div",{class:s.banner},[t("p",{class:s.orchestraName},[e.registerInfo.orchestraName])]),t(ge,{position:"top"},{default:()=>[t(me,{lineWidth:20,lineHeight:4,active:e.tabValue,"onUpdate:active":l=>e.tabValue=l,onChange:l=>g(l)},{default:()=>[t(R,{title:"\u57FA\u7840\u4FE1\u606F",name:"apply",disabled:e.purchase},null),t(R,{title:"\u5DE5\u5177\u51C6\u5907",name:"payment",disabled:e.purchase||!e.register},null),t(R,{title:"\u5B8C\u6210\u62A5\u540D",name:"order",disabled:!e.register},null)]})]}),e.tabValue==="apply"&&t(gt,{onNext:n,code:e.code,registerInfo:e.registerInfo,schoolSystem:e.registerInfo.schoolSystem},null),e.tabValue==="payment"&&t(mt,{onNext:n},null),e.tabValue==="order"&&t(yt,{onNext:n},null),t(X,{title:"\u63D0\u793A",show:e.dialogStatus,"onUpdate:show":l=>e.dialogStatus=l,message:e.dialogMessage,confirmButtonText:"\u786E\u5B9A",onConfirm:()=>{z();const l={returnUrl:d.path,...d.query};k.replace({path:"/loginMusic",query:l})}},null),t(N,{show:h.value,"onUpdate:show":l=>h.value=l,round:!0,style:{width:"88%",marginTop:"-6vh"},closeOnClickOverlay:!1,class:s.wxPopupDialog},{default:()=>[t("div",{class:s.popupContainer},[t("p",{class:s.title1},[u("\u6E29\u99A8\u63D0\u793A")]),t("p",{class:s.popupTips},[u("\u4E50\u56E2\u62A5\u540D\u65F6\u95F4\u5DF2\u8FC7\uFF0C\u8BF7\u7B49\u5F85\u901A\u77E5")])])]})])}});export{Mt as default};
|