index.371c7c4b.js 33 KB

1
  1. import{g as h,d as c,P as E,Q as M,j as e,M as O,z as s,by as P,B as R,D,w as L,f as q,F as H,u as w,Z as J,bz as K,S as W,a2 as Y,U as Z,W as $,T as N,n as ee,X as te,y as re,aR as U}from"./index.e6d6174e.js";import{C as se}from"./index.cc99aa12.js";import{C as oe}from"./index.62005a6f.js";import{U as ae}from"./index.09405f55.js";import{P as ie}from"./index.b2461594.js";import{C as l}from"./index.af99cf22.js";import{C as g}from"./index.4aea64de.js";import{R as le,a as F}from"./index.cbc70232.js";import"./index.d92a5aca.js";import{u as k}from"./hooks.00b5b341.js";import{C as ne}from"./index.045f03fd.js";import{o as i,b as ce,c as ue,r as de}from"./orderStatus.fea01d83.js";import{I as p}from"./index.67c54471.js";import{i as V}from"./icon_teacher.40b6f077.js";import{C as G,a as Q}from"./index.3b5a20ca.js";import{i as pe}from"./icon_member.663cb792.js";import{T as me}from"./index.05f2b7dd.js";import{g as ye}from"./tradeOrder.d6463377.js";import{U as he}from"./index.a762d91e.js";import{i as _e,b as ve}from"./browser.8379baf6.js";import"./index.3d7e5752.js";import"./icon_checkbox_default.2fe5d57e.js";import"./icon_checkbox-tenant.06c74bc2.js";import"./index.3dbd60dd.js";import"./index.83d3716a.js";import"./index.17d70acf.js";import"./use-id.f239f36f.js";import"./index.41be4a84.js";import"./index.d8c651bf.js";import"./use-height.8140ea04.js";import"./index.68f32c85.js";import"./item.e1e863f7.js";const fe="_tips_kxybz_6",ge="_paymentInfo_kxybz_31",be="_protocol_kxybz_37",Ae="_protocolTenant_kxybz_41",Ce="_btnGroup_kxybz_48",Te="_priceSection_kxybz_58",Ie="_price_kxybz_58",Le="_priceUnit_kxybz_69",Oe="_btnTenant_kxybz_72",Pe="_qrcodePopup_kxybz_80";var d={"order-detail":"_order-detail_kxybz_1",tips:fe,paymentInfo:ge,protocol:be,protocolTenant:Ae,btnGroup:Ce,priceSection:Te,price:Ie,priceUnit:Le,btnTenant:Oe,qrcodePopup:Pe};const Se="_payment_1ot0l_1",je="_title_1ot0l_13",ze="_payAmount_1ot0l_21",xe="_amount_1ot0l_31",Ve="_blank_1ot0l_38",qe="_payTypeRe_1ot0l_41",we="_recommend_1ot0l_45",Ne="_payBtn_1ot0l_54";var b={payment:Se,title:je,payAmount:ze,amount:xe,blank:Ve,payTypeRe:qe,recommend:we,payBtn:Ne};const Ue=h.platformType==="TEACHER"?"/api-teacher":"/api-student";var Fe=c({name:"payment",props:{modelValue:{type:Boolean,default:!1},paymentConfig:{type:Object,default:{}}},emits:["backOut","close","confirm","update:modelValue"],setup(t,{emit:r}){const a=E(),o=M({payType:"wx",pay_channel:""}),A=()=>{D.confirm({message:"\u662F\u5426\u653E\u5F03\u672C\u6B21\u4ED8\u6B3E",confirmButtonText:"\u7EE7\u7EED\u4ED8\u6B3E",cancelButtonText:"\u653E\u5F03"}).then(()=>{}).catch(async()=>{k("\u53D6\u6D88\u652F\u4ED8"),await S(),r("close"),k("\u53D6\u6D88\u652F\u4ED8")})},S=async u=>{try{await L.post(Ue+"/userOrder/orderCancel",{data:{orderNo:t.paymentConfig.orderNo}})}catch{}r("update:modelValue",!1),!u&&a.go(-1),r("backOut")},B=async()=>{const u=o.payType;q().weixin?u=="zfb"?(o.pay_channel="alipay_qr",j("qrCode")):u=="wx"&&(o.pay_channel="wx_pub",j("pay")):q().alipay?u=="zfb"?(o.pay_channel="alipay_wap",j("pay")):u=="wx"&&(o.pay_channel="wx_pub",j("qrCode")):(u=="zfb"?o.pay_channel="alipay_qr":u=="wx"&&(o.pay_channel="wx_pub"),j("qrCode"))},j=u=>{const X=u=="qrCode"?"payCenter":"payResult";r("confirm",{payCode:X,pay_channel:o.pay_channel})};return()=>e("div",{class:b.payment},[e(O,{onClick:A,name:"cross",size:20},null),e("div",{class:[b.title]},[s("\u9009\u62E9\u652F\u4ED8\u65B9\u5F0F")]),e("div",{class:b.payAmount},[e("p",null,[s("\u5E94\u4ED8\u91D1\u989D")]),e("div",{class:b.amount},[e("span",null,[s("\uFFE5 ")]),P(t.paymentConfig.actualPrice)])]),e(le,{modelValue:o.payType,"onUpdate:modelValue":u=>o.payType=u},{default:()=>[e(g,{border:!1},{default:()=>[e(l,{border:!0,center:!0,onClick:()=>{o.payType="wx"}},{icon:()=>e(O,{name:"wechat-pay",color:"#15c434",size:22},null),"right-icon":()=>e(F,{name:"wx"},null),title:()=>e("div",{class:b.payTypeRe},[s("\u5FAE\u4FE1\u652F\u4ED8 "),e("span",{class:b.recommend},[s("\u63A8\u8350")])])}),e(l,{title:"\u652F\u4ED8\u5B9D\u652F\u4ED8",border:!0,center:!0,onClick:()=>{o.payType="zfb"}},{icon:()=>e(O,{name:"alipay",color:"#009fe9",size:22},null),"right-icon":()=>e(F,{name:"zfb"},null)})]})]}),e("div",{class:b.blank},null),e(R,{type:"primary",class:b.payBtn,block:!0,round:!0,onClick:B},{default:()=>[s("\u786E\u8BA4\u652F\u4ED8")]})])}});const ke="_videoOrder_50lha_1",Ee="_tag_50lha_1",Re="_title_50lha_12",De="_titleSong_50lha_17",He="_teacher_50lha_21",Ge="_price_50lha_27",Qe="_userLogo_50lha_37",Be="_classItem_50lha_43",Xe="_time_50lha_49",Me="_line_50lha_55",Je="_img_50lha_69",Ke="_titleClass_50lha_76",We="_labelClass_50lha_81";var n={videoOrder:ke,tag:Ee,title:Re,titleSong:De,teacher:He,price:Ge,userLogo:Qe,classItem:Be,time:Xe,line:Me,img:Je,titleClass:Ke,labelClass:We},Ye=c({name:"OrderVideo",props:{item:{type:Object,default:{}}},computed:{album(){const t=this.item.courseInfo||[],r=[];return t.map(a=>{a.musicAlbumInfos&&a.musicAlbumInfos.map(o=>{o.relationType==="ALBUM"&&r.findIndex(S=>S.musicAlbumId===o.musicAlbumId)===-1&&r.push(o)})}),this.item.relationType==="GIFT"?[...r]:[]},music(){const t=this.item.courseInfo||[],r=[];return t.map(a=>{a.musicAlbumInfos&&a.musicAlbumInfos.map(o=>{o.relationType==="MUSIC"&&r.findIndex(S=>S.musicAlbumId===o.musicAlbumId)===-1&&r.push(o)})}),this.item.relationType==="GIFT"?[...r]:[]}},render(){const t=this.item;return console.log(t),e("div",{class:n.videoOrder},[e(g,{border:!1},{default:()=>[e(l,{center:!0},{title:()=>e("div",{class:[n.title,"van-ellipsis"]},[e("span",{class:n.tag},[s("\u89C6\u9891\u8BFE")]),t.courseGroupName])}),e(l,{center:!0,title:t.teacherName,titleClass:n.teacher},{icon:()=>e(p,{class:n.userLogo,src:t.avatar||V},null),default:()=>e("span",{class:n.price},[e("i",null,[s("\xA5")]),P(t.coursePrice)])})]}),this.album.length>0&&e(g,{border:!1},{default:()=>[e(l,{center:!0},{title:()=>e("div",{class:[n.title,"van-ellipsis"],style:{display:"flex",alignItems:"center"}},[e("span",{class:n.line},null),s("\u9644\u5E26\u4E13\u8F91")]),value:()=>e("span",{class:n.titleSong},[s("\xB7 \u8D60\u9001")])}),this.album.map(r=>e(l,{center:!0,title:r.name,titleClass:n.titleClass,label:r.remark||"",labelClass:[n.labelClass,"van-ellipsis"]},{icon:()=>e(p,{src:r.cover,class:n.img},null)}))]}),this.music.length>0&&e(g,{border:!1},{default:()=>[e(l,{center:!0},{title:()=>e("div",{class:[n.title,"van-ellipsis"],style:{display:"flex",alignItems:"center"}},[e("span",{class:n.line},null),s("\u9644\u5E26\u4E50\u8C31")]),value:()=>e("span",{class:n.titleSong},[s("\xB7 \u8D60\u9001")])}),this.music.map(r=>e(l,{center:!0,title:r.name,titleClass:n.titleClass,label:"\u4F5C\u8005\uFF1A"+(r.remark||""),labelClass:[n.labelClass,"van-ellipsis"]},{icon:()=>e(p,{src:r.cover,class:n.img},null)}))]})])}});const Ze="_liveOrder_12rl8_1",$e="_tag_12rl8_1",et="_title_12rl8_12",tt="_collapseItem_12rl8_17",rt="_teacher_12rl8_22",st="_price_12rl8_28",ot="_userLogo_12rl8_38",at="_classItem_12rl8_44",it="_time_12rl8_49";var _={liveOrder:Ze,tag:$e,title:et,collapseItem:tt,teacher:rt,price:st,userLogo:ot,classItem:at,time:it},lt=c({name:"OrderLive",props:{item:{type:Object,default:{}}},data(){return{collapse:[1]}},render(){const t=this.item;return e("div",{class:_.liveOrder},[e(g,{border:!1},{default:()=>[e(l,{center:!0},{title:()=>e("div",{class:[_.title,"van-ellipsis"]},[e("span",{class:_.tag},[s("\u76F4\u64AD\u8BFE")]),t.courseGroupName])}),e(l,{center:!0,border:!1,title:t.teacherName,titleClass:_.teacher},{icon:()=>e(p,{class:_.userLogo,src:t.avatar||V},null),default:()=>e("span",{class:_.price},[e("i",null,[s("\xA5")]),P(t.coursePrice)])}),e(l,{border:!1},{default:()=>[e(G,{border:!1,modelValue:this.collapse,"onUpdate:modelValue":r=>this.collapse=r},{default:()=>[e(Q,{title:"\u8BFE\u7A0B\u8BE6\u60C5",name:1,class:_.collapseItem},{default:()=>[e("div",{class:_.classItem},[t.courseInfo.map(r=>e("div",{class:_.time},[r.courseTime]))])]})]})]})]})])}});const nt="_videoOrder_1rdsx_1",ct="_tag_1rdsx_1",ut="_title_1rdsx_12",dt="_collapseItem_1rdsx_17",pt="_teacher_1rdsx_22",mt="_price_1rdsx_28",yt="_userLogo_1rdsx_38",ht="_classItem_1rdsx_44",_t="_time_1rdsx_49";var v={videoOrder:nt,tag:ct,title:ut,collapseItem:dt,teacher:pt,price:mt,userLogo:yt,classItem:ht,time:_t},vt=c({name:"OrderPractice",props:{item:{type:Object,default:{}}},data(){return{collapse:[1]}},render(){const t=this.item;return console.log(t.classTime),e("div",{class:v.videoOrder},[e(g,{border:!1},{default:()=>[e(l,{center:!0},{title:()=>e("div",{class:[v.title,"van-ellipsis"]},[e("span",{class:v.tag},[s("\u966A\u7EC3\u8BFE")]),t.courseGroupName])}),e(l,{center:!0,border:!1,title:t.teacherName,titleClass:v.teacher},{icon:()=>e(p,{class:v.userLogo,src:t.avatar||V},null),default:()=>e(H,null,[e("span",{class:v.price},[e("i",null,[s("\xA5")]),P(t.coursePrice)]),s("/"),t.classTime.length,s("\u8BFE\u65F6")])}),e(l,{border:!1},{default:()=>[e(G,{border:!1,modelValue:this.collapse,"onUpdate:modelValue":r=>this.collapse=r},{default:()=>[e(Q,{title:"\u8BFE\u7A0B\u8BE6\u60C5",name:1,class:v.collapseItem},{default:()=>[e("div",{class:v.classItem},[t.classTime.map(r=>{const a=`${r.classDate} ${w(r.startTime).format("HH:mm")}-${w(r.endTime).format("HH:mm")}`;return e("div",{class:v.time},[a])})])]})]})]})]})])}});const ft="_memberLogo_1ki51_1",gt="_titleClass_1ki51_5",bt="_title_1ki51_5",At="_price_1ki51_14",Ct="_timerTitle_1ki51_25",Tt="_timer_1ki51_25",It="_timerCell_1ki51_39";var f={memberLogo:ft,titleClass:gt,title:bt,price:At,timerTitle:Ct,timer:Tt,timerCell:It},Lt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAAAAXNSR0IArs4c6QAAAIRQTFRFAAAAAP//AKqqAP+qK6qqLtGiLtG5Mc6qLsitLsmqMseuLMisK8OoLcisLMmqLMmqLMeoLcaoLcarLcmrLMepLciqLMapLcepLMeqLMaqLMiqLcipLcirLciqLciqLceqLceqLMeqLceqLceqLMeqLceqLceqLcerLceqLMepLMeqLceqEn68CgAAACt0Uk5TAAEDAwYLCxUcISkuL0pLUVJVVVVWeHmDhJCQmMLH1tff4Orw8vP4+Pz9/Uvj+oYAAAFBSURBVDjLtZTbtoIwDESDooKKVzgiF7koFt3//38+aIEiLs+L89R0zWrSSSYiP8HEj9NSqTKN/ckHihtXNKhid4Bih1cMqNDuc2YJQBHtl46z3EUFQDIzOfMcyDaWjq1NBuRz450c6r9x92oc1JB33rITuKz6FXgXSNq6QqhX73/xagibv18h0MHhfD7ocwBXrUQMWVPPDW76PMogfulcwabJAdAEa6ie2vtQWMMkqwBfZ4tkmCSRzpfC/hNpC6mIiJSwNEkAt4OIyAJKERFR4LyTOIuIOKAGSPdhkpkuug+mS2H3aVabwk0JTBy1BKaYBloxp0ZbDLRtMRvcxejUNFhc1RmVLgJQbnfovC9D9xxf78v4Po0QjIx6+kZ4Weq0bi21Pr1ZqjXnduE4i+1x0Jwidqi+2vx/C6O3eqa/WW4PDPQ4oVW3WKoAAAAASUVORK5CYII=",Ot=c({name:"OrderVideo",props:{item:{type:Object,default:{}}},render(){const t=this.item;return e("div",{class:f.videoOrder},[e(g,{class:"mb12",border:!1,style:{borderRadius:"8px",overflow:"hidden"}},{default:()=>[e(l,{center:!0,titleClass:f.titleClass},{icon:()=>e(p,{class:f.memberLogo,src:pe},null),title:()=>e("div",{class:f.container},[e("div",{class:f.title},[s("\u5C0F\u9177Ai"),t.title]),e("div",{class:f.price},[e("i",null,[s("\xA5")]),this.$filters.moneyFormat(t.price)])])}),e(l,{center:!0},{title:()=>e("div",{class:f.timerCell},[e("div",{class:f.timerTitle},[e(O,{name:Lt,size:18},null),e("span",{style:{paddingLeft:"5px"}},[s("\u751F\u6548\u65F6\u95F4")])]),e("div",{class:f.timer},[t.startTime,s(" \u81F3 "),t.endTime])])})]})])}}),Pt="./assets/music-icon.fd0e8ce9.png",St="./assets/init-user-icon.e8bc7f33.png";const jt="_item_12gra_1",zt="_header_12gra_8",xt="_mate_12gra_14",Vt="_icon_12gra_19",qt="_info_12gra_23",wt="_btn_12gra_35",Nt="_vip_12gra_43",Ut="_free_12gra_47",Ft="_charge_12gra_51",kt="_footer_12gra_55",Et="_user_12gra_61",Rt="_userIcon_12gra_66",Dt="_favorite_12gra_71",Ht="_tags_12gra_74";var m={item:jt,header:zt,mate:xt,icon:Vt,info:qt,btn:wt,vip:Nt,free:Ut,charge:Ft,footer:kt,user:Et,userIcon:Rt,favorite:Dt,tags:Ht};function Gt(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!J(t)}var Qt=c({name:"OrderMusic",props:{item:{type:Object,default:{}}},render(){const t=this.item;return e("div",{class:m.item},[e("header",{class:m.header},[e("div",{class:m.mate},[e(p,{src:t.titleImg||Pt,round:!0,class:m.icon},null),e("div",{class:m.info},[e("h4",null,[t.musicSheetName]),e("p",null,[t.composer])])]),e("div",{class:m.buttons},null)]),e("footer",{class:m.footer},[e("div",{class:m.user},[e(p,{round:!0,src:t.addUserAvatar||St,class:m.userIcon},null),e("p",null,[t.addName]),e("div",{class:m.tags},[(t.subjectNames||"").split(",").map(r=>e(me,null,Gt(r)?r:{default:()=>[r]}))])]),e("div",{class:m.icons},null)])])}});const Bt="_memberLogo_1ki51_1",Xt="_titleClass_1ki51_5",Mt="_title_1ki51_5",Jt="_price_1ki51_14",Kt="_timerTitle_1ki51_25",Wt="_timer_1ki51_25",Yt="_timerCell_1ki51_39";var T={memberLogo:Bt,titleClass:Xt,title:Mt,price:Jt,timerTitle:Kt,timer:Wt,timerCell:Yt},Zt="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/w4HNjEzFgUTJiEnOjk7/2K/QkVDPj0//vHW4bjX/3ru5cDbCfEC+dzzIhke6cjjTlVO3bDTRk1LEgEO8dDr/1Ki7czn/zpvHhEa9djv/zJi/eT7KiUq0aTGyZy/Gg0W1azLAez+/eD3Ul1X/48juw5bAeT/XnFn/4cTYnVnXm1jWmVfNi1H/2rXjr3naoGLhq3TVl1z51bD4zaLtu4rlsXzepm3anmfEfEPenmTYm2LQkFXywpLouYf1uX7gqHHco2vLh03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xuBCQqTIb5CuENjdkUKFCx+pgg3+a/dubi1lswit4ZKPQfP2zbxduTW8z2Ncvs1cJtsfVsnLMln/Pvium+JdZi6WsSvYugrk1pGvQyAek9jFYRiHH596w5G9Re4qEH7Od30U98+wv1uGf0nSTN79ER55Fh5+i0kyn5HuJV+DQToPQRTOVq/79yzP8yyDPYtgsv+rWN1t16vDBkKFvBLf81EQqjfYJ5HEFLPCespq8izJ0yX7+RhHJRvP20wjZgGtAQ1OwN6k28flNI6eFs+vOOdvL/EsSXO9NNniloHNQEjAUDxpXz9PPGZLRZ2pvn6emgFjBzaKu0A5S36Z0c03qRUE42CM4oTQchdAVuzq5O0WXf9TvXGPgTgCyWcJdaabv6Z271Q4js+JtOlWNpyeg1K1unPsuvlbMpvOt9A0idpO3+mjnGMHdZo7YK2XbxORcdb/Bs4MAl1L0LfkMQzJh0BxlzydfJcImJfWl3NpEmOcDxlraKG4C8qz2qVMTf7cIMH9xfAzk+EEpWhQ6VXnL+6pwLiaMDxGKR2oWiC86vyVQR8wu42HgtHDCFV0Taryja5JMkanMSrBShkDIlrpC9R8o2OQinnXuWnhvf9Fo3XTuTOp4A9+SfSoH0vwwAAAAABJRU5ErkJggg==",$t=c({name:"OrderPinao",props:{item:{type:Object,default:{}}},render(){const t=this.item;return console.log(t),e("div",{class:T.videoOrder},[e(g,{class:"mb12",border:!1,style:{borderRadius:"8px"}},{default:()=>[e(l,{center:!0,titleClass:T.titleClass},{icon:()=>e(p,{class:T.memberLogo,src:Zt},null),title:()=>e("div",{class:T.container},[e("div",{class:T.title},[t.times,s("\u5206\u949F\u7434\u623F\u65F6\u957F")]),e("div",{class:T.price},[e("i",null,[s("\xA5")]),this.$filters.moneyFormat(t.salePrice)])])})]})])}});const er="_liveOrder_w4wdr_1",tr="_tag_w4wdr_1",rr="_title_w4wdr_12",sr="_collapseItem_w4wdr_17",or="_line_w4wdr_22",ar="_teacher_w4wdr_31",ir="_price_w4wdr_42",lr="_userLogo_w4wdr_52",nr="_classItem_w4wdr_58",cr="_time_w4wdr_63";var I={liveOrder:er,tag:tr,title:rr,collapseItem:sr,line:or,teacher:ar,price:ir,userLogo:lr,classItem:nr,time:cr},ur="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/7OD/0bb/t4z//Pr/8+3/8+v/7eL/yKj/xaP/zK7/u4//07r/z7P/yqv/wp7/1r7/upP/2ML/vJb/28VygjO7AAAAU3RSTlMA/iEgGBgNDQgDA5yc8u/v7+3g39/Sy8DAvr6+vq6mpqafkG9sXl5eXlFOSy8vJyf6+Pj49PT06+vr4ODS0s7IyMiurqmjn56YmJCPcnJsUUpycu43drUAAAcVSURBVFjDpNXtSyJBGADwQUQ6pEAsREEh0CAKoQiCiOpDQVQful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PlcRPNhLwUDSHmqc40AO1JHlcZAlAQ7FfB3AVIALG/z9OC6icG5gEMBm/CQTg5Cyeq+J4/KNP18p0IA4xXIUlbs4s+4QaOZrUU+aD62QcbmJokplJ8/VuYGgA+Jql5o0raSC5hLoRrbTjmwZuhvZadgqtUfQz3gzDRtNN2PoD3tWmGVZyEouZO7J8jA8SfbWelajrz0ZhkG+u7Xm+mwymelza+v6CNr8AxUNQ4kURe08AAAAAElFTkSuQmCC",dr=c({name:"OrderLive",props:{item:{type:Object,default:{}}},data(){return{collapse:[1]}},render(){const t=this.item;return e("div",{class:I.liveOrder},[e(g,{border:!1},{default:()=>[e(l,{center:!0},{title:()=>e("div",{class:[I.title,"van-ellipsis"]},[e("span",{class:I.line},null),s("\u6D3B\u52A8\u62A5\u540D")])}),e(l,{center:!0,border:!1,title:t.goodsName,titleClass:I.teacher},{icon:()=>e(p,{class:I.userLogo,src:ur},null),default:()=>e("span",{class:I.price},[e("i",null,[s("\xA5")]),P(t.actualPrice)])})]})])}}),pr="./assets/count.0cae50a7.svg",mr="./assets/favorite.7e06ea16.svg";const yr="_album_jmtd0_1",hr="_albumType_jmtd0_9",_r="_img_jmtd0_21",vr="_content_jmtd0_44",fr="_footer_jmtd0_64",gr="_icon_jmtd0_76";var C={album:yr,albumType:hr,img:_r,content:vr,footer:fr,icon:gr},br=c({name:"AlbumFooter",props:{musicSheetCount:{type:Number,default:0},albumFavoriteCount:{type:Number,default:0}},setup(t){const{musicSheetCount:r,albumFavoriteCount:a}=K(t);return()=>e("footer",{class:C.footer},[e("div",null,[e(O,{class:C.icon,name:pr},null),e("span",null,[r.value,s("\u9996")])]),e("div",null,[e(O,{class:C.icon,name:mr},null),e("span",null,[a.value,s("\u4EBA\u6536\u85CF")])])])}}),Ar=c({name:"AlbumItem",props:{data:{type:Object,default:{}}},setup({data:t}){const r=E();return()=>e("div",{class:C.album,onClick:()=>r.push("/music-album-detail/"+t.id)},[e(p,{class:C.img,src:t.albumCoverUrl},null),t.paymentType==="CHARGE"&&e("span",{class:C.albumType},[s("\u4ED8\u8D39")]),e("div",{class:C.content},[e("h4",{class:"van-ellipsis"},[t.albumName]),e("p",{class:"van-multi-ellipsis--l3"},[t.albumDesc]),e(br,{musicSheetCount:t.musicSheetCount,albumFavoriteCount:t.albumFavoriteCount},null)])])}}),Cr=c({name:"OrderMusic",props:{item:{type:Object,default:{}}},render(){const t=this.item;return e(Ar,{data:t,style:{margin:"0 0 10px"}},null)}});const Tr="_saveShareImage_r51oz_1",Ir="_tips_r51oz_8",Lr="_tipsTitle_r51oz_14",Or="_tipsContent_r51oz_20",Pr="_iconLogo_r51oz_26",Sr="_schoolName_r51oz_33",jr="_previewSection_r51oz_48",zr="_topImage_r51oz_55",xr="_shareSection_r51oz_62",Vr="_shareContaienr_r51oz_70",qr="_shareType_r51oz_74",wr="_qrcodeSection_r51oz_84",Nr="_memo_r51oz_92";var y={saveShareImage:Tr,tips:Ir,tipsTitle:Lr,tipsContent:Or,iconLogo:Pr,schoolName:Sr,previewSection:jr,topImage:zr,shareSection:xr,shareContaienr:Vr,shareType:qr,qrcodeSection:wr,memo:Nr};const Ur="_qrcode_izshm_1",Fr="_qrcodeCanvas_izshm_4",kr="_qrcodeLogo_izshm_8",Er="_small_izshm_18";var x={qrcode:Ur,qrcodeCanvas:Fr,qrcodeLogo:kr,small:Er},Rr=c({props:{text:{type:String,default:""},size:{type:String,default:"200px"},logoSize:{type:String,default:"default"}},setup(t){const r=W(),a=()=>{ve.toCanvas(r.value,t.text,{margin:1},o=>{o&&console.log(o),console.log("success")})};return Y(()=>t.text,()=>{a()}),Z(()=>{$(()=>{a()})}),()=>e("div",{class:x.qrcode,style:{width:t.size,height:t.size}},[e("canvas",{ref:r,class:x.qrcodeCanvas},null),e("img",{src:_e,class:[x.qrcodeLogo,t.logoSize==="small"&&x.small]},null)])}}),Dr="./assets/icon-logo.4dc927fa.png",Hr=c({name:"qrcode-payment",props:{url:{type:String,default:""},pay_channel:{type:String,default:"wx_pub"}},setup(t){return()=>e("div",{class:[y.saveShareImage]},[e("div",{style:{overflow:"hidden"}},[e("div",{class:y.schoolName},null)]),e("img",{src:Dr,class:y.iconLogo},null),e("div",{class:y.shareSection},[e("div",{class:[y.shareContaienr]},[e("div",{class:y.shareType},[s("\u8BF7\u622A\u56FE\u4E8C\u7EF4\u7801"),e("span",null,[s("\u6253\u5F00"),t.pay_channel==="wx_pub"?"\u5FAE\u4FE1":"\u652F\u4ED8\u5B9D",s("\u626B\u7801\u652F\u4ED8")])]),e("div",{class:y.qrcodeSection},[e(Rr,{text:t.url,logoSize:"small",size:"100%"},null)]),e("div",{class:y.memo},[s("\u8BF7\u572830\u5206\u949F\u5185\u626B\u7801\u652F\u4ED8")])]),e("div",{class:[y.tips]},[e("div",{class:y.tipsTitle},[s("\u4F7F\u7528\u8BF4\u660E\uFF1A")]),e("div",{class:y.tipsContent},[s("1.\u6253\u5F00"),t.pay_channel==="wx_pub"?"\u5FAE\u4FE1":"\u652F\u4ED8\u5B9D",s("\u626B\u4E00\u626B"),e("br",null,null),s("2.\u9009\u62E9\u76F8\u518C\u4E2D\u7684\u4E8C\u7EF4\u7801"),e("br",null,null),s("3.\u8BF7\u572830\u5206\u949F\u5185\u626B\u7801\u652F\u4ED8")])])])])}});const Gr="_album_1cph5_1",Qr="_albumType_1cph5_9",Br="_img_1cph5_20",Xr="_content_1cph5_32",Mr="_musicNum_1cph5_46",Jr="_footer_1cph5_53",Kr="_icon_1cph5_65";var z={album:Gr,albumType:Qr,img:Br,content:Xr,musicNum:Mr,footer:Jr,icon:Kr},Wr=c({name:"OrderMusic",props:{item:{type:Object,default:{}}},render(){const t=this.item;return console.log(t),e("div",{class:z.album},[e(p,{class:z.img,src:t.coverImg},null),e("span",{class:z.albumType},[t.purchaseCycle,s("\u4E2A\u6708")]),e("div",{class:z.content},[e("h4",{class:"van-ellipsis"},[t.name]),e("p",{class:"van-multi-ellipsis--l2"},[t.describe]),e("span",{class:z.musicNum},[s("\u5171"),t.musicNum,s("\u9996")])])])}}),js=c({name:"order-detail",data(){const t=this.$route.query;return{loading:!1,orderType:t.orderType,recomUserId:t.recomUserId,activityId:t.activityId,id:t.id,agreeStatus:!1,popupShow:!1,paymentStatus:!1,orderAmount:0,orderPrice:0,dataLoading:!0,exists:!1,bottomHeight:0,paymentVendor:"",paymentVersion:"V1",showQrcode:!1,orderTimer:null,qrCodeUrl:"",pay_channel:"",orderInfo:{},config:{},orderNo:""}},unmounted(){i.orderInfo={orderNo:"",actualPrice:0,payStatus:!1}},computed:{orderList(){return i.orderObject.orderList||[]}},async mounted(){if(await this.getUserRegisterProtocol(),this.dataLoading=!0,this.orderType=="MUSIC"&&this.id)try{const t=await ye(this.id);i.orderObject.orderType="MUSIC",i.orderObject.orderName=t.musicSheetName,i.orderObject.orderDesc=t.musicSheetName,i.orderObject.actualPrice=t.musicPrice,i.orderObject.recomUserId=this.recomUserId,i.orderObject.activityId=this.activityId,["WAIT_PAY","PAYING"].includes(t.orderStatus)?i.orderObject.orderNo=t.orderNo:["PAID","CLOSE","FAIL"].includes(t.orderStatus)&&(N("\u8BA2\u5355\u6709\u8BEF"),ee({api:"back",content:{}})),i.orderObject.orderList=[{orderType:"MUSIC",goodsName:t.musicSheetName,actualPrice:t.musicPrice,...t}]}catch{}await this.getOrderPayType(),this.orderAmount=i.orderObject.actualPrice||0,this.orderPrice=i.orderObject.actualPrice||0,this.dataLoading=!1,this.orderPrice===0&&i.orderObject.orderType&&(this.loading=!0,this.onSubmit()),this.$nextTick(()=>{const{height:t}=te(this.$refs.paymentButtom);this.bottomHeight=t+10})},methods:{async getUserRegisterProtocol(){try{const t=await L.get(h.platformApi+"/sysUserContractRecord/checkContractSign",{params:{contractType:"REGISTER"}});this.exists=t.data}catch{}},async getOrderPayType(){try{const t=i.orderObject;let r=t.orderList.length>0?t.orderList[0].id:"";t.orderType==="PRACTICE"&&(r=t.orderList.length>0?t.orderList[0].teacherId:"");const{data:a}=await L.post(h.platformApi+"/userOrder/orderPayType",{data:{goodType:t.orderType,bizId:r,recomUserId:t.recomUserId?t.recomUserId:null}});this.paymentVersion=a.paymentVersion||"V1",this.paymentVendor=a.paymentVendor}catch{}},async onAuthSuccess(){this.popupShow=!1,await this.getUserRegisterProtocol(),this.onSubmit()},async onSubmit(){if(this.orderPrice>0){if(!this.agreeStatus){N("\u8BF7\u5148\u9605\u8BFB\u5E76\u540C\u610F\u300A\u9177\u4E50\u79C0\u5E73\u53F0\u670D\u52A1\u534F\u8BAE\u300B");return}const t=h.user.data;if(!(t!=null&&t.realName)||!(t!=null&&t.idCardNo)){this.popupShow=!0;return}}if(i.orderObject.orderNo){this.paymentStatus=!0,this.orderInfo=i.orderObject.paymentConfig||{},this.orderNo=i.orderObject.paymentConfig.orderNo;return}try{const t=i.orderObject;if(this.paymentVersion==="V1"){const r=h.platformType==="TEACHER"?"/api-teacher/userOrder/executeOrder":"/api-student/userOrder/executeOrder",o=(await L.post(r,{data:{orderName:t.orderName,orderDesc:t.orderDesc,orderType:t.orderType,actualPrice:this.orderPrice||0,recomUserId:t.recomUserId,activityId:t.activityId,couponId:t.couponId,orderInfos:[...ce()]}})).data||{};if(o.status=="PAID"){this.$router.replace({path:"/tradeDetail",query:{orderNo:o.orderNo}});return}i.orderObject.orderNo=o.orderNo,i.orderObject.actualPrice=o.actualPrice}else{const r=h.platformType==="TEACHER"?"/api-teacher/userOrder/executeOrder/v2":"/api-student/userOrder/executeOrder/v2",o=(await L.post(r,{data:{activityId:t.activityId||null,couponIds:t.couponId,goodsInfos:[...ue()],orderDesc:t.orderDesc,orderName:t.orderName,orderType:t.orderType,paymentCashAmount:this.orderPrice||0,paymentType:this.paymentVendor,recomUserId:t.recomUserId||null}})).data||{};this.orderInfo=o,this.orderNo=o.orderNo}this.paymentStatus=!0}catch{this.loading=!1,this.orderPrice===0&&D.alert({title:"\u63D0\u793A",message:"\u652F\u4ED8\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\uFF01",confirmButtonText:"\u786E\u5B9A",confirmButtonColor:"#2dc7aa"})}},onBackOut(){de()},onCouponSelect(t){console.log("onCouponSelect",t);let r=0;(t||[]).forEach(A=>{r+=Number(A.discountPrice)});const a=Number((Number(this.orderAmount)-Number(r)).toFixed(2));this.orderPrice=a>=0?a:0;const o=(t||[]).map(A=>A.couponIssueId);i.orderObject.couponId=o.join(",")||""},onConfirm(t){const r=this.orderInfo.paymentConfig||{};this.pay_channel=t.pay_channel;const a=re.stringify({pay_channel:t.pay_channel,wxAppId:r.wxAppId,alipayAppId:r.alipayAppId,paymentType:this.orderInfo.paymentType,body:r.body,price:r.price,orderNo:r.merOrderNo,userId:r.userId});t.payCode==="payResult"?window.location.href=window.location.origin+h.payBackPath+"#/payResult?"+a:(this.qrCodeUrl=window.location.origin+h.payBackPath+"#/payDefine?"+a,this.showQrcode=!0,this.paymentStatus=!1,setTimeout(()=>{this.getPaymentOrderStatus()},300))},async getPaymentOrderStatus(){const t=setInterval(async()=>{if(this.$route.name!="orderDetail"){clearInterval(t);return}this.orderTimer=t;try{const r=h.platformType==="TEACHER"?"/api-teacher":"/api-student",{data:a}=await L.get(`${r}/userOrder/detailByOrderNo/${this.orderNo}`,{hideLoading:!0});a.status!=="WAIT_PAY"&&a.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)}},render(){return e("div",{class:d["order-detail"],style:{paddingBottom:this.bottomHeight+"px"}},[e(ne,null,null),!this.loading&&e(H,null,[this.orderList.map(t=>{if(t.orderType==="VIDEO")return e(Ye,{item:t},null);if(t.orderType==="LIVE")return e(lt,{item:t},null);if(t.orderType==="PRACTICE")return e(vt,{item:t},null);if(t.orderType==="VIP")return e(Ot,{item:t},null);if(t.orderType==="MUSIC")return e(Qt,{item:t},null);if(t.orderType==="PIANO_ROOM")return e($t,{item:t},null);if(t.orderType==="ACTI_REGIST")return e(dr,{item:t},null);if(t.orderType==="ALBUM")return e(Cr,{item:t},null);if(t.orderType==="TENANT_ALBUM")return e(Wr,{item:t},null)}),!this.dataLoading&&e(he,{discountPrice:i.orderObject.discountPrice,orderType:this.orderType,orderAmount:this.orderAmount,onCouponSelect:this.onCouponSelect,disabled:!!i.orderObject.orderNo},null),e("div",{class:d.paymentInfo,ref:"paymentButtom"},[this.orderPrice>0&&e("div",{class:[d.protocol,h.projectType==="tenant"&&d.protocolTenant]},[e(se,{modelValue:this.agreeStatus,"onUpdate:modelValue":t=>this.agreeStatus=t,showHeader:!0,style:{paddingLeft:0,paddingRight:0}},null)]),e("div",{class:d.btnGroup},[e("div",{class:d.priceSection},[s("\u652F\u4ED8\u91D1\u989D\uFF1A"),e("div",{class:d.price},[e("span",{class:d.priceUnit},[s("\uFFE5")]),e("span",{class:d.priceNum},[P(this.orderPrice)])])]),e(R,{type:"primary",round:!0,class:[d.btn,h.projectType==="tenant"&&d.btnTenant],onClick:this.onSubmit},{default:()=>[s("\u7ACB\u5373\u652F\u4ED8")]})])])]),e(oe,{modelValue:this.popupShow,"onUpdate:modelValue":t=>this.popupShow=t},{default:()=>[e(ae,{exists:this.exists,onSuccess:this.onAuthSuccess},null)]}),e(U,{show:this.paymentStatus,closeOnClickOverlay:!1,position:"bottom",round:!0,closeOnPopstate:!0,safeAreaInsetBottom:!0,style:{minHeight:"30%"}},{default:()=>[this.paymentVersion==="V1"?e(ie,{modelValue:this.paymentStatus,"onUpdate:modelValue":t=>this.paymentStatus=t,orderInfo:i.orderObject,onBackOut:this.onBackOut},null):e(Fe,{paymentConfig:{...i.orderObject,orderNo:this.orderNo},onClose:()=>this.paymentStatus=!1,onBackOut:this.onBackOut,onConfirm:t=>this.onConfirm(t)},null)]}),e(U,{show:this.showQrcode,"onUpdate:show":t=>this.showQrcode=t,round:!0,class:d.qrcodePopup,onClose:()=>{clearInterval(this.orderTimer)}},{default:()=>[e(Hr,{url:this.qrCodeUrl,pay_channel:this.pay_channel},null)]})])}});export{js as default};