|
|
-var E=Object.defineProperty;var a=Object.getOwnPropertySymbols;var r=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var c=(e,u,t)=>u in e?E(e,u,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[u]=t,o=(e,u)=>{for(var t in u||(u={}))r.call(u,t)&&c(e,t,u[t]);if(a)for(var t of a(u))g.call(u,t)&&c(e,t,u[t]);return e};import{p as k,r as i}from"./index.d3cc73c5.js";const _={SEARCH:"music-songbook-subject",ALBUM:"music-album-subject",MUSIC:"music-subject",LIVE:"live-subject",VIDEO:"video-subject",ELEGANT:"elegant-subject",MUSIC_FREE:"music-list-free"},B=(e,u,t="get")=>{if(!e)return"";if(t==="get"){let s=localStorage.getItem(e);return s=s?JSON.parse(s):{name:"",id:""},s}else return localStorage.setItem(e,u),""};let n=!1;const F=async(e,u,t="POST")=>{try{if(n)return u;n=!0;const s=t==="POST"?await i.post(e,{requestType:u.requestType||"json",data:o({},u.params)}):await i.get(e,{requestType:u.requestType||"json",params:o({},u.params)});u.loading=!1;const l=s.data||{};u.list=u.list.concat(l.rows||[]),u.finished=l.pageNo>=l.totalPage,u.params.page=l.pageNo+1,u.dataShow=u.list.length>0}catch{u.dataShow=!1,u.finished=!0}return n=!1,u},x={\u4E13\u8F91:"klx_album",\u89C6\u9891\u8BFE:"klx_videoClass",\u76F4\u64AD\u8BFE:"klx_liveClass",\u8FBE\u4EBA\u98CE\u91C7:"klx_talentElegant",\u70ED\u95E8\u8D44\u8BAF:"klx_hotInformation",\u5C0F\u9177AI\u529F\u80FD\u57CB\u70B9:"klx_xiaokuAI",\u6211\u7684\u4E50\u8C31:"klx_myMusic",\u8BC4\u6D4B\u8BB0\u5F55:"klx_myEvaluation",\u8BA2\u5355:"klx_myOrder",\u4EA4\u6613\u8BB0\u5F55:"klx_myTrade",\u4F18\u60E0\u5238:"klx_myCoupon",\u5E2E\u52A9\u4E2D\u5FC3:"klx_helpCenter",\u5546\u54C1\u5217\u8868:"klx_goods",\u5546\u54C1\u8BE6\u60C5:"klx_goodDetail",\u8D2D\u4E70\u652F\u4ED8:"klx_payment",\u53D6\u6D88\u652F\u4ED8:"klx_cancelPayment"},D=e=>{k({api:"setEventTracking",content:{type:x[e]}})};export{_ as S,B as a,F as b,D as u};
|