index.11788e01.js 27 KB

1
  1. import{d as D,ah as N,ag as z,r as T,$ as j,c as t,q as u,o as K,B as H,P as B,a$ as J,m,F as b,a5 as w,b6 as I,_ as E,ak as Q,al as W,R as q,f as $,bd as ee,bn as L,bf as te}from"./index.d1dca38b.js";import{F as oe}from"./index.28075d63.js";import{C as S}from"./index.1383acec.js";import{F as v}from"./index.a5f38096.js";import{R as se,a as Y}from"./index.db6e33f6.js";import{T as P}from"./index.3d816bd4.js";import{P as G}from"./index.dae33edc.js";import{O as ae}from"./index.3aa1e6eb.js";import{C as re}from"./countUp.min.9e8207da.js";import{O as M}from"./index.6af77b17.js";import{M as ne,G as ue}from"./index.9c13aaf2.js";import{O as X}from"./index.a817bb82.js";import{C as le}from"./index.73c84024.js";import{C as V}from"./index.9108e7ed.js";import{C as _}from"./index.2f930c00.js";import{I as k}from"./index.6c52b1a0.js";import{b as ie}from"./index.b28db9f5.js";import{L as ce}from"./index.876ff047.js";import{G as de,a as pe}from"./index.f1c221bd.js";import{S as ge}from"./index.3b296605.js";import{T as me,a as U}from"./index.06e8d826.js";import"./Checker.d2072e67.js";import"./Picker.7620f03c.js";import"./index.339fc024.js";import"./function-call.2cae6d97.js";import"./ImagePreview.f958365a.js";import"./index.c324c166.js";import"./use-tab-status.03ea8dd0.js";const fe="_preApply_1vz7y_1",ye="_popupContainer_1vz7y_15",he="_dialogTitle_1vz7y_19",Fe="_popupTips_1vz7y_35",Ce="_title1_1vz7y_40",Ae="_banner_1vz7y_55",Ie="_orchestraName_1vz7y_61",_e="_applyTitle_1vz7y_69",ve="_applyTips_1vz7y_86",Se="_applyCellGroup_1vz7y_91",Te="_radioSection_1vz7y_98",xe="_radioItem_1vz7y_103",be="_mlr13_1vz7y_114",Ee="_paymentTips_1vz7y_117",Pe="_paymentContainer_1vz7y_131",Be="_needPrice_1vz7y_138",ke="_allPrice_1vz7y_153",De="_sectionCell_1vz7y_161",Ne="_checkbox_1vz7y_171",ze="_extra_1vz7y_174",we="_sectionPrice_1vz7y_177",Ge="_price_1vz7y_184",Ve="_free_1vz7y_197",Ue="_gives_1vz7y_200",Oe="_sectionTips_1vz7y_205",Re="_iconGives_1vz7y_214",je="_iconChecked_1vz7y_219",qe="_numFont_1vz7y_235",Le="_numPrefix_1vz7y_238",Ye="_section_1vz7y_161",Me="_img_1vz7y_245",Ke="_brandName_1vz7y_259",He="_model_1vz7y_265",Xe="_orderCellGroup_1vz7y_271",Ze="_payTime_1vz7y_278",Je="_payStatus_1vz7y_283",Qe="_paySuccess_1vz7y_286",We="_imgGroup_1vz7y_289",$e="_orderPriceInfo_1vz7y_301",et="_orderPriceNum_1vz7y_308",tt="_opNums_1vz7y_316",ot="_opBuyLength_1vz7y_326",st="_btnGroup_1vz7y_331",at="_btnPrice_1vz7y_334",rt="_btns_1vz7y_353",nt="_preApplyC_1vz7y_356",ut="_dialogRefund_1vz7y_376",lt="_refundContent_1vz7y_379",it="_tips_1vz7y_382",ct="_container_1vz7y_387",dt="_refundTitle_1vz7y_391",pt="_phoneName_1vz7y_401";var o={preApply:fe,popupContainer:ye,dialogTitle:he,popupTips:Fe,title1:Ce,banner:Ae,orchestraName:Ie,applyTitle:_e,applyTips:ve,applyCellGroup:Se,radioSection:Te,radioItem:xe,mlr13:be,paymentTips:Ee,paymentContainer:Pe,needPrice:Be,allPrice:ke,sectionCell:De,checkbox:Ne,extra:ze,sectionPrice:we,price:Ge,free:Ve,gives:Ue,sectionTips:Oe,iconGives:Re,iconChecked:je,numFont:qe,numPrefix:Le,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:ot,btnGroup:st,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=D({name:"apply",props:{schoolSystem:{type:String,default:"sixYearSystem"},registerInfo:{type:Object,defualt:{}},code:{type:String,default:""}},emits:["next"],setup(d,{slots:A,attrs:e,emit:h}){const F=N();z();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 m.get("/api-student/orchestraRegister/register/"+F.query.id),i=r||{};n.detail=i;const c=n.currentGrade.find(x=>x.value==i.currentGrade),f=n.classList.find(x=>x.value==i.currentClass),y=n.subjectList.find(x=>x.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=f?f.text:"",a.registerSubjectId=i.registerSubjectId,a.registerSubjectTxt=y?y.text:"",a.parentName=i.parentName,a.phone=i.phone}catch(r){console.log(r)}},p=async()=>{try{((await m.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,C=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",s=async()=>{try{const r={orchestraId:F.query.id,schoolId:n.detail.schoolId,...a};n.detail.id&&(r.id=n.detail.id),await m.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:o.preApplyC},[t(oe,{validateFirst:!0,scrollToError:!0,onSubmit:s,ref:"form",class:o.form},{default:()=>[t("div",{class:o.applyTitle},[u("\u5B66\u5458\u4FE1\u606F")]),t(S,{inset:!0,class:o.applyCellGroup},{default:()=>[t(v,{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:C}]},null),t(v,{required:!0,label:"\u6027\u522B",inputAlign:"right",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6027\u522B"}]},{input:()=>t(se,{modelValue:a.sex,"onUpdate:modelValue":r=>a.sex=r},{default:()=>[t(P,{size:"large",type:"primary",color:a.sex!==1?"#EAEAEA":"#FF8057",textColor:a.sex!==1?"#AAA":"#FFF",class:o.radioSection,round:!0},{default:()=>[t(Y,{class:o.radioItem,name:1},null),u("\u7537\u751F")]}),t(P,{size:"large",type:"primary",color:a.sex!==0?"#EAEAEA":"#FF8057",textColor:a.sex!==0?"#AAA":"#FFF",class:o.radioSection,round:!0},{default:()=>[t(Y,{class:o.radioItem,name:0},null),u("\u5973\u751F")]})]})}),t(v,{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(v,{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:o.applyTitle},[u("\u58F0\u90E8\u4FE1\u606F")]),t("div",{class:o.applyTips},[u("(\u8BF7\u52A1\u5FC5\u6309\u7167\u5B66\u751F\u7684\u5F55\u53D6\u58F0\u90E8\u586B\u62A5)")]),t(S,{inset:!0,class:o.applyCellGroup},{default:()=>[t(v,{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:o.applyTitle},[u("\u5BB6\u957F\u4FE1\u606F")]),t(S,{inset:!0,class:o.applyCellGroup},{default:()=>[t(v,{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(v,{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(B,{show:n.gradeStatus,"onUpdate:show":r=>n.gradeStatus=r,position:"bottom",round:!0,safeAreaInsetBottom:!0,lazyRender:!1,class:"popupBottomSearch"},{default:()=>[t(G,{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(B,{show:n.classStatus,"onUpdate:show":r=>n.classStatus=r,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[t(G,{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(B,{show:n.subjectStatus,"onUpdate:show":r=>n.subjectStatus=r,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[t(G,{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:o.dialogTitle},[t("i",null,null),u("\u63D0\u793A")])})])}}),O="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",R="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=D({name:"payment",emits:["next"],setup(){const d=N(),A=z(),e=T({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:"",dialogConfig:{}}),h=async()=>{try{const{data:s}=await m.get("/api-student/sysParamConfig/queryByParamName",{params:{paramName:"payment_service_provider"}});e.paymentType=s.paramValue||""}catch{}},F=async()=>{try{const{data:s}=await m.get("/api-student/userPaymentOrder/unpaid");s.id&&(e.dialogMessage="\u60A8\u6709\u5F85\u652F\u4ED8\u7684\u8BA2\u5355\uFF0C\u662F\u5426\u7EE7\u7EED\u652F\u4ED8",e.dialogStatus=!0,e.dialogConfig=s)}catch{}},n=async()=>{try{const{data:s}=await m.get("/api-student/orchestraRegister/registerGoods/"+d.query.id);e.musicPaymentType=s.paymentServiceProvider||"",(s.paymentOrderDetails||[]).forEach(c=>{e.paymentOrderDetails.push(c.goodsType)});const i=s.details||[];i.forEach(c=>{if(c.goodsType==="INSTRUMENTS"){const f=c.goodsUrl?c.goodsUrl.split(",")[0]:"";e.goodsInfo={...c,goodsUrl:f}}else if(c.goodsType==="TEXTBOOK"){const f=c.goodsUrl?c.goodsUrl.split(",")[0]:"";e.textBookInfo={...c,goodsUrl:f}}else c.goodsType==="REPAIR"?e.repaireInfo={...c}:c.goodsType==="VIP"&&(e.vipInfo={...c});e.details=i,!e.paymentOrderDetails.includes(c.goodsType)&&c.goodsType=="TEXTBOOK"&&e.check.push(c.goodsId)}),g()}catch{}},a=s=>{e.checkboxRefs[s].toggle(),g()},g=()=>{const s=e.details,r={needPrice:0,originalPrice:0};s.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=()=>{E(()=>{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())})},C=async()=>{try{if(e.check.length<=0){K("\u8BF7\u9009\u62E9\u60A8\u8981\u8D2D\u4E70\u7684\u5546\u54C1");return}g();const s=[],r=e.details;let i=!1;r.forEach(y=>{e.check.includes(y.goodsId)&&!e.paymentOrderDetails.includes(y.goodsType)&&s.push({goodsId:y.goodsId,goodsNum:1,goodsType:y.goodsType,paymentCashAmount:y.currentPrice,paymentCouponAmount:0}),y.goodsType==="INSTRUMENTS"&&e.check.includes(y.goodsId)&&!e.paymentOrderDetails.includes(y.goodsType)&&(i=!1)});const c=e.repaireInfo;i&&c.goodsId&&s.push({goodsId:c.goodsId,goodsNum:1,goodsType:c.goodsType,paymentCashAmount:c.currentPrice,paymentCouponAmount:0});const{data:f}=await m.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:s,orderName:"\u4E50\u56E2\u62A5\u540D\u7F34\u8D39",orderDesc:"\u4E50\u56E2\u62A5\u540D\u7F34\u8D39"}});console.log(f),A.push({path:"/orderDetail",query:{pm:1,config:JSON.stringify({...f.paymentConfig,paymentType:f.paymentType}),orderNo:f.orderNo}})}catch(s){console.log(s)}};return j(()=>{h(),n(),F()}),()=>t(b,null,[t("div",{class:o.applyTitle},[u("\u62A5\u540D\u987B\u77E5")]),t("div",{class:[o.paymentTips,o.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":s=>e.check=s,style:{paddingBottom:"20px"},onChange:()=>{g()}},{default:()=>[!e.paymentOrderDetails.includes("VIP")&&t(b,null,[t(S,{inset:!0,class:[o.mlr13,o.sectionCell],onClick:()=>a(e.vipInfo.goodsId)},{default:()=>[t(_,{border:!1},{icon:()=>t(V,{name:e.vipInfo.goodsId,class:o.checkbox,ref:s=>e.checkboxRefs[e.vipInfo.goodsId]=s,onClick:s=>{s.stopPropagation()}},{icon:s=>t(w,{class:o.iconChecked,name:s.checked?O:R},null)}),title:()=>t("div",{class:o.section},[t(k,{class:o.img,src:e.vipInfo.goodsUrl,onClick:s=>{s.stopPropagation(),e.memberBaoStatus=!0}},null),t("div",{class:o.sectionContent},[t("h2",{onClick:s=>{s.stopPropagation(),e.memberBaoStatus=!0}},[e.vipInfo.goodsName]),t(P,{color:"linear-gradient(135deg, #FF8C4A 0%, #FF531C 100%)",textColor:"#fff",class:o.brandName},{default:()=>[u("6\u4E2A\u6708")]}),t("p",{class:[o.model,"van-multi-ellipsis--l2"]},[e.vipInfo.description])])])}),t(_,null,{title:()=>t("div",{class:o.extra},[t("div",{class:o.sectionPrice},[t("p",{class:o.price},[u("\u56E2\u8D2D\u4EF7\uFF1A"),t("span",{class:o.numFont},[t("span",{class:o.numPrefix},[u("\xA5")]),I(e.vipInfo.currentPrice)])]),t("p",{class:o.originPrice},[u("\u539F\u4EF7\uFF1A"),t("del",{class:o.numFont},[u("\xA5 "),I(e.vipInfo.originalPrice)])])])])})]})]),!e.paymentOrderDetails.includes("INSTRUMENTS")&&t(b,null,[t(S,{inset:!0,class:[o.mlr13,o.sectionCell],onClick:()=>a(e.goodsInfo.goodsId)},{default:()=>[t(_,{border:!1},{icon:()=>t(V,{name:e.goodsInfo.goodsId,class:o.checkbox,ref:s=>e.checkboxRefs[e.goodsInfo.goodsId]=s,onClick:s=>{s.stopPropagation()}},{icon:s=>t(w,{class:o.iconChecked,name:s.checked?O:R},null)}),title:()=>t("div",{class:o.section},[t(k,{class:o.img,src:e.goodsInfo.goodsUrl,onClick:s=>{s.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:o.sectionContent},[t("h2",{onClick:s=>{s.stopPropagation(),e.selectGoodsId=e.goodsInfo.goodsId,e.currentPrice=e.goodsInfo.currentPrice,e.goodsStatus=!0}},[e.goodsInfo.goodsName]),t(P,{color:"linear-gradient(135deg, #FF8C4A 0%, #FF531C 100%)",textColor:"#fff",class:o.brandName},{default:()=>[e.goodsInfo.brandName]}),t("p",{class:[o.model,"van-multi-ellipsis--l2"]},[e.goodsInfo.description])])])}),t(_,{border:!1},{title:()=>t("div",{class:o.extra},[t("div",{class:o.sectionPrice},[t("p",{class:o.price},[u("\u56E2\u8D2D\u4EF7\uFF1A"),t("span",{class:o.numFont},[t("span",{class:o.numPrefix},[u("\xA5 ")]),I(e.goodsInfo.currentPrice)])]),t("p",{class:o.originPrice},[u("\u539F\u4EF7\uFF1A"),t("del",{class:o.numFont},[u("\xA5 "),I(e.goodsInfo.originalPrice)])])])])})]})]),!e.paymentOrderDetails.includes("TEXTBOOK")&&t(b,null,[t(S,{inset:!0,class:[o.mlr13,o.sectionCell],onClick:()=>{}},{default:()=>[t(_,{border:!1},{icon:()=>t(V,{name:e.textBookInfo.goodsId,disabled:!0,class:o.checkbox,ref:s=>e.checkboxRefs[e.textBookInfo.goodsId]=s,onClick:s=>{s.stopPropagation()}},{icon:s=>t(w,{class:o.iconChecked,name:s.checked?O:R},null)}),title:()=>t("div",{class:o.section},[t(k,{class:o.img,src:e.textBookInfo.goodsUrl,onClick:s=>{s.stopPropagation(),e.selectGoodsId=e.textBookInfo.goodsId,e.currentPrice=e.textBookInfo.currentPrice,e.selectGoodsInfo={},e.goodsStatus=!0}},null),t("div",{class:o.sectionContent},[t("h2",{onClick:s=>{s.stopPropagation(),e.selectGoodsId=e.textBookInfo.goodsId,e.currentPrice=e.textBookInfo.currentPrice,e.selectGoodsInfo={},e.goodsStatus=!0}},[e.textBookInfo.goodsName]),t(P,{color:"linear-gradient(135deg, #FF8C4A 0%, #FF531C 100%)",textColor:"#fff",class:o.brandName},{default:()=>[e.textBookInfo.brandName]}),t("p",{class:[o.model,"van-multi-ellipsis--l2"]},[e.textBookInfo.description])])])}),t(_,null,{title:()=>t("div",{class:o.extra},[t("div",{class:o.sectionPrice},[t("p",{class:o.price},[u("\u56E2\u8D2D\u4EF7\uFF1A"),t("span",{class:[e.textBookInfo.currentPrice>0?o.numFont:o.free]},[e.textBookInfo.currentPrice>0?t(b,null,[t("span",{class:o.numPrefix},[u("\xA5 ")]),I(e.textBookInfo.currentPrice)]):"\u514D\u8D39"])]),t("p",{class:o.originPrice},[u("\u539F\u4EF7\uFF1A"),t("del",{class:o.numFont},[u("\xA5 "),I(e.textBookInfo.originalPrice)])])])])})]})])]}),t(ae,{position:"bottom",background:"white"},{default:()=>[t("div",{class:o.paymentContainer},[t("div",{class:o.payemntPrice},[t("p",{class:o.needPrice},[u("\u652F\u4ED8\u91D1\u989D\uFF1A"),t("span",{class:o.numFont},[t("span",null,[u("\xA5 ")]),t("i",{style:"font-style: normal",id:"needPrice"},null)])]),t("p",{class:o.allPrice},[t("del",{class:o.numFont},[u("\u603B\u539F\u4EF7\uFF1A\xA5 "),I(e.orderInfo.originalPrice)])])]),t("div",{class:o.paymentBtn},[t(H,{color:"linear-gradient(135deg, #FF8C4A 0%, #FF531C 100%)",round:!0,onClick:C},{default:()=>[u("\u7ACB\u5373\u63D0\u4EA4")]})])])]}),t(M,{modelValue:e.memberBaoStatus,"onUpdate:modelValue":s=>e.memberBaoStatus=s,position:"right"},{default:()=>[t(ne,null,null)]}),t(M,{modelValue:e.goodsStatus,"onUpdate:modelValue":s=>e.goodsStatus=s,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":s=>e.dialogStatus=s,message:e.dialogMessage,confirmButtonText:"\u7EE7\u7EED\u652F\u4ED8",cancelButtonText:"\u53D6\u6D88\u8BA2\u5355",showCancelButton:!0,onConfirm:()=>{const s=e.dialogConfig.paymentConfig;A.push({path:"/orderDetail",query:{pm:1,config:JSON.stringify({...s.paymentConfig,paymentType:s.paymentType}),orderNo:s.orderNo}})},onCancel:async()=>{try{await m.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=D({name:"order",emits:["next"],setup(){const d=z(),A=N(),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 m.post("/api-student/userPaymentOrder/page",{data:{...e.params,bizId:A.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:[o.liveList],onLoad:h,immediateCheck:!1},ft(n=e.list.map(a=>t(S,{inset:!0,class:o.orderCellGroup,onClick:()=>F(a)},{default:()=>[t(_,{title:a.createTime,titleClass:o.payTime,value:ie[a.status],valueClass:a.status==="WAIT_PAY"?o.payStatus:a.status==="PAID"?o.paySuccess:""},null),t(_,{border:!1,class:o.imgGroup,center:!0},{title:()=>t("div",{class:o.orderPriceInfo},[t(de,{border:!1,columnNum:3},{default:()=>[a.goodsInfos&&a.goodsInfos.map((g,p)=>p<3&&t(pe,null,{default:()=>[t(k,{class:o.img,src:g.goodsUrl},null)]}))]}),t("div",{class:o.orderPriceNum},[t("div",{class:o.opNums},[t("span",null,[u("\xA5 ")]),I(a.currentPrice)]),t("div",{class:o.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=D({name:"pre-apply",setup(){const d=N(),A=z(),e=T({tabValue:"apply",heightV:235,registerInfo:{},purchase:!1,register:!0,code:"",dialogStatus:!1,dialogMessage:"",testIsWeixin:!1}),h=q(!1),F=q(["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(),E(()=>{e.tabValue=l,window.scrollTo(0,0)})},a=async()=>{try{const{data:l}=await m.get("/api-student/orchestraRegister/registerStatus/"+d.query.id);e.registerInfo=l||{},l.registerStatus==="OUTOF_ORCHESTRA"?E(()=>{e.tabValue="apply"}):(e.register=l.register,l.register&&E(()=>{e.tabValue="payment"}),l.purchase&&(e.purchase=l.purchase,E(()=>{e.tabValue="order"})));const C=l.status;if(C!=="REGISTER"&&C!=="DOING"&&C!=="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:C}=await m.get("/api-student/orchestraRegister/registerStatus/"+d.query.id);e.registerInfo=C||{}}catch{}window.scrollTo(0,0)},p=async()=>{try{const{data:l}=await m.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{L();const l={returnUrl:d.path,...d.query};A.replace({path:"/loginMusic",query:l})}return()=>t("div",{class:o.preApply},[t("div",{class:o.banner},[t("p",{class:o.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(U,{title:"\u57FA\u7840\u4FE1\u606F",name:"apply",disabled:e.purchase},null),t(U,{title:"\u5DE5\u5177\u51C6\u5907",name:"payment",disabled:e.purchase||!e.register},null),t(U,{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:()=>{L();const l={returnUrl:d.path,...d.query};A.replace({path:"/loginMusic",query:l})}},null),t(B,{show:h.value,"onUpdate:show":l=>h.value=l,round:!0,style:{width:"88%",marginTop:"-6vh"},closeOnClickOverlay:!1,class:o.wxPopupDialog},{default:()=>[t("div",{class:o.popupContainer},[t("p",{class:o.title1},[u("\u6E29\u99A8\u63D0\u793A")]),t("p",{class:o.popupTips},[u("\u4E50\u56E2\u62A5\u540D\u65F6\u95F4\u5DF2\u8FC7\uFF0C\u8BF7\u7B49\u5F85\u901A\u77E5")])])]})])}});export{Mt as default};