import{b as k}from"./workbench-6480e595.js";import{T as C,l as S,S as B,H as I,b as D,v as N,w as T}from"./ui-ba7aaa7e.js";import{e as V,r as z,P as r,a3 as n,a4 as e,f as t,H as f,a7 as a,ab as d,ac as H,ad as P}from"./vue-bf422dc1.js";import{_ as R}from"./index-c2dd6a24.js";import"./icons-a8498fb6.js";import"./libs-51817cd7.js";import"./plugins-ca970193.js";import"./others-9f318174.js";import"./echarts-bf9d612c.js";const i=p=>(H("data-v-04907ffe"),p=p(),P(),p),j=i(()=>a("div",{style:{width:"100px"}},"昨日销售额",-1)),q=i(()=>a("div",{style:{width:"100px"}},"平台总销售额",-1)),A=i(()=>a("div",{style:{width:"120px"}},"昨日订单",-1)),E=i(()=>a("div",{style:{width:"120px"}},"总订单数",-1)),F=i(()=>a("div",{style:{width:"60px"}},"昨日注册量",-1)),G=i(()=>a("div",{style:{width:"60px"}},"待审核用户",-1)),J=i(()=>a("div",{style:{width:"60px"}},"总注册用户",-1)),K=i(()=>a("div",{style:{width:"60px"}},"总冻结用户",-1)),L=i(()=>a("div",{style:{width:"120px"}},"昨日结算",-1)),M=i(()=>a("div",{style:{width:"120px"}},"总结算数",-1)),O=V({__name:"BasicCard",setup(p){const c=z({today:0,yesterday:0,total:0,ratio:0}),_=z({today:0,yesterday:0,total:0}),s=z({today:0,yesterday:0,frozen:0,audit:0,total:0}),y=z({today:0,yesterday:0,total:0});return(async()=>{const x=await k(),{data:u}=x;c.value=u.price,_.value=u.order,s.value=u.user,s.value.audit=u.notpass_user,s.value.frozen=u.frozen_user})(),(x,u)=>{const h=C,v=S,o=B,m=I,g=D,w=N,b=T;return r(),n(b,{gutter:{xs:8,sm:16,md:24,lg:32,xl:32,xxl:40}},{default:e(()=>[t(w,{span:3},{default:e(()=>[t(g,{title:"销售额","header-bordered":"","hover-shadow":""},{actions:e(()=>[t(h,{theme:"primary",variant:"light"},{default:e(()=>[f("今日")]),_:1})]),default:e(()=>[t(o,{align:"center"},{default:e(()=>{var l;return[t(m,{value:(l=c.value)==null?void 0:l.today,unit:"元"},{extra:e(()=>[t(o,{direction:"vertical",size:0},{default:e(()=>[t(o,{align:"center",size:7},{default:e(()=>[j,a("div",null,d(c.value.yesterday)+"元",1),c.value.today>c.value.yesterday?(r(),n(v,{key:0,name:"arrow-triangle-up-filled",style:{color:"#d54941","font-size":"var(--td-font-size-body-large)"}})):(r(),n(v,{key:1,name:"arrow-triangle-down-filled",style:{color:"#2ba471","font-size":"var(--td-font-size-body-large)"}}))]),_:1}),t(o,{align:"center",size:7},{default:e(()=>[q,a("div",null,d(c.value.total)+"元",1)]),_:1})]),_:1})]),_:1},8,["value"])]}),_:1})]),_:1})]),_:1}),t(w,{span:3},{default:e(()=>[t(g,{title:"订单数","header-bordered":"","hover-shadow":""},{actions:e(()=>[t(h,{theme:"primary",variant:"light"},{default:e(()=>[f("今日")]),_:1})]),default:e(()=>[t(o,{align:"center"},{default:e(()=>{var l;return[t(m,{value:(l=_.value)==null?void 0:l.today,unit:"笔"},{extra:e(()=>[t(o,{direction:"vertical",size:0},{default:e(()=>[t(o,{align:"center",size:7},{default:e(()=>[A,a("div",null,[f(d(_.value.yesterday)+" 笔 ",1),_.value.today>_.value.yesterday?(r(),n(v,{key:0,name:"arrow-triangle-up-filled",style:{color:"#d54941","font-size":"var(--td-font-size-body-large)"}})):(r(),n(v,{key:1,name:"arrow-triangle-down-filled",style:{color:"#2ba471","font-size":"var(--td-font-size-body-large)"}}))])]),_:1}),t(o,{align:"center",size:7},{default:e(()=>[E,a("div",null,d(_.value.total)+"笔",1)]),_:1})]),_:1})]),_:1},8,["value"])]}),_:1})]),_:1})]),_:1}),t(w,{span:3},{default:e(()=>[t(g,{title:"注册用户","header-bordered":"","hover-shadow":""},{actions:e(()=>[t(h,{theme:"primary",variant:"light"},{default:e(()=>[f("今日")]),_:1})]),default:e(()=>[t(o,{align:"center"},{default:e(()=>{var l;return[t(m,{value:(l=s.value)==null?void 0:l.today,unit:""},{extra:e(()=>[t(o,{direction:"vertical",size:0},{default:e(()=>[t(o,{align:"center",size:20},{default:e(()=>[F,a("div",null,d(s.value.yesterday),1),G,a("div",null,d(s.value.audit),1)]),_:1}),t(o,{align:"center",size:20},{default:e(()=>[J,a("div",null,d(s.value.total),1),K,a("div",null,d(s.value.frozen),1)]),_:1})]),_:1})]),_:1},8,["value"])]}),_:1})]),_:1})]),_:1}),t(w,{span:3},{default:e(()=>[t(g,{title:"结算统计","header-bordered":"","hover-shadow":""},{actions:e(()=>[t(h,{theme:"primary",variant:"light"},{default:e(()=>[f("今日")]),_:1})]),default:e(()=>[t(o,{align:"center"},{default:e(()=>{var l;return[t(m,{value:(l=y.value)==null?void 0:l.today,unit:"笔"},{extra:e(()=>[t(o,{direction:"vertical",size:0},{default:e(()=>[t(o,{align:"center",size:7},{default:e(()=>[L,a("div",null,[f(d(y.value.yesterday)+" 笔 ",1),y.value.today>y.value.yesterday?(r(),n(v,{key:0,name:"arrow-triangle-up-filled",style:{color:"#d54941","font-size":"var(--td-font-size-body-large)"}})):(r(),n(v,{key:1,name:"arrow-triangle-down-filled",style:{color:"#2ba471","font-size":"var(--td-font-size-body-large)"}}))])]),_:1}),t(o,{align:"center",size:7},{default:e(()=>[M,a("div",null,d(y.value.total)+"笔",1)]),_:1})]),_:1})]),_:1},8,["value"])]}),_:1})]),_:1})]),_:1})]),_:1})}}});const oe=R(O,[["__scopeId","data-v-04907ffe"]]);export{oe as default};
