oak-pay-business 2.2.1 → 2.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/aspects/AspectDict.d.ts +3 -3
- package/es/aspects/index.d.ts +2 -1
- package/es/checkers/accountOper.js +4 -3
- package/es/checkers/offlineAccount.js +4 -1
- package/es/checkers/order.js +39 -0
- package/es/checkers/refund.js +1 -0
- package/es/components/AbstractComponents.d.ts +15 -10
- package/es/components/account/detail/web.pc.module.less +68 -68
- package/es/components/offlineAccount/upsert/web.pc.js +1 -1
- package/es/components/order/pay/index.js +1 -1
- package/es/components/order/pay/info.js +6 -6
- package/es/components/order/pay/info.module.less +24 -24
- package/es/components/order/pay/web.mobile.module.less +35 -35
- package/es/components/order/pay/web.pc.module.less +35 -35
- package/es/components/payConfig/upsert/offline/web.pc.module.less +4 -4
- package/es/components/payConfig/upsert/web.pc.module.less +10 -10
- package/es/components/sysAccount/survey/locales/zh-CN.json +3 -1
- package/es/components/sysAccount/survey/web.pc.js +69 -32
- package/es/components/sysAccount/survey/web.pc.module.less +3 -2
- package/es/components/sysAccount/transferList/index.d.ts +3 -0
- package/es/components/sysAccount/transferList/index.js +52 -0
- package/es/components/sysAccount/transferList/index.json +1 -0
- package/es/components/sysAccount/transferList/locales/zh-CN.json +6 -0
- package/es/components/sysAccount/transferList/web.pc.d.ts +12 -0
- package/es/components/sysAccount/transferList/web.pc.js +45 -0
- package/es/components/sysAccountMove/create/index.d.ts +7 -0
- package/es/components/sysAccountMove/create/index.js +145 -0
- package/es/components/sysAccountMove/create/index.json +1 -0
- package/es/components/sysAccountMove/create/locales/zh-CN.json +6 -0
- package/es/components/sysAccountMove/create/web.pc.d.ts +26 -0
- package/es/components/sysAccountMove/create/web.pc.js +68 -0
- package/es/components/sysAccountOper/list/index.d.ts +5 -0
- package/es/components/sysAccountOper/list/index.js +127 -0
- package/es/components/sysAccountOper/list/index.json +1 -0
- package/es/components/sysAccountOper/list/locales/zh-CN.json +5 -0
- package/es/components/sysAccountOper/list/web.module.less +42 -0
- package/es/components/sysAccountOper/list/web.pc.d.ts +25 -0
- package/es/components/sysAccountOper/list/web.pc.js +36 -0
- package/es/components/withdrawAccount/list/index.less +8 -0
- package/es/components/withdrawAccount/list/index.xml +6 -1
- package/es/components/withdrawTransfer/list/locales/zh-CN.json +1 -1
- package/es/components/wpAccount/upsert/web.pc.js +1 -1
- package/es/configuration/attrUpdateMatrix.js +2 -2
- package/es/data/actionAuth.js +7 -2
- package/es/data/i18n.js +53 -3
- package/es/data/path.js +2 -2
- package/es/entities/AccountOper.d.ts +1 -1
- package/es/entities/AccountOper.js +3 -1
- package/es/entities/OfflineAccount.d.ts +1 -1
- package/es/entities/OfflineAccount.js +8 -2
- package/es/entities/Order.d.ts +2 -1
- package/es/entities/Order.js +1 -0
- package/es/entities/SysAccountMove.d.ts +13 -0
- package/es/entities/SysAccountMove.js +18 -0
- package/es/entities/SysAccountOper.d.ts +4 -1
- package/es/entities/SysAccountOper.js +1 -0
- package/es/entities/WpAccount.d.ts +1 -1
- package/es/entities/WpAccount.js +8 -2
- package/es/locales/error/zh-CN.json +9 -0
- package/es/locales/offlineAccount/zh-CN.json +2 -1
- package/es/oak-app-domain/AccountOper/Schema.d.ts +1 -1
- package/es/oak-app-domain/AccountOper/Storage.js +1 -1
- package/es/oak-app-domain/AccountOper/Style.js +1 -0
- package/es/oak-app-domain/AccountOper/locales/zh_CN.json +1 -1
- package/es/oak-app-domain/EntityDict.d.ts +2 -0
- package/es/oak-app-domain/OfflineAccount/Action.d.ts +1 -1
- package/es/oak-app-domain/OfflineAccount/Action.js +1 -1
- package/es/oak-app-domain/OfflineAccount/Style.js +4 -1
- package/es/oak-app-domain/OfflineAccount/locales/zh_CN.json +1 -1
- package/es/oak-app-domain/Order/Schema.d.ts +8 -2
- package/es/oak-app-domain/Order/Storage.js +3 -1
- package/es/oak-app-domain/Order/locales/zh_CN.json +1 -1
- package/es/oak-app-domain/Path/Schema.d.ts +6 -0
- package/es/oak-app-domain/Path/Storage.js +6 -0
- package/es/oak-app-domain/Path/locales/zh_CN.json +1 -1
- package/es/oak-app-domain/Storage.js +2 -0
- package/es/oak-app-domain/SysAccountMove/Schema.d.ts +185 -0
- package/es/oak-app-domain/SysAccountMove/Schema.js +1 -0
- package/es/oak-app-domain/SysAccountMove/Storage.d.ts +3 -0
- package/es/oak-app-domain/SysAccountMove/Storage.js +31 -0
- package/es/oak-app-domain/SysAccountMove/locales/zh_CN.json +1 -0
- package/es/oak-app-domain/SysAccountOper/Schema.d.ts +34 -5
- package/es/oak-app-domain/SysAccountOper/Storage.js +4 -0
- package/es/oak-app-domain/SysAccountOper/locales/zh_CN.json +1 -1
- package/es/oak-app-domain/System/Schema.d.ts +12 -0
- package/es/oak-app-domain/User/Schema.d.ts +12 -0
- package/es/oak-app-domain/WpAccount/Action.d.ts +1 -1
- package/es/oak-app-domain/WpAccount/Action.js +1 -1
- package/es/oak-app-domain/WpAccount/Style.js +4 -1
- package/es/oak-app-domain/WpAccount/locales/zh_CN.json +1 -1
- package/es/oak-app-domain/_SubQuery.d.ts +12 -0
- package/es/triggers/pay.js +149 -46
- package/es/triggers/refund.js +3 -0
- package/es/triggers/withdraw.d.ts +1 -1
- package/es/types/RuntimeCxt.d.ts +1 -1
- package/es/types/sysAccountOper.d.ts +1 -0
- package/es/types/sysAccountOper.js +1 -0
- package/es/utils/payClazz/Account.js +3 -2
- package/es/utils/payClazz/WechatPay/index.d.ts +1 -1
- package/es/utils/wpProductFrontend.js +1 -1
- package/lib/aspects/AspectDict.d.ts +3 -3
- package/lib/aspects/index.d.ts +2 -1
- package/lib/aspects/withdraw.d.ts +8 -8
- package/lib/checkers/accountOper.js +4 -3
- package/lib/checkers/offlineAccount.js +4 -1
- package/lib/checkers/order.js +39 -0
- package/lib/checkers/refund.js +1 -0
- package/lib/configuration/attrUpdateMatrix.js +2 -2
- package/lib/data/actionAuth.js +7 -2
- package/lib/data/i18n.js +53 -3
- package/lib/data/path.js +2 -2
- package/lib/entities/AccountOper.d.ts +1 -1
- package/lib/entities/AccountOper.js +3 -1
- package/lib/entities/OfflineAccount.d.ts +1 -1
- package/lib/entities/OfflineAccount.js +8 -2
- package/lib/entities/Order.d.ts +2 -1
- package/lib/entities/Order.js +1 -0
- package/lib/entities/SysAccountMove.d.ts +13 -0
- package/lib/entities/SysAccountMove.js +21 -0
- package/lib/entities/SysAccountOper.d.ts +4 -1
- package/lib/entities/SysAccountOper.js +1 -0
- package/lib/entities/WpAccount.d.ts +1 -1
- package/lib/entities/WpAccount.js +8 -2
- package/lib/locales/error/zh-CN.json +9 -0
- package/lib/locales/offlineAccount/zh-CN.json +2 -1
- package/lib/oak-app-domain/AccountOper/Schema.d.ts +1 -1
- package/lib/oak-app-domain/AccountOper/Storage.js +1 -1
- package/lib/oak-app-domain/AccountOper/Style.js +1 -0
- package/lib/oak-app-domain/AccountOper/locales/zh_CN.json +1 -1
- package/lib/oak-app-domain/EntityDict.d.ts +2 -0
- package/lib/oak-app-domain/OfflineAccount/Action.d.ts +1 -1
- package/lib/oak-app-domain/OfflineAccount/Action.js +1 -1
- package/lib/oak-app-domain/OfflineAccount/Style.js +4 -1
- package/lib/oak-app-domain/OfflineAccount/locales/zh_CN.json +1 -1
- package/lib/oak-app-domain/Order/Schema.d.ts +8 -2
- package/lib/oak-app-domain/Order/Storage.js +3 -1
- package/lib/oak-app-domain/Order/locales/zh_CN.json +1 -1
- package/lib/oak-app-domain/Path/Schema.d.ts +6 -0
- package/lib/oak-app-domain/Storage.js +18 -16
- package/lib/oak-app-domain/SysAccountMove/Schema.d.ts +185 -0
- package/lib/oak-app-domain/SysAccountMove/Schema.js +2 -0
- package/lib/oak-app-domain/SysAccountMove/Storage.d.ts +3 -0
- package/lib/oak-app-domain/SysAccountMove/Storage.js +34 -0
- package/lib/oak-app-domain/SysAccountMove/locales/zh_CN.json +1 -0
- package/lib/oak-app-domain/SysAccountOper/Schema.d.ts +34 -5
- package/lib/oak-app-domain/SysAccountOper/Storage.js +4 -0
- package/lib/oak-app-domain/SysAccountOper/locales/zh_CN.json +1 -1
- package/lib/oak-app-domain/System/Schema.d.ts +12 -0
- package/lib/oak-app-domain/System/Storage.js +1 -2
- package/lib/oak-app-domain/User/Schema.d.ts +12 -0
- package/lib/oak-app-domain/WpAccount/Action.d.ts +1 -1
- package/lib/oak-app-domain/WpAccount/Action.js +1 -1
- package/lib/oak-app-domain/WpAccount/Style.js +4 -1
- package/lib/oak-app-domain/WpAccount/locales/zh_CN.json +1 -1
- package/lib/oak-app-domain/_SubQuery.d.ts +12 -0
- package/lib/triggers/pay.js +149 -46
- package/lib/triggers/refund.js +3 -0
- package/lib/types/RuntimeCxt.d.ts +1 -1
- package/lib/types/sysAccountOper.d.ts +1 -0
- package/lib/types/sysAccountOper.js +2 -0
- package/lib/utils/payClazz/Account.js +3 -2
- package/lib/utils/wpProductFrontend.js +1 -1
- package/package.json +171 -200
- package/src/entities/AccountOper.ts +4 -2
- package/src/entities/OfflineAccount.ts +12 -5
- package/src/entities/Order.ts +3 -1
- package/src/entities/SysAccountMove.ts +39 -0
- package/src/entities/SysAccountOper.ts +5 -1
- package/src/entities/WpAccount.ts +11 -4
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BackendRuntimeContext } from '../context/BackendRuntimeContext';
|
|
2
2
|
import { EntityDict } from '../oak-app-domain';
|
|
3
|
-
export type AspectDict = {
|
|
3
|
+
export type AspectDict<ED extends EntityDict> = {
|
|
4
4
|
getWithdrawCreateData: (params: {
|
|
5
5
|
accountId: string;
|
|
6
6
|
price: number;
|
|
7
7
|
withdrawAccountId?: string;
|
|
8
|
-
}, context:
|
|
8
|
+
}, context: BackendRuntimeContext<ED>) => Promise<EntityDict['withdraw']['CreateSingle']['data']>;
|
|
9
9
|
};
|
package/es/aspects/index.d.ts
CHANGED
|
@@ -54,14 +54,15 @@ const checkers = [
|
|
|
54
54
|
case 'refund':
|
|
55
55
|
case 'withdraw': {
|
|
56
56
|
if (totalPlus >= 0 || availPlus >= 0 || totalPlus !== availPlus) {
|
|
57
|
-
throw new OakInputIllegalException('accountOper', ['availPlus'],
|
|
57
|
+
throw new OakInputIllegalException('accountOper', ['availPlus'], `accountOper为${type}时,其totalPlus和availPlus必须为不相等的负数`);
|
|
58
58
|
}
|
|
59
59
|
break;
|
|
60
60
|
}
|
|
61
61
|
case 'refundFailure':
|
|
62
|
-
case 'withdrawBack':
|
|
62
|
+
case 'withdrawBack':
|
|
63
|
+
case 'consumeBack': {
|
|
63
64
|
if (totalPlus <= 0 || availPlus <= 0 || totalPlus !== availPlus) {
|
|
64
|
-
throw new OakInputIllegalException('accountOper', ['availPlus'],
|
|
65
|
+
throw new OakInputIllegalException('accountOper', ['availPlus'], `accountOper为${type}时,其totalPlus和availPlus必须为不相等的正数`);
|
|
65
66
|
}
|
|
66
67
|
break;
|
|
67
68
|
}
|
|
@@ -27,13 +27,16 @@ function checkAttributes(data) {
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
const { refundCompensateRatio, refundGapDays } = data;
|
|
30
|
+
const { refundCompensateRatio, refundGapDays, withdrawTransferLossRatio } = data;
|
|
31
31
|
if (typeof refundGapDays !== 'number' || refundGapDays < 0) {
|
|
32
32
|
throw new OakInputIllegalException('offlineAccount', ['refundGapDays'], 'offlineAccount::error.refundGapDaysNotNegative');
|
|
33
33
|
}
|
|
34
34
|
if (typeof refundCompensateRatio !== 'number' || refundCompensateRatio < 0 || refundCompensateRatio > 100) {
|
|
35
35
|
throw new OakInputIllegalException('offlineAccount', ['refundGapDays'], 'offlineAccount::error.refundCompensateIllegal');
|
|
36
36
|
}
|
|
37
|
+
if (typeof withdrawTransferLossRatio !== 'number' || withdrawTransferLossRatio < 0) {
|
|
38
|
+
throw new OakInputIllegalException('offlineAccount', ['withdrawTransferLossRatio'], 'offlineAccount::error.withdrawTransferLossRatioNotNegative');
|
|
39
|
+
}
|
|
37
40
|
}
|
|
38
41
|
const checkers = [
|
|
39
42
|
{
|
package/es/checkers/order.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import assert from 'assert';
|
|
2
2
|
import { pipeline } from 'oak-domain/lib/utils/executor';
|
|
3
|
+
import { OakInputIllegalException } from 'oak-domain/lib/types';
|
|
3
4
|
const checkers = [
|
|
4
5
|
{
|
|
5
6
|
type: 'logical',
|
|
@@ -20,6 +21,44 @@ const checkers = [
|
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
23
|
},
|
|
24
|
+
{
|
|
25
|
+
type: 'logicalData',
|
|
26
|
+
entity: 'order',
|
|
27
|
+
action: 'startPaying',
|
|
28
|
+
checker: (operation, context) => {
|
|
29
|
+
const { data, filter } = operation;
|
|
30
|
+
assert(typeof filter.id === 'string');
|
|
31
|
+
return pipeline(() => context.select('order', {
|
|
32
|
+
data: {
|
|
33
|
+
id: 1,
|
|
34
|
+
price: 1,
|
|
35
|
+
paid: 1,
|
|
36
|
+
refunded: 1,
|
|
37
|
+
iState: 1,
|
|
38
|
+
},
|
|
39
|
+
filter: {
|
|
40
|
+
id: filter.id,
|
|
41
|
+
},
|
|
42
|
+
}, {}), (orders) => {
|
|
43
|
+
const [order] = orders;
|
|
44
|
+
const { price, paid, iState, allowPartialPay } = order;
|
|
45
|
+
assert(['unpaid', 'partiallyRefunded'].includes(iState) && paid === 0);
|
|
46
|
+
const { pay$order: pays } = data;
|
|
47
|
+
if (!(pays instanceof Array) || !pays.length) {
|
|
48
|
+
throw new OakInputIllegalException('order', ['pay$order'], 'error::order.nonePay');
|
|
49
|
+
}
|
|
50
|
+
let amount = 0;
|
|
51
|
+
pays.forEach(({ action, data }) => {
|
|
52
|
+
assert(action === 'create');
|
|
53
|
+
const { price } = data;
|
|
54
|
+
amount += price;
|
|
55
|
+
});
|
|
56
|
+
if (!allowPartialPay && amount !== price) {
|
|
57
|
+
throw new OakInputIllegalException('order', ['pay$order'], 'error::order.payAmountNotEnough');
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
},
|
|
23
62
|
{
|
|
24
63
|
// 订单结算,将收入分帐到相关的Account中
|
|
25
64
|
type: 'logicalData',
|
package/es/checkers/refund.js
CHANGED
|
@@ -16,8 +16,8 @@ declare const List: <T extends keyof EntityDict>(props: ReactComponentProps<Enti
|
|
|
16
16
|
attributes: OakAbsAttrDef[];
|
|
17
17
|
data: RowWithActions<EntityDict, T>[];
|
|
18
18
|
loading: boolean;
|
|
19
|
-
tablePagination?:
|
|
20
|
-
rowSelection?:
|
|
19
|
+
tablePagination?: false | import("antd").TablePaginationConfig | undefined;
|
|
20
|
+
rowSelection?: import("antd/es/table/interface").TableRowSelection<RowWithActions<EntityDict, T>> | undefined;
|
|
21
21
|
hideHeader?: boolean | undefined;
|
|
22
22
|
disableSerialNumber?: boolean | undefined;
|
|
23
23
|
size?: "small" | "middle" | "large" | undefined;
|
|
@@ -27,7 +27,7 @@ declare const List: <T extends keyof EntityDict>(props: ReactComponentProps<Enti
|
|
|
27
27
|
} & {
|
|
28
28
|
scrollToFirstRowOnChange?: boolean | undefined;
|
|
29
29
|
}) | undefined;
|
|
30
|
-
locale?:
|
|
30
|
+
locale?: import("antd/es/table/interface").TableLocale | undefined;
|
|
31
31
|
opWidth?: number | undefined;
|
|
32
32
|
}>) => React.ReactElement;
|
|
33
33
|
declare const ListPro: <T extends keyof EntityDict>(props: {
|
|
@@ -43,29 +43,34 @@ declare const ListPro: <T extends keyof EntityDict>(props: {
|
|
|
43
43
|
attributes: OakAbsAttrDef[];
|
|
44
44
|
data: RowWithActions<EntityDict, T>[];
|
|
45
45
|
loading?: boolean | undefined;
|
|
46
|
-
tablePagination?:
|
|
47
|
-
rowSelection?:
|
|
46
|
+
tablePagination?: false | import("antd").TablePaginationConfig | undefined;
|
|
47
|
+
rowSelection?: import("antd/es/table/interface").TableRowSelection<RowWithActions<EntityDict, T>> | undefined;
|
|
48
48
|
disableSerialNumber?: boolean | undefined;
|
|
49
49
|
size?: "small" | "middle" | "large" | undefined;
|
|
50
|
-
scroll?:
|
|
51
|
-
|
|
50
|
+
scroll?: ({
|
|
51
|
+
x?: string | number | true | undefined;
|
|
52
|
+
y?: string | number | undefined;
|
|
53
|
+
} & {
|
|
54
|
+
scrollToFirstRowOnChange?: boolean | undefined;
|
|
55
|
+
}) | undefined;
|
|
56
|
+
locale?: import("antd/es/table/interface").TableLocale | undefined;
|
|
52
57
|
opWidth?: number | undefined;
|
|
53
58
|
}) => React.ReactElement;
|
|
54
59
|
declare const Detail: <T extends keyof EntityDict>(props: ReactComponentProps<EntityDict, T, false, {
|
|
55
|
-
column?: number | Record<Breakpoint, number> | undefined;
|
|
60
|
+
column?: number | Record<import("antd").Breakpoint, number> | undefined;
|
|
56
61
|
entity: T;
|
|
57
62
|
attributes: OakAbsAttrDef[];
|
|
58
63
|
data: Partial<EntityDict[T]["Schema"]>;
|
|
59
64
|
title?: string | undefined;
|
|
60
65
|
bordered?: boolean | undefined;
|
|
61
|
-
layout?: "
|
|
66
|
+
layout?: "vertical" | "horizontal" | undefined;
|
|
62
67
|
}>) => React.ReactElement;
|
|
63
68
|
declare const Upsert: <T extends keyof EntityDict>(props: ReactComponentProps<EntityDict, T, false, {
|
|
64
69
|
helps: Record<string, string>;
|
|
65
70
|
entity: T;
|
|
66
71
|
attributes: OakAbsAttrUpsertDef<EntityDict, T, string | number>[];
|
|
67
72
|
data: EntityDict[T]["Schema"];
|
|
68
|
-
layout: "
|
|
73
|
+
layout: "vertical" | "horizontal";
|
|
69
74
|
mode: "default" | "card";
|
|
70
75
|
}>) => React.ReactElement;
|
|
71
76
|
export { FilterPanel, List, ListPro, Detail, Upsert, ReactComponentProps, ColumnProps, RowWithActions, OakExtraActionProps, OakAbsAttrDef, onActionFnDef, };
|
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
.card {
|
|
2
|
-
width: 100%;
|
|
3
|
-
|
|
4
|
-
.content {
|
|
5
|
-
display: flex;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: stretch;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
.oper {
|
|
11
|
-
align-self: center;
|
|
12
|
-
width: 70%;
|
|
13
|
-
margin-bottom: 28px;
|
|
14
|
-
display: flex;
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
align-items: stretch;
|
|
17
|
-
|
|
18
|
-
.title {
|
|
19
|
-
margin-bottom: 28px;
|
|
20
|
-
align-self: flex-start;
|
|
21
|
-
color: var(--oak-color-primary3);
|
|
22
|
-
font-size: var(--oak-font-size-title-medium);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.grid {
|
|
29
|
-
min-width: 133px;
|
|
30
|
-
border-radius: 6px;
|
|
31
|
-
padding: 16px;
|
|
32
|
-
display: flex;
|
|
33
|
-
flex-direction: column;
|
|
34
|
-
margin: 13px;
|
|
35
|
-
|
|
36
|
-
.label {
|
|
37
|
-
font-size: 16px;
|
|
38
|
-
font-weight: 400;
|
|
39
|
-
color: var(--oak-color-primary);
|
|
40
|
-
margin-bottom: 12px;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.value {
|
|
44
|
-
font-size: 24px;
|
|
45
|
-
font-weight: 600;
|
|
46
|
-
color: var(--oak-color-primary);
|
|
47
|
-
line-height: 33.6px;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.fortify {
|
|
52
|
-
background-color: var(--oak-color-primary-light);
|
|
53
|
-
|
|
54
|
-
.label {
|
|
55
|
-
font-weight: 900;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.value {
|
|
59
|
-
font-weight: bolder;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.uf {
|
|
64
|
-
margin: 12px;
|
|
65
|
-
display: flex;
|
|
66
|
-
flex-direction: column;
|
|
67
|
-
align-items: center;
|
|
68
|
-
padding: 12px;
|
|
1
|
+
.card {
|
|
2
|
+
width: 100%;
|
|
3
|
+
|
|
4
|
+
.content {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
align-items: stretch;
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
.oper {
|
|
11
|
+
align-self: center;
|
|
12
|
+
width: 70%;
|
|
13
|
+
margin-bottom: 28px;
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
align-items: stretch;
|
|
17
|
+
|
|
18
|
+
.title {
|
|
19
|
+
margin-bottom: 28px;
|
|
20
|
+
align-self: flex-start;
|
|
21
|
+
color: var(--oak-color-primary3);
|
|
22
|
+
font-size: var(--oak-font-size-title-medium);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.grid {
|
|
29
|
+
min-width: 133px;
|
|
30
|
+
border-radius: 6px;
|
|
31
|
+
padding: 16px;
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
margin: 13px;
|
|
35
|
+
|
|
36
|
+
.label {
|
|
37
|
+
font-size: 16px;
|
|
38
|
+
font-weight: 400;
|
|
39
|
+
color: var(--oak-color-primary);
|
|
40
|
+
margin-bottom: 12px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.value {
|
|
44
|
+
font-size: 24px;
|
|
45
|
+
font-weight: 600;
|
|
46
|
+
color: var(--oak-color-primary);
|
|
47
|
+
line-height: 33.6px;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.fortify {
|
|
52
|
+
background-color: var(--oak-color-primary-light);
|
|
53
|
+
|
|
54
|
+
.label {
|
|
55
|
+
font-weight: 900;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.value {
|
|
59
|
+
font-weight: bolder;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.uf {
|
|
64
|
+
margin: 12px;
|
|
65
|
+
display: flex;
|
|
66
|
+
flex-direction: column;
|
|
67
|
+
align-items: center;
|
|
68
|
+
padding: 12px;
|
|
69
69
|
}
|
|
@@ -74,7 +74,7 @@ export default function render(props) {
|
|
|
74
74
|
update({ allowWithdrawTransfer });
|
|
75
75
|
}}/>
|
|
76
76
|
</Form.Item>
|
|
77
|
-
<Form.Item label={t('offlineAccount:attr.withdrawTransferLossRatio')} help={t('placeholder.withdrawTransferLossRatio')}>
|
|
77
|
+
<Form.Item label={t('offlineAccount:attr.withdrawTransferLossRatio')} help={t('placeholder.withdrawTransferLossRatio')} required>
|
|
78
78
|
<InputNumber value={offlineAccount.withdrawTransferLossRatio} max={5} min={0.01} addonAfter={"%"} step={0.01} precision={2} onChange={(value) => {
|
|
79
79
|
const withdrawTransferLossRatio = value;
|
|
80
80
|
update({ withdrawTransferLossRatio });
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import Styles from './info.module.less';
|
|
2
2
|
export default function Info(props) {
|
|
3
3
|
const { price, t } = props;
|
|
4
|
-
return (<div className={Styles.info}>
|
|
5
|
-
<div className={Styles.should}>{t('price')}</div>
|
|
6
|
-
<div className={Styles.price}>
|
|
7
|
-
<div>{t('common::pay.symbol')}</div>
|
|
8
|
-
<div>{price}</div>
|
|
9
|
-
</div>
|
|
4
|
+
return (<div className={Styles.info}>
|
|
5
|
+
<div className={Styles.should}>{t('price')}</div>
|
|
6
|
+
<div className={Styles.price}>
|
|
7
|
+
<div>{t('common::pay.symbol')}</div>
|
|
8
|
+
<div>{price}</div>
|
|
9
|
+
</div>
|
|
10
10
|
</div>);
|
|
11
11
|
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
.info {
|
|
3
|
-
margin: 8px;
|
|
4
|
-
height: 140px;
|
|
5
|
-
display: flex;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
align-items: center;
|
|
8
|
-
justify-content: center;
|
|
9
|
-
background-color: var(--oak-color-info);
|
|
10
|
-
|
|
11
|
-
.should {
|
|
12
|
-
font-size: large;
|
|
13
|
-
font-weight: bold;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.price {
|
|
17
|
-
display: flex;
|
|
18
|
-
flex-direction: row;
|
|
19
|
-
padding: 3px;
|
|
20
|
-
font-size: xx-large;
|
|
21
|
-
font-weight: bolder;
|
|
22
|
-
color: var(--oak-color-primary);
|
|
23
|
-
align-items: baseline;
|
|
24
|
-
}
|
|
1
|
+
|
|
2
|
+
.info {
|
|
3
|
+
margin: 8px;
|
|
4
|
+
height: 140px;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
background-color: var(--oak-color-info);
|
|
10
|
+
|
|
11
|
+
.should {
|
|
12
|
+
font-size: large;
|
|
13
|
+
font-weight: bold;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.price {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: row;
|
|
19
|
+
padding: 3px;
|
|
20
|
+
font-size: xx-large;
|
|
21
|
+
font-weight: bolder;
|
|
22
|
+
color: var(--oak-color-primary);
|
|
23
|
+
align-items: baseline;
|
|
24
|
+
}
|
|
25
25
|
}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
.container {
|
|
2
|
-
width: 100%;
|
|
3
|
-
height: 100%;
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
align-items: stretch;
|
|
7
|
-
background-color: var(--oak-bg-color-page);
|
|
8
|
-
// min-height: 500px;
|
|
9
|
-
|
|
10
|
-
.ctrl {
|
|
11
|
-
margin: 8px;
|
|
12
|
-
margin-top: 10px;
|
|
13
|
-
flex: 1;
|
|
14
|
-
|
|
15
|
-
.pc1 {
|
|
16
|
-
width: 100%;
|
|
17
|
-
height: 100%;
|
|
18
|
-
display: flex;
|
|
19
|
-
flex-direction: column;
|
|
20
|
-
margin-top: 4px;
|
|
21
|
-
|
|
22
|
-
.content {
|
|
23
|
-
background-color: var(--oak-bg-color-container);
|
|
24
|
-
padding: 4px;
|
|
25
|
-
border-radius: 2px;
|
|
26
|
-
padding: 16px;
|
|
27
|
-
|
|
28
|
-
.tips {
|
|
29
|
-
color: var(--oak-color-warning);
|
|
30
|
-
font-size: small;
|
|
31
|
-
margin-top: 3px;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
1
|
+
.container {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 100%;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: stretch;
|
|
7
|
+
background-color: var(--oak-bg-color-page);
|
|
8
|
+
// min-height: 500px;
|
|
9
|
+
|
|
10
|
+
.ctrl {
|
|
11
|
+
margin: 8px;
|
|
12
|
+
margin-top: 10px;
|
|
13
|
+
flex: 1;
|
|
14
|
+
|
|
15
|
+
.pc1 {
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: 100%;
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
margin-top: 4px;
|
|
21
|
+
|
|
22
|
+
.content {
|
|
23
|
+
background-color: var(--oak-bg-color-container);
|
|
24
|
+
padding: 4px;
|
|
25
|
+
border-radius: 2px;
|
|
26
|
+
padding: 16px;
|
|
27
|
+
|
|
28
|
+
.tips {
|
|
29
|
+
color: var(--oak-color-warning);
|
|
30
|
+
font-size: small;
|
|
31
|
+
margin-top: 3px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
36
|
}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
.container {
|
|
2
|
-
width: 100%;
|
|
3
|
-
height: 100%;
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
align-items: stretch;
|
|
7
|
-
background-color: var(--oak-bg-color-page);
|
|
8
|
-
// min-height: 500px;
|
|
9
|
-
|
|
10
|
-
.ctrl {
|
|
11
|
-
margin: 8px;
|
|
12
|
-
margin-top: 10px;
|
|
13
|
-
flex: 1;
|
|
14
|
-
|
|
15
|
-
.pc1 {
|
|
16
|
-
width: 100%;
|
|
17
|
-
height: 100%;
|
|
18
|
-
display: flex;
|
|
19
|
-
flex-direction: column;
|
|
20
|
-
margin-top: 4px;
|
|
21
|
-
|
|
22
|
-
.content {
|
|
23
|
-
background-color: var(--oak-bg-color-container);
|
|
24
|
-
padding: 4px;
|
|
25
|
-
border-radius: 2px;
|
|
26
|
-
padding: 16px;
|
|
27
|
-
|
|
28
|
-
.tips {
|
|
29
|
-
color: var(--oak-color-warning);
|
|
30
|
-
font-size: small;
|
|
31
|
-
margin-left: 10px;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
1
|
+
.container {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 100%;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: stretch;
|
|
7
|
+
background-color: var(--oak-bg-color-page);
|
|
8
|
+
// min-height: 500px;
|
|
9
|
+
|
|
10
|
+
.ctrl {
|
|
11
|
+
margin: 8px;
|
|
12
|
+
margin-top: 10px;
|
|
13
|
+
flex: 1;
|
|
14
|
+
|
|
15
|
+
.pc1 {
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: 100%;
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
margin-top: 4px;
|
|
21
|
+
|
|
22
|
+
.content {
|
|
23
|
+
background-color: var(--oak-bg-color-container);
|
|
24
|
+
padding: 4px;
|
|
25
|
+
border-radius: 2px;
|
|
26
|
+
padding: 16px;
|
|
27
|
+
|
|
28
|
+
.tips {
|
|
29
|
+
color: var(--oak-color-warning);
|
|
30
|
+
font-size: small;
|
|
31
|
+
margin-left: 10px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
36
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
.container {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
width: 100%;
|
|
1
|
+
.container {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
width: 100%;
|
|
5
5
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
.empty {
|
|
2
|
-
min-height: 600px;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.container {
|
|
6
|
-
width: 100%;
|
|
7
|
-
display: flex;
|
|
8
|
-
flex-direction: column;
|
|
9
|
-
align-items: center;
|
|
10
|
-
justify-content: center;
|
|
1
|
+
.empty {
|
|
2
|
+
min-height: 600px;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.container {
|
|
6
|
+
width: 100%;
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
11
|
}
|