import{g as h,d as C,Q as Te,S as _e,W as ne,j as t,N as Y,A as s,bC as x,B as oe,D as X,y as S,f as te,n as J,T as A,b3 as he,F as V,w as d,$ as Ce,U as q,a3 as Oe,V as Pe,X as Ae,Y as Ie,i as Ne,v as De,aS as re}from"./ResizeObserver.es.b7226882.js";import{C as je}from"./index.3d92d0ba.js";import{C as p}from"./index.40f703b6.js";import{C as b}from"./index.9269bf1e.js";import{C as Le}from"./index.3a3292e3.js";import{U as Ee}from"./index.c1bb54e7.js";import{i as Se,a as Ve,P as xe}from"./index.beac08d2.js";import{R as Ge,a as le}from"./index.83925f29.js";import"./index.b1e15d61.js";import{u as ce}from"./hooks.a4ed20cb.js";import{a as se}from"./icon_checkbox.808b953c.js";import{i as ae}from"./icon_checkbox_default.256c0849.js";import{a as ue}from"./icon_checkbox-tenant.ecfa11df.js";import{C as we}from"./index.969bba7f.js";import{o as n,b as Fe,c as Ue,d as de,r as pe}from"./orderStatus.1ca966f0.js";import{I as O}from"./index.20c0f4c5.js";import{i as M}from"./icon_teacher.40b6f077.js";import{C as K,a as W}from"./index.77212094.js";import{S as ve}from"./index.8d0ef866.js";import{i as me}from"./icon_member.4d7750c3.js";import{a as Re}from"./index.bd8c6150.js";import{T as ke}from"./index.ed3a5560.js";import{g as ze}from"./tradeOrder.b3e670b0.js";import{c as Be,U as Ye}from"./index.15e122d4.js";import{i as qe,b as He}from"./browser.b3690ea1.js";import{C as Me}from"./index.1799aedf.js";import"./index.00914c2e.js";import"./index.af733095.js";import"./index.527ae768.js";import"./index.021f1c7b.js";import"./use-id.5d5e6e63.js";import"./index.9dec3b5d.js";import"./index.016a5975.js";import"./item.a48bb030.js";const $e="_tips_1advv_6",Qe="_paymentInfo_1advv_31",Xe="_protocol_1advv_37",Je="_protocolTenant_1advv_41",Ke="_btnGroup_1advv_48",We="_priceSection_1advv_59",Ze="_goodsNum_1advv_65",et="_price_1advv_59",tt="_priceUnit_1advv_78",rt="_isDiscountPrice_1advv_81",ot="_btnTenant_1advv_84",st="_qrcodePopup_1advv_92",at="_dialogContainer_1advv_96",it="_dialogTitle_1advv_104",nt="_dialogContent_1advv_110",lt="_dialogBtnGroup_1advv_116",ct="_dialogBtn_1advv_116",ut="_cellGroup_1advv_125",dt="_timerTitle_1advv_129",pt="_timer_1advv_129",mt="_timerCell_1advv_144";var _={"order-detail":"_order-detail_1advv_1",tips:$e,paymentInfo:Qe,protocol:Xe,protocolTenant:Je,btnGroup:Ke,priceSection:We,goodsNum:Ze,price:et,priceUnit:tt,isDiscountPrice:rt,btnTenant:ot,qrcodePopup:st,dialogContainer:at,dialogTitle:it,dialogContent:nt,dialogBtnGroup:lt,dialogBtn:ct,cellGroup:ut,timerTitle:dt,timer:pt,timerCell:mt};const yt="_payment_y6th3_1",ft="_boxStyle_y6th3_31",_t="_title_y6th3_37",ht="_payAmount_y6th3_45",vt="_amount_y6th3_55",gt="_blank_y6th3_64",bt="_payTypeRe_y6th3_67",Tt="_recommend_y6th3_75",Ct="_payBtn_y6th3_84",Ot="_tenantPayBtn_y6th3_91";var I={payment:yt,boxStyle:ft,title:_t,payAmount:ht,amount:vt,blank:gt,payTypeRe:bt,recommend:Tt,payBtn:Ct,tenantPayBtn:Ot};const ye=h.platformType==="TEACHER"?"/api-teacher":"/api-student";var Pt=C({name:"payment",props:{modelValue:{type:Boolean,default:!1},paymentConfig:{type:Object,default:()=>({})},paymentVendor:{type:String,default:""},paymentChannels:{type:Array,default:()=>[]}},emits:["backOut","close","confirm","update:modelValue"],setup(e,{emit:r}){const o=Te(),a=_e({payType:"wx",pay_channel:""}),l=()=>{X.confirm({message:"\u662F\u5426\u653E\u5F03\u672C\u6B21\u4ED8\u6B3E",confirmButtonText:"\u7EE7\u7EED\u4ED8\u6B3E",cancelButtonText:"\u653E\u5F03"}).then(()=>{}).catch(async()=>{ce("\u53D6\u6D88\u652F\u4ED8"),await T(),r("close"),ce("\u53D6\u6D88\u652F\u4ED8")})},i=ne(()=>{var m;if(e.paymentVendor==="yeepay"||e.paymentVendor==="adapay")return!0;const u=(m=e.paymentChannels)==null?void 0:m.join(",");return!!(u&&u.indexOf("wxpay")!==-1)}),c=ne(()=>{var m;if(e.paymentVendor==="yeepay"||e.paymentVendor==="adapay")return!0;const u=(m=e.paymentChannels)==null?void 0:m.join(",");return!!(u&&u.indexOf("alipay")!==-1)}),T=async u=>{try{await S.post(ye+"/userOrder/orderCancel",{data:{orderNo:e.paymentConfig.orderNo}})}catch{}r("update:modelValue",!1),u||(te().isApp?J({api:"goBack"}):o.go(-1)),r("backOut")},F=async()=>{console.log(e.paymentVendor,"props.paymentVendor"),e.paymentVendor&&(e.paymentVendor.indexOf("wxpay")>-1||e.paymentVendor.indexOf("alipay")>-1)?U():ie()},U=async()=>{try{const u=a.payType==="zfb"?"ali_app":"wx_app";console.log(e.paymentConfig,"paymentConfig");let m=e.paymentVendor;e.paymentChannels.forEach(G=>{a.payType==="zfb"&&G.indexOf("alipay")!==-1&&(m=G),a.payType==="wx"&&G.indexOf("wxpay")!==-1&&(m=G)});const ee={merOrderNo:e.paymentConfig.orderNo,paymentChannel:u,paymentVendor:m},$=await S.post(ye+"/userOrder/executePayment/v2",{data:{...ee}});J({api:"paymentOrder",content:{orderNo:e.paymentConfig.orderNo,payChannel:u,payInfo:$.data.reqParams.body||JSON.stringify($.data.reqParams)}}),A.loading({message:"\u652F\u4ED8\u4E2D...",forbidClick:!0,duration:3e3,loadingType:"spinner"}),A.clear(),r("update:modelValue",!1),he("paymentOperation",G=>{console.log(G,"init paymentOperation"),Z(G==null?void 0:G.content)})}catch(u){console.log(u)}},Z=u=>{if(console.log(u,"paymentOperation"),u.status==="success"||u.status==="error")A.clear(),r("update:modelValue",!1),o.replace({path:"/tradeDetail",query:{orderNo:e.paymentConfig.orderNo}});else if(u.status==="cancel")A.clear(),r("update:modelValue",!1);else if(u.status==="fail"){const m=a.payType==="zfb"?"\u60A8\u5C1A\u672A\u5B89\u88C5\u652F\u4ED8\u5B9D":"\u60A8\u5C1A\u672A\u5B89\u88C5\u5FAE\u4FE1";X.alert({title:"\u63D0\u793A",message:m}).then(()=>{A.clear(),r("update:modelValue",!1)})}},ie=()=>{const u=a.payType;te().weixin?u=="zfb"?(a.pay_channel="alipay_qr",v("qrCode")):u=="wx"&&(a.pay_channel="wx_pub",v("pay")):te().alipay?u=="zfb"?(a.pay_channel="alipay_wap",v("pay")):u=="wx"&&(a.pay_channel="wx_pub",v("qrCode")):(u=="zfb"?a.pay_channel="alipay_qr":u=="wx"&&(a.pay_channel="wx_pub"),v("qrCode"))},v=u=>{const m=u=="qrCode"?"payCenter":"payResult";r("confirm",{payCode:m,pay_channel:a.pay_channel})};return()=>t("div",{class:I.payment},[t(Y,{onClick:l,name:"cross",size:20},null),t("div",{class:[I.title]},[s("\u9009\u62E9\u652F\u4ED8\u65B9\u5F0F")]),t("div",{class:I.payAmount},[t("p",null,[s("\u5E94\u4ED8\u91D1\u989D")]),t("div",{class:I.amount},[t("span",null,[s("\uFFE5")]),x(e.paymentConfig.actualPrice)])]),t(Ge,{modelValue:a.payType,"onUpdate:modelValue":u=>a.payType=u},{default:()=>[t(b,{border:!1},{default:()=>[i.value&&t(p,{border:!0,center:!0,onClick:()=>{a.payType="wx"}},{icon:()=>t(Y,{name:Se,size:18},null),"right-icon":()=>t(le,{name:"wx"},{icon:u=>t(Y,{class:I.boxStyle,name:u.checked?h.projectType==="tenant"?ue:se:ae},null)}),title:()=>t("div",{class:I.payTypeRe},[s("\u5FAE\u4FE1\u652F\u4ED8 "),t("span",{class:I.recommend},[s("\u63A8\u8350")])])}),c.value&&t(p,{title:"\u652F\u4ED8\u5B9D\u652F\u4ED8",border:!0,center:!0,onClick:()=>{a.payType="zfb"}},{icon:()=>t(Y,{name:Ve,size:18},null),"right-icon":()=>t(le,{name:"zfb"},{icon:u=>t(Y,{class:I.boxStyle,name:u.checked?h.projectType==="tenant"?ue:se:ae},null)})})]})]}),t("div",{class:I.blank},null),t(oe,{type:"primary",class:[I.payBtn,h.projectType==="tenant"&&I.tenantPayBtn],block:!0,round:!0,onClick:F},{default:()=>[s("\u786E\u8BA4\u652F\u4ED8")]})])}});const At="_videoOrder_1j16x_1",It="_tag_1j16x_1",Nt="_title_1j16x_12",Dt="_courseGroupName_1j16x_17",jt="_titleSong_1j16x_22",Lt="_teacher_1j16x_26",Et="_price_1j16x_32",St="_userLogo_1j16x_43",Vt="_classItem_1j16x_49",xt="_time_1j16x_55",Gt="_line_1j16x_61",wt="_img_1j16x_75",Ft="_titleClass_1j16x_82",Ut="_labelClass_1j16x_87";var g={videoOrder:At,tag:It,title:Nt,courseGroupName:Dt,titleSong:jt,teacher:Lt,price:Et,userLogo:St,classItem:Vt,time:xt,line:Gt,img:wt,titleClass:Ft,labelClass:Ut},Rt=C({name:"OrderVideo",props:{item:{type:Object,default:{}}},computed:{album(){const e=this.item.courseInfo||[],r=[];return e.map(o=>{o.musicAlbumInfos&&o.musicAlbumInfos.map(a=>{a.relationType==="ALBUM"&&r.findIndex(i=>i.musicAlbumId===a.musicAlbumId)===-1&&r.push(a)})}),this.item.relationType==="GIFT"?[...r]:[]},music(){const e=this.item.courseInfo||[],r=[];return e.map(o=>{o.musicAlbumInfos&&o.musicAlbumInfos.map(a=>{a.relationType==="MUSIC"&&r.findIndex(i=>i.musicAlbumId===a.musicAlbumId)===-1&&r.push(a)})}),this.item.relationType==="GIFT"?[...r]:[]}},render(){const e=this.item;return t("div",{class:g.videoOrder},[t(b,{border:!1},{default:()=>[t(p,{center:!0},{title:()=>t("div",{class:[g.title]},[t("span",{class:g.tag},[s("\u89C6\u9891\u8BFE")]),t("span",{class:[g.courseGroupName,"van-ellipsis"]},[e.courseGroupName])])}),t(p,{center:!0,title:e.teacherName,titleClass:g.teacher},{icon:()=>t(O,{class:g.userLogo,src:e.avatar||M},null),default:()=>t("span",{class:g.price},[t("i",null,[s("\xA5")]),x(e.coursePrice)])})]}),this.album.length>0&&t(b,{border:!1},{default:()=>[t(p,{center:!0},{title:()=>t("div",{class:[g.title,"van-ellipsis"],style:{display:"flex",alignItems:"center"}},[t("span",{class:g.line},null),s("\u9644\u5E26\u4E13\u8F91")]),value:()=>t("span",{class:g.titleSong},[s("\xB7 \u8D60\u9001")])}),this.album.map(r=>t(p,{center:!0,title:r.name,titleClass:g.titleClass,label:r.remark||"",labelClass:[g.labelClass,"van-ellipsis"]},{icon:()=>t(O,{src:r.cover,class:g.img},null)}))]}),this.music.length>0&&t(b,{border:!1},{default:()=>[t(p,{center:!0},{title:()=>t("div",{class:[g.title,"van-ellipsis"],style:{display:"flex",alignItems:"center"}},[t("span",{class:g.line},null),s("\u9644\u5E26\u4E50\u8C31")]),value:()=>t("span",{class:g.titleSong},[s("\xB7 \u8D60\u9001")])}),this.music.map(r=>t(p,{center:!0,title:r.name,titleClass:g.titleClass,label:"\u4F5C\u8005\uFF1A"+(r.remark||""),labelClass:[g.labelClass,"van-ellipsis"]},{icon:()=>t(O,{src:r.cover,class:g.img},null)}))]})])}});const kt="_liveOrder_86fgp_1",zt="_tag_86fgp_1",Bt="_title_86fgp_12",Yt="_courseGroupName_86fgp_17",qt="_collapseItem_86fgp_22",Ht="_teacher_86fgp_27",Mt="_price_86fgp_33",$t="_userLogo_86fgp_44",Qt="_classItem_86fgp_50",Xt="_time_86fgp_55";var D={liveOrder:kt,tag:zt,title:Bt,courseGroupName:Yt,collapseItem:qt,teacher:Ht,price:Mt,userLogo:$t,classItem:Qt,time:Xt},Jt=C({name:"OrderLive",props:{item:{type:Object,default:{}}},data(){return{collapse:[1]}},render(){const e=this.item;return t("div",{class:D.liveOrder},[t(b,{border:!1},{default:()=>[t(p,{center:!0},{title:()=>t("div",{class:[D.title,"van-ellipsis"]},[t("span",{class:D.tag},[s("\u76F4\u64AD\u8BFE")]),t("span",{class:[D.courseGroupName,"van-ellipsis"]},[e.courseGroupName])])}),t(p,{center:!0,border:!1,title:e.teacherName,titleClass:D.teacher},{icon:()=>t(O,{class:D.userLogo,src:e.avatar||M},null),default:()=>t("span",{class:D.price},[t("i",null,[s("\xA5")]),x(e.coursePrice)])}),t(p,{border:!1},{default:()=>[t(K,{border:!1,modelValue:this.collapse,"onUpdate:modelValue":r=>this.collapse=r},{default:()=>[t(W,{title:"\u8BFE\u7A0B\u8BE6\u60C5",name:1,class:D.collapseItem},{default:()=>[t("div",{class:D.classItem},[e.courseInfo.map(r=>t("div",{class:D.time},[r.courseTime]))])]})]})]})]})])}});const Kt="_videoOrder_jkrwk_1",Wt="_tag_jkrwk_1",Zt="_title_jkrwk_12",er="_courseGroupName_jkrwk_17",tr="_collapseItem_jkrwk_23",rr="_teacher_jkrwk_28",or="_price_jkrwk_34",sr="_userLogo_jkrwk_44",ar="_classItem_jkrwk_50",ir="_time_jkrwk_55";var j={videoOrder:Kt,tag:Wt,title:Zt,courseGroupName:er,collapseItem:tr,teacher:rr,price:or,userLogo:sr,classItem:ar,time:ir},nr=C({name:"OrderPractice",props:{item:{type:Object,default:{}}},data(){return{collapse:[1]}},render(){const e=this.item;return console.log(e.classTime),t("div",{class:j.videoOrder},[t(b,{border:!1},{default:()=>[t(p,{center:!0},{title:()=>t("div",{class:[j.title]},[t("span",{class:j.tag},[s("\u8DA3\u7EA0\u8BFE")]),t("span",{class:[j.courseGroupName,"van-ellipsis"]},[e.courseGroupName])])}),t(p,{center:!0,border:!1,title:e.teacherName,titleClass:j.teacher},{icon:()=>t(O,{class:j.userLogo,src:e.avatar||M},null),default:()=>t(V,null,[t("span",{class:j.price},[t("i",null,[s("\xA5")]),x(e.coursePrice)]),s("/"),e.classTime.length,s("\u8BFE\u65F6")])}),t(p,{border:!1},{default:()=>[t(K,{border:!1,modelValue:this.collapse,"onUpdate:modelValue":r=>this.collapse=r},{default:()=>[t(W,{title:"\u8BFE\u7A0B\u8BE6\u60C5",name:1,class:j.collapseItem},{default:()=>[t("div",{class:j.classItem},[e.classTime.map(r=>{const o=`${r.classDate} ${d(r.startTime).format("HH:mm")}-${d(r.endTime).format("HH:mm")}`;return t("div",{class:j.time},[o])})])]})]})]})]})])}});const lr="_memberLogo_10pru_1",cr="_container_10pru_5",ur="_titleClass_10pru_8",dr="_title_10pru_8",pr="_price_10pru_21",mr="_activityClass_10pru_33",yr="_activityTit_10pru_36",fr="_activityTitNum_10pru_42",_r="_timerTitle_10pru_48",hr="_timer_10pru_48",vr="_timerCell_10pru_63",gr="_cellGroup_10pru_68",br="_cellGroupTimer_10pru_72",Tr="_discountTips_10pru_75",Cr="_addNum_10pru_88";var y={memberLogo:lr,container:cr,titleClass:ur,title:dr,price:pr,activityClass:mr,activityTit:yr,activityTitNum:fr,timerTitle:_r,timer:hr,timerCell:vr,cellGroup:gr,cellGroupTimer:br,discountTips:Tr,addNum:Cr},fe="./assets/icon_member_svip.df06c070.png",Or="./assets/icon_studycard.954b8c8d.png",Pr=C({name:"OrderVideo",props:{item:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1}},emits:["priceChange"],computed:{needBuyNums(){const e=this.item;if(e.vipEndDays>0){const r=d(e.startTime).add(e.vipEndDays,"day"),o=e.period==="YEAR"?"years":"months",a=r.diff(d(e.startTime),o);return e.period==="MONTH"?a+1:e.period==="QUARTERLY"?Math.ceil((a+1)/3):e.period==="YEAR_HALF"?Math.ceil((a+1)/6):e.period==="YEAR"?a+1:1}return 1},startTime(){const e=this.item;return this.disabled?e.startTime:e.svipEndDays>0&&e.orderType==="SVIP"?d(e.startTime).add(1,"day").format("YYYY-MM-DD"):e.vipEndDays>0&&e.orderType==="VIP"?d(e.startTime).add(1,"day").format("YYYY-MM-DD"):e.startTime},studyCardTimes(){const{activityList:e,discountEndTime:r,discountCardFlag:o}=this.item,a=(e||[]).filter(l=>l.goodType==="DISCOUNT");if(a.length){const l=o?d(r||new Date).toDate():d(new Date).toDate();let i=l;return a.map(c=>{c.unit==="MONTH"?i=d(i).add(1*c.goodsNum,"month").toDate():c.unit==="QUARTERLY"?i=d(i).add(3*c.goodsNum,"month").toDate():c.unit==="YEAR_HALF"?i=d(i).add(6*c.goodsNum,"month").toDate():c.unit==="YEAR"&&(i=d(i).add(1*c.goodsNum,"year").toDate())}),{startTime:o?d(l).add(1,"day").format("YYYY-MM-DD"):d(l).format("YYYY-MM-DD"),endTime:d(i).format("YYYY-MM-DD")}}else return{startTime:null,endTime:null}},vipEndTime(){const e=(this.item.activityList||[]).filter(o=>this.item.orderType===o.goodType);let r=this.item.endTime;return e.map(o=>{o.unit==="MONTH"?r=d(r).add(1*o.goodsNum,"month").toDate():o.unit==="QUARTERLY"?r=d(r).add(3*o.goodsNum,"month").toDate():o.unit==="YEAR_HALF"?r=d(r).add(6*o.goodsNum,"month").toDate():o.unit==="YEAR"&&(r=d(r).add(1*o.goodsNum,"year").toDate())}),d(r).format("YYYY-MM-DD")}},watch:{"item.num"(){(this.item.activityList||[]).map(e=>{e.goodsNum=this.item.num,e.goodNum=this.item.num})}},render(){const e=this.item;return t("div",{class:y.videoOrder},[t(b,{class:["mb12",y.cellGroup],border:!1},{default:()=>[t(p,{titleClass:y.titleClass},{icon:()=>t(O,{class:y.memberLogo,src:e.orderType==="SVIP"?fe:me},null),title:()=>t(V,null,[t("div",{class:y.container},[t("div",{class:y.title},[e.goodsName||e.goodName]),t("div",{class:y.price},[t("i",null,[s("\xA5 ")]),this.$filters.moneyFormat(e.price)])]),t("div",{class:y.addNum},[t(ve,{disableInput:!0,disabled:e.period==="PERPETUAL"||this.disabled,modelValue:e.num,"onUpdate:modelValue":r=>e.num=r,theme:"round",min:1,max:(e.activityList||[]).length>0?e.activityBuyCount:99,onChange:()=>{let r=new Date;e.period==="MONTH"?r=d(e.startTime).add(1*e.num,"month").toDate():e.period==="QUARTERLY"?r=d(e.startTime).add(3*e.num,"month").toDate():e.period==="YEAR_HALF"?r=d(e.startTime).add(6*e.num,"month").toDate():e.period==="YEAR"&&(r=d(e.startTime).add(1*e.num,"year").toDate()),e.endTime=d(r).format("YYYY-MM-DD"),this.$emit("priceChange",(e.price*e.num).toFixed(2))}},null)])])}),(e.activityList||[]).map(r=>t(p,{titleClass:[y.titleClass,y.activityClass]},{icon:()=>t(O,{class:y.memberLogo,src:r.goodType==="DISCOUNT"?Or:r.goodType==="SVIP"?fe:me},null),title:()=>t(V,null,[t("div",{class:y.container},[t("div",{class:y.title},[r.goodsName||r.goodName]),t("div",{class:y.activityTit},[s("\u8D60\u9001")])]),t("div",{class:y.activityTitNum},[`x${r.goodsNum}`])])}))]}),e.orderType==="SVIP"&&e.vipEndDays>0&&t("div",{class:y.discountTips},[e.num>=this.needBuyNums?t(V,null,[s("\u5F53\u524D\u8D2D\u4E70SVIP\u5DF2\u8FBE\u514D\u8D39\u5347\u7EA7\u6807\u51C6\uFF0C"),t("span",null,[s("VIP("),e.vipEndDays,s("\u5929)\u53EF\u514D\u8D39\u5347\u7EA7\u4E3ASVIP")])]):t(V,null,[s("\u8D2D\u4E70"),this.needBuyNums,s("\u4E2A"),Re[e.period],s("SVIP\u4F1A\u5458\uFF0C"),t("span",null,[s("\u5269\u4F59VIP("),e.vipEndDays,s("\u5929)\u53EF\u514D\u8D39\u5347\u7EA7\u4E3ASVIP")])])]),e.period!=="PERPETUAL"&&t(b,{class:["mb12",y.cellGroup,y.cellGroupTimer],border:!1},{default:()=>[t(p,{center:!0},{title:()=>t("div",{class:y.timerCell},[t("div",{class:y.timerTitle},[t("span",null,[e.orderType,s("\u4F1A\u5458\u751F\u6548\u65F6\u95F4")])]),t("div",{class:y.timer},[this.startTime,s(" \u81F3 "),this.vipEndTime])])}),this.studyCardTimes.startTime&&t(p,{center:!0},{title:()=>t("div",{class:y.timerCell},[t("div",{class:y.timerTitle},[t("span",null,[s("\u7545\u5B66\u5361\u751F\u6548\u65F6\u95F4")])]),t("div",{class:y.timer},[this.studyCardTimes.startTime,s(" \u81F3")," ",this.studyCardTimes.endTime])])})]})])}}),Ar="./assets/music-icon.fd0e8ce9.png";const Ir="_item_11whb_1",Nr="_header_11whb_8",Dr="_mate_11whb_12",jr="_icon_11whb_16",Lr="_info_11whb_22",Er="_btn_11whb_38",Sr="_vip_11whb_46",Vr="_free_11whb_50",xr="_charge_11whb_54",Gr="_tags_11whb_58",wr="_footer_11whb_74",Fr="_user_11whb_80",Ur="_userIcon_11whb_85",Rr="_favorite_11whb_90";var R={item:Ir,header:Nr,mate:Dr,icon:jr,info:Lr,btn:Er,vip:Sr,free:Vr,charge:xr,tags:Gr,footer:wr,user:Fr,userIcon:Ur,favorite:Rr};function kr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ce(e)}var zr=C({name:"OrderMusic",props:{item:{type:Object,default:{}}},render(){const e=this.item;return t("div",{class:R.item},[t("header",{class:R.header},[t("div",{class:R.mate},[t(O,{src:e.titleImg||Ar,class:R.icon},null),t("div",{class:R.info},[t("h4",null,[e.name]),t("p",null,[e.composer]),t("div",{class:R.tags},[(e.subjectNames||"").split(",").map(r=>t(ke,null,kr(r)?r:{default:()=>[r]}))])])]),t("div",{class:R.buttons},null)])])}});const Br="_memberLogo_1ki51_1",Yr="_titleClass_1ki51_5",qr="_title_1ki51_5",Hr="_price_1ki51_14",Mr="_timerTitle_1ki51_25",$r="_timer_1ki51_25",Qr="_timerCell_1ki51_39";var k={memberLogo:Br,titleClass:Yr,title:qr,price:Hr,timerTitle:Mr,timer:$r,timerCell:Qr},Xr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGoAAABkCAMAAABZ9VXVAAACQ1BMVEUAAAD/v33/////2Yr/vHL/7t7/9N//7Nj/w4H/wHr/7t3/8OL/69b/wX7/vHP/vnj/793/7uD/v3r/8OP/6dL/7+H/v3j/vnf/6dL/v3j/vHb/8OP/6NP/w4H/vHP/7+D/woH/vXP/7t7/wnj/9Or/7dz/7dr/6tX/6dL/5s3/58//wX//v3v/vnj/4cL/7t3/w4T/wH3/7Nn/xIX/x4z/yY//7dv/69f/5cv/vXb/4sX/5Mn/7t//1Kb/y5T/u3L/xYj/zJb/xor/3r3/woD/0qP/0J//zpn/48b/4L//1ar/ypH/z53/27b/3Lj/vHP/167/0aH/2bH/8OH/1qzLi0vDfkH/3b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Qoswo9aWYxjZVIo+iGyHogK4qo9kVGCi8peD8EzOU3sEFh4JXTRXPb/L7n2pfC5ENbibZNH7DOS893L7g46gafwsuuwipch7IBiSEkIxkEOnpZr7mmhdreF/JkZ7liTQUPG/z/ogxMlrz7mZ/PyGP8Aettfq+2sroezY7jGe7NSm0I4Gq/0ti/qlCmCNWrgmY7ZeFXugFpMFhRmang9AaG4YE8vAP5CNVv72OMWvjQBCFR8iFXdiGFAkJJCSktAUSVuPKQrhPLVIZfGACxuBCQqTIb5CuENjdkUKFCx+pgg3+a/dubi1lswit4ZKPQfP2zbxduTW8z2Ncvs1cJtsfVsnLMln/Pvium+JdZi6WsSvYugrk1pGvQyAek9jFYRiHH596w5G9Re4qEH7Od30U98+wv1uGf0nSTN79ER55Fh5+i0kyn5HuJV+DQToPQRTOVq/79yzP8yyDPYtgsv+rWN1t16vDBkKFvBLf81EQqjfYJ5HEFLPCespq8izJ0yX7+RhHJRvP20wjZgGtAQ1OwN6k28flNI6eFs+vOOdvL/EsSXO9NNniloHNQEjAUDxpXz9PPGZLRZ2pvn6emgFjBzaKu0A5S36Z0c03qRUE42CM4oTQchdAVuzq5O0WXf9TvXGPgTgCyWcJdaabv6Z271Q4js+JtOlWNpyeg1K1unPsuvlbMpvOt9A0idpO3+mjnGMHdZo7YK2XbxORcdb/Bs4MAl1L0LfkMQzJh0BxlzydfJcImJfWl3NpEmOcDxlraKG4C8qz2qVMTf7cIMH9xfAzk+EEpWhQ6VXnL+6pwLiaMDxGKR2oWiC86vyVQR8wu42HgtHDCFV0Taryja5JMkanMSrBShkDIlrpC9R8o2OQinnXuWnhvf9Fo3XTuTOp4A9+SfSoH0vwwAAAAABJRU5ErkJggg==",Jr=C({name:"OrderPinao",props:{item:{type:Object,default:{}}},render(){const e=this.item;return console.log(e),t("div",{class:k.videoOrder},[t(b,{class:"mb12",border:!1,style:{borderRadius:"8px"}},{default:()=>[t(p,{center:!0,titleClass:k.titleClass},{icon:()=>t(O,{class:k.memberLogo,src:Xr},null),title:()=>t("div",{class:k.container},[t("div",{class:k.title},[e.times,s("\u5206\u949F\u7434\u623F\u65F6\u957F")]),t("div",{class:k.price},[t("i",null,[s("\xA5")]),this.$filters.moneyFormat(e.salePrice)])])})]})])}});const Kr="_liveOrder_w4wdr_1",Wr="_tag_w4wdr_1",Zr="_title_w4wdr_12",eo="_collapseItem_w4wdr_17",to="_line_w4wdr_22",ro="_teacher_w4wdr_31",oo="_price_w4wdr_42",so="_userLogo_w4wdr_52",ao="_classItem_w4wdr_58",io="_time_w4wdr_63";var z={liveOrder:Kr,tag:Wr,title:Zr,collapseItem:eo,line:to,teacher:ro,price:oo,userLogo:so,classItem:ao,time:io},no="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAMAAAArteDzAAACJVBMVEUAAAD/gDf/rHr/fTX/rH7/fjH/t4P/fTP/mFP/qlX/VQD/u4//jUv/p3L/sID/gTv/div/uY3/cSL/vJD/lln/lln/ei//soH/fDL/u5D/nmX/jk3/ciP/sYH/uIv/hD//dCn/omv/ezL/cyb/sIH/u4//o2v/i0j/cyX/tIP/dCn/lln/sH3/ejT/t5D/fTT/ciT/vJH/l1r/llj/uY3/iEX/cyb/mFv/lVj/cSL/n2b/jkz/vJH/cCL/sYH/tof/rHn/gTv/fjX/ei//p3L/qXT/ciP/cyf/nGH/cCP/r3z/tIb/nWL/kFH/gj3/gTn/vpH/vJH/vI//pG7/o2v/nGL/ml7/l1r/p3L/gTr/fTX/qXX/h0P/n2b/fDL/hD7/fzf/lFb/iUb/tYf/rn3/i0n/eS7/jUv/j07/r3//////pnD/kVH/sID/m2D/rHr/mFz/rXv/cyb/q3j/dir/oWr/qnf/dyz/nmT/soP/ejD/oGj/klP/sYL/gjz/s4X/hUD/tIb/lVj/t4n/dSj/3sv/uIv//v3/ciP/uo//uYz/k1T/4c//9vD/59n/+fb/4M3/sYH/9vL/7+b/7uT/69//lVn/+PT/8ur/6dv/49L/9e7/6t3/8ej/+/j/5tf/5dT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ssc0KgGgpuo8P2c6jxeKuuWFHnSQ0cbS3iP7Hvf4cOQLFnZIKRKHpvHMLO6eL+wTQj7NibKf7PuxUb5NtQnOQiu1TPENEILbbr7rmibLraGyvANo4/Fca/bs2CERxAH9yyMktioM4OIguIoRkCmTIkAQSsiRTCZehSIdOIYMkCA5OFhz6Z7RLC/0be2AiGu/8ET9w732P94aDUxO+09f9qcznzzlppspQsqMi59+P/Kf+vg+UL2HytIMysqBip5fr9fBG2y0IVCCVMkEgMcENpeXUPlcRPNhLwUDSHmqc40AO1JHlcZAlAQ7FfB3AVIALG/z9OC6icG5gEMBm/CQTg5Cyeq+J4/KNP18p0IA4xXIUlbs4s+4QaOZrUU+aD62QcbmJokplJ8/VuYGgA+Jql5o0raSC5hLoRrbTjmwZuhvZadgqtUfQz3gzDRtNN2PoD3tWmGVZyEouZO7J8jA8SfbWelajrz0ZhkG+u7Xm+mwymelza+v6CNr8AxUNQ4kURe08AAAAAElFTkSuQmCC",lo=C({name:"OrderLive",props:{item:{type:Object,default:{}}},data(){return{collapse:[1]}},render(){const e=this.item;return t("div",{class:z.liveOrder},[t(b,{border:!1},{default:()=>[t(p,{center:!0},{title:()=>t("div",{class:[z.title,"van-ellipsis"]},[t("span",{class:z.line},null),s("\u6D3B\u52A8\u62A5\u540D")])}),t(p,{center:!0,border:!1,title:e.goodsName,titleClass:z.teacher},{icon:()=>t(O,{class:z.userLogo,src:no},null),default:()=>t("span",{class:z.price},[t("i",null,[s("\xA5")]),x(e.actualPrice)])})]})])}});const co="_album_1uv6f_1",uo="_albumType_1uv6f_9",po="_img_1uv6f_21",mo="_content_1uv6f_34",yo="_footer_1uv6f_50",fo="_icon_1uv6f_71";var H={album:co,albumType:uo,img:po,content:mo,footer:yo,icon:fo},_o=C({name:"OrderMusic",props:{item:{type:Object,default:{}}},render(){const e=this.item;return t("div",{class:H.album},[t(O,{class:H.img,src:e.albumCoverUrl},null),e.paymentType==="CHARGE"&&t("span",{class:H.albumType},[s("\u4ED8\u8D39")]),t("div",{class:H.content},[t("h4",{class:"van-ellipsis"},[e.albumName]),t("p",{class:"van-multi-ellipsis--l2"},[e.albumDesc]),t("div",{class:H.footer},[t("span",null,[e.musicSheetCount,s("\u9996")]),t("span",null,[e.albumFavoriteCount,s("\u4EBA\u6536\u85CF")])])])])}});const ho="_saveShareImage_r51oz_1",vo="_tips_r51oz_8",go="_tipsTitle_r51oz_14",bo="_tipsContent_r51oz_20",To="_iconLogo_r51oz_26",Co="_schoolName_r51oz_33",Oo="_previewSection_r51oz_48",Po="_topImage_r51oz_55",Ao="_shareSection_r51oz_62",Io="_shareContaienr_r51oz_70",No="_shareType_r51oz_74",Do="_qrcodeSection_r51oz_84",jo="_memo_r51oz_92";var N={saveShareImage:ho,tips:vo,tipsTitle:go,tipsContent:bo,iconLogo:To,schoolName:Co,previewSection:Oo,topImage:Po,shareSection:Ao,shareContaienr:Io,shareType:No,qrcodeSection:Do,memo:jo};const Lo="_qrcode_izshm_1",Eo="_qrcodeCanvas_izshm_4",So="_qrcodeLogo_izshm_8",Vo="_small_izshm_18";var Q={qrcode:Lo,qrcodeCanvas:Eo,qrcodeLogo:So,small:Vo},xo=C({props:{text:{type:String,default:""},size:{type:String,default:"200px"},logoSize:{type:String,default:"default"}},setup(e){const r=q(),o=()=>{He.toCanvas(r.value,e.text,{margin:1},a=>{a&&console.log(a),console.log("success")})};return Oe(()=>e.text,()=>{o()}),Pe(()=>{Ae(()=>{o()})}),()=>t("div",{class:Q.qrcode,style:{width:e.size,height:e.size}},[t("canvas",{ref:r,class:Q.qrcodeCanvas},null),t("img",{src:qe,class:[Q.qrcodeLogo,e.logoSize==="small"&&Q.small]},null)])}}),Go="./assets/icon-logo.4dc927fa.png",wo=C({name:"qrcode-payment",props:{url:{type:String,default:""},pay_channel:{type:String,default:"wx_pub"}},setup(e){return console.log(e.url,"props.url"),()=>t("div",{class:[N.saveShareImage]},[t("div",{style:{overflow:"hidden"}},[t("div",{class:N.schoolName},null)]),t("img",{src:Go,class:N.iconLogo},null),t("div",{class:N.shareSection},[t("div",{class:[N.shareContaienr]},[t("div",{class:N.shareType},[s("\u8BF7\u622A\u56FE\u4E8C\u7EF4\u7801"),t("span",null,[s("\u6253\u5F00"),e.pay_channel==="wx_pub"?"\u5FAE\u4FE1":"\u652F\u4ED8\u5B9D",s("\u626B\u7801\u652F\u4ED8")])]),t("div",{class:N.qrcodeSection},[t(xo,{text:e.url,logoSize:"small",size:"100%"},null)]),t("div",{class:N.memo},[s("\u8BF7\u572830\u5206\u949F\u5185\u626B\u7801\u652F\u4ED8")])]),t("div",{class:[N.tips]},[t("div",{class:N.tipsTitle},[s("\u4F7F\u7528\u8BF4\u660E\uFF1A")]),t("div",{class:N.tipsContent},[s("1.\u6253\u5F00"),e.pay_channel==="wx_pub"?"\u5FAE\u4FE1":"\u652F\u4ED8\u5B9D",s("\u626B\u4E00\u626B"),t("br",null,null),s("2.\u9009\u62E9\u76F8\u518C\u4E2D\u7684\u4E8C\u7EF4\u7801"),t("br",null,null),s("3.\u8BF7\u572830\u5206\u949F\u5185\u626B\u7801\u652F\u4ED8")])])])])}});const Fo="_album_11e6q_1",Uo="_albumType_11e6q_9",Ro="_img_11e6q_20",ko="_content_11e6q_33",zo="_musicNum_11e6q_50",Bo="_footer_11e6q_57",Yo="_icon_11e6q_69",qo="_albumWeek_11e6q_76",Ho="_albumTitle_11e6q_85",Mo="_albumNum_11e6q_91";var B={album:Fo,albumType:Uo,img:Ro,content:ko,musicNum:zo,footer:Bo,icon:Yo,albumWeek:qo,albumTitle:Ho,albumNum:Mo},$o=C({name:"OrderMusic",props:{item:{type:Object,default:{}}},render(){const e=this.item;return t(V,null,[t("div",{class:B.album},[t(O,{class:B.img,src:e.coverImg},null),t("div",{class:B.content},[t("h4",{class:"van-ellipsis"},[e.name]),t("p",{class:"van-multi-ellipsis--l2"},[e.describe])])]),t("div",{class:B.albumWeek},[t("span",{class:B.albumTitle},[s("\u8D2D\u4E70\u5468\u671F")]),t("span",{class:B.albumNum},[e.purchaseNum,s("\u5929")])])])}});const Qo="_memberLogo_drmni_1",Xo="_container_drmni_5",Jo="_titleClass_drmni_8",Ko="_title_drmni_8",Wo="_price_drmni_21",Zo="_timerTitle_drmni_33",es="_timer_drmni_33",ts="_timerCell_drmni_48",rs="_cellGroup_drmni_53",os="_cellGroupTimer_drmni_57",ss="_discountTips_drmni_60",as="_addNum_drmni_73";var P={memberLogo:Qo,container:Xo,titleClass:Jo,title:Ko,price:Wo,timerTitle:Zo,timer:es,timerCell:ts,cellGroup:rs,cellGroupTimer:os,discountTips:ss,addNum:as},ge="./assets/icon_discount.e85d396e.png",is=C({name:"OrderVideo",props:{item:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1}},emits:["priceChange"],computed:{startTime(){return this.item.startTime}},render(){const e=this.item;return t("div",{class:P.videoOrder},[t(b,{class:["mb12",P.cellGroup],border:!1},{default:()=>[t(p,{titleClass:P.titleClass},{icon:()=>t(O,{class:P.memberLogo,src:ge},null),title:()=>t(V,null,[t("div",{class:P.container},[t("div",{class:P.title},[e.goodsName||e.goodName]),t("div",{class:P.price},[t("i",null,[s("\xA5 ")]),this.$filters.moneyFormat(e.price)])]),t("div",{class:P.addNum},[t(ve,{disableInput:!0,disabled:e.period==="PERPETUAL"||this.disabled,modelValue:e.num,"onUpdate:modelValue":r=>e.num=r,theme:"round",min:1,max:99,onChange:()=>{let r=new Date;e.period==="MONTH"?r=d(e.startTime).add(1*e.num,"month").toDate():e.period==="QUARTERLY"?r=d(e.startTime).add(3*e.num,"month").toDate():e.period==="YEAR_HALF"?r=d(e.startTime).add(6*e.num,"month").toDate():e.period==="YEAR"&&(r=d(e.startTime).add(1*e.num,"year").toDate()),e.endTime=d(r).format("YYYY-MM-DD"),this.$emit("priceChange",w(e.price*e.num))}},null)])])})]}),t(b,{class:["mb12",P.cellGroup,P.cellGroupTimer],border:!1},{default:()=>[t(p,{center:!0},{title:()=>t("div",{class:P.timerCell},[t("div",{class:P.timerTitle},[t("span",null,[s("\u7545\u5B66\u5361\u751F\u6548\u65F6\u95F4")])]),t("div",{class:P.timer},[this.startTime,s(" \u81F3 "),e.endTime])])})]})])}});const ns="_videoOrder_1evhl_1",ls="_tag_1evhl_1",cs="_title_1evhl_12",us="_courseGroupName_1evhl_17",ds="_collapseItem_1evhl_23",ps="_teacher_1evhl_28",ms="_price_1evhl_34",ys="_userLogo_1evhl_44",fs="_classItem_1evhl_50",_s="_time_1evhl_55";var L={videoOrder:ns,tag:ls,title:cs,courseGroupName:us,collapseItem:ds,teacher:ps,price:ms,userLogo:ys,classItem:fs,time:_s},hs=C({name:"OrderPractice",props:{item:{type:Object,default:{}}},data(){return{collapse:[1]}},render(){const e=this.item;return console.log(e.classTime),t("div",{class:L.videoOrder},[t(b,{border:!1},{default:()=>[t(p,{center:!0},{title:()=>t("div",{class:[L.title]},[t("span",{class:L.tag},[s("VIP\u5B9A\u5236\u8BFE")]),t("span",{class:[L.courseGroupName,"van-ellipsis"]},[e.courseGroupName])])}),t(p,{center:!0,border:!1,title:e.teacherName,titleClass:L.teacher},{icon:()=>t(O,{class:L.userLogo,src:e.avatar||M},null),default:()=>t(V,null,[t("span",{class:L.price},[t("i",null,[s("\xA5")]),x(e.coursePrice)]),s("/"),e.classTime.length,s("\u8BFE\u65F6")])}),t(p,{border:!1},{default:()=>[t(K,{border:!1,modelValue:this.collapse,"onUpdate:modelValue":r=>this.collapse=r},{default:()=>[t(W,{title:"\u8BFE\u7A0B\u8BE6\u60C5",name:1,class:L.collapseItem},{default:()=>[t("div",{class:L.classItem},[e.classTime.map(r=>{const o=`${r.classDate} ${d(r.startTime).format("HH:mm")}-${d(r.endTime).format("HH:mm")}`;return t("div",{class:L.time},[o])})])]})]})]})]})])}});const vs="_addDiscount_6pjg8_1",gs="_selectDiscount_6pjg8_1",bs="_boxStyle_6pjg8_4",Ts="_container_6pjg8_25",Cs="_memberLogo_6pjg8_28",Os="_info_6pjg8_34",Ps="_top_6pjg8_40",As="_price_6pjg8_48",Is="_center_6pjg8_51",Ns="_t_6pjg8_40",Ds="_dis_6pjg8_60",js="_text_6pjg8_68",Ls="_bottom_6pjg8_71",Es="_cellGroup_6pjg8_76",Ss="_timer_6pjg8_80",Vs="_timerCell_6pjg8_86";var f={addDiscount:vs,selectDiscount:gs,boxStyle:bs,container:Ts,memberLogo:Cs,info:Os,top:Ps,price:As,center:Is,t:Ns,dis:Ds,text:js,bottom:Ls,cellGroup:Es,timer:Ss,timerCell:Vs},xs=C({name:"add-discount",props:{orderType:{type:String,default:""},orderGoodsType:{type:Array,default:()=>[]},actualPrice:{type:Number,default:0}},emits:["confirm","confirmOnlyDiscount"],setup(e,{emit:r}){const o=q(!1),a=q(!1);q([]);const l=q(!1),i=_e({discountPrice:0,startTime:"",endTime:""}),c=q({id:null,salePrice:0,discountRate:0,period:"YEAR",vipType:"DISCOUNT"}),T=()=>{if(l.value){i.discountPrice=be(e.actualPrice-e.actualPrice*c.value.discountRate/100);const v=h.user.data,u=v.discountCardFlag?d(v.discountEndTime||new Date).add(1,"day").toDate():new Date;let m=d(new Date).format("YYYY-MM-DD");c.value.period==="MONTH"?m=d(u).add(1,"month").format("YYYY-MM-DD"):c.value.period==="QUARTERLY"?m=d(u).add(3,"month").format("YYYY-MM-DD"):c.value.period==="YEAR_HALF"?m=d(u).add(6,"month").format("YYYY-MM-DD"):c.value.period==="YEAR"&&(m=d(u).add(1,"year").format("YYYY-MM-DD")),i.startTime=d(u).format("YYYY-MM-DD"),i.endTime=m}else i.discountPrice=0,i.startTime="",i.endTime=""},F=()=>{l.value=!l.value,T(),r("confirm",{checked:l.value,discountPrice:i.discountPrice,...c.value})},U=()=>{l.value=!0,T(),r("confirmOnlyDiscount",{checked:l.value,discountPrice:i.discountPrice,...c.value})},Z=v=>{let u=!1;e.orderGoodsType.forEach(m=>{v.includes(m.orderType)&&(u=!0)}),o.value=u};return(async()=>{const{data:v}=await S.get(`${h.platformApi}/memberPriceSettings/getDiscount`);c.value={id:v.id,salePrice:v.salePrice,period:v.period,discountRate:(v.discountRate||0)*100,vipType:v.vipType};const u=v.productType?v.productType.split(","):[];u.value=u,Z(u);const m=h.user.data,ee=d(),$=m.discountEndTime||new Date;m.discountCardFlag&&d(ee).isBefore(d($))&&o.value&&(a.value=!0,U())})(),()=>o.value?t("div",{class:f.addDiscount},[a.value?"":t(V,null,[t(b,{class:["mb12",f.cellGroup],border:!1},{default:()=>[t(p,{center:!0,class:f.selectDiscount,titleClass:f.titleClass,onClick:()=>{F()}},{icon:()=>t(Me,{modelValue:l.value},{icon:v=>t(Y,{class:f.boxStyle,name:v.checked?se:ae,size:"15"},null)}),title:()=>t("div",{class:f.container},[t(O,{class:f.memberLogo,src:ge},null),t("div",{class:f.info},[t("div",{class:f.top},[t("div",{class:f.title},[s("\u7545\u5B66\u5361")]),t("div",{class:f.price},[s("\xA5"),x(c.value.salePrice),s("/\u5E74")])]),t("div",{class:f.center},[t("div",{class:f.t},[t("span",{class:f.dis},[s("\u7EA6\u8BFE"),c.value.discountRate,s("\u6298")]),t("span",{class:f.text},[s("\u73B0\u5728\u5F00\u901A\u7ACB\u5373\u4F18\u60E0")])])]),t("div",{class:f.bottom},[s("x1")])])])})]}),l.value?t(b,{class:["mb12",f.cellGroup],border:!1},{default:()=>[t(p,{center:!0},{title:()=>t("div",{class:f.timerCell},[t("div",{class:f.timerTitle},[t("span",null,[s("\u7545\u5B66\u5361\u751F\u6548\u65F6\u95F4")])]),t("div",{class:f.timer},[i.startTime,s(" \u81F3 "),i.endTime])])})]}):""]),l.value||a.value?t(b,{class:["mb12",f.cellGroup],border:!1},{default:()=>[t(p,{center:!0},{title:()=>t("div",{class:f.timerCell},[t("div",{class:f.timerTitle},[t("span",null,[s("\u7545\u5B66\u5361\u4F18\u60E0")])]),t("div",{class:f.timer},[s("-\uFFE5"),i.discountPrice])])})]}):""]):""}});const Gs="_liveOrder_fvyep_1",ws="_tag_fvyep_1",Fs="_title_fvyep_12",Us="_courseGroupName_fvyep_17",Rs="_collapseItem_fvyep_22",ks="_teacher_fvyep_27",zs="_price_fvyep_33",Bs="_userLogo_fvyep_44",Ys="_classItem_fvyep_50",qs="_time_fvyep_55";var E={liveOrder:Gs,tag:ws,title:Fs,courseGroupName:Us,collapseItem:Rs,teacher:ks,price:zs,userLogo:Bs,classItem:Ys,time:qs},Hs=C({name:"OrderLive",props:{item:{type:Object,default:{}}},data(){return{collapse:[1]}},render(){const e=this.item;return t("div",{class:E.liveOrder},[t(b,{border:!1},{default:()=>[t(p,{center:!0},{title:()=>t("div",{class:[E.title,"van-ellipsis"]},[t("span",{class:E.tag},[s("\u5C0F\u7EC4\u8BFE")]),t("span",{class:[E.courseGroupName,"van-ellipsis"]},[e.courseGroupName])])}),t(p,{center:!0,border:!1,title:e.teacherName,titleClass:E.teacher},{icon:()=>t(O,{class:E.userLogo,src:e.avatar||M},null),default:()=>t("span",{class:E.price},[t("i",null,[s("\xA5")]),x(e.coursePrice)])}),t(p,{border:!1},{default:()=>[t(K,{border:!1,modelValue:this.collapse,"onUpdate:modelValue":r=>this.collapse=r},{default:()=>[t(W,{title:"\u8BFE\u7A0B\u8BE6\u60C5",name:1,class:E.collapseItem},{default:()=>[t("div",{class:E.classItem},[e.courseInfo.map(r=>t("div",{class:E.time},[r.courseTime]))])]})]})]})]})])}});const w=e=>(e=Number(e),Math.ceil(Number((e*100).toFixed(1)))/100),be=e=>(e=Number(e),Math.floor(Number((e*100).toFixed(1)))/100);var Ia=C({name:"order-detail",data(){const e=this.$route.query;return{loading:!1,dialogVisible:!1,dialogContent:"",dialogBtnText:"\u786E\u5B9A",dialogType:"back",orderType:e.orderType,orderGoodsType:[],recomUserId:e.recomUserId,activityId:e.activityId,id:e.id,agreeStatus:!1,popupShow:!1,paymentStatus:!1,orderAmount:0,orderPrice:0,dataLoading:!0,disabledCoupon:!1,exists:!1,bottomHeight:0,paymentVendor:"",paymentVersion:"V1",paymentChannels:[],showQrcode:!1,orderTimer:null,qrCodeUrl:"",selectGoods:[],pay_channel:"",orderInfo:{},config:{},orderNo:""}},unmounted(){n.orderInfo={orderNo:"",actualPrice:0,payStatus:!1}},computed:{orderList(){return n.orderObject.orderList||[]},goodsNum(){const e=n.orderObject.orderList||[];let r=0;return e.forEach(o=>{o.num?r+=o.num:r+=1}),r},countDiscountPrice(){const e=n.orderObject;return e.couponAmount||be(e.couponDiscountPrice+e.discountPrice+e.discountCardPrice)}},async mounted(){if(this.dataLoading=!0,this.orderType=="MUSIC"&&this.id)try{const o=await ze(this.id);n.orderObject.orderType="MUSIC",n.orderObject.orderName=o.musicSheetName,n.orderObject.orderDesc=o.musicSheetName,n.orderObject.actualPrice=o.musicPrice,n.orderObject.recomUserId=this.recomUserId,n.orderObject.activityId=this.activityId,["WAIT_PAY","PAYING"].includes(o.orderStatus)?n.orderObject.orderNo=o.orderNo:["PAID","CLOSE","FAIL"].includes(o.orderStatus)&&(A("\u8BA2\u5355\u6709\u8BEF"),J({api:"back",content:{}})),n.orderObject.orderList=[{orderType:"MUSIC",goodsName:o.musicSheetName,actualPrice:o.musicPrice,price:o.musicPrice,...o}]}catch{}const e=n.orderObject.orderList||[],r=[];if(e.forEach(o=>{r.push({orderType:o.orderType,basePrice:o.price||0,price:o.price||0})}),this.orderGoodsType=r,await this.getOrderPayType(),this.orderAmount=n.orderObject.actualPrice||0,this.orderPrice=n.orderObject.actualPrice||0,this.disabledCoupon=!!n.orderObject.orderNo,this.dataLoading=!1,this.orderPrice===0&&n.orderObject.orderType&&(this.loading=!0,this.onSubmit()),this.$nextTick(()=>{const{height:o}=Ie(this.$refs.paymentButton);this.bottomHeight=o+10}),!n.orderObject.orderType){this.dialogVisible=!0,this.dialogContent="\u4EA7\u54C1\u4FE1\u606F\u5DF2\u66F4\u65B0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9",this.dialogBtnText="\u786E\u5B9A",this.dialogType="back";return}},methods:{async getUserRegisterProtocol(){try{const e=await S.get(h.platformApi+"/sysUserContractRecord/checkContractSign",{params:{contractType:"REGISTER"}});this.exists=e.data}catch{}},async getOrderPayType(){try{const e=n.orderObject,r=e.orderList.find(i=>i.orderType===this.orderType);let o=r?r.id:"";if(e.orderType==="PRACTICE"){const i=e.orderList.find(c=>c.orderType==="PRACTICE");o=i?i.teacherId:""}if(e.orderType==="LIVE"||e.orderType==="GROUP"||e.orderType==="VIDEO"){const i=e.orderList.find(c=>c.orderType==="VIDEO"||c.orderType==="LIVE"||c.orderType==="GROUP");o=i?i.courseGroupId:""}const{data:a}=await S.post(h.platformApi+"/userOrder/orderPayType",{data:{goodType:e.orderType,bizId:o,recomUserId:e.recomUserId?e.recomUserId:null}}),l=n.orderObject.paymentConfig||{};l.paymentVersion&&n.orderObject.orderNo?(this.paymentVersion=l.paymentVersion||"V1",this.paymentVendor=l.paymentVendor):(this.paymentVersion=a.paymentVersion||"V1",this.paymentVendor=a.paymentVendor),this.paymentChannels=a.paymentChannels}catch{}},async onAuthSuccess(){this.popupShow=!1,await this.getUserRegisterProtocol(),this.onSubmit()},async submitNativePay(){try{const e=this.orderInfo.paymentConfig,r={merOrderNo:e.merOrderNo,paymentChannel:e.paymentChannel,paymentVendor:e.paymentVendor},o=await S.post(h.platformApi+"/userOrder/executePayment/v2",{data:{...r}}),a=e.paymentChannel;J({api:"paymentOrder",content:{orderNo:this.orderNo,payChannel:a,payInfo:o.data.reqParams.body||JSON.stringify(o.data.reqParams)}}),A.loading({message:"\u652F\u4ED8\u4E2D...",forbidClick:!0,duration:3e3,loadingType:"spinner"}),A.clear(),he("paymentOperation",l=>{console.log(l,"init paymentOperation"),this.paymentOperation(l==null?void 0:l.content)})}catch(e){console.log(e)}},paymentOperation(e){if(console.log(e,"paymentOperation"),e.status==="success"||e.status==="error")A.clear(),this.$router.replace({path:"/tradeDetail",query:{orderNo:this.orderNo}});else if(e.status==="cancel")A.clear();else if(e.status==="fail"){const o=this.orderInfo.paymentChannel.indexOf("wxpay")!==-1?"\u60A8\u5C1A\u672A\u5B89\u88C5\u5FAE\u4FE1":"\u60A8\u5C1A\u672A\u5B89\u88C5\u652F\u4ED8\u5B9D";X.alert({title:"\u63D0\u793A",message:o}).then(()=>{A.clear()})}},async onSubmit(){var e,r;if(this.orderPrice>0){if(!this.agreeStatus){A("\u8BF7\u5148\u9605\u8BFB\u5E76\u540C\u610F\u300A\u9177\u4E50\u79C0\u5E73\u53F0\u670D\u52A1\u534F\u8BAE\u300B");return}const o=h.user.data;if(!(o!=null&&o.realName)||!(o!=null&&o.idCardNo)){this.popupShow=!0;return}}if(n.orderObject.orderNo){if(this.paymentVersion==="V1")this.paymentStatus=!0;else{this.orderInfo=n.orderObject.paymentConfig||{},this.orderNo=n.orderObject.orderNo;const o=this.orderInfo.paymentConfig.paymentChannel;if(o)if(((e=this.orderInfo.paymentVendor)==null?void 0:e.indexOf("wxpay"))>-1||((r=this.orderInfo.paymentVendor)==null?void 0:r.indexOf("alipay"))>-1)this.submitNativePay();else{const a=Fe(o);this.onConfirm({payCode:a,pay_channel:o})}else this.paymentStatus=!0}return}try{const o=n.orderObject;if(this.paymentVersion==="V1"){const a=h.platformType==="TEACHER"?"/api-teacher/userOrder/executeOrder":"/api-student/userOrder/executeOrder",l=await S.post(a,{data:{orderName:o.orderName,orderDesc:o.orderDesc,orderType:o.orderType,actualPrice:this.orderPrice||0,recomUserId:o.recomUserId,activityId:o.activityId,couponId:o.couponId,orderInfos:[...Ue()]}}),i=l.data||{};if(l.code===998||l.code===999){this.dialogVisible=!0,this.dialogContent=l.msg,this.dialogBtnText="\u5237\u65B0",this.dialogType="back";return}if(i.status=="PAID"){this.$router.replace({path:"/tradeDetail",query:{orderNo:i.orderNo}});return}n.orderObject.orderNo=i.orderNo,n.orderObject.actualPrice=i.actualPrice}else{const a=h.platformType==="TEACHER"?"/api-teacher/userOrder/executeOrder/v2":"/api-student/userOrder/executeOrder/v2",l=de();this.selectGoods&&this.selectGoods.length>0&&l.push(...de(this.selectGoods));const i=await S.post(a,{data:{activityId:o.activityId>0?o.activityId:null,couponIds:o.couponId,goodsInfos:l,orderDesc:o.orderDesc,orderName:o.orderName,orderType:o.orderType,paymentCashAmount:this.orderPrice||0,paymentType:this.paymentVendor,recomUserId:o.recomUserId||null}}),c=i.data||{};if(i.code===999||i.code===998){this.dialogVisible=!0,this.dialogContent=i.msg,this.dialogBtnText="\u786E\u5B9A",this.dialogType="back";return}if(c.status=="PAID"){this.$router.replace({path:"/tradeDetail",query:{orderNo:c.orderNo}});return}n.orderObject.paymentConfig=c||{},n.orderObject.actualPrice=c.paymentConfig.price,n.orderObject.orderNo=c==null?void 0:c.orderNo,this.orderInfo=c,this.orderNo=c.orderNo}this.paymentStatus=!0}catch{this.loading=!1,this.orderPrice===0&&X.alert({title:"\u63D0\u793A",message:"\u652F\u4ED8\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\uFF01",confirmButtonText:"\u786E\u5B9A",confirmButtonColor:"#2dc7aa"})}},async onDialogConfirm(){if(this.dialogVisible=!1,this.dialogType==="back")this.$router.back();else if(this.dialogType==="refresh"){const e=await S.get(h.platformType==="TEACHER"?"/api-teacher/teacher/queryUserInfo":"/api-student/student/queryUserInfo");Ne(e.data);const r=e.data.userVip.vipEndDays||0;n.orderObject.orderList.forEach(o=>{o.vipEndDays=r})}},onBackOut(){pe()},onCouponSelect(e){let r=0,o=0;const a={};this.orderGoodsType.forEach(T=>{a[T.orderType]=T.price}),(e||[]).forEach(T=>{if(T.couponCategory==="UNIVERSAL")o+=Number(T.discountPrice);else{const F=Be[T.couponCategory];let U=a[F]-Number(T.discountPrice);U>=0?r+=Number(T.discountPrice):r+=Number(a[F]),a[F]=U>=0?U:0}});let l=0;for(let T in a)l+=a[T];o>=l&&(o=l);const i=Number(w(l-Number(o)));this.orderPrice=i>=0?i:0;const c=(e||[]).map(T=>T.couponIssueId);n.orderObject.couponId=c.join(",")||"",n.orderObject.couponDiscountPrice=r+o},onConfirm(e){const r=this.orderInfo.paymentConfig||{};this.pay_channel=e.pay_channel;const o=De.stringify({pay_channel:e.pay_channel,wxAppId:r.wxAppId,alipayAppId:r.alipayAppId,paymentType:this.orderInfo.paymentType,body:r.body,price:r.price,orderNo:r.merOrderNo,userId:r.userId});n.orderObject.paymentConfig.paymentConfig.paymentChannel=e.pay_channel,console.log(o,"params ---",r),e.payCode==="payResult"?window.location.href=window.location.origin+h.payBackPath+"#/payResult?"+o:(this.qrCodeUrl=window.location.origin+h.payBackPath+"#/payDefine?"+o,this.showQrcode=!0,this.paymentStatus=!1,setTimeout(()=>{this.getPaymentOrderStatus()},300))},async getPaymentOrderStatus(){const e=setInterval(async()=>{if(this.$route.name!="orderDetail"){clearInterval(e);return}this.orderTimer=e;try{const r=h.platformType==="TEACHER"?"/api-teacher":"/api-student",{data:o}=await S.get(`${r}/userOrder/detailByOrderNo/${this.orderNo}`,{hideLoading:!0});o.status!=="WAIT_PAY"&&o.status!=="PAYING"&&(this.showQrcode=!1,clearInterval(this.orderTimer),setTimeout(()=>{this.$router.replace({path:"/tradeDetail",query:{orderNo:this.orderNo}})},100))}catch(r){console.log(r,"error"),clearInterval(this.orderTimer)}},5e3)}},beforeUnmount(){pe()},render(){return t("div",{class:_["order-detail"],style:{paddingBottom:this.bottomHeight+"px"}},[t(we,null,null),!this.loading&&t(V,null,[this.orderList.map(e=>{if(e.orderType==="VIDEO")return t(Rt,{item:e},null);if(e.orderType==="GROUP")return t(Hs,{item:e},null);if(e.orderType==="LIVE")return t(Jt,{item:e},null);if(e.orderType==="PRACTICE")return t(nr,{item:e},null);if(e.orderType==="VIP_COURSE")return t(hs,{item:e},null);if(e.orderType==="VIP"||e.orderType==="SVIP")return t(Pr,{item:e,disabled:this.disabledCoupon,onPriceChange:r=>{n.orderObject.couponId="",n.orderObject.couponDiscountPrice=0,this.orderAmount=Number(r);const o=Number(w(Number(this.orderAmount)-Number(n.orderObject.couponDiscountPrice)));this.orderPrice=o>=0?o:0,this.orderGoodsType.forEach(l=>{l.orderType===e.orderType&&(l.price=Number(r))});const a=this.$refs.useCouponRef;a&&a.resetCouponList()}},null);if(e.orderType==="MUSIC")return t(zr,{item:e},null);if(e.orderType==="PIANO_ROOM")return t(Jr,{item:e},null);if(e.orderType==="ACTI_REGIST")return t(lo,{item:e},null);if(e.orderType==="ALBUM")return t(_o,{item:e},null);if(e.orderType==="TENANT_ALBUM")return t($o,{item:e},null);if(e.orderType==="DISCOUNT")return t(is,{disabled:this.disabledCoupon,item:e,onPriceChange:r=>{n.orderObject.couponId="",n.orderObject.couponDiscountPrice=0,this.orderAmount=Number(r);const o=Number(w(Number(this.orderAmount)-Number(n.orderObject.couponDiscountPrice)));this.orderPrice=o>=0?o:0,this.orderGoodsType.forEach(l=>{l.orderType===e.orderType&&(l.price=Number(r))});const a=this.$refs.useCouponRef;a&&a.resetCouponList()}},null)}),h.platformType==="STUDENT"&&!this.dataLoading&&!this.disabledCoupon?t(xs,{actualPrice:this.orderAmount,orderType:this.orderType,orderGoodsType:this.orderGoodsType,onConfirmOnlyDiscount:e=>{n.orderObject.discountCardPrice=Number(e.discountPrice),this.orderGoodsType.forEach(o=>{o.orderType!=="DISCOUNT"&&(o.price=w(o.price-Number(e.discountPrice)))});const r=this.$refs.useCouponRef;r&&r.resetCouponList(),this.orderPrice=Number(w(Number(this.orderAmount)-Number(e.discountPrice)-Number(n.orderObject.couponDiscountPrice)))},onConfirm:e=>{var l;n.orderObject.couponId="",n.orderObject.couponDiscountPrice=0;const r=(l=this.selectGoods)==null?void 0:l.findIndex(i=>i.id===e.id),o=this.orderGoodsType;if(e.checked)n.orderObject.discountCardPrice=Number(e.discountPrice),this.orderGoodsType.forEach(i=>{i.orderType!=="DISCOUNT"&&(i.price=w(i.price-Number(e.discountPrice)))}),r===-1&&(this.orderAmount=this.orderAmount+e.salePrice,this.selectGoods.push({orderType:e.vipType,goodsName:"\u7545\u5B66\u5361",num:1,id:e.id}),o.findIndex(c=>c.orderType===e.vipType)===-1&&o.push({orderType:e.vipType,price:e.salePrice}));else if(n.orderObject.discountCardPrice=0,r!==-1){this.selectGoods.splice(r,1),this.orderAmount=this.orderAmount-e.salePrice,this.orderGoodsType.forEach(c=>{c.orderType!=="DISCOUNT"&&(c.price=c.basePrice)});const i=o.findIndex(c=>c.orderType===e.vipType);i!==-1&&o.splice(i,1)}this.orderGoodsType=o;const a=this.$refs.useCouponRef;a&&a.resetCouponList(),this.orderPrice=Number(w(Number(this.orderAmount)-Number(e.discountPrice)-Number(n.orderObject.couponDiscountPrice))),this.$forceUpdate()}},null):"",h.platformType==="STUDENT"&&!this.dataLoading&&this.disabledCoupon&&n.orderObject.discountCardPrice>0?t(b,{class:["mb12",_.cellGroup],border:!1},{default:()=>[t(p,{center:!0},{title:()=>t("div",{class:_.timerCell},[t("div",{class:_.timerTitle},[t("span",null,[s("\u7545\u5B66\u5361\u4F18\u60E0")])]),t("div",{class:_.timer},[s("-\uFFE5"),this.$filters.moneyFormat(n.orderObject.discountCardPrice)])])})]}):"",!this.dataLoading&&t(Ye,{ref:"useCouponRef",couponId:n.orderObject.couponId,discountPrice:n.orderObject.discountPrice,orderType:this.orderType,orderGoodsType:this.orderGoodsType,orderAmount:this.orderAmount-n.orderObject.discountCardPrice,onCouponSelect:this.onCouponSelect,disabled:this.disabledCoupon},null),t("div",{class:_.paymentInfo,ref:"paymentButton"},[this.orderPrice>0&&t("div",{class:[_.protocol,h.projectType==="tenant"&&_.protocolTenant]},[t(je,{modelValue:this.agreeStatus,"onUpdate:modelValue":e=>this.agreeStatus=e,showHeader:!0,style:{paddingLeft:0,paddingRight:0},onProtocolExists:e=>{this.exists=e}},null)]),t("div",{class:_.btnGroup},[t("div",{class:_.priceSection},[t("span",{class:_.goodsNum},[s("\u5171"),this.goodsNum||1,s("\u4EF6")]),t("div",null,[t("div",null,[s("\u5408\u8BA1\uFF1A"),t("div",{class:_.price},[t("span",{class:_.priceUnit},[s("\uFFE5")]),t("span",{class:_.priceNum},[x(this.orderPrice)])])]),this.countDiscountPrice>0?t("div",{class:_.isDiscountPrice},[s("\u5DF2\u4F18\u60E0 \xA5"),x(this.countDiscountPrice)]):""])]),t(oe,{type:"primary",round:!0,class:[_.btn,h.projectType==="tenant"&&_.btnTenant],onClick:this.onSubmit},{default:()=>[s("\u7ACB\u5373\u652F\u4ED8")]})])])]),t(Le,{modelValue:this.popupShow,"onUpdate:modelValue":e=>this.popupShow=e},{default:()=>[t(Ee,{exists:this.exists,onSuccess:this.onAuthSuccess},null)]}),t(re,{show:this.paymentStatus,closeOnClickOverlay:!1,position:"bottom",round:!0,closeOnPopstate:!0,safeAreaInsetBottom:!0,style:{minHeight:"30%"}},{default:()=>[this.paymentVersion==="V1"?t(xe,{modelValue:this.paymentStatus,"onUpdate:modelValue":e=>this.paymentStatus=e,orderInfo:n.orderObject,onBackOut:this.onBackOut},null):t(Pt,{paymentConfig:{...n.orderObject,orderNo:this.orderNo},paymentVendor:this.paymentVendor,paymentChannels:this.paymentChannels,onClose:()=>this.paymentStatus=!1,onBackOut:this.onBackOut,onConfirm:e=>this.onConfirm(e)},null)]}),t(re,{show:this.showQrcode,"onUpdate:show":e=>this.showQrcode=e,round:!0,class:_.qrcodePopup,onClose:()=>{clearInterval(this.orderTimer)}},{default:()=>[t(wo,{url:this.qrCodeUrl,pay_channel:this.pay_channel},null)]}),t(re,{show:this.dialogVisible,"onUpdate:show":e=>this.dialogVisible=e,style:{background:"transparent"},closeOnClickOverlay:!1},{default:()=>[t("div",{class:_.dialogContainer},[t("div",{class:_.dialogTitle},[s("\u63D0\u793A")]),t("div",{class:_.dialogContent},[this.dialogContent]),t("div",{class:_.dialogBtnGroup},[t(oe,{round:!0,type:"primary",block:!0,class:_.dialogBtn,onClick:this.onDialogConfirm},{default:()=>[this.dialogBtnText]})])])]})])}});export{Ia as default,be as numberToTwoDown,w as numberToTwoUp};