1 |
- import{d as q,Q as D,P as E,S as w,U as e,v as F,V as S,j as a,X as Q,Y as R,A as n,C as U,B as k,y as T,f as I}from"./ResizeObserver.es.39b48a47.js";import{C as V}from"./index.970ad07b.js";import{I as N}from"./index.fcbcb027.js";import{a as G,b as z}from"./index.dc19bc54.js";import{g as P}from"./music.27f3de35.js";import{T as O}from"./index.4e68a74a.js";import{S as L}from"./index.fbd2c321.js";import{C as W}from"./index.b1c0c586.js";import{i as x,s as H}from"./share.098d3d09.js";import{w as K}from"./wx_bg.cce2a6c0.js";import"./icon_uploader.21a85a4d.js";import"./icon-xin.797feb04.js";import"./icon_album.4957b8e0.js";import"./icon_album_active.cb923735.js";import"./icon_exquisite.01ddc5aa.js";import"./icon_music_active.f55820b3.js";import"./icon-play.bc9e7aab.js";const j="_base_1sprb_1",$="_detail_1sprb_4",aa="_wxpopup_1sprb_11",sa="_img_1sprb_27",ea="_albumType_1sprb_50",ta="_shareBtn_1sprb_63",la="_detailContent_1sprb_75",ia="_main_1sprb_80",ma="_favoriteContaineer_1sprb_85",oa="_favorite_1sprb_85",ra="_content_1sprb_107",na="_footerBar_1sprb_128",ua="_bgImg_1sprb_136",ca="_musicContent_1sprb_145",Aa="_bg_1sprb_136",pa="_alumWrap_1sprb_162",ga="_alumTitle_1sprb_174",ba="_alumDes_1sprb_180",Ya="_des_1sprb_183",Ja="_tags_1sprb_186",va="_tag_1sprb_186",da="_alumCollect_1sprb_196",fa="_right_1sprb_212",Ca="_albumTips_1sprb_217",Ba="_albumPrice_1sprb_227",_a="_alumnContainer_1sprb_232",Ma="_alumnList_1sprb_237",ha="_shareVip_1sprb_243",Ia="_icon_1sprb_253",Za="_info_1sprb_258",ya="_tagDiscount_1sprb_272";var s={base:j,detail:$,wxpopup:aa,img:sa,albumType:ea,shareBtn:ta,detailContent:la,main:ia,favoriteContaineer:ma,favorite:oa,content:ra,footerBar:na,bgImg:ua,musicContent:ca,bg:Aa,alumWrap:pa,alumTitle:ga,alumDes:ba,des:Ya,tags:Ja,tag:va,alumCollect:da,right:fa,albumTips:Ca,albumPrice:Ba,alumnContainer:_a,alumnList:Ma,shareVip:ha,icon:Ia,info:Za,tagDiscount:ya},Xa="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAA0xJREFUSEvtlk1sVGUUhp/3zl9J1IKIphpcGDUmA1RbYWcsiTEggjPFMWJM3BhwZUyMP5DY+agbURMJO0hYGdlMpTVGWLipuINMI9OS4AaCC9NYaOpPrG3vvcfcO0NDyjg/bY0b7+5+Ofc857znfOdc8S881ueSrAuykOgFesB6QVlgSCvlWe/+FBvvz+KpN3ZskXO2AB11fPttAa3g0gRswsIo4h4ggmwBZRoEPg82C+pEhA2Bttc9hoVPx84tyoBNYE2cMwEqI5XBH2N2pkLm7o8QbzUE2t7BJwiD80CyfvQ2hzSOqYwxBkGZVGJcJTe/1N5yxc+aA3MD+5BO1T7+C6gAY3Hk8sqsv29CJw4stNID7QMVbtPpDy+04ryeTftASzypkYHyfw60nccypCbXkkh34gedpIKA6XRFo86/NbgVZWj9h7oItZEwEbX57XdtwbugM25yVYAGYs/AcwjvNnmDcA5PU2QuV1QqBasCjJzY8x90k7ANoN8xm8FP/sqfzGjURZ1c91mRpMtpnP+BsWp266Rp4x7aTncXHXYQ6AfuBa7UytDTeJYuA2iF9zrx13wPtrlurRtti+VkaP3uC8xeqcJ0EcIfwHsG7IHq0ZL1FE+OzHQXKa6zEO5eHN4tSGp7jtxJYvYGWAr0Ld3skHOh7Xp/HemOS2BdYBbvQ8sfXA+ZT4CXwdaARRf3CuiRakGbz1LLu2hXjlftvdc1Ujx5U1bLu1Ng+0AmK7g78O276r/HP93cloBRg0yCCXFCpw8fiNmFQgI/WwbrBrshy7lPkb1dQ51DGia0rYhaLVrLsKqUOwf2VCQd6CTYedCLwLO1Gh6V5YrXEA/GCzaZ7VHppXgOWr74OfBqVSJt14gbbTZlrOAexrdob66tY1thfq5Pli/OA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=E();w({search:"",relatedNum:6,page:1,rows:200});const l=e(null),u=e([]),p=e(!1),d=e(!1),f=e(0),C=e(0),B=e(null),g=e("rgba(55, 205, 177, 0)"),b=e("#fff"),Z=e("auto"),_=`${location.origin}/${m.query.p=="tenant"?"tenant.html":"student/"}#/music-album-detail/${m.query.id}?${F.stringify(m.query)}`;console.log(_,"tmpUrl");const Y=e(_),y=async o=>{var i;if(!p.value){p.value=!0,d.value=!1;try{const r=await T.post("/api-teacher/open/albumShareProfit",{data:{bizId:o||m.query.id,userId:m.query.recomUserId}}),{musicSheetList:c,...t}=r.data.musicAlbum;u.value=[...c.rows];const A=((i=t==null?void 0:t.musicTagNames)==null?void 0:i.split(","))||[];l.value={...t,musicTagNames:A},f.value=t.favorite,C.value=t.albumFavoriteCount}catch{d.value=!0}p.value=!1}};S(()=>{console.log(Y.value),x(Y.value),y(),G(document,"scroll",o=>{const{y:i}=z();i.value>20?(g.value="rgba(255, 255, 255)",b.value="black"):(g.value="transparent",b.value="#fff")})});const J=e(!1),X=()=>{if(console.log(I().weixin),I().weixin){J.value=!0;return}H(Y.value),setTimeout(()=>{window.location.href=location.origin+"/student/#/download"},3e3)};return()=>{var o,i,r,c,t,A,M,h;return a("div",{class:s.detail},[a("div",{ref:B},[a(V,{background:g.value,border:!1,color:b.value,backIconColor:"white",onHeaderBack:()=>{Q(()=>{const{height:v}=R(B);Z.value=v})}},null)]),a("img",{class:s.bgImg,src:(o=l.value)==null?void 0:o.albumCoverUrl},null),a("div",{class:s.musicContent},null),a("div",{class:s.bg},[a("div",{class:s.alumWrap},[a("div",{class:s.img},[((i=l.value)==null?void 0:i.paymentType)==="CHARGE"&&a("span",{class:s.albumType},[n("\u4ED8\u8D39")]),a(N,{class:s.image,width:"100%",height:"100%",fit:"cover",src:(r=l.value)==null?void 0:r.albumCoverUrl},null)]),a("div",{class:s.alumDes},[a("div",{class:[s.alumTitle,"van-ellipsis"]},[(c=l.value)==null?void 0:c.albumName]),a("div",{class:s.tags},[(A=(t=l.value)==null?void 0:t.musicTagNames)==null?void 0:A.map(v=>a("span",{class:s.tag},[v]))]),a("div",{class:[s.des,"van-multi-ellipsis--l3"],style:{height:"48px",lineHeight:"16px"}},[(M=l.value)==null?void 0:M.albumDesc])])]),a("div",{class:s.alumCollect},[a("img",{src:Xa},null),a("span",null,[n("\u5171"),(h=l.value)==null?void 0:h.musicSheetCount,n("\u9996\u66F2\u76EE")]),a("div",{class:s.right},[a("img",{src:f.value?Da:qa},null),a("span",null,[C.value,n("\u4EBA\u6536\u85CF")])])])]),a("div",{class:s.alumnContainer},[a("div",{class:s.alumnList},[a(O,{title:"\u66F2\u76EE\u5217\u8868",isMore:!1},null),a(L,{list:u.value,showPlay:!1},null),u.value&&u.value.length<=0&&a(U,{btnStatus:!1,tips:"\u6682\u65E0\u66F2\u76EE"},null)])]),a(W,{position:"bottom",background:"white"},{default:()=>[a("div",{class:["btnGroup"],style:{paddingTop:"12px"}},[a(k,{block:!0,round:!0,type:"primary",onClick:X,color:"linear-gradient(220deg, #DFA164 0%, #FAC87E 100%)"},{default:()=>[n("\u4E0B\u8F7D\u5C0F\u9177Ai\u5F00\u59CB\u7EC3\u4E60\u5427\uFF01")]})])]}),J.value&&a("div",{class:s.wxpopup,onClick:()=>{J.value=!1}},[a("img",{src:K,alt:""},null)])])}}});export{xa as default};
|