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
1 lines
15 KiB
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[190],{39829:function(K,O,t){t.r(O),t.d(O,{default:function(){return k}});var g=t(97857),y=t.n(g),j=t(15009),v=t.n(j),B=t(99289),S=t.n(B),x=t(35312);function d(N,$){return u.apply(this,arguments)}function u(){return u=S()(v()().mark(function N($,a){return v()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",(0,x.request)("/api/admin/money/audit",y()({method:"POST",headers:{"Content-Type":"application/json"},data:$},a||{})));case 1:case"end":return o.stop()}},N)})),u.apply(this,arguments)}function b(N,$){return m.apply(this,arguments)}function m(){return m=S()(v()().mark(function N($,a){return v()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",(0,x.request)("/api/admin/money/list",y()({method:"POST",headers:{"Content-Type":"application/json"},data:$},a||{})));case 1:case"end":return o.stop()}},N)})),m.apply(this,arguments)}var E=t(58125),A=t(90930),D=t(67539),Y=t(66309),z=t(86250),L=t(86738),Z=t(14726),H=t(67294),W=t(52043),Q=t(38171),I=t(85893),J=function(){var $=(0,x.useParams)(),a=$.code,s=(0,H.useRef)();(0,H.useEffect)(function(){var l;(l=s.current)===null||l===void 0||l.reload()},[a]);var o=[{title:"id",dataIndex:"id",valueType:"textarea",copyable:!0,hideInSearch:!0,renderText:function(f,e){return(0,W.m0)(e.createdAt||0)+(0,W.RQ)(e.id||0,6)}},{title:"\u7528\u6237",hideInSearch:!0,dataIndex:"user",valueType:"textarea",width:150,renderText:function(f,e){if(e.user)return(0,I.jsx)(Q.Z,{data:e.user})}},{title:"\u91D1\u989D\uFF08\u5143\uFF09",hideInSearch:!0,dataIndex:"cent",valueType:"textarea",renderText:function(f){return(0,E.D)(f)}},{title:"\u652F\u4ED8\u5B9D\u540D\u79F0",dataIndex:"name",hideInSearch:!0},{title:"\u652F\u4ED8\u5B9D\u8D26\u53F7",dataIndex:"aliPayAccount",hideInSearch:!0},{title:"\u8BA2\u5355\u53F7",dataIndex:"orderId",hideInSearch:!0,ellipsis:!0},{title:"\u8F6C\u8D26\u65F6\u95F4",dataIndex:"transDate",hideInSearch:!0},{title:"\u72B6\u6001",dataIndex:"status",hideInSearch:!0,renderText:function(f){var e=(0,W.XY)(),r=e.find(function(n){return n.value===f+""}),c=r?r.label:"\u672A\u77E5";return(0,I.jsx)(Y.Z,{color:r==null?void 0:r.color,children:c})}},{title:"\u72B6\u6001",dataIndex:"status",hideInTable:!0,valueType:"select",fieldProps:{options:(0,W.XY)()}},{title:"\u5907\u6CE8",dataIndex:"reason",hideInSearch:!0},{title:"\u7533\u8BF7\u65F6\u95F4",dataIndex:"createdAt",valueType:"dateTime",hideInSearch:!0},{title:"\u64CD\u4F5C",width:100,hideInSearch:!0,renderText:function(f){return(0,I.jsx)(z.Z,{gap:"small",wrap:!0,children:f.status===0&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(L.Z,{title:"\u62D2\u7EDD\u63D0\u73B0\u7533\u8BF7",description:"\u62D2\u7EDD\u540E\uFF0C\u72B6\u6001\u65E0\u6CD5\u4FEE\u6539\u6210\u5BA1\u6279\u901A\u8FC7\uFF0C\u786E\u5B9A\u62D2\u7EDD\u5417?",onConfirm:S()(v()().mark(function e(){var r;return v()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,d({id:f.id,status:-2,reason:""});case 2:(r=s.current)===null||r===void 0||r.reload();case 3:case"end":return n.stop()}},e)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,I.jsx)(Z.ZP,{children:"\u62D2\u7EDD"})}),(0,I.jsx)(L.Z,{title:"\u901A\u8FC7\u63D0\u73B0\u7533\u8BF7",description:"\u901A\u8FC7\u540E\u7CFB\u7EDF\u5C06\u81EA\u52A8\u8F6C\u8D26\uFF0C\u65E0\u6CD5\u64A4\u56DE\uFF0C\u786E\u5B9A\u901A\u8FC7\u5417?",onConfirm:S()(v()().mark(function e(){var r;return v()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,d({id:f.id,status:1,reason:""});case 2:(r=s.current)===null||r===void 0||r.reload();case 3:case"end":return n.stop()}},e)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,I.jsx)(Z.ZP,{type:"primary",children:"\u901A\u8FC7"})})]})})}}];return(0,I.jsx)(A._z,{children:(0,I.jsx)(D.Z,{actionRef:s,request:function(){var l=S()(v()().mark(function f(e){var r,c,n;return v()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,b(y()(y()({},e),{},{appCode:a}));case 2:return n=p.sent,p.abrupt("return",{data:(r=n.data)===null||r===void 0?void 0:r.data,total:(c=n.data)===null||c===void 0?void 0:c.total,success:!0});case 4:case"end":return p.stop()}},f)}));return function(f){return l.apply(this,arguments)}}(),columns:o})})},k=J},38171:function(K,O,t){var g=t(55241),y=t(2487),j=t(71230),v=t(7134),B=t(67294),S=t(52043),x=t(58125),d=t(85893),u=function(m){var E=(0,S.E7)(m.data.env);return(0,d.jsx)(g.Z,{content:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("p",{children:[(0,d.jsx)("label",{children:"\u603B\u6536\u5165\uFF1A"}),(0,x.P)(m.data.income),"\u5143"]}),(0,d.jsxs)("p",{children:[(0,d.jsx)("label",{children:"\u5DF2\u63D0\u73B0\uFF1A"}),(0,x.D)(m.data.realMoney),"\u5143"]}),E.length>0&&(0,d.jsx)(y.Z,{size:"small",header:(0,d.jsx)("div",{children:"\u8BBE\u5907\u5F02\u5E38\u4FE1\u606F"}),bordered:!0,dataSource:E,renderItem:function(D){return(0,d.jsx)(y.Z.Item,{children:D})}})]}),children:(0,d.jsxs)(j.Z,{children:[(0,d.jsx)(v.C,{src:m.data.avatar||"https://apks.bzgames.cn/matrix/fc3fca88a8b28ff602e7a38d8164938b.png"}),(0,d.jsxs)("p",{style:{fontSize:12,marginLeft:10,color:E.length>0?"red":""},children:["id:",m.data.id,(0,d.jsx)("br",{}),m.data.nickname||m.data.mobile]})]})})};O.Z=u},52043:function(K,O,t){t.d(O,{E7:function(){return y},FG:function(){return g},RQ:function(){return B},XY:function(){return j},aV:function(){return S},m0:function(){return v}});var g=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"},{label:"\u5229\u597D",value:"lihao"},{label:"\u4F73\u7476",value:"jiayao"}]},y=function(d){var u=[];if(!d)return u;for(var b=d>>1,m=["\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"],E=0,A=m;E<A.length;E++){var D=A[E];b&1&&u.push(D),b>>=1}return u},j=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"}]},v=function(d){var u=new Date(d),b=u.getFullYear().toString().padStart(4,"0"),m=(u.getMonth()+1).toString().padStart(2,"0"),E=u.getDate().toString().padStart(2,"0");return b+m+E},B=function(d,u){var b=d.toString();return b.padStart(u,"0")},S=function(d){var u=d;return u<1024?u+" B":(u=parseFloat((u/1024).toFixed(2)),u<1024?u+" KB":(u=parseFloat((u/1024).toFixed(2)),u+" MB"))}},58125:function(K,O,t){t.d(O,{D:function(){return y},P:function(){return g}});var g=function(v){return v?parseFloat((v/1e5).toFixed(2)):0},y=function(v){return v?parseFloat((v/100).toFixed(2)):0}},86250:function(K,O,t){t.d(O,{Z:function(){return $}});var g=t(67294),y=t(93967),j=t.n(y),v=t(98423),B=t(98065),S=t(53124),x=t(91945),d=t(45503);const u=["wrap","nowrap","wrap-reverse"],b=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],m=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],E=(a,s)=>{const o=s.wrap===!0?"wrap":s.wrap;return{[`${a}-wrap-${o}`]:o&&u.includes(o)}},A=(a,s)=>{const o={};return m.forEach(l=>{o[`${a}-align-${l}`]=s.align===l}),o[`${a}-align-stretch`]=!s.align&&!!s.vertical,o},D=(a,s)=>{const o={};return b.forEach(l=>{o[`${a}-justify-${l}`]=s.justify===l}),o};function Y(a,s){return j()(Object.assign(Object.assign(Object.assign({},E(a,s)),A(a,s)),D(a,s)))}var z=Y;const L=a=>{const{componentCls:s}=a;return{[s]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},Z=a=>{const{componentCls:s}=a;return{[s]:{"&-gap-small":{gap:a.flexGapSM},"&-gap-middle":{gap:a.flexGap},"&-gap-large":{gap:a.flexGapLG}}}},H=a=>{const{componentCls:s}=a,o={};return u.forEach(l=>{o[`${s}-wrap-${l}`]={flexWrap:l}}),o},W=a=>{const{componentCls:s}=a,o={};return m.forEach(l=>{o[`${s}-align-${l}`]={alignItems:l}}),o},Q=a=>{const{componentCls:s}=a,o={};return b.forEach(l=>{o[`${s}-justify-${l}`]={justifyContent:l}}),o},I=()=>({});var J=(0,x.I$)("Flex",a=>{const{paddingXS:s,padding:o,paddingLG:l}=a,f=(0,d.TS)(a,{flexGapSM:s,flexGap:o,flexGapLG:l});return[L(f),Z(f),H(f),W(f),Q(f)]},I,{resetStyle:!1}),k=function(a,s){var o={};for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&s.indexOf(l)<0&&(o[l]=a[l]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,l=Object.getOwnPropertySymbols(a);f<l.length;f++)s.indexOf(l[f])<0&&Object.prototype.propertyIsEnumerable.call(a,l[f])&&(o[l[f]]=a[l[f]]);return o},$=g.forwardRef((a,s)=>{const{prefixCls:o,rootClassName:l,className:f,style:e,flex:r,gap:c,children:n,vertical:i=!1,component:p="div"}=a,h=k(a,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:C,direction:M,getPrefixCls:U}=g.useContext(S.E_),T=U("flex",o),[V,R,q]=J(T),_=i!=null?i:C==null?void 0:C.vertical,F=j()(f,l,C==null?void 0:C.className,T,R,q,z(T,a),{[`${T}-rtl`]:M==="rtl",[`${T}-gap-${c}`]:(0,B.n)(c),[`${T}-vertical`]:_}),G=Object.assign(Object.assign({},C==null?void 0:C.style),e);return r&&(G.flex=r),c&&!(0,B.n)(c)&&(G.gap=c),V(g.createElement(p,Object.assign({ref:s,className:F,style:G},(0,v.Z)(h,["justify","wrap","align"])),n))})},66309:function(K,O,t){t.d(O,{Z:function(){return f}});var g=t(67294),y=t(93967),j=t.n(y),v=t(98423),B=t(98787),S=t(69760),x=t(96159),d=t(45353),u=t(53124),b=t(54548),m=t(10274),E=t(14747),A=t(45503),D=t(91945);const Y=e=>{const{paddingXXS:r,lineWidth:c,tagPaddingHorizontal:n,componentCls:i,calc:p}=e,h=p(n).sub(c).equal(),C=p(r).sub(c).equal();return{[i]:Object.assign(Object.assign({},(0,E.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:h,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:C,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:h}}),[`${i}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},z=e=>{const{lineWidth:r,fontSizeIcon:c,calc:n}=e,i=e.fontSizeSM;return(0,A.TS)(e,{tagFontSize:i,tagLineHeight:(0,b.bf)(n(e.lineHeightSM).mul(i).equal()),tagIconSize:n(c).sub(n(r).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},L=e=>({defaultBg:new m.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var Z=(0,D.I$)("Tag",e=>{const r=z(e);return Y(r)},L),H=function(e,r){var c={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(c[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(c[n[i]]=e[n[i]]);return c},Q=g.forwardRef((e,r)=>{const{prefixCls:c,style:n,className:i,checked:p,onChange:h,onClick:C}=e,M=H(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:U,tag:T}=g.useContext(u.E_),V=ee=>{h==null||h(!p),C==null||C(ee)},R=U("tag",c),[q,_,F]=Z(R),G=j()(R,`${R}-checkable`,{[`${R}-checkable-checked`]:p},T==null?void 0:T.className,i,_,F);return q(g.createElement("span",Object.assign({},M,{ref:r,style:Object.assign(Object.assign({},n),T==null?void 0:T.style),className:G,onClick:V})))}),I=t(98719);const J=e=>(0,I.Z)(e,(r,c)=>{let{textColor:n,lightBorderColor:i,lightColor:p,darkColor:h}=c;return{[`${e.componentCls}${e.componentCls}-${r}`]:{color:n,background:p,borderColor:i,"&-inverse":{color:e.colorTextLightSolid,background:h,borderColor:h},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var k=(0,D.bk)(["Tag","preset"],e=>{const r=z(e);return J(r)},L);function N(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const $=(e,r,c)=>{const n=N(c);return{[`${e.componentCls}${e.componentCls}-${r}`]:{color:e[`color${c}`],background:e[`color${n}Bg`],borderColor:e[`color${n}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var a=(0,D.bk)(["Tag","status"],e=>{const r=z(e);return[$(r,"success","Success"),$(r,"processing","Info"),$(r,"error","Error"),$(r,"warning","Warning")]},L),s=function(e,r){var c={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(c[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(c[n[i]]=e[n[i]]);return c};const l=g.forwardRef((e,r)=>{const{prefixCls:c,className:n,rootClassName:i,style:p,children:h,icon:C,color:M,onClose:U,bordered:T=!0,visible:V}=e,R=s(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:q,direction:_,tag:F}=g.useContext(u.E_),[G,ee]=g.useState(!0),ie=(0,v.Z)(R,["closeIcon","closable"]);g.useEffect(()=>{V!==void 0&&ee(V)},[V]);const re=(0,B.o2)(M),ae=(0,B.yT)(M),te=re||ae,ue=Object.assign(Object.assign({backgroundColor:M&&!te?M:void 0},F==null?void 0:F.style),p),P=q("tag",c),[de,fe,ge]=Z(P),ve=j()(P,F==null?void 0:F.className,{[`${P}-${M}`]:te,[`${P}-has-color`]:M&&!te,[`${P}-hidden`]:!G,[`${P}-rtl`]:_==="rtl",[`${P}-borderless`]:!T},n,i,fe,ge),le=X=>{X.stopPropagation(),U==null||U(X),!X.defaultPrevented&&ee(!1)},[,me]=(0,S.Z)((0,S.w)(e),(0,S.w)(F),{closable:!1,closeIconRender:X=>{const Ce=g.createElement("span",{className:`${P}-close-icon`,onClick:le},X);return(0,x.wm)(X,Ce,w=>({onClick:ce=>{var ne;(ne=w==null?void 0:w.onClick)===null||ne===void 0||ne.call(w,ce),le(ce)},className:j()(w==null?void 0:w.className,`${P}-close-icon`)}))}}),pe=typeof R.onClick=="function"||h&&h.type==="a",oe=C||null,he=oe?g.createElement(g.Fragment,null,oe,h&&g.createElement("span",null,h)):h,se=g.createElement("span",Object.assign({},ie,{ref:r,className:ve,style:ue}),he,me,re&&g.createElement(k,{key:"preset",prefixCls:P}),ae&&g.createElement(a,{key:"status",prefixCls:P}));return de(pe?g.createElement(d.Z,{component:"Tag"},se):se)});l.CheckableTag=Q;var f=l}}]);
|
|
|