index.b23b8d48.js 17 KB

1
  1. import{d as te,W as S,i as e,A as r,Q as me,P as pe,S as ge,U as n,V as Ae,X as _e,Y as de,by as ve,bg as be,C as fe,F as he,s as _,B as H,aT as ye,e as y,p as j,D as K}from"./index.7994470a.js";import{C as Ce}from"./index.c5bf3ab5.js";import{I as M}from"./index.2fbdc579.js";import{u as Je,a as Me}from"./index.9eb2b8e9.js";import{g as Be}from"./music.d2ae34a8.js";import{T as $}from"./index.a0c3bb36.js";import{S as Ye}from"./index.f99f2504.js";import{M as Fe}from"./index.b3dca421.js";import{u as Ie}from"./hooks.04c1f931.js";import{C as Ee}from"./index.aaa3ed2b.js";import{o as p}from"./orderStatus.020f67a3.js";import{i as De}from"./icon_share.dff37aef.js";import{i as Se}from"./icon_share2.a7c878ef.js";import{C as Te}from"./index.fdb4c454.js";import{_ as xe,a as qe,b as Ze,c as Xe,d as Ue,e as ke,f as we}from"./icon_uploader.9f387137.js";import{_ as Ne}from"./icon-xin.df8ab2d7.js";import{_ as Re}from"./icon_album.fa329df6.js";import{_ as Ve}from"./icon_album_active.ce98b2a8.js";import{_ as Oe}from"./icon_exquisite.69e33c80.js";import{_ as Pe}from"./icon_music_active.3b316ab8.js";import"./index.0a2aeb2c.js";import"./use-height.ffa5a0f3.js";import"./index.570461cd.js";import"./icon-play.bc9e7aab.js";import"./index.ab866de2.js";import"./index.889feca1.js";import"./code-down-load.acc044c4.js";import"./logo.bcac726b.js";import"./browser.8c23ea5b.js";import"./index.777f4790.js";import"./icon_teacher.40b6f077.js";const Qe="_base_1xln6_1",Ge="_detail_1xln6_4",Le="_img_1xln6_14",ze="_albumType_1xln6_37",We="_shareBtn_1xln6_50",He="_detailContent_1xln6_62",je="_main_1xln6_67",Ke="_favoriteContaineer_1xln6_72",$e="_favorite_1xln6_72",ea="_content_1xln6_94",aa="_footerBar_1xln6_115",ta="_bgImg_1xln6_123",sa="_musicContent_1xln6_132",la="_bg_1xln6_123",oa="_alumWrap_1xln6_149",ia="_alumTitle_1xln6_161",na="_alumDes_1xln6_167",ua="_des_1xln6_170",ra="_tags_1xln6_173",ca="_tag_1xln6_173",ma="_alumCollect_1xln6_183",pa="_right_1xln6_199",ga="_albumTips_1xln6_204",Aa="_albumPrice_1xln6_214",_a="_alumnContainer_1xln6_219",da="_alumnList_1xln6_224",va="_shareVip_1xln6_230",ba="_icon_1xln6_240",fa="_info_1xln6_245",ha="_shareAlumCollect_1xln6_261",ya="_tagDiscount_1xln6_281",Ca="_buttonDiscount_1xln6_294",Ja="_shareMusicList_1xln6_307",Ma="_albumShare_1xln6_312";var a={base:Qe,detail:Ge,img:Le,albumType:ze,shareBtn:We,detailContent:He,main:je,favoriteContaineer:Ke,favorite:$e,content:ea,footerBar:aa,bgImg:ta,musicContent:sa,bg:la,alumWrap:oa,alumTitle:ia,alumDes:na,des:ua,tags:ra,tag:ca,alumCollect:ma,right:pa,albumTips:ga,albumPrice:Aa,alumnContainer:_a,alumnList:da,shareVip:va,icon:ba,info:fa,shareAlumCollect:ha,tagDiscount:ya,buttonDiscount:Ca,shareMusicList:Ja,albumShare:Ma},Ba="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAA0xJREFUSEvtlk1sVGUUhp/3zl9J1IKIphpcGDUmA1RbYWcsiTEggjPFMWJM3BhwZUyMP5DY+agbURMJO0hYGdlMpTVGWLipuINMI9OS4AaCC9NYaOpPrG3vvcfcO0NDyjg/bY0b7+5+Ofc857znfOdc8S881ueSrAuykOgFesB6QVlgSCvlWe/+FBvvz+KpN3ZskXO2AB11fPttAa3g0gRswsIo4h4ggmwBZRoEPg82C+pEhA2Bttc9hoVPx84tyoBNYE2cMwEqI5XBH2N2pkLm7o8QbzUE2t7BJwiD80CyfvQ2hzSOqYwxBkGZVGJcJTe/1N5yxc+aA3MD+5BO1T7+C6gAY3Hk8sqsv29CJw4stNID7QMVbtPpDy+04ryeTftASzypkYHyfw60nccypCbXkkh34gedpIKA6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ylr49xtt+7ncXjusec744dwDW7v8tAtLUyyZghXvHUvuvLARZ1kcFuZZYR7GerOskO2FoZYLVrlogZHmBGskmmGgM8k6yU5oXAuPFDwuuPATz1KKDaSWPGigY/Eoxx/kjhY7UKc/evpG1dtptB8VXJFrGsusuvFli1a2UOJ7oZVXL4qCtBREUU+BVgrdKDmglUN88d3Qwo0PZSN5GsuPoMI6ja2jyjENHaNaa4ZGMq2oMZCngfwA6mzSQAz1mq6oumqCIEJVBBLnmYpnB6ITKk4gi1IRhWyaimnIQlSEIBukYhCyYSqGIRulYhSyMSrGIJugYgKyMBVhyGapmIVsjoo5yMb5Lb0zE+jqCszspPktBJlzz6LLWB/K+mKXLHpw0MBkluTt9hBqDG3fknyaREP+lbWgGwJ3cGPZj7/mHZ5++v6OXxQRAAAAAElFTkSuQmCC";const Ia="_theSong_1plfo_1",Ea="_item_1plfo_4",Da="_content_1plfo_16",Sa="_top_1plfo_19",Ta="_tag_1plfo_23",xa="_tags_1plfo_28",qa="_title_1plfo_39",Za="_singer_1plfo_46",Xa="_play_1plfo_51",Ua="_mb100_1plfo_56",ka="_pImg_1plfo_59",wa="_moreSection_1plfo_66",Na="_collection_1plfo_74",Ra="_musicInfo_1plfo_79",Va="_info_1plfo_88",Oa="_shareIcon_1plfo_106",Pa="_share_1plfo_106",Qa="_shareMate_1plfo_116",Ga="_icon_1plfo_126",La="_tagDiscount_1plfo_147",za="_exquisiteFlag_1plfo_160",Wa="_songAlbum_1plfo_165";var d={theSong:Ia,item:Ea,content:Da,top:Sa,tag:Ta,tags:xa,title:qa,singer:Za,play:Xa,mb100:Ua,pImg:ka,moreSection:wa,collection:Na,musicInfo:Ra,info:Va,shareIcon:Oa,share:Pa,shareMate:Qa,icon:Ga,tagDiscount:La,exquisiteFlag:za,songAlbum:Wa};const ee=g=>{const A=`../images/${g}`;return{"../images/collection.png":xe,"../images/collection_active.png":qe,"../images/icon-xin.png":Ne,"../images/icon_ai.png":Ze,"../images/icon_album.png":Re,"../images/icon_album_active.png":Ve,"../images/icon_author.png":Xe,"../images/icon_download.png":Ue,"../images/icon_exquisite.png":Oe,"../images/icon_music_active.png":Pe,"../images/icon_share.png":ke,"../images/icon_uploader.png":we}[A].default};var Ha=te({name:"TheSong",props:{list:{type:Array,default:()=>[]},showPlay:{type:Boolean,default:!0},musicNameClass:{type:String},authorClass:{type:String}},emits:["detail"],setup(g,{emit:A}){const c=S(()=>g.list.map(o=>(typeof o.paymentType=="string"&&(o.paymentType=o.paymentType.split(",")),{...o})));return()=>e("div",{class:d.theSong},[c.value.map(o=>e("div",{class:d.item,onClick:()=>A("detail",o)},[e("div",{class:d.content},[e("div",{class:d.top},[o.exquisiteFlag===1&&e(M,{class:d.exquisiteFlag,src:ee("icon_exquisite.png")},null),o.albumNums>0&&e(M,{class:d.songAlbum,src:ee("icon_album_active.png")},null),e("span",{class:[d.title,g.musicNameClass,"van-ellipsis"]},[o.musicSheetName]),e("span",{class:[d.singer,g.authorClass,"van-ellipsis"]},[r("-"),o.composer]),e("div",{class:d.tags},[o==null?void 0:o.subjectNames.split(",").map(t=>e("span",null,[t]))])])])]))])}}),ja="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAMAAABF0y+mAAAAb1BMVEUAAABG2MNG2MFF18BF2MFG18BF2MFA4MRD2cBF2MJF2cJF18FE2MFF2MFF2MFE2MFF2MFE179A3MVF2MFF18JF2MJF18JF2MFG2cJF2MFG179F2MJF18FF2MFF18JE1sJH2sNF18FF2MJE179F18GInqdFAAAAJHRSTlMAMo9Z+E1lBhaZDfvNyfDSpzUR2biglXUs40Un3sKKSiLmv0D+yki/AAAA3klEQVQoz7XOWXKDMBRE0YYQSUhinsFTkt7/GhMBVihbVf5yf95TD4TwItFnefeUpesJ3cxDT/dOJjl5h0Wk1nebikrGHiOz9ywVkVzTP3643t/7M1Y+BzB6jVItVRREVc2fbiqE15Xm8OU4V4uSLx70JtSXJrc2jLqgWxhLsuimHeVNH1EbtkD95bDuEprmgCMptntoy20eFZkCsMxxIc9DeUSc/1S0ZIyJBYCO/PF4y+lW1EjWbwzkFX7jN2lKBTQ8aaClqXGYGjW2m1OfkSVCa7cfqCDKoUmmuA7RL2POHWJJLgwaAAAAAElFTkSuQmCC";const ae=()=>{};var Et=te({name:"AlbumDetail",props:{onItemClick:{type:Function,default:ae}},setup({onItemClick:g}){localStorage.setItem("behaviorId",Be());const A=me(),c=pe(),o=ge({search:"",relatedNum:6,page:1,rows:200}),t=n(null),v=n([]),B=n(!1),se=Number(c.query.activityId)||0,le=n(se),T=n(!1),f=n(0),Y=n(0),x=n(null),F=n("rgba(55, 205, 177, 0)"),h=n("#fff"),oe=n("auto"),q=async s=>{var i;if(!B.value){B.value=!0,T.value=!1;try{const u=await y.post("/music/album/detail",{prefix:_.platformType==="TEACHER"?"/api-teacher":"/api-student",data:{id:s||c.params.id,...o}}),{musicSheetList:b,...m}=u.data;v.value=[...b.rows];const C=m!=null&&m.musicTagNames?(i=m==null?void 0:m.musicTagNames)==null?void 0:i.split(","):[];t.value={...m,musicTagNames:C},f.value=m.favorite,Y.value=m.albumFavoriteCount}catch{T.value=!0}B.value=!1}},Z=n(!1);Ae(()=>{q(),Je(document,"scroll",s=>{const{y:i}=Me();i.value>20?(F.value="rgba(255, 255, 255)",h.value="black",j({api:"backIconChange",content:{iconStyle:"black"}})):(F.value="transparent",h.value="#fff",j({api:"backIconChange",content:{iconStyle:"white"}}))}),Ie("\u4E13\u8F91")});const ie=async s=>{Z.value=!0;try{await y.post("/music/album/favorite/"+s,{prefix:_.platformType==="TEACHER"?"/api-teacher":"/api-student"}),f.value=f.value===1?0:1,Y.value+=f.value?1:-1}catch{}Z.value=!1},ne=async()=>{const s=t.value;p.orderObject.orderType="ALBUM",p.orderObject.orderName=s.albumName,p.orderObject.orderDesc=s.albumName,p.orderObject.actualPrice=s.albumPrice,p.orderObject.recomUserId=c.query.recomUserId||0,p.orderObject.activityId=c.query.activityId||0,p.orderObject.orderNo="",p.orderObject.orderList=[{orderType:"ALBUM",goodsName:s.albumName,recomUserId:c.query.recomUserId||0,price:s.albumPrice,...s}];const u=(await y.post("/api-student/userOrder/getPendingOrder",{data:{goodType:"ALBUM",bizId:s.id}})).data;u?K.confirm({title:"\u63D0\u793A",message:"\u60A8\u6709\u4E00\u4E2A\u672A\u652F\u4ED8\u7684\u8BA2\u5355\uFF0C\u662F\u5426\u7EE7\u7EED\u652F\u4ED8\uFF1F",confirmButtonColor:"#269a93",cancelButtonText:"\u53D6\u6D88\u8BA2\u5355",confirmButtonText:"\u7EE7\u7EED\u652F\u4ED8"}).then(async()=>{p.orderObject.orderNo=u.orderNo,p.orderObject.actualPrice=u.actualPrice,p.orderObject.discountPrice=u.discountPrice,X()}).catch(()=>{K.close(),ue(u.orderNo)}):X()},X=()=>{const s=t.value;A.push({path:"/orderDetail",query:{orderType:"ALBUM",album:s.id}})},ue=async s=>{try{await y.post("/api-student/userOrder/orderCancel",{data:{orderNo:s}})}catch{}},I=n(!1),E=n(""),U=n(0),re=async()=>{const s=_.user.data.userId,i=c.params.id;let u=0;if(console.log(_.user,s),_.platformType==="TEACHER"){const b=await y.post("/api-teacher/open/vipProfit",{data:{bizId:i,userId:s}});D.value&&(u=b.data.activityId||0,U.value=b.data.discount||0)}E.value=`${location.origin}/teacher#/shareAblum?id=${i}&recomUserId=${s}&activityId=${u}&userType=${_.platformType}`,console.log(E.value,"shareUrl"),I.value=!0},D=S(()=>{var i;const s=(i=t.value)==null?void 0:i.musicPaymentTypes;return s&&s.includes("VIP")}),ce=S(()=>v.value.length>4?v.value.slice(0,4):v.value);return()=>{var s,i,u,b,m,C,k,w,N,R,V,O,P,Q,G,L;return e("div",{class:a.detail},[e("div",{ref:x},[e(Ce,{background:F.value,border:!1,color:h.value,backIconColor:"white",onHeaderBack:()=>{_e(()=>{const{height:l}=de(x);oe.value=l})}},{right:()=>e("div",{class:a.shareBtn,style:{color:h.value},onClick:re},[e(M,{src:h.value==="black"?Se:De},null),r("\u5206\u4EAB")])})]),e("img",{class:a.bgImg,src:(s=t.value)==null?void 0:s.albumCoverUrl},null),e("div",{class:a.musicContent},null),e("div",{class:a.bg},[e("div",{class:a.alumWrap},[e("div",{class:a.img},[((i=t.value)==null?void 0:i.paymentType)==="CHARGE"&&e("span",{class:a.albumType},[r("\u4ED8\u8D39")]),e(M,{class:a.image,width:"100%",height:"100%",fit:"cover",src:(u=t.value)==null?void 0:u.albumCoverUrl},null)]),e("div",{class:a.alumDes},[e("div",{class:[a.alumTitle,"van-ellipsis"]},[(b=t.value)==null?void 0:b.albumName]),e("div",{class:a.tags},[(C=(m=t.value)==null?void 0:m.musicTagNames)==null?void 0:C.map(l=>e("span",{class:a.tag},[l]))]),e("div",{class:[a.des,"van-multi-ellipsis--l3"],style:{height:"48px",lineHeight:"16px"}},[(k=t.value)==null?void 0:k.albumDesc])])]),e("div",{class:a.alumCollect},[e("img",{src:Ba},null),e("span",null,[r("\u5171"),(w=t.value)==null?void 0:w.musicSheetCount,r("\u9996\u66F2\u76EE")]),e("div",{class:a.right,onClick:()=>{var l;return ie((l=t.value)==null?void 0:l.id)}},[e("img",{src:f.value?Fa:Ya},null),e("span",null,[Y.value,r("\u4EBA\u6536\u85CF")])])]),((N=t.value)==null?void 0:N.paymentType)==="CHARGE"&&((R=t.value)==null?void 0:R.orderStatus)!=="PAID"&&e("div",{class:a.albumTips},[e("span",null,[r("\u6B64\u4E13\u8F91\u4E3A\u4ED8\u8D39\u4E13\u8F91\uFF0C\u8D2D\u4E70\u5373\u53EF\u81EA\u7531\u7EC3\u4E60\u8BE5\u4E13\u8F91")]),e("span",{class:a.albumPrice},[r("\xA5"),ve((V=t.value)==null?void 0:V.albumPrice)])])]),e("div",{class:a.alumnContainer},[e("div",{class:a.alumnList},[e($,{title:"\u66F2\u76EE\u5217\u8868",isMore:!1},null),e(Ye,{list:v.value,onDetail:l=>{if(g===ae||!g){const J=location.origin+location.pathname+"#/music-detail?id="+l.id+"&albumId="+c.params.id;be(J,()=>{A.push({path:"/music-detail",query:{id:l.id,albumId:c.params.id}})})}else g(l)}},null),v.value&&v.value.length<=0&&e(fe,{btnStatus:!1,tips:"\u6682\u65E0\u66F2\u76EE"},null)]),((O=t.value)==null?void 0:O.relatedMusicAlbum)&&((P=t.value)==null?void 0:P.relatedMusicAlbum.length)>0&&e(he,null,[e($,{title:"\u76F8\u5173\u4E13\u8F91",onMore:()=>{A.push({path:"/music-album"})}},null),e(Fe,{list:(Q=t.value)==null?void 0:Q.relatedMusicAlbum,onGoto:l=>{A.push({name:"music-album-detail",params:{id:l.id}}).then(()=>{q(l.id),window.scrollTo(0,0)})}},null)])]),((G=t.value)==null?void 0:G.paymentType)==="CHARGE"&&((L=t.value)==null?void 0:L.orderStatus)!=="PAID"&&e(Ee,{position:"bottom",background:"white"},{default:()=>[e("div",{class:["btnGroup",D.value&&!_.user.data.isVip&&"btnMore"],style:{paddingTop:"12px"}},[e(H,{block:!0,round:!0,type:"primary",style:{fontSize:"16px"},onClick:ne},{default:()=>[r("\u8D2D\u4E70\u4E13\u8F91")]}),D.value&&!_.user.data.isVip&&e(H,{block:!0,round:!0,type:"primary",style:{fontSize:"16px"},onClick:()=>{A.push({path:"/memberCenter",query:{...c.query}})}},{default:()=>[le.value>0&&e("div",{class:[a.buttonDiscount]},[r("\u4E13\u5C5E\u4F18\u60E0")]),r("\u5F00\u901A\u4F1A\u5458")]})])]}),e(ye,{show:I.value,"onUpdate:show":l=>I.value=l,style:{background:"transparent"},class:a.albumShare},{default:()=>[e(Te,{teacherId:_.user.data.userId,shareUrl:E.value,shareType:"album",shareLength:1},{default:()=>{var l,J,z,W;return[e("div",{class:a.shareVip},[U.value===1&&e("div",{class:a.tagDiscount},[r("\u4E13\u5C5E\u4F18\u60E0")]),e("img",{class:a.icon,crossorigin:"anonymous",src:((l=t.value)==null?void 0:l.albumCoverUrl)+`@base@tag=imgScale&h=144&w=144&m=1?t=${+new Date}`},null),e("div",{class:a.info},[e("h4",{class:"van-multi-ellipsis--l2"},[(J=t.value)==null?void 0:J.albumName]),e("p",{class:["van-multi-ellipsis--l3"],style:{lineHeight:"16px",margin:"5px 0 10px 0"}},[(z=t.value)==null?void 0:z.albumDesc]),e("div",{class:a.shareAlumCollect},[e("img",{src:ja},null),e("span",null,[r("\u5171"),e("span",{style:"color: var(--van-primary-color);"},[(W=t.value)==null?void 0:W.musicSheetCount]),r("\u9996\u66F2\u76EE")])])])]),e("div",{class:[a.shareVip,a.shareMusicList]},[e(Ha,{list:ce.value},null)])]}})]})])}}});export{Et as default};