test_lgq/niucloud/public/web/_nuxt/index.35da9e83.js
2024-01-24 17:36:08 +08:00

2 lines
3.6 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{_ as $,E as B,v as C}from"./el-loading.95b1f580.js";import{p as j,M as w,a as x,q as E,s as N,aR as V,ab as P,o as n,e as l,y as p,u as e,x as S,h as z,t as o,k as h,j as i,z as I,B as T,C as A,W as D,r as F,b2 as L,f as u,a0 as M,c as O,w as g,V as c,I as q}from"./entry.539d3b49.js";import{_ as R}from"./nuxt-link.47b9aec4.js";import{_ as W}from"./default_headimg.8342a3b1.js";import{_ as G}from"./_plugin-vue_export-helper.c27b6911.js";import"./el-tooltip.a101b1cd.js";import"./el-popper.6e1fd591.js";import"./index.e7365e3c.js";import"./index.68b3a059.js";import"./vnode.48eda29e.js";const H=j({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:w([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:w([String,Object,Array])}}),J=x({name:"ElStatistic"}),K=x({...J,props:H,setup(k,{expose:f}){const _=k,a=E("statistic"),t=N(()=>{const{value:s,formatter:d,precision:r,decimalSeparator:v,groupSeparator:y}=_;if(V(d))return d(s);if(!P(s))return s;let[m,b=""]=String(s).split(".");return b=b.padEnd(r,"0").slice(0,r>0?r:0),m=m.replace(/\B(?=(\d{3})+(?!\d))/g,y),[m,b].join(b?v:"")});return f({displayValue:t}),(s,d)=>(n(),l("div",{class:p(e(a).b())},[s.$slots.title||s.title?(n(),l("div",{key:0,class:p(e(a).e("head"))},[S(s.$slots,"title",{},()=>[z(o(s.title),1)])],2)):h("v-if",!0),i("div",{class:p(e(a).e("content"))},[s.$slots.prefix||s.prefix?(n(),l("div",{key:0,class:p(e(a).e("prefix"))},[S(s.$slots,"prefix",{},()=>[i("span",null,o(s.prefix),1)])],2)):h("v-if",!0),i("span",{class:p(e(a).e("number")),style:I(s.valueStyle)},o(e(t)),7),s.$slots.suffix||s.suffix?(n(),l("div",{key:1,class:p(e(a).e("suffix"))},[S(s.$slots,"suffix",{},()=>[i("span",null,o(s.suffix),1)])],2)):h("v-if",!0)],2)],2))}});var Q=T(K,[["__file","/home/runner/work/element-plus/element-plus/packages/components/statistic/src/statistic.vue"]]);const U=A(Q);const X={class:"w-full h-full bg-page pt-6"},Y={class:"main-container flex justify-between"},Z={class:"card-header"},ee={key:0,class:"px-10 py-5"},te={class:"flex items-center border-gray-300 border-b-1 pb-5 px-5"},se={key:0,class:"w-[65px] h-[65px] rounded-full",src:W,alt:""},ae=["src"],ie={class:"ml-4"},oe={class:"text-base font-bold"},ne={class:"text-xs"},le={class:"text-xs text-gray-400 mt-1"},re={class:"flex justify-between mt-8 statistic-wrap px-8"},ce=x({__name:"index",setup(k){const f=D(),_=F(!0),a=N(()=>(f.info&&(_.value=!1),f.info));return L(),(t,s)=>{const d=$,r=U,v=R,y=B,m=C;return n(),l("div",X,[i("div",Y,[u(d),M((n(),O(y,{class:"box-card flex-1 ml-4",shadow:"never"},{header:g(()=>[i("div",Z,[i("span",null,o(("t"in t?t.t:e(c))("welcomePage")),1)])]),default:g(()=>[e(a)?(n(),l("div",ee,[i("div",te,[e(a).headimg?(n(),l("img",{key:1,src:("img"in t?t.img:e(q))(e(a).headimg),class:"w-[65px] h-[65px] rounded-full",alt:""},null,8,ae)):(n(),l("img",se)),i("div",ie,[i("div",null,[i("span",oe,o(e(a).nickname),1),i("span",ne,""+o(("t"in t?t.t:e(c))("mobile"))+""+o(e(a).mobile?e(a).mobile:("t"in t?t.t:e(c))("notBound"))+"",1)]),i("p",le,o(("t"in t?t.t:e(c))("registrationTime"))+""+o(e(a).create_time),1)])]),i("div",re,[u(v,{to:"/member/point"},{default:g(()=>[u(r,{title:("t"in t?t.t:e(c))("point"),value:e(a).point},null,8,["title","value"])]),_:1}),u(v,{to:"/member/balance"},{default:g(()=>[u(r,{title:("t"in t?t.t:e(c))("balance"),value:e(a).balance},null,8,["title","value"])]),_:1}),u(r,{title:("t"in t?t.t:e(c))("looseChange"),value:e(a).money},null,8,["title","value"])])])):h("",!0)]),_:1})),[[m,_.value]])])])}}});const ye=G(ce,[["__scopeId","data-v-3fa44b0c"]]);export{ye as default};