You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
15 KiB

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[903],{38171:function(w,D,t){var d=t(55241),C=t(2487),I=t(71230),_=t(7134),R=t(67294),x=t(52043),E=t(58125),c=t(85893),o=function(f){var y=(0,x.E7)(f.data.env);return(0,c.jsx)(d.Z,{content:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("p",{children:[(0,c.jsx)("label",{children:"\u603B\u6536\u5165\uFF1A"}),(0,E.P)(f.data.income),"\u5143"]}),(0,c.jsxs)("p",{children:[(0,c.jsx)("label",{children:"\u5DF2\u63D0\u73B0\uFF1A"}),(0,E.D)(f.data.realMoney),"\u5143"]}),y.length>0&&(0,c.jsx)(C.Z,{size:"small",header:(0,c.jsx)("div",{children:"\u8BBE\u5907\u5F02\u5E38\u4FE1\u606F"}),bordered:!0,dataSource:y,renderItem:function(v){return(0,c.jsx)(C.Z.Item,{children:v})}})]}),children:(0,c.jsxs)(I.Z,{children:[(0,c.jsx)(_.C,{src:f.data.avatar||"https://apks.bzgames.cn/matrix/fc3fca88a8b28ff602e7a38d8164938b.png"}),(0,c.jsxs)("p",{style:{fontSize:12,marginLeft:10,color:y.length>0?"red":""},children:["id:",f.data.id,(0,c.jsx)("br",{}),f.data.nickname||f.data.mobile]})]})})};D.Z=o},47989:function(w,D,t){t.r(D);var d=t(97857),C=t.n(d),I=t(15009),_=t.n(I),R=t(99289),x=t.n(R),E=t(81072),c=t(90930),o=t(67539),b=t(35312),f=t(66309),y=t(86250),M=t(86738),v=t(67294),T=t(58125),U=t(38171),p=t(85893),h=function(){var q=(0,b.useParams)(),H=q.code,N=(0,v.useRef)();(0,v.useEffect)(function(){var B;(B=N.current)===null||B===void 0||B.reload()},[H]);var Y=[{title:"\u7528\u6237id",dataIndex:"userId",valueType:"textarea",hideInTable:!0},{title:"id",dataIndex:"id",valueType:"textarea",ellipsis:!0,copyable:!0,hideInSearch:!0},{title:"\u7528\u6237",hideInSearch:!0,dataIndex:"nickname",valueType:"textarea",renderText:function(O,$){return(0,p.jsx)(U.Z,{data:$})}},{title:"\u652F\u4ED8\u5B9D\u540D\u79F0",dataIndex:"name",hideInSearch:!0},{title:"\u652F\u4ED8\u5B9D\u8D26\u53F7",dataIndex:"aliPayAccount",hideInSearch:!0},{title:"\u5FAE\u4FE1",dataIndex:"wxOpenId",hideInSearch:!0,renderText:function(O){return O?(0,p.jsx)(f.Z,{color:"green",children:"\u5DF2\u7ED1\u5B9A"}):(0,p.jsx)(f.Z,{color:"red",children:"\u672A\u7ED1\u5B9A"})}},{title:"\u603B\u6536\u76CA\uFF08\u5143\uFF09",hideInSearch:!0,dataIndex:"income",renderText:function(O){return(0,T.P)(O)}},{title:"\u5DF2\u63D0\u73B0\uFF08\u5143\uFF09",hideInSearch:!0,dataIndex:"realMoney",renderText:function(O){return(0,T.D)(O)}},{title:"\u6CE8\u518C\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u65F6\u95F4",hideInTable:!0,dataIndex:"createdAt",valueType:"dateRange",hideInSearch:!0},{title:"\u64CD\u4F5C",width:100,hideInSearch:!0,renderText:function(O){return(0,p.jsx)(y.Z,{gap:"small",wrap:!0,children:(0,p.jsxs)(p.Fragment,{children:[O.status===0&&(0,p.jsx)(M.Z,{title:"\u5C01\u7981\u7528\u6237",description:"\u5C01\u7981\u540E\u7528\u6237\u5C06\u65E0\u6CD5\u767B\u5F55\u3001\u65E0\u6CD5\u83B7\u53D6\u6536\u76CA",onConfirm:x()(_()().mark(function $(){var n;return _()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,E.wv)({userId:O.id||0,status:-1});case 2:(n=N.current)===null||n===void 0||n.reload();case 3:case"end":return r.stop()}},$)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,p.jsx)("a",{children:"\u5C01\u7981"})}),O.status===-1&&(0,p.jsx)(M.Z,{title:"\u89E3\u5C01\u7528\u6237",description:"\u89E3\u5C01\u540E\u7528\u6237\u53EF\u4EE5\u6B63\u5E38\u767B\u5F55\u3001\u83B7\u53D6\u6536\u76CA",onConfirm:x()(_()().mark(function $(){var n;return _()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,E.wv)({userId:O.id||0,status:0});case 2:(n=N.current)===null||n===void 0||n.reload();case 3:case"end":return r.stop()}},$)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,p.jsx)("a",{children:"\u89E3\u5C01"})})]})})}}];return(0,p.jsx)(c._z,{children:(0,p.jsx)(o.Z,{actionRef:N,request:function(){var B=x()(_()().mark(function O($){var n,l,r;return _()().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,(0,E.pb)(C()(C()({},$),{},{appCode:H}));case 2:return r=g.sent,g.abrupt("return",{data:(n=r.data)===null||n===void 0?void 0:n.data,total:(l=r.data)===null||l===void 0?void 0:l.total,success:!0});case 4:case"end":return g.stop()}},O)}));return function(O){return B.apply(this,arguments)}}(),columns:Y})})};D.default=h},81072:function(w,D,t){t.d(D,{fn:function(){return y},pb:function(){return b},wv:function(){return c}});var d=t(15009),C=t.n(d),I=t(97857),_=t.n(I),R=t(99289),x=t.n(R),E=t(35312);function c(v,T){return o.apply(this,arguments)}function o(){return o=x()(C()().mark(function v(T,U){return C()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",(0,E.request)("/api/admin/user/changeStatus",_()({method:"POST",params:_()({},T)},U||{})));case 1:case"end":return h.stop()}},v)})),o.apply(this,arguments)}function b(v,T){return f.apply(this,arguments)}function f(){return f=x()(C()().mark(function v(T,U){return C()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",(0,E.request)("/api/admin/user/list",_()({method:"POST",headers:{"Content-Type":"application/json"},data:T},U||{})));case 1:case"end":return h.stop()}},v)})),f.apply(this,arguments)}function y(v,T){return M.apply(this,arguments)}function M(){return M=x()(C()().mark(function v(T,U){return C()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",(0,E.request)("/api/admin/user/queryById",_()({method:"GET",params:_()({},T)},U||{})));case 1:case"end":return h.stop()}},v)})),M.apply(this,arguments)}},52043:function(w,D,t){t.d(D,{E7:function(){return C},FG:function(){return d},RQ:function(){return R},XY:function(){return I},aV:function(){return x},m0:function(){return _}});var d=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"},{label:"\u5229\u597D",value:"lihao"},{label:"\u4F73\u7476",value:"jiayao"}]},C=function(c){var o=[];if(!c)return o;for(var b=c>>1,f=["\u7528\u6237\u6253\u5F00\u4E86USB\u8C03\u8BD5\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u5F00\u53D1\u8005\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u65E0\u969C\u788D\u6A21\u5F0F","\u7528\u6237\u624B\u673A\u5DF2\u7ECFRoot","\u7528\u6237\u5B89\u88C5\u4E86Xpose","\u7528\u6237\u5F00\u542F\u4E86VPN","\u7528\u6237\u5F00\u542F\u4EE3\u7406","\u652F\u4ED8\u5B9D\u672A\u5B89\u88C5","\u5FAE\u4FE1\u672A\u5B89\u88C5"],y=0,M=f;y<M.length;y++){var v=M[y];b&1&&o.push(v),b>>=1}return o},I=function(){return[{label:"\u5F85\u5BA1\u6279",value:"0",color:"orange"},{label:"\u5BA1\u6279\u901A\u8FC7",value:"1",color:"green"},{label:"\u8F6C\u8D26\u4E2D",value:"2",color:"orange"},{label:"\u8F6C\u8D26\u6210\u529F",value:"3",color:"green"},{label:"\u8F6C\u8D26\u5931\u8D25",value:"-1",color:"red"},{label:"\u5BA1\u6279\u62D2\u7EDD",value:"-2",color:"red"}]},_=function(c){var o=new Date(c),b=o.getFullYear().toString().padStart(4,"0"),f=(o.getMonth()+1).toString().padStart(2,"0"),y=o.getDate().toString().padStart(2,"0");return b+f+y},R=function(c,o){var b=c.toString();return b.padStart(o,"0")},x=function(c){var o=c;return o<1024?o+" B":(o=parseFloat((o/1024).toFixed(2)),o<1024?o+" KB":(o=parseFloat((o/1024).toFixed(2)),o+" MB"))}},58125:function(w,D,t){t.d(D,{D:function(){return C},P:function(){return d}});var d=function(_){return _?parseFloat((_/1e5).toFixed(2)):0},C=function(_){return _?parseFloat((_/100).toFixed(2)):0}},86250:function(w,D,t){t.d(D,{Z:function(){return $}});var d=t(67294),C=t(93967),I=t.n(C),_=t(98423),R=t(98065),x=t(53124),E=t(91945),c=t(45503);const o=["wrap","nowrap","wrap-reverse"],b=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],f=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],y=(n,l)=>{const r=l.wrap===!0?"wrap":l.wrap;return{[`${n}-wrap-${r}`]:r&&o.includes(r)}},M=(n,l)=>{const r={};return f.forEach(s=>{r[`${n}-align-${s}`]=l.align===s}),r[`${n}-align-stretch`]=!l.align&&!!l.vertical,r},v=(n,l)=>{const r={};return b.forEach(s=>{r[`${n}-justify-${s}`]=l.justify===s}),r};function T(n,l){return I()(Object.assign(Object.assign(Object.assign({},y(n,l)),M(n,l)),v(n,l)))}var U=T;const p=n=>{const{componentCls:l}=n;return{[l]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},h=n=>{const{componentCls:l}=n;return{[l]:{"&-gap-small":{gap:n.flexGapSM},"&-gap-middle":{gap:n.flexGap},"&-gap-large":{gap:n.flexGapLG}}}},k=n=>{const{componentCls:l}=n,r={};return o.forEach(s=>{r[`${l}-wrap-${s}`]={flexWrap:s}}),r},q=n=>{const{componentCls:l}=n,r={};return f.forEach(s=>{r[`${l}-align-${s}`]={alignItems:s}}),r},H=n=>{const{componentCls:l}=n,r={};return b.forEach(s=>{r[`${l}-justify-${s}`]={justifyContent:s}}),r},N=()=>({});var Y=(0,E.I$)("Flex",n=>{const{paddingXS:l,padding:r,paddingLG:s}=n,g=(0,c.TS)(n,{flexGapSM:l,flexGap:r,flexGapLG:s});return[p(g),h(g),k(g),q(g),H(g)]},N,{resetStyle:!1}),B=function(n,l){var r={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&l.indexOf(s)<0&&(r[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var g=0,s=Object.getOwnPropertySymbols(n);g<s.length;g++)l.indexOf(s[g])<0&&Object.prototype.propertyIsEnumerable.call(n,s[g])&&(r[s[g]]=n[s[g]]);return r},$=d.forwardRef((n,l)=>{const{prefixCls:r,rootClassName:s,className:g,style:e,flex:u,gap:m,children:a,vertical:i=!1,component:A="div"}=n,P=B(n,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:j,direction:F,getPrefixCls:V}=d.useContext(x.E_),S=V("flex",r),[z,K,J]=Y(S),Q=i!=null?i:j==null?void 0:j.vertical,L=I()(g,s,j==null?void 0:j.className,S,K,J,U(S,n),{[`${S}-rtl`]:F==="rtl",[`${S}-gap-${m}`]:(0,R.n)(m),[`${S}-vertical`]:Q}),Z=Object.assign(Object.assign({},j==null?void 0:j.style),e);return u&&(Z.flex=u),m&&!(0,R.n)(m)&&(Z.gap=m),z(d.createElement(A,Object.assign({ref:l,className:L,style:Z},(0,_.Z)(P,["justify","wrap","align"])),a))})},66309:function(w,D,t){t.d(D,{Z:function(){return g}});var d=t(67294),C=t(93967),I=t.n(C),_=t(98423),R=t(98787),x=t(69760),E=t(96159),c=t(45353),o=t(53124),b=t(54548),f=t(10274),y=t(14747),M=t(45503),v=t(91945);const T=e=>{const{paddingXXS:u,lineWidth:m,tagPaddingHorizontal:a,componentCls:i,calc:A}=e,P=A(a).sub(m).equal(),j=A(u).sub(m).equal();return{[i]:Object.assign(Object.assign({},(0,y.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:P,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,b.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:j,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${i}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},["&-checkable"]:{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},["&-hidden"]:{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:P}}),[`${i}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},U=e=>{const{lineWidth:u,fontSizeIcon:m,calc:a}=e,i=e.fontSizeSM;return(0,M.TS)(e,{tagFontSize:i,tagLineHeight:(0,b.bf)(a(e.lineHeightSM).mul(i).equal()),tagIconSize:a(m).sub(a(u).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},p=e=>({defaultBg:new f.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var h=(0,v.I$)("Tag",e=>{const u=U(e);return T(u)},p),k=function(e,u){var m={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&u.indexOf(a)<0&&(m[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,a=Object.getOwnPropertySymbols(e);i<a.length;i++)u.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(m[a[i]]=e[a[i]]);return m},H=d.forwardRef((e,u)=>{const{prefixCls:m,style:a,className:i,checked:A,onChange:P,onClick:j}=e,F=k(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:V,tag:S}=d.useContext(o.E_),z=ee=>{P==null||P(!A),j==null||j(ee)},K=V("tag",m),[J,Q,L]=h(K),Z=I()(K,`${K}-checkable`,{[`${K}-checkable-checked`]:A},S==null?void 0:S.className,i,Q,L);return J(d.createElement("span",Object.assign({},F,{ref:u,style:Object.assign(Object.assign({},a),S==null?void 0:S.style),className:Z,onClick:z})))}),N=t(98719);const Y=e=>(0,N.Z)(e,(u,m)=>{let{textColor:a,lightBorderColor:i,lightColor:A,darkColor:P}=m;return{[`${e.componentCls}${e.componentCls}-${u}`]:{color:a,background:A,borderColor:i,"&-inverse":{color:e.colorTextLightSolid,background:P,borderColor:P},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var B=(0,v.bk)(["Tag","preset"],e=>{const u=U(e);return Y(u)},p);function O(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const $=(e,u,m)=>{const a=O(m);return{[`${e.componentCls}${e.componentCls}-${u}`]:{color:e[`color${m}`],background:e[`color${a}Bg`],borderColor:e[`color${a}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var n=(0,v.bk)(["Tag","status"],e=>{const u=U(e);return[$(u,"success","Success"),$(u,"processing","Info"),$(u,"error","Error"),$(u,"warning","Warning")]},p),l=function(e,u){var m={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&u.indexOf(a)<0&&(m[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,a=Object.getOwnPropertySymbols(e);i<a.length;i++)u.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(m[a[i]]=e[a[i]]);return m};const s=d.forwardRef((e,u)=>{const{prefixCls:m,className:a,rootClassName:i,style:A,children:P,icon:j,color:F,onClose:V,bordered:S=!0,visible:z}=e,K=l(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:J,direction:Q,tag:L}=d.useContext(o.E_),[Z,ee]=d.useState(!0),ce=(0,_.Z)(K,["closeIcon","closable"]);d.useEffect(()=>{z!==void 0&&ee(z)},[z]);const re=(0,R.o2)(F),ae=(0,R.yT)(F),te=re||ae,ue=Object.assign(Object.assign({backgroundColor:F&&!te?F:void 0},L==null?void 0:L.style),A),W=J("tag",m),[de,me,_e]=h(W),fe=I()(W,L==null?void 0:L.className,{[`${W}-${F}`]:te,[`${W}-has-color`]:F&&!te,[`${W}-hidden`]:!Z,[`${W}-rtl`]:Q==="rtl",[`${W}-borderless`]:!S},a,i,me,_e),le=X=>{X.stopPropagation(),V==null||V(X),!X.defaultPrevented&&ee(!1)},[,ge]=(0,x.Z)((0,x.w)(e),(0,x.w)(L),{closable:!1,closeIconRender:X=>{const he=d.createElement("span",{className:`${W}-close-icon`,onClick:le},X);return(0,E.wm)(X,he,G=>({onClick:ie=>{var ne;(ne=G==null?void 0:G.onClick)===null||ne===void 0||ne.call(G,ie),le(ie)},className:I()(G==null?void 0:G.className,`${W}-close-icon`)}))}}),ve=typeof K.onClick=="function"||P&&P.type==="a",oe=j||null,pe=oe?d.createElement(d.Fragment,null,oe,P&&d.createElement("span",null,P)):P,se=d.createElement("span",Object.assign({},ce,{ref:u,className:fe,style:ue}),pe,ge,re&&d.createElement(B,{key:"preset",prefixCls:W}),ae&&d.createElement(n,{key:"status",prefixCls:W}));return de(ve?d.createElement(c.Z,{component:"Tag"},se):se)});s.CheckableTag=H;var g=s}}]);