/* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css */import{d as e,m as s,at as a,x as t,C as l,an as n,o as r,c,W as u,l as d,w as i,e as p,a as o,b as m,f as _,aD as v,t as f,J as x,aj as h,ax as b,az as w,aA as g,_ as j}from"./index-0e2a4c1f.js";import{u as y}from"./timerUtils-ba84adcf.js";import{b as J,c as C}from"./userStatistics-a17a0bda.js";import"./http-fa52c7ca.js";/* empty css *//* empty css *//* empty css */const T=e=>(w("data-v-7ed41ef3"),e=e(),g(),e),S={class:"flex w-full card-wrapper"},M={class:"flex items-center justify-between card-header"},I={class:"flex items-center"},N=T((()=>p("br",null,null,-1))),O=T((()=>p("span",null,"今日新增用户",-1))),z={class:"text-red-300"},A={class:"money-wrapper"},D={class:"flex items-center justify-between"},U=T((()=>p("br",null,null,-1))),W=T((()=>p("span",{class:"text-sm"},"充值人数:",-1))),$={class:"text-base"},k=T((()=>p("span",{class:"text-sm"},"会员充值:",-1))),q={class:"text-base"},B=T((()=>p("span",{class:"text-sm"},"普通充值:",-1))),E={class:"text-base"},F=T((()=>p("br",null,null,-1))),G=T((()=>p("span",{class:"text-sm"},"充值金额:",-1))),H={class:"text-base"},K=T((()=>p("br",null,null,-1))),L=T((()=>p("span",{class:"text-sm"},"人均充值:",-1))),P={class:"text-base"},Q=T((()=>p("br",null,null,-1))),R=T((()=>p("span",{class:"text-sm"},"充值率:",-1))),V={class:"text-base"},X={class:"flex items-center justify-between card-header"},Y={class:"flex items-center"},Z=T((()=>p("span",null,"本月新增用户",-1))),ee=T((()=>p("br",null,null,-1))),se=T((()=>p("span",{class:"ml-2 text-red-300"},"(不包含当日)",-1))),ae={class:"money-wrapper"},te={class:"flex items-center justify-between"},le=T((()=>p("span",{class:"text-sm"},"充值人数:",-1))),ne={class:"text-base"},re=T((()=>p("span",{class:"text-sm"},"会员充值:",-1))),ce={class:"text-base"},ue=T((()=>p("span",{class:"text-sm"},"普通充值:",-1))),de={class:"text-base"},ie={class:"flex items-center justify-between card-header"},pe={class:"flex items-center"},oe=T((()=>p("span",null,"上月新增用户",-1))),me=T((()=>p("br",null,null,-1))),_e={class:"money-wrapper"},ve={class:"flex items-center justify-between"},fe=T((()=>p("span",{class:"text-sm"},"充值人数:",-1))),xe={class:"text-base"},he=T((()=>p("span",{class:"text-sm"},"会员充值:",-1))),be={class:"text-base"},we=T((()=>p("span",{class:"text-sm"},"普通充值:",-1))),ge={class:"text-base"},je={class:"flex items-center justify-between card-header"},ye={class:"flex items-center"},Je=T((()=>p("span",null,"累计新增用户",-1))),Ce=T((()=>p("br",null,null,-1))),Te=T((()=>p("span",{class:"ml-2 text-red-300"},"(不包含当日)",-1))),Se={class:"money-wrapper"},Me={class:"flex items-center justify-between"},Ie=T((()=>p("span",{class:"text-sm"},"累计充值人数:",-1))),Ne={class:"text-base"},Oe=j(e({__name:"summaryStatistics",setup(e){const w=s({}),g=s({}),j=s({}),T=s({}),Oe=s(0);a("rolesIdentify");const ze=y(60,(()=>{Ae()})),Ae=()=>{J({miniprogram_id:Oe.value}).then((e=>{w.value=e.data}))};return t((()=>{var e,s;(null==(e=JSON.parse(l.get("nav_data")))?void 0:e.app.id)&&(Oe.value=null==(s=JSON.parse(l.get("nav_data")))?void 0:s.app.id),C({miniprogram_id:Oe.value}).then((e=>{g.value=e.data.month,j.value=e.data.lastMonth,T.value=e.data.history})),Ae()})),(e,s)=>{const a=x,t=h,l=b,y=n("action");return r(),c("div",S,[u((r(),d(l,{class:"box-card",shadow:"hover"},{header:i((()=>[p("div",M,[p("div",I,[o(t,{placement:"top"},{content:i((()=>[m(" 截至当前时间,今日新增用户数量"),N])),default:i((()=>[o(a,null,{default:i((()=>[o(_(v))])),_:1})])),_:1}),O]),p("p",z,f(_(ze).seconds)+"s后刷新",1)])])),default:i((()=>[p("div",A,f(_(w).new_user_num||"0"),1),p("div",D,[p("div",null,[p("div",null,[o(t,{placement:"top"},{content:i((()=>[m(" 新增用户中进行充值的人数"),U])),default:i((()=>[o(a,null,{default:i((()=>[o(_(v))])),_:1})])),_:1}),W,p("span",$,f(_(w).new_user_recharge_num||"0")+"人",1)]),p("div",null,[k,p("span",q,f(_(w).recharge_vip_num||"0")+"人",1)]),p("div",null,[B,p("span",E,f(_(w).recharge_coin_num||"0")+"人",1)])]),p("div",null,[p("div",null,[o(t,{placement:"top"},{content:i((()=>[m(" 新增用户当天充值金额"),F])),default:i((()=>[o(a,null,{default:i((()=>[o(_(v))])),_:1})])),_:1}),G,p("span",H,f(_(w).new_user_recharge_total||"-"),1)]),p("div",null,[o(t,{placement:"top"},{content:i((()=>[m(" 新增用户当天充值金额/新用户当天充值人数"),K])),default:i((()=>[o(a,null,{default:i((()=>[o(_(v))])),_:1})])),_:1}),L,p("span",P,f(_(w).recharge_mean||"-"),1)]),p("div",null,[o(t,{placement:"top"},{content:i((()=>[m(" 充值人数/新增用户数"),Q])),default:i((()=>[o(a,null,{default:i((()=>[o(_(v))])),_:1})])),_:1}),R,p("span",V,f(_(w).recharge_rate||"-"),1)])])])])),_:1})),[[y,"statistic.chargeTJ.todayCharge"]]),u((r(),d(l,{class:"box-card",shadow:"hover"},{header:i((()=>[p("div",X,[p("div",Y,[Z,o(t,{placement:"top"},{content:i((()=>[m(" 本月截至昨日的累计新增用户数量"),ee])),default:i((()=>[o(a,null,{default:i((()=>[o(_(v))])),_:1})])),_:1}),se])])])),default:i((()=>[p("div",ae,f(_(g).new_user_num||"-"),1),p("div",te,[p("div",null,[p("div",null,[le,p("span",ne,f(_(g).new_user_recharge_num||"-")+"人",1)]),p("div",null,[re,p("span",ce,f(_(g).new_user_recharge_vip_num||"-")+"人",1)]),p("div",null,[ue,p("span",de,f(_(g).new_user_recharge_coin_num||"-")+"人",1)])])])])),_:1})),[[y,"statistic.chargeTJ.currentMonthCharge"]]),u((r(),d(l,{class:"box-card",shadow:"hover"},{header:i((()=>[p("div",ie,[p("div",pe,[oe,o(t,{placement:"top"},{content:i((()=>[m(" 上月的累计新增用户数量"),me])),default:i((()=>[o(a,null,{default:i((()=>[o(_(v))])),_:1})])),_:1})])])])),default:i((()=>[p("div",_e,f(_(j).new_user_num||"-"),1),p("div",ve,[p("div",null,[p("div",null,[fe,p("span",xe,f(_(j).new_user_recharge_num||"-")+"人",1)]),p("div",null,[he,p("span",be,f(_(j).new_user_recharge_vip_num||"-")+"人",1)]),p("div",null,[we,p("span",ge,f(_(j).new_user_recharge_coin_num||"-")+"人",1)])])])])),_:1})),[[y,"statistic.chargeTJ.lastMonthCharge"]]),u((r(),d(l,{class:"box-card",shadow:"hover"},{header:i((()=>[p("div",je,[p("div",ye,[Je,o(t,{placement:"top"},{content:i((()=>[m(" 昨日及之前的所有累计新增用户数量"),Ce])),default:i((()=>[o(a,null,{default:i((()=>[o(_(v))])),_:1})])),_:1}),Te])])])),default:i((()=>[p("div",Se,f(_(T).new_user_total||"-"),1),p("div",Me,[p("div",null,[p("div",null,[Ie,p("span",Ne,f(_(T).recharge_user_total||"-")+"人",1)])])])])),_:1})),[[y,"statistic.chargeTJ.totalCharge"]])])}}}),[["__scopeId","data-v-7ed41ef3"]]);export{Oe as default};