index.823df68f.js 28 KB

1
  1. import{d as N,ah as D,ag as w,r as x,$ as L,c as t,q as l,o as H,B as X,P as q,a$ as Q,m as f,F as E,a5 as G,b6 as I,_ as B,ak as W,al as $,R as z,f as ee,bd as te,bo as M,bg as se}from"./index.3b0304e1.js";import{F as oe}from"./index.47222a40.js";import{C as S}from"./index.ead63c4f.js";import{F as T}from"./index.f8e9940f.js";import{R as ae,a as Y}from"./index.77c4c772.js";import{T as k}from"./index.1e205a49.js";import{I as v}from"./index.710cd200.js";import{P as V}from"./index.49feb9e9.js";import{s as re}from"./function-call.461228ec.js";import{O as ue}from"./index.454c666f.js";import{C as ne}from"./countUp.min.9e8207da.js";import{O as K}from"./index.a20d72f1.js";import{M as le,G as ie}from"./index.07c18842.js";import{O as Z}from"./index.495ac005.js";import{C as ce}from"./index.ff2bdbbe.js";import{C as R}from"./index.7070fc63.js";import{C as _}from"./index.ff3f298b.js";import{b as de}from"./index.b28db9f5.js";import{L as pe}from"./index.179b8d2a.js";import{G as me,a as ge}from"./index.53bfa96a.js";import{S as fe}from"./index.409ae793.js";import{T as ye,a as O}from"./index.c9ab1bb5.js";import"./Checker.d1c194b4.js";import"./Picker.66dfa715.js";import"./ImagePreview.a30a5f94.js";import"./index.ce8d626c.js";import"./use-tab-status.e36e4d74.js";const he="_preApply_1smuq_1",Fe="_popupContainer_1smuq_15",Ce="_dialogTitle_1smuq_19",Ae="_popupTips_1smuq_35",Ie="_title1_1smuq_40",_e="_banner_1smuq_55",Te="_orchestraName_1smuq_61",Se="_instrumentPriceImg_1smuq_69",xe="_applyTitle_1smuq_79",Pe="_applyTips_1smuq_96",be="_applyCellGroup_1smuq_101",Ee="_radioSection_1smuq_108",Be="_radioItem_1smuq_113",ke="_mlr13_1smuq_124",ve="_paymentTips_1smuq_127",qe="_paymentContainer_1smuq_141",Ne="_needPrice_1smuq_148",De="_allPrice_1smuq_163",we="_sectionCell_1smuq_171",Ge="_checkbox_1smuq_181",Ve="_extra_1smuq_184",Re="_sectionPrice_1smuq_187",Oe="_price_1smuq_194",Ue="_free_1smuq_207",je="_gives_1smuq_210",Le="_sectionTips_1smuq_215",ze="_iconGives_1smuq_224",Me="_iconChecked_1smuq_229",Ye="_numFont_1smuq_245",Ke="_numPrefix_1smuq_248",He="_section_1smuq_171",Xe="_img_1smuq_255",Ze="_brandName_1smuq_269",Je="_model_1smuq_275",Qe="_orderCellGroup_1smuq_281",We="_payTime_1smuq_288",$e="_payStatus_1smuq_293",et="_paySuccess_1smuq_296",tt="_imgGroup_1smuq_299",st="_orderPriceInfo_1smuq_311",ot="_orderPriceNum_1smuq_318",at="_opNums_1smuq_326",rt="_opBuyLength_1smuq_336",ut="_btnGroup_1smuq_341",nt="_btnPrice_1smuq_344",lt="_btns_1smuq_363",it="_preApplyC_1smuq_366",ct="_dialogRefund_1smuq_386",dt="_refundContent_1smuq_389",pt="_tips_1smuq_392",mt="_container_1smuq_397",gt="_refundTitle_1smuq_401",ft="_phoneName_1smuq_411";var s={preApply:he,popupContainer:Fe,dialogTitle:Ce,popupTips:Ae,title1:Ie,banner:_e,orchestraName:Te,instrumentPriceImg:Se,applyTitle:xe,applyTips:Pe,applyCellGroup:be,radioSection:Ee,radioItem:Be,mlr13:ke,paymentTips:ve,paymentContainer:qe,needPrice:Ne,allPrice:De,sectionCell:we,checkbox:Ge,extra:Ve,sectionPrice:Re,price:Oe,free:Ue,gives:je,sectionTips:Le,iconGives:ze,iconChecked:Me,numFont:Ye,numPrefix:Ke,section:He,img:Xe,brandName:Ze,model:Je,orderCellGroup:Qe,payTime:We,payStatus:$e,paySuccess:et,imgGroup:tt,orderPriceInfo:st,orderPriceNum:ot,opNums:at,opBuyLength:rt,btnGroup:ut,btnPrice:nt,btns:lt,preApplyC:it,dialogRefund:ct,refundContent:dt,tips:pt,container:mt,refundTitle:gt,phoneName:ft};const J=[];for(let c=1;c<=40;c++)J.push({text:c+"\u73ED",value:c});var yt=N({name:"apply",props:{schoolSystem:{type:String,default:"sixYearSystem"},registerInfo:{type:Object,defualt:{}},code:{type:String,default:""}},emits:["next"],setup(c,{slots:C,attrs:e,emit:y}){const h=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:J,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}),m=async()=>{try{const{data:u}=await f.get("/api-student/orchestraRegister/register/"+h.query.id),n=u||{};r.detail=n;const d=r.currentGrade.find(b=>b.value==n.currentGrade),g=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=d?d.text:"",a.currentClass=n.currentClass,a.currentClassTxt=g?g.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 f.post("/api-student/open/orchestraSubjectConfig/pageByOrchestraId",{data:{orchestraId:h.query.id,page:1,rows:100}})).data.rows||[]).forEach(d=>{r.subjectList.push({text:d.name,value:d.subjectId})})}catch{}},i=u=>r.nameReg.test(u)&&u.length>=2&&u.length<=15,F=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:h.query.id,schoolId:r.detail.schoolId,...a};r.detail.id&&(u.id=r.detail.id),await f.post("/api-student/orchestraRegister/save",{hideLoading:!1,data:{...u,code:c.code}}),setTimeout(()=>{y("next","payment")},100)}catch{}},A=()=>{var u;re([(u=c.registerInfo)==null?void 0:u.instrumentPriceImg])};return L(async()=>{await p(),await m()}),()=>t("div",{class:s.preApplyC},[t(oe,{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(S,{inset:!0,class:s.applyCellGroup},{default:()=>[t(T,{required:!0,label:"\u5B66\u5458\u4FE1\u606F",placeholder:"\u8BF7\u586B\u5199\u5B66\u5458\u771F\u5B9E\u59D3\u540D",inputAlign:"right",modelValue:a.username,"onUpdate:modelValue":d=>a.username=d,maxlength:15,rules:[{validator:i,message:F}]},null),t(T,{required:!0,label:"\u6027\u522B",inputAlign:"right",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6027\u522B"}]},{input:()=>t(ae,{modelValue:a.sex,"onUpdate:modelValue":d=>a.sex=d},{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(T,{required:!0,label:"\u5E74\u7EA7",inputAlign:"right",readonly:!0,isLink:!0,placeholder:"\u8BF7\u9009\u62E9\u5E74\u7EA7",modelValue:a.currentGradeTxt,"onUpdate:modelValue":d=>a.currentGradeTxt=d,onClick:()=>r.gradeStatus=!0,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5E74\u7EA7"}]},null),t(T,{required:!0,label:"\u73ED\u7EA7",inputAlign:"right",readonly:!0,isLink:!0,placeholder:"\u8BF7\u9009\u62E9\u73ED\u7EA7",modelValue:a.currentClassTxt,"onUpdate:modelValue":d=>a.currentClassTxt=d,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(S,{inset:!0,class:s.applyCellGroup},{default:()=>[t(T,{required:!0,label:"\u58F0\u90E8",inputAlign:"right",readonly:!0,isLink:!0,placeholder:"\u8BF7\u9009\u62E9\u58F0\u90E8",modelValue:a.registerSubjectTxt,"onUpdate:modelValue":d=>a.registerSubjectTxt=d,onClick:()=>{var d,g,P;if(r.subjectList.length<=0){H("\u6682\u65E0\u62A5\u540D\u58F0\u90E8");return}if(((d=c.registerInfo)==null?void 0:d.registerStatus)==="LEARNING"||((g=c.registerInfo)==null?void 0:g.registerStatus)==="OUTOF_ORCHESTRA"&&((P=c.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=c.registerInfo)==null?void 0:u.orchestraRegisterType)==="PARENT_CONFERENCES"&&t(v,{src:(n=c.registerInfo)==null?void 0:n.instrumentPriceImg,class:s.instrumentPriceImg,onClick:A},null),t("div",{class:s.applyTitle},[l("\u5BB6\u957F\u4FE1\u606F")]),t(S,{inset:!0,class:s.applyCellGroup},{default:()=>[t(T,{required:!0,label:"\u5BB6\u957F\u59D3\u540D",inputAlign:"right",placeholder:"\u8BF7\u586B\u5199\u5BB6\u957F\u771F\u5B9E\u59D3\u540D",modelValue:a.parentName,"onUpdate:modelValue":d=>a.parentName=d,maxlength:15,rules:[{required:!0,message:"\u8BF7\u586B\u5199\u5BB6\u957F\u771F\u5B9E\u59D3\u540D"}]},null),t(T,{required:!0,label:"\u624B\u673A\u53F7",inputAlign:"right",placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7",modelValue:a.phone,"onUpdate:modelValue":d=>a.phone=d,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(q,{show:r.gradeStatus,"onUpdate:show":u=>r.gradeStatus=u,position:"bottom",round:!0,safeAreaInsetBottom:!0,lazyRender:!1,class:"popupBottomSearch"},{default:()=>[t(V,{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(q,{show:r.classStatus,"onUpdate:show":u=>r.classStatus=u,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[t(V,{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(q,{show:r.subjectStatus,"onUpdate:show":u=>r.subjectStatus=u,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[t(V,{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(Q,{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==",ht=N({name:"payment",emits:["next"],setup(){const c=D(),C=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:"",dialogConfig:{}}),y=async()=>{try{const{data:o}=await f.get("/api-student/sysParamConfig/queryByParamName",{params:{paramName:"payment_service_provider"}});e.paymentType=o.paramValue||""}catch{}},h=async()=>{try{const{data:o}=await f.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{}},r=async()=>{try{const{data:o}=await f.get("/api-student/orchestraRegister/registerGoods/"+c.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 d=n.goodsUrl?n.goodsUrl.split(",")[0]:"";e.goodsInfo={...n,goodsUrl:d}}else if(n.goodsType==="TEXTBOOK"){const d=n.goodsUrl?n.goodsUrl.split(",")[0]:"";e.textBookInfo={...n,goodsUrl:d}}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)}),m()}catch{}},a=o=>{e.checkboxRefs[o].toggle(),m()},m=()=>{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 ne("needPrice",e.orderInfo.needPrice,{decimalPlaces:2}),p.needPrice.error?console.error(p.needPrice.error):p.needPrice.start())})},F=async()=>{try{if(e.check.length<=0){H("\u8BF7\u9009\u62E9\u60A8\u8981\u8D2D\u4E70\u7684\u5546\u54C1");return}m();const o=[],A=e.details;let u=!1;A.forEach(g=>{e.check.includes(g.goodsId)&&!e.paymentOrderDetails.includes(g.goodsType)&&o.push({goodsId:g.goodsId,goodsNum:1,goodsType:g.goodsType,paymentCashAmount:g.currentPrice,paymentCouponAmount:0}),g.goodsType==="INSTRUMENTS"&&e.check.includes(g.goodsId)&&!e.paymentOrderDetails.includes(g.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:d}=await f.post("/api-student/userPaymentOrder/executeOrder",{hideLoading:!1,data:{paymentType:e.musicPaymentType||e.paymentType,bizId:c.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(d),C.push({path:"/orderDetail",query:{pm:1,config:JSON.stringify({...d.paymentConfig,paymentType:d.paymentType}),orderNo:d.orderNo}})}catch(o){console.log(o)}};return L(()=>{y(),r(),h()}),()=>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(ce,{modelValue:e.check,"onUpdate:modelValue":o=>e.check=o,style:{paddingBottom:"20px"},onChange:()=>{m()}},{default:()=>[!e.paymentOrderDetails.includes("VIP")&&t(E,null,[t(S,{inset:!0,class:[s.mlr13,s.sectionCell],onClick:()=>a(e.vipInfo.goodsId)},{default:()=>[t(_,{border:!1},{icon:()=>t(R,{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(S,{inset:!0,class:[s.mlr13,s.sectionCell],onClick:()=>a(e.goodsInfo.goodsId)},{default:()=>[t(_,{border:!1},{icon:()=>t(R,{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(S,{inset:!0,class:[s.mlr13,s.sectionCell],onClick:()=>{}},{default:()=>[t(_,{border:!1},{icon:()=>t(R,{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(ue,{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:F},{default:()=>[l("\u7ACB\u5373\u63D0\u4EA4")]})])])]}),t(K,{modelValue:e.memberBaoStatus,"onUpdate:modelValue":o=>e.memberBaoStatus=o,position:"right"},{default:()=>[t(le,null,null)]}),t(K,{modelValue:e.goodsStatus,"onUpdate:modelValue":o=>e.goodsStatus=o,position:"right",destroy:!0},{default:()=>[e.goodsStatus&&t(ie,{id:e.selectGoodsId,groupPrice:e.currentPrice,goodsInfo:e.selectGoodsInfo},null)]}),t(Z,{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;C.push({path:"/orderDetail",query:{pm:1,config:JSON.stringify({...o.paymentConfig,paymentType:o.paymentType}),orderNo:o.orderNo}})},onCancel:async()=>{try{await f.post("/api-student/userPaymentOrder/cancelPayment/"+e.dialogConfig.orderNo)}catch{}}},null)])}});function Ft(c){return typeof c=="function"||Object.prototype.toString.call(c)==="[object Object]"&&!$(c)}var Ct=N({name:"order",emits:["next"],setup(){const c=w(),C=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}),y=async()=>{try{if(e.isClick)return;e.isClick=!0;const r=await f.post("/api-student/userPaymentOrder/page",{data:{...e.params,bizId:C.query.id,goodsQuery:!0}});e.listState.loading=!1;const a=r.data||{};if(e.list.length>0&&a.current===1)return;const m=a.rows||[];m.goodsInfos&&m.goodsInfos.forEach(p=>{const i=p.goodsUrl?p.goodsUrl.split(",")[0]:"";p.goodsUrl=i}),e.list=e.list.concat(m),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}},h=r=>{c.push({path:"payment-result",query:{orderNo:r.orderNo,refund:"refund"}})};return L(()=>{y()}),()=>{let r;return t("div",{style:{paddingTop:"20px"}},[e.listState.dataShow?t(pe,{finished:e.listState.finished,finishedText:" ",class:[s.liveList],onLoad:y,immediateCheck:!1},Ft(r=e.list.map(a=>t(S,{inset:!0,class:s.orderCellGroup,onClick:()=>h(a)},{default:()=>[t(_,{title:a.createTime,titleClass:s.payTime,value:de[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(me,{border:!1,columnNum:3},{default:()=>[a.goodsInfos&&a.goodsInfos.map((m,p)=>p<3&&t(ge,null,{default:()=>[t(v,{class:s.img,src:m.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(W,{btnStatus:!1,tips:"\u6682\u65E0\u8BA2\u5355"},null)])}}}),Ht=N({name:"pre-apply",setup(){const c=D(),C=w(),e=x({tabValue:"apply",heightV:235,registerInfo:{},purchase:!1,register:!0,code:"",dialogStatus:!1,dialogMessage:"",testIsWeixin:!1}),y=z(!1),h=z(["1656572729093021697","1656488025144713217","1661221287237820418","1661222465069686785"]);console.log("\u63D0\u793A\u4E50\u56E2\u62A5\u540D\u5931\u8D25",c.query.id,h.value.indexOf(c.query.id)),c.query.id&&h.value.indexOf(c.query.id)!=-1&&(console.log("\u63D0\u793A\u4E50\u56E2\u62A5\u540D\u5931\u8D25"),y.value=!0);const r=async i=>{i==="payment"&&await a(),B(()=>{e.tabValue=i,window.scrollTo(0,0)})},a=async()=>{try{const{data:i}=await f.get("/api-student/orchestraRegister/registerStatus/"+c.query.id);e.registerInfo=i||{},i.registerStatus==="OUTOF_ORCHESTRA"?B(()=>{e.tabValue="apply"}):(e.register=i.register,i.register&&B(()=>{e.tabValue="payment"}),i.purchase&&(e.purchase=i.purchase,B(()=>{e.tabValue="order"})));const F=i.status;if(F!=="REGISTER"&&F!=="DOING"&&F!=="DONE"&&F!=="PARENT_TEACHER_REGISTRATION"){e.dialogMessage="\u4E50\u56E2\u5EFA\u8BBE\u4E2D\uFF0C\u8BF7\u7A0D\u7B49",e.dialogStatus=!0;return}if(i.registerOrchestra>=1){e.dialogMessage="\u60A8\u5DF2\u5728\u5176\u5B83\u4E50\u56E2",e.dialogStatus=!0;return}}catch{}},m=async i=>{if(i==="apply")try{const{data:F}=await f.get("/api-student/orchestraRegister/registerStatus/"+c.query.id);e.registerInfo=F||{}}catch{}window.scrollTo(0,0)},p=async()=>{try{const{data:i}=await f.get("/api-student/open/paramConfig/wechatAppId");i&&se(i)}catch{}};if(e.testIsWeixin)a();else if(ee().weixin){const i=te();i?(e.code=i,a()):p()}else{M();const i={returnUrl:c.path,...c.query};C.replace({path:"/loginMusic",query:i})}return()=>t("div",{class:s.preApply},[t("div",{class:s.banner},[t("p",{class:s.orchestraName},[e.registerInfo.orchestraName])]),t(fe,{position:"top"},{default:()=>[t(ye,{lineWidth:20,lineHeight:4,active:e.tabValue,"onUpdate:active":i=>e.tabValue=i,onChange:i=>m(i)},{default:()=>[t(O,{title:"\u57FA\u7840\u4FE1\u606F",name:"apply",disabled:e.purchase},null),t(O,{title:"\u5DE5\u5177\u51C6\u5907",name:"payment",disabled:e.purchase||!e.register},null),t(O,{title:"\u5B8C\u6210\u62A5\u540D",name:"order",disabled:!e.register},null)]})]}),e.tabValue==="apply"&&t(yt,{onNext:r,code:e.code,registerInfo:e.registerInfo,schoolSystem:e.registerInfo.schoolSystem},null),e.tabValue==="payment"&&t(ht,{onNext:r},null),e.tabValue==="order"&&t(Ct,{onNext:r},null),t(Z,{title:"\u63D0\u793A",show:e.dialogStatus,"onUpdate:show":i=>e.dialogStatus=i,message:e.dialogMessage,confirmButtonText:"\u786E\u5B9A",onConfirm:()=>{M();const i={returnUrl:c.path,...c.query};C.replace({path:"/loginMusic",query:i})}},null),t(q,{show:y.value,"onUpdate:show":i=>y.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{Ht as default};