酷炫&聚星API数据系统

index.ab144e65.js 8.2KB

12
  1. import{_ as e}from"../defaultAvatar/defaultAvatar.ac647fe2.js";import{_ as a,A as t}from"../../assets/index.0fcb274c.js";import{d as s,r as l,o,c as i,L as n,a4 as r,M as c,T as m,W as u,s as d,G as p,a as v,R as y,P as f,u as g,K as _,f as b,F as h,as as k,O as x,Q as S,aw as L}from"../@vue/@vue.4762a280.js";import{D as j,s as $,e as D,h as w,p as I}from"../switchType/switchType.769652a5.js";import{T as K}from"../tableList/tableList.17221c7a.js";import{E as T}from"../element-plus/element-plus.780230b7.js";import{p as q}from"../tableInfo/tableInfo.0b894920.js";import"../vue-router/vue-router.a593c94c.js";import"../nprogress/nprogress.6ebd1c78.js";import"../axios/axios.b8790c3c.js";import"../pinia/pinia.07ac0f5f.js";import"../vue-demi/vue-demi.4f3c4c97.js";import"../pinia-plugin-persist/pinia-plugin-persist.67085de7.js";import"../echarts/echarts.f2b2ac0c.js";import"../tslib/tslib.e35f93b8.js";import"../zrender/zrender.fe59a237.js";import"../dayjs/dayjs.4327edce.js";import"../@vueuse/@vueuse.00829289.js";import"../lodash-es/lodash-es.3d8ce632.js";import"../async-validator/async-validator.21881447.js";import"../@ctrl/@ctrl.17547d95.js";import"../escape-html/escape-html.d572c0fd.js";import"../normalize-wheel-es/normalize-wheel-es.db30398b.js";import"../caret-top/caret-top.6cfc3874.js";import"../question-filled/question-filled.dc2ba1fa.js";const B={class:"tabBox_time"},z=["onClick"];var C=a(s({__name:"timeQuick",props:{tabList:{default:!1},timeIdx:{default:0}},emits:["valChange"],setup(e,{expose:a,emit:t}){const s=l(e.timeIdx);return a({acIdx:s}),(a,l)=>(o(),i("div",B,[(o(!0),i(n,null,r(e.tabList,((e,a)=>(o(),i("div",{key:e.value,class:c(["_item",[s.value==a?"ac_css":""]]),onClick:e=>(e=>{s.value=e,t("valChange")})(a)},m(e.label),11,z)))),128))]))}}),[["__scopeId","data-v-01116b60"]]);const E={class:"screenBox"},F={class:"tableBox"},N={class:"expertBox"},R=["src"],P={key:1,src:e,alt:""},V={class:"c-0F161E f15"},A={key:0,class:"c-888 tMar3 f12"};var W=a(s({__name:"shortVideo",setup(e){const{proxy:a}=b(),s=a.$NumberHandle,r=l(),c=u({quickList:[{label:"近7天",value:"7",date:[a.$getDay(-7,!1),a.$getDay(0,!1)]},{label:"近30天",value:"30",date:[a.$getDay(-30,!1),a.$getDay(0,!1)]},{label:"近60天",value:"60",date:[a.$getDay(-60,!1),a.$getDay(0,!1)]},{label:"近90天",value:"90",date:[a.$getDay(-90,!1),a.$getDay(0,!1)]},{label:"近180天",value:"180",date:[a.$getDay(-180,!1),a.$getDay(0,!1)]}]}),h=async()=>{$();const e=u({page:1,pageSize:500,flag:z.value,column:B.value,day:c.quickList[r.value.acIdx].value});let s=await a.$http.get(t.expert_shortVideo,e);if(s&&"0"==s.code){let e=s.data;await D(e.data,S.descolList,"name","column","达人短视频排行榜"),setTimeout((()=>{w()}),2e3)}else T.error(s.msg),w()},k=async(e,s)=>{L.value.loading=!0;const l=u({page:e||1,pageSize:s||20,flag:z.value,column:B.value,day:c.quickList[r.value.acIdx].value});let o=await a.$http.get(t.expert_shortVideo,l);if(L.value.loading=!1,o&&"0"==o.code){let e=o.data;S.tableList=e.data,I.value=e.pageInfo.totalNum}else T.error(o.msg)},x=u([{name:"排行",column:"rank",isfixed:"left",minWidth:"80px"},{name:"达人",column:"star_name",isfixed:"left",minWidth:"200px",slotFlag:!0},{name:"消耗",column:"amount",isSort:!0},{name:"曝光量",column:"view",isSort:!0},{name:"播放数",column:"play",isSort:!0},{name:"行为数",column:"action",isSort:!0},{name:"点赞数",column:"admire",isSort:!0},{name:"评论数",column:"comment",isSort:!0},{name:"曝光点击量",column:"click_cnt",isSort:!0},{name:"曝光点击率",column:"click_rate",isSort:!0,hasPercent:!0},{name:"5秒播放率",column:"play_5s_rate",isSort:!0,hasPercent:!0},{name:"播放完成率",column:"play_end_rate",isSort:!0,hasPercent:!0},{name:"组件展示量",column:"item_impression_cnt",isSort:!0},{name:"组件点击量",column:"item_click_cnt",isSort:!0},{name:"组件点击率",column:"item_click_rate",isSort:!0,hasPercent:!0},{name:"千次播放成本",column:"cpm",isSort:!0},{name:"点击成本",column:"cpc",isSort:!0},{name:"激活成本",column:"cpa",isSort:!0}]),{tableInfo:S,tableListRef:L,total:I,sortKey:B,sortType:z,updateKey:W,sortEvent:H}=q(x,k,"view");return d((()=>{p((()=>{k()}))})),(e,a)=>(o(),i(n,null,[v("div",E,[y(C,{tabList:c.quickList,onValChange:k,ref_key:"timeQuickRef",ref:r},null,8,["tabList"]),y(j,{haveUpdateFlag:!0,onUpdateEvent:h})]),v("div",F,[y(K,{ref_key:"tableListRef",ref:L,tableHeight:"calc(100vh - 295px)",tableData:g(S).tableList,descol:g(S).descolList,total:g(I),onInit:k,updateKey:g(W),sortKey:g(B),sortType:g(z),onSort:g(H)},{star_name:f((e=>[v("div",N,[v("div",null,[e.row.head_url?(o(),i("img",{key:0,src:e.row.head_url,alt:""},null,8,R)):(o(),i("img",P))]),v("div",null,[v("div",V,m(e.row.star_name||"-"),1),e.row.fans_number?(o(),i("div",A," 粉丝数: "+m(g(s)(e.row.fans_number)||"-"),1)):_("",!0)])])])),_:1},8,["tableData","descol","total","updateKey","sortKey","sortType","onSort"])])],64))}}),[["__scopeId","data-v-fc18ba96"]]);const H={class:"screenBox"},Q={class:"tableBox"},U={class:"expertBox"},M=["src"],G={key:1,src:e,alt:""},O={class:"c-0F161E f15"},J={key:0,class:"c-888 tMar3 f12"};var X=a(s({__name:"living",setup(e){const{proxy:a}=b(),s=a.$NumberHandle,r=l(),c=u({quickList:[{label:"近7天",value:"7",date:[a.$getDay(-7,!1),a.$getDay(0,!1)]},{label:"近30天",value:"30",date:[a.$getDay(-30,!1),a.$getDay(0,!1)]},{label:"近60天",value:"60",date:[a.$getDay(-60,!1),a.$getDay(0,!1)]},{label:"近90天",value:"90",date:[a.$getDay(-90,!1),a.$getDay(0,!1)]},{label:"近180天",value:"180",date:[a.$getDay(-180,!1),a.$getDay(0,!1)]}]}),h=async()=>{$();const e=u({page:1,pageSize:500,flag:z.value,column:B.value,day:c.quickList[r.value.acIdx].value});let s=await a.$http.get(t.expert_living,e);if(s&&"0"==s.code){let e=s.data;await D(e.data,S.descolList,"name","column","达人直播排行榜"),setTimeout((()=>{w()}),2e3)}else T.error(s.msg),w()},k=async(e,s)=>{L.value.loading=!0;const l=u({page:e||1,pageSize:s||20,flag:z.value,column:B.value,day:c.quickList[r.value.acIdx].value});let o=await a.$http.get(t.expert_living,l);if(L.value.loading=!1,o&&"0"==o.code){let e=o.data;S.tableList=e.data,I.value=e.pageInfo.totalNum}else T.error(o.msg)},x=u([{name:"排行",column:"rank",isfixed:"left",minWidth:"80px"},{name:"达人",column:"star_name",isfixed:"left",minWidth:"200px",slotFlag:!0},{name:"消耗",column:"amount",isSort:!0},{name:"观看次数",column:"play_cnt",isSort:!0},{name:"观看uv",column:"play_uv",isSort:!0},{name:"点赞数",column:"like_cnt",isSort:!0},{name:"评论数",column:"comment_cnt",isSort:!0},{name:"分享数",column:"share_cnt",isSort:!0},{name:"组件展示量",column:"item_show_cnt",isSort:!0},{name:"组件点击量",column:"item_click_cnt",isSort:!0},{name:"组件点击率",column:"item_click_rate",isSort:!0,hasPercent:!0},{name:"千次观看成本",column:"cpm",isSort:!0},{name:"激活成本",column:"cpa",isSort:!0}]),{tableInfo:S,tableListRef:L,total:I,sortKey:B,sortType:z,updateKey:E,sortEvent:F}=q(x,k,"amount");return d((()=>{p((()=>{k()}))})),(e,a)=>(o(),i(n,null,[v("div",H,[y(C,{tabList:c.quickList,onValChange:k,ref_key:"timeQuickRef",ref:r},null,8,["tabList"]),y(j,{haveUpdateFlag:!0,onUpdateEvent:h})]),v("div",Q,[y(K,{ref_key:"tableListRef",ref:L,tableHeight:"calc(100vh - 295px)",tableData:g(S).tableList,descol:g(S).descolList,total:g(I),onInit:k,updateKey:g(E),sortKey:g(B),sortType:g(z),onSort:g(F)},{star_name:f((e=>[v("div",U,[v("div",null,[e.row.head_url?(o(),i("img",{key:0,src:e.row.head_url,alt:""},null,8,M)):(o(),i("img",G))]),v("div",null,[v("div",O,m(e.row.star_name||"-"),1),e.row.fans_number?(o(),i("div",J," 粉丝数: "+m(g(s)(e.row.fans_number)||"-"),1)):_("",!0)])])])),_:1},8,["tableData","descol","total","updateKey","sortKey","sortType","onSort"])])],64))}}),[["__scopeId","data-v-974307d6"]]);const Y={class:"typeBorlineBox"},Z=["onClick"],ee=v("div",{class:"borLine"},null,-1),ae=s({__name:"index",setup(e){const a=h(W),t=u([{name:"短视频",key:"shortVideo",compName:k(W)},{name:"直播",key:"living",compName:k(X)}]),{typeAc:s,typeList:l}=I(t);return(e,t)=>(o(),i(n,null,[v("div",Y,[(o(!0),i(n,null,r(g(l).list,(e=>(o(),i("div",{class:c(["item",e.key==g(s)?"itemAc":""]),key:e.key,onClick:t=>(e=>{s.value=e.key,a.value=e.compName})(e)},[v("div",null,m(e.name),1),ee],10,Z)))),128))]),(o(),x(L,null,[(o(),x(S(g(a))))],1024))],64))}});export{ae as default};