summaryStatistics-db1affeb.js 6.7 KB

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