import{D as F,b7 as A,b as k,ar as w,_ as B,c as d,at as b,w as y,e as n,f as r,h as u,i as _,g as t,F as L,j as D,t as i,A as E,R as x,S}from"./index.0308b213.js";const R=()=>F({url:"merchant/dashboard.index/index"}),$={setup(){const s=A(),e=k({loading:!0,cardList:[{title:"\u8425\u4E1A\u989D",price:0},{title:"\u603B\u6536\u5165",price:0},{title:"\u6709\u6548\u8BA2\u5355\u91CF",price:0,num:0},{title:"\u65E0\u6548\u8BA2\u5355\u91CF",price:0,num:0}]}),p=()=>{console.log("\u67E5\u770B\u66F4\u591A"),s.push({path:"/store/analysis/businessStatistics"})},h=()=>{var l=window.open("/admin/store/checkstand","_blank");l===null&&alert("\u6D4F\u89C8\u5668\u963B\u6B62\u4E86\u5F39\u51FA\u7A97\u53E3\uFF0C\u8BF7\u5141\u8BB8\u5F39\u51FA\u7A97\u53E3\u6216\u8005\u624B\u52A8\u6253\u5F00\u94FE\u63A5")};return R().then(l=>{const a=l.stat;e.cardList[0].price=a.total_fee,e.cardList[1].price=a.store_final_fee,e.cardList[2].num=a.total_success_order,e.cardList[2].price=a.avg_pre_order,e.cardList[3].num=a.total_cancel_order,e.cardList[3].price=a.stotal_cancel_fee}).finally(()=>{e.loading=!1}),{...w(e),toMoreDetail:p,handleCircleClick:h}}};const v=s=>(x("data-v-b235f179"),s=s(),S(),s),I={class:"generalize"},N={class:"card-header"},V=v(()=>t("div",{class:"header-left tn-title--vertical-line"},[t("h1",{class:"card-title"},"\u603B\u89C8 (\u8FD1\u4E03\u5929)")],-1)),z=v(()=>t("span",null,"\u67E5\u770B\u66F4\u591A\u8BE6\u60C5",-1)),M={class:"card-content"},j={class:"card-row"},q={class:"title"},G={class:"card-row"},W={key:0,class:"text"},H={key:1,class:"text"},J={key:0,class:"card-row"},K={class:"describe"};function O(s,e,p,h,l,a){const f=d("ArrowRight"),g=d("el-icon"),m=d("el-card"),C=b("loading");return y((n(),r("div",I,[u(m,{class:"card-container"},{header:_(()=>[t("div",N,[V,t("div",{class:"header-right",onClick:e[0]||(e[0]=o=>s.toMoreDetail())},[z,u(g,null,{default:_(()=>[u(f)]),_:1})])])]),default:_(()=>[t("div",M,[(n(!0),r(L,null,D(s.cardList,(o,c)=>(n(),r("div",{class:"card-box",key:c},[t("div",j,[t("span",q,i(o.title),1)]),t("div",G,[c==0||c==1?(n(),r("span",W,"\uFFE5"+i(o.price),1)):(n(),r("span",H,i(o.num),1))]),c==2||c==3?(n(),r("div",J,[t("span",K,i(c==2?"\u5BA2\u5355\u4EF7":"\u635F\u5931\u8425\u4E1A\u989D")+":\uFFE5"+i(o.price),1)])):E("",!0)]))),128))])]),_:1}),t("div",null,[t("div",{class:"floating-circle",onClick:e[1]||(e[1]=(...o)=>s.handleCircleClick&&s.handleCircleClick(...o))}," \u6536\u94F6\u53F0 ")])])),[[C,s.loading]])}const Q=B($,[["render",O],["__scopeId","data-v-b235f179"]]);export{Q as default};
