Browse Source

feat: 加些配置

lihao
nili 7 months ago
parent
commit
d7aebfab71
  1. 2
      dist/_umi_route_preload_helper.7ab88976.js
  2. 4
      dist/index.html
  3. 1
      dist/p__App__AppManagement.441e379e.async.js
  4. 1
      dist/p__App__AppManagement.e532244b.async.js
  5. 2
      dist/umi.7fe207fa.js
  6. 17
      src/pages/App/CashConfigForm.tsx
  7. 4
      src/pages/App/NormalAppManagement.tsx
  8. 17
      src/services/matrix/typings.d.ts

2
dist/_umi_route_preload_helper.af31d2ec.js → dist/_umi_route_preload_helper.7ab88976.js

@ -1 +1 @@
!function(){"use strict";var t="/".replace(/([^/])$/,"$1/"),e=location.pathname,n=e.startsWith(t)&&decodeURI("/".concat(e.slice(t.length)));if(n){var a=document,c=a.head,r=a.createElement.bind(a),i=function(t,e,n){var a,c=e.r[t]||(null===(a=Object.entries(e.r).find((function(e){var n=e[0];return new RegExp("^".concat(n.replace(/\/:[^/]+/g,"/[^/]+").replace("/*","/.+"),"$")).test(t)})))||void 0===a?void 0:a[1]);return null==c?void 0:c.map((function(t){var a=e.f[t][1],c=e.f[t][0];return{type:c.split(".").pop(),url:"".concat(n.publicPath).concat(c),attrs:[["data-".concat(e.b),"".concat(e.p,":").concat(a)]]}}))}(n,{"p":"ant-design-pro","b":"webpack","f":[["51.a2ea1b3b.async.js",51],["63.86ff1d28.async.js",63],["134.6fc81d91.async.js",134],["169.57647c7d.async.js",169],["p__Welcome.61596037.async.js",185],["p__MoneyManagement.44667bc9.async.js",190],["247.3fe8fb10.async.js",247],["t__plugin-layout__Layout.6cae69f5.chunk.css",301],["t__plugin-layout__Layout.4594a64b.async.js",301],["p__User__Login__index.9d3ab92e.async.js",366],["p__DeviceOwnerApp.ec53e5c4.async.js",371],["390.41467286.async.js",390],["393.38316f72.async.js",393],["397.fb5f72c1.async.js",397],["427.f16a2970.async.js",427],["p__SuperAdmin.7ef997d3.async.js",455],["531.3d4ec55a.async.js",531],["539.49b7b156.async.js",539],["p__AdvRecordListV2.1e290899.async.js",542],["p__Bind.b6ee068f.async.js",557],["559.016bfdbb.async.js",559],["p__404.0c100574.async.js",571],["635.20e45f05.async.js",635],["p__App__AppManagement.e532244b.async.js",731],["804.139cd916.async.js",804],["p__AdminManagement.5e2368b3.async.js",816],["841.614ef4c0.async.js",841],["p__AdvRecordList.8e5ef22c.async.js",857],["p__UserManagement.687c40f2.async.js",903],["905.6e225d1b.async.js",905],["930.fca7adbf.async.js",930]],"r":{"/*":[21,29],"/":[2,7,8,20,22,29],"/welcome":[2,3,4,12,20,30,7,8,22,29],"/super":[0,1,2,3,6,14,15,30,7,8,20,22,29],"/adminList":[0,3,14,24,25,2,7,8,20,22,29],"/bind":[2,3,12,13,19,20,30,7,8,22,29],"/appList":[0,1,2,3,6,13,14,16,17,23,24,29,30,7,8,20,22],"/advList/:code":[0,1,2,3,14,16,17,20,24,26,27,29,30,7,8,22],"/advListV2/:code":[0,1,2,3,14,16,17,18,20,24,26,29,30,7,8,22],"/user/:code":[0,1,2,3,14,16,17,24,28,29,30,7,8,20,22],"/money/:code":[0,1,2,3,5,14,16,17,24,29,30,7,8,20,22],"/app/:code":[0,1,2,3,10,14,16,17,20,24,26,29,30,7,8,22],"/user/login":[1,2,3,9,14,16,24]}},{publicPath:"/"});null==i||i.forEach((function(t){var e,n=t.type,a=t.url;if("js"===n)(e=r("script")).src=a,e.async=!0;else{if("css"!==n)return;(e=r("link")).href=a,e.rel="preload",e.as="style"}t.attrs.forEach((function(t){e.setAttribute(t[0],t[1]||"")})),c.appendChild(e)}))}}(); !function(){"use strict";var t="/".replace(/([^/])$/,"$1/"),e=location.pathname,n=e.startsWith(t)&&decodeURI("/".concat(e.slice(t.length)));if(n){var a=document,c=a.head,r=a.createElement.bind(a),i=function(t,e,n){var a,c=e.r[t]||(null===(a=Object.entries(e.r).find((function(e){var n=e[0];return new RegExp("^".concat(n.replace(/\/:[^/]+/g,"/[^/]+").replace("/*","/.+"),"$")).test(t)})))||void 0===a?void 0:a[1]);return null==c?void 0:c.map((function(t){var a=e.f[t][1],c=e.f[t][0];return{type:c.split(".").pop(),url:"".concat(n.publicPath).concat(c),attrs:[["data-".concat(e.b),"".concat(e.p,":").concat(a)]]}}))}(n,{"p":"ant-design-pro","b":"webpack","f":[["51.a2ea1b3b.async.js",51],["63.86ff1d28.async.js",63],["134.6fc81d91.async.js",134],["169.57647c7d.async.js",169],["p__Welcome.61596037.async.js",185],["p__MoneyManagement.44667bc9.async.js",190],["247.3fe8fb10.async.js",247],["t__plugin-layout__Layout.6cae69f5.chunk.css",301],["t__plugin-layout__Layout.4594a64b.async.js",301],["p__User__Login__index.9d3ab92e.async.js",366],["p__DeviceOwnerApp.ec53e5c4.async.js",371],["390.41467286.async.js",390],["393.38316f72.async.js",393],["397.fb5f72c1.async.js",397],["427.f16a2970.async.js",427],["p__SuperAdmin.7ef997d3.async.js",455],["531.3d4ec55a.async.js",531],["539.49b7b156.async.js",539],["p__AdvRecordListV2.1e290899.async.js",542],["p__Bind.b6ee068f.async.js",557],["559.016bfdbb.async.js",559],["p__404.0c100574.async.js",571],["635.20e45f05.async.js",635],["p__App__AppManagement.441e379e.async.js",731],["804.139cd916.async.js",804],["p__AdminManagement.5e2368b3.async.js",816],["841.614ef4c0.async.js",841],["p__AdvRecordList.8e5ef22c.async.js",857],["p__UserManagement.687c40f2.async.js",903],["905.6e225d1b.async.js",905],["930.fca7adbf.async.js",930]],"r":{"/*":[21,29],"/":[2,7,8,20,22,29],"/welcome":[2,3,4,12,20,30,7,8,22,29],"/super":[0,1,2,3,6,14,15,30,7,8,20,22,29],"/adminList":[0,3,14,24,25,2,7,8,20,22,29],"/bind":[2,3,12,13,19,20,30,7,8,22,29],"/appList":[0,1,2,3,6,13,14,16,17,23,24,29,30,7,8,20,22],"/advList/:code":[0,1,2,3,14,16,17,20,24,26,27,29,30,7,8,22],"/advListV2/:code":[0,1,2,3,14,16,17,18,20,24,26,29,30,7,8,22],"/user/:code":[0,1,2,3,14,16,17,24,28,29,30,7,8,20,22],"/money/:code":[0,1,2,3,5,14,16,17,24,29,30,7,8,20,22],"/app/:code":[0,1,2,3,10,14,16,17,20,24,26,29,30,7,8,22],"/user/login":[1,2,3,9,14,16,24]}},{publicPath:"/"});null==i||i.forEach((function(t){var e,n=t.type,a=t.url;if("js"===n)(e=r("script")).src=a,e.async=!0;else{if("css"!==n)return;(e=r("link")).href=a,e.rel="preload",e.as="style"}t.attrs.forEach((function(t){e.setAttribute(t[0],t[1]||"")})),c.appendChild(e)}))}}();

