index.9dd56733.js 53 KB

1
  1. import{g as h,d as C,Q as be,S as fe,W as ae,j as t,N as B,A as s,bC as x,B as ee,D as Q,y as E,f as W,n as $,T as O,b5 as _e,F as S,w as d,$ as ge,U as Y,a3 as Ce,V as Pe,X as Ae,Y as Oe,i as Ie,v as Ne,aS as Z}from"./ResizeObserver.es.39b48a47.js";import{C as De}from"./index.08a7f4aa.js";import{C as p}from"./index.db115763.js";import{C as g}from"./index.9f5e14d1.js";import{C as je}from"./index.a0f53d9f.js";import{U as Le}from"./index.0404e33a.js";import{i as Ee,a as Se,P as Ve}from"./index.1347f274.js";import{R as xe,a as ne}from"./index.bb84a3aa.js";import"./index.3c44a6d7.js";import{u as le}from"./hooks.6df65925.js";import{a as te}from"./icon_checkbox.808b953c.js";import{i as oe}from"./icon_checkbox_default.256c0849.js";import{a as ce}from"./icon_checkbox-tenant.ecfa11df.js";import{C as we}from"./index.970ad07b.js";import{o as n,b as Ge,c as Fe,d as ue,r as de}from"./orderStatus.fbc0ddaf.js";import{I as P}from"./index.fcbcb027.js";import{i as X}from"./icon_teacher.40b6f077.js";import{C as re,a as se}from"./index.33d4abe2.js";import{S as he}from"./index.c88884de.js";import{i as pe}from"./icon_member.4d7750c3.js";import{a as Ue}from"./index.07111672.js";import{T as ke}from"./index.34ac729a.js";import{g as Re}from"./tradeOrder.c5307744.js";import{c as ze,U as Be}from"./index.659f2bf7.js";import{i as Ye,b as qe}from"./browser.1f070884.js";import{C as He}from"./index.0a093430.js";import"./index.f6c41ddf.js";import"./index.16ffd6ad.js";import"./index.867583ad.js";import"./index.428ab1a8.js";import"./use-id.b004ff17.js";import"./index.418cbe7f.js";import"./index.45e4ca3e.js";import"./item.e9e354a0.js";const Me="_tips_1advv_6",Qe="_paymentInfo_1advv_31",$e="_protocol_1advv_37",Xe="_protocolTenant_1advv_41",Je="_btnGroup_1advv_48",Ke="_priceSection_1advv_59",We="_goodsNum_1advv_65",Ze="_price_1advv_59",et="_priceUnit_1advv_78",tt="_isDiscountPrice_1advv_81",ot="_btnTenant_1advv_84",rt="_qrcodePopup_1advv_92",st="_dialogContainer_1advv_96",it="_dialogTitle_1advv_104",at="_dialogContent_1advv_110",nt="_dialogBtnGroup_1advv_116",lt="_dialogBtn_1advv_116",ct="_cellGroup_1advv_125",ut="_timerTitle_1advv_129",dt="_timer_1advv_129",pt="_timerCell_1advv_144";var _={"order-detail":"_order-detail_1advv_1",tips:Me,paymentInfo:Qe,protocol:$e,protocolTenant:Xe,btnGroup:Je,priceSection:Ke,goodsNum:We,price:Ze,priceUnit:et,isDiscountPrice:tt,btnTenant:ot,qrcodePopup:rt,dialogContainer:st,dialogTitle:it,dialogContent:at,dialogBtnGroup:nt,dialogBtn:lt,cellGroup:ct,timerTitle:ut,timer:dt,timerCell:pt};const mt="_payment_y6th3_1",yt="_boxStyle_y6th3_31",ft="_title_y6th3_37",_t="_payAmount_y6th3_45",ht="_amount_y6th3_55",vt="_blank_y6th3_64",Tt="_payTypeRe_y6th3_67",bt="_recommend_y6th3_75",gt="_payBtn_y6th3_84",Ct="_tenantPayBtn_y6th3_91";var I={payment:mt,boxStyle:yt,title:ft,payAmount:_t,amount:ht,blank:vt,payTypeRe:Tt,recommend:bt,payBtn:gt,tenantPayBtn:Ct};const me=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:o}){const r=be(),i=fe({payType:"wx",pay_channel:""}),l=()=>{Q.confirm({message:"\u662F\u5426\u653E\u5F03\u672C\u6B21\u4ED8\u6B3E",confirmButtonText:"\u7EE7\u7EED\u4ED8\u6B3E",cancelButtonText:"\u653E\u5F03"}).then(()=>{}).catch(async()=>{le("\u53D6\u6D88\u652F\u4ED8"),await b(),o("close"),le("\u53D6\u6D88\u652F\u4ED8")})},a=ae(()=>{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=ae(()=>{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)}),b=async u=>{try{await E.post(me+"/userOrder/orderCancel",{data:{orderNo:e.paymentConfig.orderNo}})}catch{}o("update:modelValue",!1),u||(W().isApp?$({api:"goBack"}):r.go(-1)),o("backOut")},G=async()=>{console.log(e.paymentVendor,"props.paymentVendor"),e.paymentVendor&&(e.paymentVendor.indexOf("wxpay")>-1||e.paymentVendor.indexOf("alipay")>-1)?F():ie()},F=async()=>{try{const u=i.payType==="zfb"?"ali_app":"wx_app";console.log(e.paymentConfig,"paymentConfig");let m=e.paymentVendor;e.paymentChannels.forEach(V=>{i.payType==="zfb"&&V.indexOf("alipay")!==-1&&(m=V),i.payType==="wx"&&V.indexOf("wxpay")!==-1&&(m=V)});const K={merOrderNo:e.paymentConfig.orderNo,paymentChannel:u,paymentVendor:m},H=await E.post(me+"/userOrder/executePayment/v2",{data:{...K}});$({api:"paymentOrder",content:{orderNo:e.paymentConfig.orderNo,payChannel:u,payInfo:H.data.reqParams.body||JSON.stringify(H.data.reqParams)}}),O.loading({message:"\u652F\u4ED8\u4E2D...",forbidClick:!0,duration:3e3,loadingType:"spinner"}),O.clear(),o("update:modelValue",!1),_e("paymentOperation",V=>{console.log(V,"init paymentOperation"),J(V==null?void 0:V.content)})}catch(u){console.log(u)}},J=u=>{if(console.log(u,"paymentOperation"),u.status==="success"||u.status==="error")O.clear(),o("update:modelValue",!1),r.replace({path:"/tradeDetail",query:{orderNo:e.paymentConfig.orderNo}});else if(u.status==="cancel")O.clear(),o("update:modelValue",!1);else if(u.status==="fail"){const m=i.payType==="zfb"?"\u60A8\u5C1A\u672A\u5B89\u88C5\u652F\u4ED8\u5B9D":"\u60A8\u5C1A\u672A\u5B89\u88C5\u5FAE\u4FE1";Q.alert({title:"\u63D0\u793A",message:m}).then(()=>{O.clear(),o("update:modelValue",!1)})}},ie=()=>{const u=i.payType;W().weixin?u=="zfb"?(i.pay_channel="alipay_qr",v("qrCode")):u=="wx"&&(i.pay_channel="wx_pub",v("pay")):W().alipay?u=="zfb"?(i.pay_channel="alipay_wap",v("pay")):u=="wx"&&(i.pay_channel="wx_pub",v("qrCode")):(u=="zfb"?i.pay_channel="alipay_qr":u=="wx"&&(i.pay_channel="wx_pub"),v("qrCode"))},v=u=>{const m=u=="qrCode"?"payCenter":"payResult";o("confirm",{payCode:m,pay_channel:i.pay_channel})};return()=>t("div",{class:I.payment},[t(B,{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(xe,{modelValue:i.payType,"onUpdate:modelValue":u=>i.payType=u},{default:()=>[t(g,{border:!1},{default:()=>[a.value&&t(p,{border:!0,center:!0,onClick:()=>{i.payType="wx"}},{icon:()=>t(B,{name:Ee,size:18},null),"right-icon":()=>t(ne,{name:"wx"},{icon:u=>t(B,{class:I.boxStyle,name:u.checked?h.projectType==="tenant"?ce:te:oe},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:()=>{i.payType="zfb"}},{icon:()=>t(B,{name:Se,size:18},null),"right-icon":()=>t(ne,{name:"zfb"},{icon:u=>t(B,{class:I.boxStyle,name:u.checked?h.projectType==="tenant"?ce:te:oe},null)})})]})]}),t("div",{class:I.blank},null),t(ee,{type:"primary",class:[I.payBtn,h.projectType==="tenant"&&I.tenantPayBtn],block:!0,round:!0,onClick:G},{default:()=>[s("\u786E\u8BA4\u652F\u4ED8")]})])}});const At="_videoOrder_1j16x_1",Ot="_tag_1j16x_1",It="_title_1j16x_12",Nt="_courseGroupName_1j16x_17",Dt="_titleSong_1j16x_22",jt="_teacher_1j16x_26",Lt="_price_1j16x_32",Et="_userLogo_1j16x_43",St="_classItem_1j16x_49",Vt="_time_1j16x_55",xt="_line_1j16x_61",wt="_img_1j16x_75",Gt="_titleClass_1j16x_82",Ft="_labelClass_1j16x_87";var T={videoOrder:At,tag:Ot,title:It,courseGroupName:Nt,titleSong:Dt,teacher:jt,price:Lt,userLogo:Et,classItem:St,time:Vt,line:xt,img:wt,titleClass:Gt,labelClass:Ft},Ut=C({name:"OrderVideo",props:{item:{type:Object,default:{}}},computed:{album(){const e=this.item.courseInfo||[],o=[];return e.map(r=>{r.musicAlbumInfos&&r.musicAlbumInfos.map(i=>{i.relationType==="ALBUM"&&o.findIndex(a=>a.musicAlbumId===i.musicAlbumId)===-1&&o.push(i)})}),this.item.relationType==="GIFT"?[...o]:[]},music(){const e=this.item.courseInfo||[],o=[];return e.map(r=>{r.musicAlbumInfos&&r.musicAlbumInfos.map(i=>{i.relationType==="MUSIC"&&o.findIndex(a=>a.musicAlbumId===i.musicAlbumId)===-1&&o.push(i)})}),this.item.relationType==="GIFT"?[...o]:[]}},render(){const e=this.item;return t("div",{class:T.videoOrder},[t(g,{border:!1},{default:()=>[t(p,{center:!0},{title:()=>t("div",{class:[T.title]},[t("span",{class:T.tag},[s("\u89C6\u9891\u8BFE")]),t("span",{class:[T.courseGroupName,"van-ellipsis"]},[e.courseGroupName])])}),t(p,{center:!0,title:e.teacherName,titleClass:T.teacher},{icon:()=>t(P,{class:T.userLogo,src:e.avatar||X},null),default:()=>t("span",{class:T.price},[t("i",null,[s("\xA5")]),x(e.coursePrice)])})]}),this.album.length>0&&t(g,{border:!1},{default:()=>[t(p,{center:!0},{title:()=>t("div",{class:[T.title,"van-ellipsis"],style:{display:"flex",alignItems:"center"}},[t("span",{class:T.line},null),s("\u9644\u5E26\u4E13\u8F91")]),value:()=>t("span",{class:T.titleSong},[s("\xB7 \u8D60\u9001")])}),this.album.map(o=>t(p,{center:!0,title:o.name,titleClass:T.titleClass,label:o.remark||"",labelClass:[T.labelClass,"van-ellipsis"]},{icon:()=>t(P,{src:o.cover,class:T.img},null)}))]}),this.music.length>0&&t(g,{border:!1},{default:()=>[t(p,{center:!0},{title:()=>t("div",{class:[T.title,"van-ellipsis"],style:{display:"flex",alignItems:"center"}},[t("span",{class:T.line},null),s("\u9644\u5E26\u4E50\u8C31")]),value:()=>t("span",{class:T.titleSong},[s("\xB7 \u8D60\u9001")])}),this.music.map(o=>t(p,{center:!0,title:o.name,titleClass:T.titleClass,label:"\u4F5C\u8005\uFF1A"+(o.remark||""),labelClass:[T.labelClass,"van-ellipsis"]},{icon:()=>t(P,{src:o.cover,class:T.img},null)}))]})])}});const kt="_liveOrder_86fgp_1",Rt="_tag_86fgp_1",zt="_title_86fgp_12",Bt="_courseGroupName_86fgp_17",Yt="_collapseItem_86fgp_22",qt="_teacher_86fgp_27",Ht="_price_86fgp_33",Mt="_userLogo_86fgp_44",Qt="_classItem_86fgp_50",$t="_time_86fgp_55";var D={liveOrder:kt,tag:Rt,title:zt,courseGroupName:Bt,collapseItem:Yt,teacher:qt,price:Ht,userLogo:Mt,classItem:Qt,time:$t},Xt=C({name:"OrderLive",props:{item:{type:Object,default:{}}},data(){return{collapse:[1]}},render(){const e=this.item;return t("div",{class:D.liveOrder},[t(g,{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(P,{class:D.userLogo,src:e.avatar||X},null),default:()=>t("span",{class:D.price},[t("i",null,[s("\xA5")]),x(e.coursePrice)])}),t(p,{border:!1},{default:()=>[t(re,{border:!1,modelValue:this.collapse,"onUpdate:modelValue":o=>this.collapse=o},{default:()=>[t(se,{title:"\u8BFE\u7A0B\u8BE6\u60C5",name:1,class:D.collapseItem},{default:()=>[t("div",{class:D.classItem},[e.courseInfo.map(o=>t("div",{class:D.time},[o.courseTime]))])]})]})]})]})])}});const Jt="_videoOrder_jkrwk_1",Kt="_tag_jkrwk_1",Wt="_title_jkrwk_12",Zt="_courseGroupName_jkrwk_17",eo="_collapseItem_jkrwk_23",to="_teacher_jkrwk_28",oo="_price_jkrwk_34",ro="_userLogo_jkrwk_44",so="_classItem_jkrwk_50",io="_time_jkrwk_55";var j={videoOrder:Jt,tag:Kt,title:Wt,courseGroupName:Zt,collapseItem:eo,teacher:to,price:oo,userLogo:ro,classItem:so,time:io},ao=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(g,{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(P,{class:j.userLogo,src:e.avatar||X},null),default:()=>t(S,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(re,{border:!1,modelValue:this.collapse,"onUpdate:modelValue":o=>this.collapse=o},{default:()=>[t(se,{title:"\u8BFE\u7A0B\u8BE6\u60C5",name:1,class:j.collapseItem},{default:()=>[t("div",{class:j.classItem},[e.classTime.map(o=>{const r=`${o.classDate} ${d(o.startTime).format("HH:mm")}-${d(o.endTime).format("HH:mm")}`;return t("div",{class:j.time},[r])})])]})]})]})]})])}});const no="_memberLogo_10pru_1",lo="_container_10pru_5",co="_titleClass_10pru_8",uo="_title_10pru_8",po="_price_10pru_21",mo="_activityClass_10pru_33",yo="_activityTit_10pru_36",fo="_activityTitNum_10pru_42",_o="_timerTitle_10pru_48",ho="_timer_10pru_48",vo="_timerCell_10pru_63",To="_cellGroup_10pru_68",bo="_cellGroupTimer_10pru_72",go="_discountTips_10pru_75",Co="_addNum_10pru_88";var y={memberLogo:no,container:lo,titleClass:co,title:uo,price:po,activityClass:mo,activityTit:yo,activityTitNum:fo,timerTitle:_o,timer:ho,timerCell:vo,cellGroup:To,cellGroupTimer:bo,discountTips:go,addNum:Co},ye="./assets/icon_member_svip.df06c070.png",Po="./assets/icon_studycard.954b8c8d.png",Ao=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 o=d(e.startTime).add(e.vipEndDays,"day"),r=e.period==="YEAR"?"years":"months",i=o.diff(d(e.startTime),r);return e.period==="MONTH"?i+1:e.period==="QUARTERLY"?Math.ceil((i+1)/3):e.period==="YEAR_HALF"?Math.ceil((i+1)/6):e.period==="YEAR"?i+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:o,discountCardFlag:r}=this.item,i=(e||[]).filter(l=>l.goodType==="DISCOUNT");if(i.length){const l=r?d(o||new Date).toDate():d(new Date).toDate();let a=l;return i.map(c=>{c.unit==="MONTH"?a=d(a).add(1*c.goodsNum,"month").toDate():c.unit==="QUARTERLY"?a=d(a).add(3*c.goodsNum,"month").toDate():c.unit==="YEAR_HALF"?a=d(a).add(6*c.goodsNum,"month").toDate():c.unit==="YEAR"&&(a=d(a).add(1*c.goodsNum,"year").toDate())}),{startTime:r?d(l).add(1,"day").format("YYYY-MM-DD"):d(l).format("YYYY-MM-DD"),endTime:d(a).format("YYYY-MM-DD")}}else return{startTime:null,endTime:null}},vipEndTime(){const e=(this.item.activityList||[]).filter(r=>this.item.orderType===r.goodType);let o=this.item.endTime;return e.map(r=>{r.unit==="MONTH"?o=d(o).add(1*r.goodsNum,"month").toDate():r.unit==="QUARTERLY"?o=d(o).add(3*r.goodsNum,"month").toDate():r.unit==="YEAR_HALF"?o=d(o).add(6*r.goodsNum,"month").toDate():r.unit==="YEAR"&&(o=d(o).add(1*r.goodsNum,"year").toDate())}),d(o).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(g,{class:["mb12",y.cellGroup],border:!1},{default:()=>[t(p,{titleClass:y.titleClass},{icon:()=>t(P,{class:y.memberLogo,src:e.orderType==="SVIP"?ye:pe},null),title:()=>t(S,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(he,{disableInput:!0,disabled:e.period==="PERPETUAL"||this.disabled,modelValue:e.num,"onUpdate:modelValue":o=>e.num=o,theme:"round",min:1,max:(e.activityList||[]).length>0?e.activityBuyCount:99,onChange:()=>{let o=new Date;e.period==="MONTH"?o=d(e.startTime).add(1*e.num,"month").toDate():e.period==="QUARTERLY"?o=d(e.startTime).add(3*e.num,"month").toDate():e.period==="YEAR_HALF"?o=d(e.startTime).add(6*e.num,"month").toDate():e.period==="YEAR"&&(o=d(e.startTime).add(1*e.num,"year").toDate()),e.endTime=d(o).format("YYYY-MM-DD"),this.$emit("priceChange",(e.price*e.num).toFixed(2))}},null)])])}),(e.activityList||[]).map(o=>t(p,{titleClass:[y.titleClass,y.activityClass]},{icon:()=>t(P,{class:y.memberLogo,src:o.goodType==="DISCOUNT"?Po:o.goodType==="SVIP"?ye:pe},null),title:()=>t(S,null,[t("div",{class:y.container},[t("div",{class:y.title},[o.goodsName||o.goodName]),t("div",{class:y.activityTit},[s("\u8D60\u9001")])]),t("div",{class:y.activityTitNum},[`x${o.goodsNum}`])])}))]}),e.orderType==="SVIP"&&e.vipEndDays>0&&t("div",{class:y.discountTips},[e.num>=this.needBuyNums?t(S,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(S,null,[s("\u8D2D\u4E70"),this.needBuyNums,s("\u4E2A"),Ue[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(g,{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])])})]})])}}),Oo="./assets/music-icon.fd0e8ce9.png";const Io="_item_11whb_1",No="_header_11whb_8",Do="_mate_11whb_12",jo="_icon_11whb_16",Lo="_info_11whb_22",Eo="_btn_11whb_38",So="_vip_11whb_46",Vo="_free_11whb_50",xo="_charge_11whb_54",wo="_tags_11whb_58",Go="_footer_11whb_74",Fo="_user_11whb_80",Uo="_userIcon_11whb_85",ko="_favorite_11whb_90";var U={item:Io,header:No,mate:Do,icon:jo,info:Lo,btn:Eo,vip:So,free:Vo,charge:xo,tags:wo,footer:Go,user:Fo,userIcon:Uo,favorite:ko};function Ro(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ge(e)}var zo=C({name:"OrderMusic",props:{item:{type:Object,default:{}}},render(){const e=this.item;return t("div",{class:U.item},[t("header",{class:U.header},[t("div",{class:U.mate},[t(P,{src:e.titleImg||Oo,class:U.icon},null),t("div",{class:U.info},[t("h4",null,[e.name]),t("p",null,[e.composer]),t("div",{class:U.tags},[(e.subjectNames||"").split(",").map(o=>t(ke,null,Ro(o)?o:{default:()=>[o]}))])])]),t("div",{class:U.buttons},null)])])}});const Bo="_memberLogo_1ki51_1",Yo="_titleClass_1ki51_5",qo="_title_1ki51_5",Ho="_price_1ki51_14",Mo="_timerTitle_1ki51_25",Qo="_timer_1ki51_25",$o="_timerCell_1ki51_39";var k={memberLogo:Bo,titleClass:Yo,title:qo,price:Ho,timerTitle:Mo,timer:Qo,timerCell:$o},Xo="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/3bv/2rP/w4HNj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VIo+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==",Jo=C({name:"OrderPinao",props:{item:{type:Object,default:{}}},render(){const e=this.item;return console.log(e),t("div",{class:k.videoOrder},[t(g,{class:"mb12",border:!1,style:{borderRadius:"8px"}},{default:()=>[t(p,{center:!0,titleClass:k.titleClass},{icon:()=>t(P,{class:k.memberLogo,src:Xo},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 Ko="_liveOrder_w4wdr_1",Wo="_tag_w4wdr_1",Zo="_title_w4wdr_12",er="_collapseItem_w4wdr_17",tr="_line_w4wdr_22",or="_teacher_w4wdr_31",rr="_price_w4wdr_42",sr="_userLogo_w4wdr_52",ir="_classItem_w4wdr_58",ar="_time_w4wdr_63";var R={liveOrder:Ko,tag:Wo,title:Zo,collapseItem:er,line:tr,teacher:or,price:rr,userLogo:sr,classItem:ir,time:ar},nr="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/4tH/v5r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uo8P2c6jxeKuuWFHnSQ0cbS3iP7Hvf4cOQLFnZIKRKHpvHMLO6eL+wTQj7NibKf7PuxUb5NtQnOQiu1TPENEILbbr7rmibLraGyvANo4/Fca/bs2CERxAH9yyMktioM4OIguIoRkCmTIkAQSsiRTCZehSIdOIYMkCA5OFhz6Z7RLC/0be2AiGu/8ET9w732P94aDUxO+09f9qcznzzlppspQsqMi59+P/Kf+vg+UL2HytIMysqBip5fr9fBG2y0IVCCVMkEgMcENpeXUPlcRPNhLwUDSHmqc40AO1JHlcZAlAQ7FfB3AVIALG/z9OC6icG5gEMBm/CQTg5Cyeq+J4/KNP18p0IA4xXIUlbs4s+4QaOZrUU+aD62QcbmJokplJ8/VuYGgA+Jql5o0raSC5hLoRrbTjmwZuhvZadgqtUfQz3gzDRtNN2PoD3tWmGVZyEouZO7J8jA8SfbWelajrz0ZhkG+u7Xm+mwymelza+v6CNr8AxUNQ4kURe08AAAAAElFTkSuQmCC",lr=C({name:"OrderLive",props:{item:{type:Object,default:{}}},data(){return{collapse:[1]}},render(){const e=this.item;return t("div",{class:R.liveOrder},[t(g,{border:!1},{default:()=>[t(p,{center:!0},{title:()=>t("div",{class:[R.title,"van-ellipsis"]},[t("span",{class:R.line},null),s("\u6D3B\u52A8\u62A5\u540D")])}),t(p,{center:!0,border:!1,title:e.goodsName,titleClass:R.teacher},{icon:()=>t(P,{class:R.userLogo,src:nr},null),default:()=>t("span",{class:R.price},[t("i",null,[s("\xA5")]),x(e.actualPrice)])})]})])}});const cr="_album_1uv6f_1",ur="_albumType_1uv6f_9",dr="_img_1uv6f_21",pr="_content_1uv6f_34",mr="_footer_1uv6f_50",yr="_icon_1uv6f_71";var q={album:cr,albumType:ur,img:dr,content:pr,footer:mr,icon:yr},fr=C({name:"OrderMusic",props:{item:{type:Object,default:{}}},render(){const e=this.item;return t("div",{class:q.album},[t(P,{class:q.img,src:e.albumCoverUrl},null),e.paymentType==="CHARGE"&&t("span",{class:q.albumType},[s("\u4ED8\u8D39")]),t("div",{class:q.content},[t("h4",{class:"van-ellipsis"},[e.albumName]),t("p",{class:"van-multi-ellipsis--l2"},[e.albumDesc]),t("div",{class:q.footer},[t("span",null,[e.musicSheetCount,s("\u9996")]),t("span",null,[e.albumFavoriteCount,s("\u4EBA\u6536\u85CF")])])])])}});const _r="_saveShareImage_r51oz_1",hr="_tips_r51oz_8",vr="_tipsTitle_r51oz_14",Tr="_tipsContent_r51oz_20",br="_iconLogo_r51oz_26",gr="_schoolName_r51oz_33",Cr="_previewSection_r51oz_48",Pr="_topImage_r51oz_55",Ar="_shareSection_r51oz_62",Or="_shareContaienr_r51oz_70",Ir="_shareType_r51oz_74",Nr="_qrcodeSection_r51oz_84",Dr="_memo_r51oz_92";var N={saveShareImage:_r,tips:hr,tipsTitle:vr,tipsContent:Tr,iconLogo:br,schoolName:gr,previewSection:Cr,topImage:Pr,shareSection:Ar,shareContaienr:Or,shareType:Ir,qrcodeSection:Nr,memo:Dr};const jr="_qrcode_izshm_1",Lr="_qrcodeCanvas_izshm_4",Er="_qrcodeLogo_izshm_8",Sr="_small_izshm_18";var M={qrcode:jr,qrcodeCanvas:Lr,qrcodeLogo:Er,small:Sr},Vr=C({props:{text:{type:String,default:""},size:{type:String,default:"200px"},logoSize:{type:String,default:"default"}},setup(e){const o=Y(),r=()=>{qe.toCanvas(o.value,e.text,{margin:1},i=>{i&&console.log(i),console.log("success")})};return Ce(()=>e.text,()=>{r()}),Pe(()=>{Ae(()=>{r()})}),()=>t("div",{class:M.qrcode,style:{width:e.size,height:e.size}},[t("canvas",{ref:o,class:M.qrcodeCanvas},null),t("img",{src:Ye,class:[M.qrcodeLogo,e.logoSize==="small"&&M.small]},null)])}}),xr="./assets/icon-logo.4dc927fa.png",wr=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:xr,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(Vr,{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 Gr="_album_11e6q_1",Fr="_albumType_11e6q_9",Ur="_img_11e6q_20",kr="_content_11e6q_33",Rr="_musicNum_11e6q_50",zr="_footer_11e6q_57",Br="_icon_11e6q_69",Yr="_albumWeek_11e6q_76",qr="_albumTitle_11e6q_85",Hr="_albumNum_11e6q_91";var z={album:Gr,albumType:Fr,img:Ur,content:kr,musicNum:Rr,footer:zr,icon:Br,albumWeek:Yr,albumTitle:qr,albumNum:Hr},Mr=C({name:"OrderMusic",props:{item:{type:Object,default:{}}},render(){const e=this.item;return t(S,null,[t("div",{class:z.album},[t(P,{class:z.img,src:e.coverImg},null),t("div",{class:z.content},[t("h4",{class:"van-ellipsis"},[e.name]),t("p",{class:"van-multi-ellipsis--l2"},[e.describe])])]),t("div",{class:z.albumWeek},[t("span",{class:z.albumTitle},[s("\u8D2D\u4E70\u5468\u671F")]),t("span",{class:z.albumNum},[e.purchaseNum,s("\u5929")])])])}});const Qr="_memberLogo_drmni_1",$r="_container_drmni_5",Xr="_titleClass_drmni_8",Jr="_title_drmni_8",Kr="_price_drmni_21",Wr="_timerTitle_drmni_33",Zr="_timer_drmni_33",es="_timerCell_drmni_48",ts="_cellGroup_drmni_53",os="_cellGroupTimer_drmni_57",rs="_discountTips_drmni_60",ss="_addNum_drmni_73";var A={memberLogo:Qr,container:$r,titleClass:Xr,title:Jr,price:Kr,timerTitle:Wr,timer:Zr,timerCell:es,cellGroup:ts,cellGroupTimer:os,discountTips:rs,addNum:ss},ve="./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:A.videoOrder},[t(g,{class:["mb12",A.cellGroup],border:!1},{default:()=>[t(p,{titleClass:A.titleClass},{icon:()=>t(P,{class:A.memberLogo,src:ve},null),title:()=>t(S,null,[t("div",{class:A.container},[t("div",{class:A.title},[e.goodsName||e.goodName]),t("div",{class:A.price},[t("i",null,[s("\xA5 ")]),this.$filters.moneyFormat(e.price)])]),t("div",{class:A.addNum},[t(he,{disableInput:!0,disabled:e.period==="PERPETUAL"||this.disabled,modelValue:e.num,"onUpdate:modelValue":o=>e.num=o,theme:"round",min:1,max:99,onChange:()=>{let o=new Date;e.period==="MONTH"?o=d(e.startTime).add(1*e.num,"month").toDate():e.period==="QUARTERLY"?o=d(e.startTime).add(3*e.num,"month").toDate():e.period==="YEAR_HALF"?o=d(e.startTime).add(6*e.num,"month").toDate():e.period==="YEAR"&&(o=d(e.startTime).add(1*e.num,"year").toDate()),e.endTime=d(o).format("YYYY-MM-DD"),this.$emit("priceChange",w(e.price*e.num))}},null)])])})]}),t(g,{class:["mb12",A.cellGroup,A.cellGroupTimer],border:!1},{default:()=>[t(p,{center:!0},{title:()=>t("div",{class:A.timerCell},[t("div",{class:A.timerTitle},[t("span",null,[s("\u7545\u5B66\u5361\u751F\u6548\u65F6\u95F4")])]),t("div",{class:A.timer},[this.startTime,s(" \u81F3 "),e.endTime])])})]})])}});const as="_videoOrder_1evhl_1",ns="_tag_1evhl_1",ls="_title_1evhl_12",cs="_courseGroupName_1evhl_17",us="_collapseItem_1evhl_23",ds="_teacher_1evhl_28",ps="_price_1evhl_34",ms="_userLogo_1evhl_44",ys="_classItem_1evhl_50",fs="_time_1evhl_55";var L={videoOrder:as,tag:ns,title:ls,courseGroupName:cs,collapseItem:us,teacher:ds,price:ps,userLogo:ms,classItem:ys,time:fs},_s=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(g,{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(P,{class:L.userLogo,src:e.avatar||X},null),default:()=>t(S,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(re,{border:!1,modelValue:this.collapse,"onUpdate:modelValue":o=>this.collapse=o},{default:()=>[t(se,{title:"\u8BFE\u7A0B\u8BE6\u60C5",name:1,class:L.collapseItem},{default:()=>[t("div",{class:L.classItem},[e.classTime.map(o=>{const r=`${o.classDate} ${d(o.startTime).format("HH:mm")}-${d(o.endTime).format("HH:mm")}`;return t("div",{class:L.time},[r])})])]})]})]})]})])}});const hs="_addDiscount_6pjg8_1",vs="_selectDiscount_6pjg8_1",Ts="_boxStyle_6pjg8_4",bs="_container_6pjg8_25",gs="_memberLogo_6pjg8_28",Cs="_info_6pjg8_34",Ps="_top_6pjg8_40",As="_price_6pjg8_48",Os="_center_6pjg8_51",Is="_t_6pjg8_40",Ns="_dis_6pjg8_60",Ds="_text_6pjg8_68",js="_bottom_6pjg8_71",Ls="_cellGroup_6pjg8_76",Es="_timer_6pjg8_80",Ss="_timerCell_6pjg8_86";var f={addDiscount:hs,selectDiscount:vs,boxStyle:Ts,container:bs,memberLogo:gs,info:Cs,top:Ps,price:As,center:Os,t:Is,dis:Ns,text:Ds,bottom:js,cellGroup:Ls,timer:Es,timerCell:Ss},Vs=C({name:"add-discount",props:{orderType:{type:String,default:""},orderGoodsType:{type:Array,default:()=>[]},actualPrice:{type:Number,default:0}},emits:["confirm","confirmOnlyDiscount"],setup(e,{emit:o}){const r=Y(!1),i=Y(!1);Y([]);const l=Y(!1),a=fe({discountPrice:0,startTime:"",endTime:""}),c=Y({id:null,salePrice:0,discountRate:0,period:"YEAR",vipType:"DISCOUNT"}),b=()=>{if(l.value){a.discountPrice=Te(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")),a.startTime=d(u).format("YYYY-MM-DD"),a.endTime=m}else a.discountPrice=0,a.startTime="",a.endTime=""},G=()=>{l.value=!l.value,b(),o("confirm",{checked:l.value,discountPrice:a.discountPrice,...c.value})},F=()=>{l.value=!0,b(),o("confirmOnlyDiscount",{checked:l.value,discountPrice:a.discountPrice,...c.value})},J=v=>{let u=!1;e.orderGoodsType.forEach(m=>{v.includes(m.orderType)&&(u=!0)}),r.value=u};return(async()=>{const{data:v}=await E.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,J(u);const m=h.user.data,K=d(),H=m.discountEndTime||new Date;m.discountCardFlag&&d(K).isBefore(d(H))&&r.value&&(i.value=!0,F())})(),()=>r.value?t("div",{class:f.addDiscount},[i.value?"":t(S,null,[t(g,{class:["mb12",f.cellGroup],border:!1},{default:()=>[t(p,{center:!0,class:f.selectDiscount,titleClass:f.titleClass,onClick:()=>{G()}},{icon:()=>t(He,{modelValue:l.value},{icon:v=>t(B,{class:f.boxStyle,name:v.checked?te:oe,size:"15"},null)}),title:()=>t("div",{class:f.container},[t(P,{class:f.memberLogo,src:ve},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(g,{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},[a.startTime,s(" \u81F3 "),a.endTime])])})]}):""]),l.value||i.value?t(g,{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"),a.discountPrice])])})]}):""]):""}});const w=e=>(e=Number(e),Math.ceil(Number((e*100).toFixed(1)))/100),Te=e=>(e=Number(e),Math.floor(Number((e*100).toFixed(1)))/100);var yi=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 o=0;return e.forEach(r=>{r.num?o+=r.num:o+=1}),o},countDiscountPrice(){const e=n.orderObject;return e.couponAmount||Te(e.couponDiscountPrice+e.discountPrice+e.discountCardPrice)}},async mounted(){if(this.dataLoading=!0,this.orderType=="MUSIC"&&this.id)try{const r=await Re(this.id);n.orderObject.orderType="MUSIC",n.orderObject.orderName=r.musicSheetName,n.orderObject.orderDesc=r.musicSheetName,n.orderObject.actualPrice=r.musicPrice,n.orderObject.recomUserId=this.recomUserId,n.orderObject.activityId=this.activityId,["WAIT_PAY","PAYING"].includes(r.orderStatus)?n.orderObject.orderNo=r.orderNo:["PAID","CLOSE","FAIL"].includes(r.orderStatus)&&(O("\u8BA2\u5355\u6709\u8BEF"),$({api:"back",content:{}})),n.orderObject.orderList=[{orderType:"MUSIC",goodsName:r.musicSheetName,actualPrice:r.musicPrice,price:r.musicPrice,...r}]}catch{}const e=n.orderObject.orderList||[],o=[];if(e.forEach(r=>{o.push({orderType:r.orderType,basePrice:r.price||0,price:r.price||0})}),this.orderGoodsType=o,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:r}=Oe(this.$refs.paymentButton);this.bottomHeight=r+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 E.get(h.platformApi+"/sysUserContractRecord/checkContractSign",{params:{contractType:"REGISTER"}});this.exists=e.data}catch{}},async getOrderPayType(){try{const e=n.orderObject,o=e.orderList.find(a=>a.orderType===this.orderType);let r=o?o.id:"";if(e.orderType==="PRACTICE"){const a=e.orderList.find(c=>c.orderType==="PRACTICE");r=a?a.teacherId:""}if(e.orderType==="LIVE"||e.orderType==="VIDEO"){const a=e.orderList.find(c=>c.orderType==="VIDEO"||c.orderType==="LIVE");r=a?a.courseGroupId:""}const{data:i}=await E.post(h.platformApi+"/userOrder/orderPayType",{data:{goodType:e.orderType,bizId:r,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=i.paymentVersion||"V1",this.paymentVendor=i.paymentVendor),this.paymentChannels=i.paymentChannels}catch{}},async onAuthSuccess(){this.popupShow=!1,await this.getUserRegisterProtocol(),this.onSubmit()},async submitNativePay(){try{const e=this.orderInfo.paymentConfig,o={merOrderNo:e.merOrderNo,paymentChannel:e.paymentChannel,paymentVendor:e.paymentVendor},r=await E.post(h.platformApi+"/userOrder/executePayment/v2",{data:{...o}}),i=e.paymentChannel;$({api:"paymentOrder",content:{orderNo:this.orderNo,payChannel:i,payInfo:r.data.reqParams.body||JSON.stringify(r.data.reqParams)}}),O.loading({message:"\u652F\u4ED8\u4E2D...",forbidClick:!0,duration:3e3,loadingType:"spinner"}),O.clear(),_e("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")O.clear(),this.$router.replace({path:"/tradeDetail",query:{orderNo:this.orderNo}});else if(e.status==="cancel")O.clear();else if(e.status==="fail"){const r=this.orderInfo.paymentChannel.indexOf("wxpay")!==-1?"\u60A8\u5C1A\u672A\u5B89\u88C5\u5FAE\u4FE1":"\u60A8\u5C1A\u672A\u5B89\u88C5\u652F\u4ED8\u5B9D";Q.alert({title:"\u63D0\u793A",message:r}).then(()=>{O.clear()})}},async onSubmit(){var e,o;if(this.orderPrice>0){if(!this.agreeStatus){O("\u8BF7\u5148\u9605\u8BFB\u5E76\u540C\u610F\u300A\u9177\u4E50\u79C0\u5E73\u53F0\u670D\u52A1\u534F\u8BAE\u300B");return}const r=h.user.data;if(!(r!=null&&r.realName)||!(r!=null&&r.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 r=this.orderInfo.paymentConfig.paymentChannel;if(r)if(((e=this.orderInfo.paymentVendor)==null?void 0:e.indexOf("wxpay"))>-1||((o=this.orderInfo.paymentVendor)==null?void 0:o.indexOf("alipay"))>-1)this.submitNativePay();else{const i=Ge(r);this.onConfirm({payCode:i,pay_channel:r})}else this.paymentStatus=!0}return}try{const r=n.orderObject;if(this.paymentVersion==="V1"){const i=h.platformType==="TEACHER"?"/api-teacher/userOrder/executeOrder":"/api-student/userOrder/executeOrder",l=await E.post(i,{data:{orderName:r.orderName,orderDesc:r.orderDesc,orderType:r.orderType,actualPrice:this.orderPrice||0,recomUserId:r.recomUserId,activityId:r.activityId,couponId:r.couponId,orderInfos:[...Fe()]}}),a=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(a.status=="PAID"){this.$router.replace({path:"/tradeDetail",query:{orderNo:a.orderNo}});return}n.orderObject.orderNo=a.orderNo,n.orderObject.actualPrice=a.actualPrice}else{const i=h.platformType==="TEACHER"?"/api-teacher/userOrder/executeOrder/v2":"/api-student/userOrder/executeOrder/v2",l=ue();this.selectGoods&&this.selectGoods.length>0&&l.push(...ue(this.selectGoods));const a=await E.post(i,{data:{activityId:r.activityId>0?r.activityId:null,couponIds:r.couponId,goodsInfos:l,orderDesc:r.orderDesc,orderName:r.orderName,orderType:r.orderType,paymentCashAmount:this.orderPrice||0,paymentType:this.paymentVendor,recomUserId:r.recomUserId||null}}),c=a.data||{};if(a.code===999||a.code===998){this.dialogVisible=!0,this.dialogContent=a.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&&Q.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 E.get(h.platformType==="TEACHER"?"/api-teacher/teacher/queryUserInfo":"/api-student/student/queryUserInfo");Ie(e.data);const o=e.data.userVip.vipEndDays||0;n.orderObject.orderList.forEach(r=>{r.vipEndDays=o})}},onBackOut(){de()},onCouponSelect(e){let o=0,r=0;const i={};this.orderGoodsType.forEach(b=>{i[b.orderType]=b.price}),(e||[]).forEach(b=>{if(b.couponCategory==="UNIVERSAL")r+=Number(b.discountPrice);else{const G=ze[b.couponCategory];let F=i[G]-Number(b.discountPrice);F>=0?o+=Number(b.discountPrice):o+=Number(i[G]),i[G]=F>=0?F:0}});let l=0;for(let b in i)l+=i[b];r>=l&&(r=l);const a=Number(w(l-Number(r)));this.orderPrice=a>=0?a:0;const c=(e||[]).map(b=>b.couponIssueId);n.orderObject.couponId=c.join(",")||"",n.orderObject.couponDiscountPrice=o+r},onConfirm(e){const o=this.orderInfo.paymentConfig||{};this.pay_channel=e.pay_channel;const r=Ne.stringify({pay_channel:e.pay_channel,wxAppId:o.wxAppId,alipayAppId:o.alipayAppId,paymentType:this.orderInfo.paymentType,body:o.body,price:o.price,orderNo:o.merOrderNo,userId:o.userId});n.orderObject.paymentConfig.paymentConfig.paymentChannel=e.pay_channel,console.log(r,"params ---",o),e.payCode==="payResult"?window.location.href=window.location.origin+h.payBackPath+"#/payResult?"+r:(this.qrCodeUrl=window.location.origin+h.payBackPath+"#/payDefine?"+r,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 o=h.platformType==="TEACHER"?"/api-teacher":"/api-student",{data:r}=await E.get(`${o}/userOrder/detailByOrderNo/${this.orderNo}`,{hideLoading:!0});r.status!=="WAIT_PAY"&&r.status!=="PAYING"&&(this.showQrcode=!1,clearInterval(this.orderTimer),setTimeout(()=>{this.$router.replace({path:"/tradeDetail",query:{orderNo:this.orderNo}})},100))}catch(o){console.log(o,"error"),clearInterval(this.orderTimer)}},5e3)}},beforeUnmount(){de()},render(){return t("div",{class:_["order-detail"],style:{paddingBottom:this.bottomHeight+"px"}},[t(we,null,null),!this.loading&&t(S,null,[this.orderList.map(e=>{if(e.orderType==="VIDEO")return t(Ut,{item:e},null);if(e.orderType==="LIVE")return t(Xt,{item:e},null);if(e.orderType==="PRACTICE")return t(ao,{item:e},null);if(e.orderType==="VIP_COURSE")return t(_s,{item:e},null);if(e.orderType==="VIP"||e.orderType==="SVIP")return t(Ao,{item:e,disabled:this.disabledCoupon,onPriceChange:o=>{n.orderObject.couponId="",n.orderObject.couponDiscountPrice=0,this.orderAmount=Number(o);const r=Number(w(Number(this.orderAmount)-Number(n.orderObject.couponDiscountPrice)));this.orderPrice=r>=0?r:0,this.orderGoodsType.forEach(l=>{l.orderType===e.orderType&&(l.price=Number(o))});const i=this.$refs.useCouponRef;i&&i.resetCouponList()}},null);if(e.orderType==="MUSIC")return t(zo,{item:e},null);if(e.orderType==="PIANO_ROOM")return t(Jo,{item:e},null);if(e.orderType==="ACTI_REGIST")return t(lr,{item:e},null);if(e.orderType==="ALBUM")return t(fr,{item:e},null);if(e.orderType==="TENANT_ALBUM")return t(Mr,{item:e},null);if(e.orderType==="DISCOUNT")return t(is,{disabled:this.disabledCoupon,item:e,onPriceChange:o=>{n.orderObject.couponId="",n.orderObject.couponDiscountPrice=0,this.orderAmount=Number(o);const r=Number(w(Number(this.orderAmount)-Number(n.orderObject.couponDiscountPrice)));this.orderPrice=r>=0?r:0,this.orderGoodsType.forEach(l=>{l.orderType===e.orderType&&(l.price=Number(o))});const i=this.$refs.useCouponRef;i&&i.resetCouponList()}},null)}),h.platformType==="STUDENT"&&!this.dataLoading&&!this.disabledCoupon?t(Vs,{actualPrice:this.orderAmount,orderType:this.orderType,orderGoodsType:this.orderGoodsType,onConfirmOnlyDiscount:e=>{n.orderObject.discountCardPrice=Number(e.discountPrice),this.orderGoodsType.forEach(r=>{r.orderType!=="DISCOUNT"&&(r.price=w(r.price-Number(e.discountPrice)))});const o=this.$refs.useCouponRef;o&&o.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 o=(l=this.selectGoods)==null?void 0:l.findIndex(a=>a.id===e.id),r=this.orderGoodsType;if(e.checked)n.orderObject.discountCardPrice=Number(e.discountPrice),this.orderGoodsType.forEach(a=>{a.orderType!=="DISCOUNT"&&(a.price=w(a.price-Number(e.discountPrice)))}),o===-1&&(this.orderAmount=this.orderAmount+e.salePrice,this.selectGoods.push({orderType:e.vipType,goodsName:"\u7545\u5B66\u5361",num:1,id:e.id}),r.findIndex(c=>c.orderType===e.vipType)===-1&&r.push({orderType:e.vipType,price:e.salePrice}));else if(n.orderObject.discountCardPrice=0,o!==-1){this.selectGoods.splice(o,1),this.orderAmount=this.orderAmount-e.salePrice,this.orderGoodsType.forEach(c=>{c.orderType!=="DISCOUNT"&&(c.price=c.basePrice)});const a=r.findIndex(c=>c.orderType===e.vipType);a!==-1&&r.splice(a,1)}this.orderGoodsType=r;const i=this.$refs.useCouponRef;i&&i.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(g,{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(Be,{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(De,{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(ee,{type:"primary",round:!0,class:[_.btn,h.projectType==="tenant"&&_.btnTenant],onClick:this.onSubmit},{default:()=>[s("\u7ACB\u5373\u652F\u4ED8")]})])])]),t(je,{modelValue:this.popupShow,"onUpdate:modelValue":e=>this.popupShow=e},{default:()=>[t(Le,{exists:this.exists,onSuccess:this.onAuthSuccess},null)]}),t(Z,{show:this.paymentStatus,closeOnClickOverlay:!1,position:"bottom",round:!0,closeOnPopstate:!0,safeAreaInsetBottom:!0,style:{minHeight:"30%"}},{default:()=>[this.paymentVersion==="V1"?t(Ve,{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(Z,{show:this.showQrcode,"onUpdate:show":e=>this.showQrcode=e,round:!0,class:_.qrcodePopup,onClose:()=>{clearInterval(this.orderTimer)}},{default:()=>[t(wr,{url:this.qrCodeUrl,pay_channel:this.pay_channel},null)]}),t(Z,{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(ee,{round:!0,type:"primary",block:!0,class:_.dialogBtn,onClick:this.onDialogConfirm},{default:()=>[this.dialogBtnText]})])])]})])}});export{yi as default,Te as numberToTwoDown,w as numberToTwoUp};