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
8.2 KiB
1 lines
8.2 KiB
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[542],{86408:function(g,E,e){e.r(E);var h=e(97857),o=e.n(h),P=e(15009),_=e.n(P),T=e(99289),m=e.n(T),v=e(5574),t=e.n(v),l=e(48357),I=e(11415),s=e(39615),f=e(90930),b=e(67539),R=e(57470),B=e(64317),$=e(34540),G=e(13169),S=e(16250),Y=e(27484),X=e.n(Y),w=e(9220),x=e(67294),Q=e(96974),D=e(58125),H=e(38171),n=e(85893),J=function(){var y=(0,x.useRef)(),k=(0,x.useState)(void 0),L=t()(k,2),K=L[0],q=L[1],M=function(){return window.innerWidth<=768},ee=(0,x.useState)({deviceId:{show:!M()},appName:{show:!M()},platform:{show:!M()},deviceBrand:{show:!M()},deviceName:{show:!M()},ip:{show:!M()},advType:{show:!M()}}),W=t()(ee,2),te=W[0],ae=W[1],ne=[{title:"\u8BBE\u5907id",dataIndex:"deviceId",valueType:"textarea",ellipsis:!0,copyable:!0},{title:"\u5E94\u7528\u540D\u79F0",hideInSearch:!0,dataIndex:"appName",valueType:"textarea"},{title:"\u5E73\u53F0",dataIndex:"platform",width:80,valueEnum:{1:{text:"\u7A7F\u5C71\u7532"},2:{text:"\u817E\u8BAF"},3:{text:"\u767E\u5EA6\u8054\u76DF"},4:{text:"Mintegral"},5:{text:"\u5FEB\u624B"},6:{text:"\u6E38\u53EF\u8D62"},7:{text:"Sigmob"},8:{text:"Admob"}}},{title:"\u5E7F\u544A\u7C7B\u578B",dataIndex:"advType",valueEnum:{1:{text:"\u6A2A\u5E45",status:"Default"},2:{text:"\u63D2\u9875",status:"Processing"},3:{text:"\u6FC0\u52B1\u89C6\u9891",status:"Success"}}},{title:"ecpm(\u5143)",dataIndex:"ecpm",hideInSearch:!0,renderText:function(a){return a/100}},{title:"\u8BBE\u5907",dataIndex:"device",hideInSearch:!0,renderText:function(a,i){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{children:i.deviceBrand}),(0,n.jsx)("p",{children:i.deviceName})]})}},{title:"ip",dataIndex:"ip",hideInSearch:!0,valueType:"textarea"},{title:"\u7528\u6237",dataIndex:"user",hideInSearch:!0,width:150,renderText:function(a,i){if(i.user)return(0,n.jsx)(H.Z,{data:i.user})}},{title:"\u65F6\u95F4",hideInSearch:!0,dataIndex:"createdAt",valueType:"dateTime"},{title:"\u65F6\u95F4",hideInTable:!0,dataIndex:"createdAt",valueType:"dateRange"},{title:"\u7528\u6237id",hideInTable:!0,dataIndex:"userId"}],re=(0,Q.UO)(),p=re.code,se=(0,x.useState)(),F=t()(se,2),c=F[0],_e=F[1],ie=(0,x.useState)([]),Z=t()(ie,2),z=Z[0],ue=Z[1],A=s.Z.Divider,de=(0,x.useState)(!1),V=t()(de,2),U=V[0],oe=V[1],le=function(){var r=m()(_()().mark(function a(i){var d;return _()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,(0,l.d1)({appCode:i});case 2:d=u.sent,d.data&&_e(d.data);case 4:case"end":return u.stop()}},a)}));return function(i){return r.apply(this,arguments)}}(),N=function(){var r=m()(_()().mark(function a(i){var d;return _()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,(0,l.Zb)(o()(o()({},i),{},{code:p}));case 2:d=u.sent,d.data&&ue(d.data);case 4:case"end":return u.stop()}},a)}));return function(i){return r.apply(this,arguments)}}();(0,x.useEffect)(function(){var r;(r=y.current)===null||r===void 0||r.reload(),le(p),N({code:p})},[p]);var ce=z.map(function(r){return{date:function(){var a=r.date+"",i=a.slice(0,4),d=a.slice(4,6),O=a.slice(6,8);return"".concat(i,"-").concat(d,"-").concat(O)}(),income:(0,D.P)(r.income)}}),ve={data:ce,xField:"date",yField:"income",tooltip:{name:"\u6536\u5165",field:"income"},axis:{date:{title:"\u65E5\u671F"}},title:"\u7D2F\u8BA1"+(0,D.P)(z.reduce(function(r,a){return r+(a.income?a.income:0)},0))+"\u5143",height:400,label:{text:function(a){return a.income>0?a.income:""},textBaseline:"bottom"}};return(0,n.jsx)(f._z,{children:(0,n.jsxs)(G.Z,{defaultActiveKey:"1",centered:!0,style:{backgroundColor:"white",padding:"20px"},children:[(0,n.jsx)(S.Z,{tab:"\u5E7F\u544A\u8BE6\u60C5",children:(0,n.jsx)(b.Z,{headerTitle:K?"\u8868\u683C\u7D2F\u8BA1\uFF1A"+(0,D.P)(K)+"\u5143":"",actionRef:y,rowKey:"key",search:{labelWidth:120},request:function(){var r=m()(_()().mark(function a(i){var d,O,u,C;return _()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return j.next=2,(0,l._5)(o()(o()({},i),{},{code:p}));case 2:return u=j.sent,i.current===1&&q((C=u.data)===null||C===void 0?void 0:C.sum),j.abrupt("return",{data:(d=u.data)===null||d===void 0?void 0:d.data,total:(O=u.data)===null||O===void 0?void 0:O.total,success:!0});case 5:case"end":return j.stop()}},a)}));return function(a){return r.apply(this,arguments)}}(),columns:ne,columnsState:{value:te,onChange:function(a){ae(a)}}})},"1"),(0,n.jsxs)(S.Z,{tab:"\u6570\u636E\u603B\u89C8",children:[(0,n.jsx)(w.Z,{onResize:function(a){oe(a.width<596)},children:(0,n.jsx)(s.Z,{children:(0,n.jsxs)(s.Z.Group,{direction:U?"column":"row",children:[(0,n.jsx)(s.Z,{statistic:{title:"\u4E0A\u6708\u6536\u5165\uFF08\u5143\uFF09",value:(0,D.P)(c==null?void 0:c.lastMonthIncome)}}),(0,n.jsx)(A,{type:U?"horizontal":"vertical"}),(0,n.jsx)(s.Z,{statistic:{title:"\u672C\u6708\u6536\u5165\uFF08\u5143\uFF09",value:(0,D.P)(c==null?void 0:c.thisMonthIncome)}}),(0,n.jsx)(A,{type:U?"horizontal":"vertical"}),(0,n.jsx)(s.Z,{statistic:{title:"\u4ECA\u65E5\u6536\u5165\uFF08\u5143\uFF09",value:(0,D.P)(c==null?void 0:c.todayIncome)}}),(0,n.jsx)(A,{type:U?"horizontal":"vertical"}),(0,n.jsx)(s.Z,{statistic:{title:"\u6628\u65E5\u6536\u5165\uFF08\u5143\uFF09",value:(0,D.P)(c==null?void 0:c.yesterdayIncome)}})]})})},"resize-observer"),(0,n.jsxs)(R.t,{defaultCollapsed:!0,split:!0,onFinish:N,children:[(0,n.jsx)(B.Z,{label:"\u5E73\u53F0",name:"platform",valueEnum:{1:"\u7A7F\u5C71\u7532",2:"\u817E\u8BAF",3:"\u767E\u5EA6\u8054\u76DF",4:"Mintegral",5:"\u5FEB\u624B",6:"\u6E38\u53EF\u8D62",7:"Sigmob",8:"Admob"}}),(0,n.jsx)(B.Z,{name:"advType",label:"\u5E7F\u544A\u7C7B\u578B",valueEnum:{1:"\u6A2A\u5E45",2:"\u63D2\u9875",3:"\u6FC0\u52B1\u89C6\u9891"}}),(0,n.jsx)($.Z,{fieldProps:{disabledDate:function(a){return a&&a>=X()().startOf("day")}},name:"date",label:"\u65F6\u95F4"})]}),(0,n.jsx)(I.Z,o()({},ve))]},"2")]})})};E.default=J},38171:function(g,E,e){var h=e(55241),o=e(2487),P=e(71230),_=e(7134),T=e(67294),m=e(52043),v=e(58125),t=e(85893),l=function(s){var f=(0,m.E7)(s.data.env);return(0,t.jsx)(h.Z,{content:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{children:[(0,t.jsx)("label",{children:"\u603B\u6536\u5165\uFF1A"}),(0,v.P)(s.data.income),"\u5143"]}),(0,t.jsxs)("p",{children:[(0,t.jsx)("label",{children:"\u5DF2\u63D0\u73B0\uFF1A"}),(0,v.D)(s.data.realMoney),"\u5143"]}),f.length>0&&(0,t.jsx)(o.Z,{size:"small",header:(0,t.jsx)("div",{children:"\u8BBE\u5907\u5F02\u5E38\u4FE1\u606F"}),bordered:!0,dataSource:f,renderItem:function(R){return(0,t.jsx)(o.Z.Item,{children:R})}})]}),children:(0,t.jsxs)(P.Z,{children:[(0,t.jsx)(_.C,{src:s.data.avatar||"https://apks.bzgames.cn/matrix/fc3fca88a8b28ff602e7a38d8164938b.png"}),(0,t.jsxs)("p",{style:{fontSize:12,marginLeft:10,color:f.length>0?"red":""},children:["id:",s.data.id,(0,t.jsx)("br",{}),s.data.nickname||s.data.mobile]})]})})};E.Z=l},52043:function(g,E,e){e.d(E,{E7:function(){return o},FG:function(){return h},RQ:function(){return T},XY:function(){return P},m0:function(){return _}});var h=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"},{label:"\u5229\u597D",value:"lihao"}]},o=function(v){var t=[];if(!v)return t;for(var l=v>>1,I=["\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"],s=0,f=I;s<f.length;s++){var b=f[s];l&1&&t.push(b),l>>=1}return t},P=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(v){var t=new Date(v),l=t.getFullYear().toString().padStart(4,"0"),I=(t.getMonth()+1).toString().padStart(2,"0"),s=t.getDate().toString().padStart(2,"0");return l+I+s},T=function(v,t){var l=v.toString();return l.padStart(t,"0")}},58125:function(g,E,e){e.d(E,{D:function(){return o},P:function(){return h}});var h=function(_){return _?parseFloat((_/1e5).toFixed(2)):0},o=function(_){return _?parseFloat((_/100).toFixed(2)):0}}}]);
|
|
|