4
dist/index.html

@ -7,10 +7,10 @@
<title>Ant Design Pro</title> <title>Ant Design Pro</title>
<link rel="stylesheet" href="/umi.1ca9308c.css"> <link rel="stylesheet" href="/umi.1ca9308c.css">
<script async src="/scripts/loading.js"></script> <script async src="/scripts/loading.js"></script>
<script src="/_umi_route_preload_helper.af31d2ec.js"></script> <script src="/_umi_route_preload_helper.7ab88976.js"></script>
</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>
<script src="/umi.a0a9fd71.js"></script> <script src="/umi.7fe207fa.js"></script>
</body> </body>
</html> </html>

1
dist/p__App__AppManagement.441e379e.async.js

File diff suppressed because one or more lines are too long

1
dist/p__App__AppManagement.e532244b.async.js

File diff suppressed because one or more lines are too long

2
dist/umi.a0a9fd71.js → dist/umi.7fe207fa.js

File diff suppressed because one or more lines are too long

17
src/pages/App/CashConfigForm.tsx

@ -1,16 +1,16 @@
import { getAppNormalConfig, saveNormalConfig } from '@/services/matrix/matrixAppConfigController'; import { getAppNormalConfig, saveNormalConfig } from '@/services/matrix/matrixAppConfigController';
import { InfoCircleOutlined, MinusCircleOutlined, PlusOutlined } from '@ant-design/icons'; import { InfoCircleOutlined, MinusCircleOutlined, PlusOutlined } from '@ant-design/icons';
import { Button, Col, Form, Input, InputNumber, Modal, Row, Tooltip } from 'antd'; import { Button, Col, Form, Input, InputNumber, Modal, Row, Switch, Tooltip } from 'antd';
import React, { useEffect } from 'react'; import React, { useEffect } from 'react';
export type CashConfigFormProps = { export type AppNormalConfigFormProps = {
onCancel: () => void; onCancel: () => void;
onSubmit: () => void; onSubmit: () => void;
updateModalOpen: boolean; updateModalOpen: boolean;
appCode: string; appCode: string;
}; };
const CashConfigForm: React.FC<CashConfigFormProps> = (props) => { const AppNormalConfigForm: React.FC<AppNormalConfigFormProps> = (props) => {
const [form] = Form.useForm(); const [form] = Form.useForm();
const handleOk = () => { const handleOk = () => {
@ -60,6 +60,15 @@ const CashConfigForm: React.FC<CashConfigFormProps> = (props) => {
return ( return (
<Modal title="编辑" visible={props.updateModalOpen} onOk={handleOk} onCancel={handleCancel}> <Modal title="编辑" visible={props.updateModalOpen} onOk={handleOk} onCancel={handleCancel}>
<Form labelCol={{ span: 6 }} wrapperCol={{ span: 18 }} form={form} onFinish={handleSaveApp}> <Form labelCol={{ span: 6 }} wrapperCol={{ span: 18 }} form={form} onFinish={handleSaveApp}>
<Form.Item name="enablePangolin" label="启用穿山甲">
<Switch />
</Form.Item>
<Form.Item name="pangolinDailyLimit" label="穿山甲每日次数">
<InputNumber />
</Form.Item>
<Form.Item name="tencentDailyLimit" label="广告每日次数">
<InputNumber />
</Form.Item>
<Form.List name="moneyLadder"> <Form.List name="moneyLadder">
{(fields, { add, remove }) => ( {(fields, { add, remove }) => (
<> <>
@ -211,4 +220,4 @@ const CashConfigForm: React.FC<CashConfigFormProps> = (props) => {
); );
}; };
export default CashConfigForm; export default AppNormalConfigForm;

4
src/pages/App/NormalAppManagement.tsx

@ -3,7 +3,7 @@ import { PageContainer, ProColumns, ProTable } from '@ant-design/pro-components'
import { Input, Popover, QRCode } from 'antd'; import { Input, Popover, QRCode } from 'antd';
import { useEffect, useState } from 'react'; import { useEffect, useState } from 'react';
import CashConfigForm from './CashConfigForm'; import AppNormalConfigForm from './CashConfigForm';
const NormalAppManagement = () => { const NormalAppManagement = () => {
const [visible, setVisible] = useState(false); const [visible, setVisible] = useState(false);
@ -106,7 +106,7 @@ const NormalAppManagement = () => {
dataSource={filteredAppArr} dataSource={filteredAppArr}
/> />
{appCode && ( {appCode && (
<CashConfigForm <AppNormalConfigForm
updateModalOpen={visible} updateModalOpen={visible}
appCode={appCode || ''} appCode={appCode || ''}
onCancel={() => setVisible(false)} onCancel={() => setVisible(false)}

17
src/services/matrix/typings.d.ts

@ -48,13 +48,16 @@ declare namespace API {
}; };
type AppNormalConfig = { type AppNormalConfig = {
maxIncomeEachVideo?: number;
dayRates?: DayRate[];
defaultRate?: number;
moneyLadder?: number[]; moneyLadder?: number[];
noAuditMoney?: number; noAuditMoney?: number;
qqUrl?: string; qqUrl?: string;
dayLimit?: number; dayLimit?: number;
maxIncomeEachVideo?: number; enablePangolin?: boolean;
dayRates?: DayRate[]; pangolinDailyLimit?: number;
defaultRate?: number; tencentDailyLimit?: number;
}; };
type calcParams = { type calcParams = {
@ -198,13 +201,7 @@ declare namespace API {
umeng?: string; umeng?: string;
aliPay?: string; aliPay?: string;
wx?: string; wx?: string;
moneyLadder?: string; normalConfig?: string;
noAuditMoney?: number;
qqUrl?: string;
dayLimit?: number;
maxIncomeEachVideo?: number;
dayRates?: string;
defaultRate?: number;
}; };
type MatrixAppBo = { type MatrixAppBo = {

Loading…
Cancel
Save