oak-pay-business 2.2.9 → 2.3.1
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/components/AbstractComponents.d.ts +5 -15
- package/es/components/account/detail/index.js +10 -7
- package/es/components/account/detail/index.json +0 -1
- package/es/components/account/detail/index.less +2 -2
- package/es/components/account/detail/web.pc.module.less +68 -68
- package/es/components/deposit/new/index.js +33 -0
- package/es/components/deposit/new/index.xml +9 -19
- 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/pay/detail/index.d.ts +3 -0
- package/es/components/pay/detail/index.js +56 -38
- package/es/components/pay/detail/index.less +1 -0
- package/es/components/pay/detail/index.xml +56 -51
- package/es/components/pay/detail/locales/zh-CN.json +3 -1
- package/es/components/pay/detail/web.js +13 -13
- 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/configuration/attrUpdateMatrix.js +8 -0
- package/es/data/i18n.js +3 -1
- package/es/oak-app-domain/Application/Schema.d.ts +2 -2
- package/es/oak-app-domain/Application/Storage.js +0 -1
- package/es/oak-app-domain/Article/locales/zh_CN.json +1 -1
- package/es/oak-app-domain/ArticleMenu/locales/zh_CN.json +1 -1
- package/es/oak-app-domain/ExtraFile/Schema.d.ts +3 -3
- package/es/oak-app-domain/ExtraFile/Storage.js +3 -3
- package/es/oak-app-domain/ExtraFile/Style.js +7 -5
- package/es/oak-app-domain/ExtraFile/locales/zh_CN.json +1 -1
- package/es/oak-app-domain/Platform/Schema.d.ts +2 -2
- package/es/oak-app-domain/Platform/Storage.js +0 -1
- package/es/oak-app-domain/SmsTemplate/Schema.d.ts +6 -5
- package/es/oak-app-domain/SmsTemplate/Storage.js +2 -4
- package/es/oak-app-domain/SmsTemplate/Style.d.ts +3 -0
- package/es/oak-app-domain/SmsTemplate/Style.js +10 -0
- package/es/oak-app-domain/SmsTemplate/locales/zh_CN.json +1 -1
- package/es/oak-app-domain/StyleDict.js +2 -0
- package/es/oak-app-domain/System/Schema.d.ts +4 -4
- package/es/oak-app-domain/System/Storage.js +2 -3
- package/es/oak-app-domain/WechatTemplate/locales/zh_CN.json +1 -1
- package/es/triggers/pay.js +50 -47
- package/es/types/Exception.d.ts +3 -0
- package/es/types/Exception.js +5 -0
- package/es/utils/pay.js +4 -1
- package/es/utils/payClazz/WechatPay/WechatPay.js +3 -0
- package/es/watchers/pay.js +17 -0
- package/lib/components/pay/detail/index.d.ts +3 -0
- package/lib/components/pay/detail/index.js +56 -38
- package/lib/configuration/attrUpdateMatrix.js +8 -0
- package/lib/data/i18n.js +3 -1
- package/lib/oak-app-domain/Application/Schema.d.ts +2 -2
- package/lib/oak-app-domain/Application/Storage.js +0 -1
- package/lib/oak-app-domain/Article/locales/zh_CN.json +1 -1
- package/lib/oak-app-domain/ArticleMenu/locales/zh_CN.json +1 -1
- package/lib/oak-app-domain/ExtraFile/Schema.d.ts +3 -3
- package/lib/oak-app-domain/ExtraFile/Storage.js +3 -3
- package/lib/oak-app-domain/ExtraFile/Style.js +7 -5
- package/lib/oak-app-domain/ExtraFile/locales/zh_CN.json +1 -1
- package/lib/oak-app-domain/Platform/Schema.d.ts +2 -2
- package/lib/oak-app-domain/Platform/Storage.js +0 -1
- package/lib/oak-app-domain/SmsTemplate/Schema.d.ts +6 -5
- package/lib/oak-app-domain/SmsTemplate/Storage.js +2 -4
- package/lib/oak-app-domain/SmsTemplate/Style.d.ts +3 -0
- package/lib/oak-app-domain/SmsTemplate/Style.js +13 -0
- package/lib/oak-app-domain/SmsTemplate/locales/zh_CN.json +1 -1
- package/lib/oak-app-domain/StyleDict.js +52 -50
- package/lib/oak-app-domain/System/Schema.d.ts +4 -4
- package/lib/oak-app-domain/System/Storage.js +0 -2
- package/lib/oak-app-domain/WechatTemplate/locales/zh_CN.json +1 -1
- package/lib/triggers/pay.js +50 -47
- package/lib/types/Exception.d.ts +3 -0
- package/lib/types/Exception.js +7 -1
- package/lib/utils/pay.js +4 -1
- package/lib/utils/payClazz/WechatPay/WechatPay.js +3 -0
- package/lib/watchers/pay.js +17 -0
- package/package.json +4 -4
|
@@ -18,16 +18,11 @@ declare const List: <T extends keyof EntityDict>(props: ReactComponentProps<Enti
|
|
|
18
18
|
data: RowWithActions<EntityDict, T>[];
|
|
19
19
|
loading: boolean;
|
|
20
20
|
tablePagination?: React.ReactNode;
|
|
21
|
-
rowSelection?:
|
|
21
|
+
rowSelection?: any;
|
|
22
22
|
hideHeader?: boolean | undefined;
|
|
23
23
|
disableSerialNumber?: boolean | undefined;
|
|
24
24
|
size?: "small" | "middle" | "large" | undefined;
|
|
25
|
-
scroll?:
|
|
26
|
-
x?: string | number | true | undefined;
|
|
27
|
-
y?: string | number | undefined;
|
|
28
|
-
} & {
|
|
29
|
-
scrollToFirstRowOnChange?: boolean | undefined;
|
|
30
|
-
}) | undefined;
|
|
25
|
+
scroll?: any;
|
|
31
26
|
empty?: React.ReactNode;
|
|
32
27
|
opWidth?: number | undefined;
|
|
33
28
|
ellipsis?: boolean | undefined;
|
|
@@ -46,21 +41,16 @@ declare const ListPro: <T extends keyof EntityDict>(props: {
|
|
|
46
41
|
data: RowWithActions<EntityDict, T>[];
|
|
47
42
|
loading?: boolean | undefined;
|
|
48
43
|
tablePagination?: any;
|
|
49
|
-
rowSelection?:
|
|
44
|
+
rowSelection?: any;
|
|
50
45
|
disableSerialNumber?: boolean | undefined;
|
|
51
46
|
size?: "small" | "middle" | "large" | undefined;
|
|
52
|
-
scroll?:
|
|
53
|
-
x?: string | number | true | undefined;
|
|
54
|
-
y?: string | number | undefined;
|
|
55
|
-
} & {
|
|
56
|
-
scrollToFirstRowOnChange?: boolean | undefined;
|
|
57
|
-
}) | undefined;
|
|
47
|
+
scroll?: any;
|
|
58
48
|
empty?: any;
|
|
59
49
|
opWidth?: number | undefined;
|
|
60
50
|
oakPath?: string | undefined;
|
|
61
51
|
}) => React.ReactElement;
|
|
62
52
|
declare const Detail: <T extends keyof EntityDict>(props: ReactComponentProps<EntityDict, T, false, {
|
|
63
|
-
column?: number | Record<
|
|
53
|
+
column?: number | Record<Breakpoint, number> | undefined;
|
|
64
54
|
entity: T;
|
|
65
55
|
attributes: OakAbsAttrDef[];
|
|
66
56
|
data: Partial<EntityDict[T]["Schema"]>;
|
|
@@ -189,7 +189,7 @@ export default OakComponent({
|
|
|
189
189
|
onDepositModalClose() {
|
|
190
190
|
this.setDepositOpen(false);
|
|
191
191
|
this.setDepPrice(null);
|
|
192
|
-
this.setDepositChannel(
|
|
192
|
+
this.setDepositChannel(null);
|
|
193
193
|
},
|
|
194
194
|
onUfModalClose() {
|
|
195
195
|
this.setUfOpen(false);
|
|
@@ -219,23 +219,26 @@ export default OakComponent({
|
|
|
219
219
|
depositOpen: false,
|
|
220
220
|
ufOpen: false,
|
|
221
221
|
depPrice: null,
|
|
222
|
-
depositChannel:
|
|
222
|
+
depositChannel: null,
|
|
223
223
|
depositLoss: [0, '', {}],
|
|
224
224
|
depositing: false,
|
|
225
225
|
setDepPriceMp(price) { this.setDepPrice(price); },
|
|
226
226
|
setDepositChannelMp(depositChannel) { this.setDepositChannel(depositChannel); },
|
|
227
227
|
focus: false,
|
|
228
|
+
unsub: undefined,
|
|
228
229
|
},
|
|
229
230
|
lifetimes: {
|
|
230
|
-
ready() {
|
|
231
|
+
async ready() {
|
|
231
232
|
const { oakId } = this.props;
|
|
232
233
|
assert(typeof oakId === 'string');
|
|
233
|
-
this.subDataEvents([`${DATA_SUBSCRIBER_KEYS.accountNumberChanged}-${oakId}`]
|
|
234
|
+
const unsub = await this.subDataEvents([`${DATA_SUBSCRIBER_KEYS.accountNumberChanged}-${oakId}`]);
|
|
235
|
+
this.setState({
|
|
236
|
+
unsub,
|
|
237
|
+
});
|
|
234
238
|
},
|
|
235
239
|
detached() {
|
|
236
|
-
const {
|
|
237
|
-
|
|
238
|
-
this.unsubDataEvents([`${DATA_SUBSCRIBER_KEYS.accountNumberChanged}-${oakId}`], 'opb-c-account-detail');
|
|
240
|
+
const { unsub } = this.state;
|
|
241
|
+
unsub && unsub();
|
|
239
242
|
}
|
|
240
243
|
}
|
|
241
244
|
});
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
"usingComponents": {
|
|
3
3
|
"l-button": "@oak-frontend-base/miniprogram_npm/lin-ui/button/index",
|
|
4
4
|
"l-popup": "@oak-frontend-base/miniprogram_npm/lin-ui/popup/index",
|
|
5
|
-
"l-arc-popup": "@oak-frontend-base/miniprogram_npm/lin-ui/arc-popup/index",
|
|
6
5
|
"l-dialog": "@oak-frontend-base/miniprogram_npm/lin-ui/dialog/index",
|
|
7
6
|
"deposit-new": "../../deposit/new/index"
|
|
8
7
|
}
|
|
@@ -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
|
}
|
|
@@ -13,6 +13,7 @@ export default OakComponent({
|
|
|
13
13
|
},
|
|
14
14
|
data: {
|
|
15
15
|
onChooseChannelMp(channel) { this.onChooseChannel(channel); },
|
|
16
|
+
cursorSpacing: 100,
|
|
16
17
|
},
|
|
17
18
|
formData({ data, features }) {
|
|
18
19
|
const payChannels = features.pay.getPayChannels('deposit');
|
|
@@ -38,9 +39,41 @@ export default OakComponent({
|
|
|
38
39
|
listeners: {
|
|
39
40
|
price() {
|
|
40
41
|
this.reRender();
|
|
42
|
+
if (process.env.OAK_PLATFORM === 'wechatMp') {
|
|
43
|
+
wx.createSelectorQuery().in(this).selectAll('#channel,#loss').boundingClientRect(rect => {
|
|
44
|
+
let height = 0;
|
|
45
|
+
if (rect instanceof Array) {
|
|
46
|
+
for (const r of rect) {
|
|
47
|
+
height += r.height;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
if (height > 0) {
|
|
51
|
+
const cursorSpacing = height + 100;
|
|
52
|
+
this.setState({
|
|
53
|
+
cursorSpacing,
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}).exec();
|
|
57
|
+
}
|
|
41
58
|
},
|
|
42
59
|
loss() {
|
|
43
60
|
this.reRender();
|
|
61
|
+
if (process.env.OAK_PLATFORM === 'wechatMp') {
|
|
62
|
+
wx.createSelectorQuery().in(this).selectAll('#channel,#loss').boundingClientRect(rect => {
|
|
63
|
+
let height = 0;
|
|
64
|
+
if (rect instanceof Array) {
|
|
65
|
+
for (const r of rect) {
|
|
66
|
+
height += r.height;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
if (height > 0) {
|
|
70
|
+
const cursorSpacing = height + 100;
|
|
71
|
+
this.setState({
|
|
72
|
+
cursorSpacing,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}).exec();
|
|
76
|
+
}
|
|
44
77
|
}
|
|
45
78
|
},
|
|
46
79
|
methods: {
|
|
@@ -1,20 +1,10 @@
|
|
|
1
1
|
<block wx:if="{{payChannels && payChannels.length > 0}}">
|
|
2
2
|
<l-form>
|
|
3
3
|
<l-form-item label="{{t('deposit:attr.price')}}" label-placement="column">
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
label-width="{{70}}"
|
|
7
|
-
show-row="{{false}}"
|
|
8
|
-
value="{{priceStr || ''}}"
|
|
9
|
-
type="number"
|
|
10
|
-
placeholder="一次最大充值{{depositMax}}元"
|
|
11
|
-
bind:lininput="onDepPriceChangeMp"
|
|
12
|
-
focus="{{focus}}"
|
|
13
|
-
/> -->
|
|
14
|
-
<view style="display:flex;margin-top:8rpx;">
|
|
15
|
-
<span style="margin-right:8rpx;">{{t('common::pay.symbol')}}</span>
|
|
4
|
+
<view style="display:flex;margin:24rpx 0rpx 16rpx 0rpx;">
|
|
5
|
+
<span style="margin-right:8rpx;color:#000;">{{t('common::pay.symbol')}}</span>
|
|
16
6
|
<input
|
|
17
|
-
cursor-spacing="
|
|
7
|
+
cursor-spacing="{{cursorSpacing}}"
|
|
18
8
|
value="{{priceStr || ''}}"
|
|
19
9
|
type="digit"
|
|
20
10
|
placeholder="一次最大充值{{depositMax}}元"
|
|
@@ -24,17 +14,17 @@
|
|
|
24
14
|
/>
|
|
25
15
|
</view>
|
|
26
16
|
</l-form-item>
|
|
27
|
-
<
|
|
28
|
-
<l-form-item label="{{t('pay:attr.entity')}}" label-placement="column">
|
|
17
|
+
<view wx:if="{{price > 0}}" id="channel">
|
|
18
|
+
<l-form-item label="{{t('pay:attr.entity')}}" label-placement="column" >
|
|
29
19
|
<channel-picker
|
|
30
20
|
payChannels="{{payChannels}}"
|
|
31
21
|
payChannel="{{channel}}"
|
|
32
22
|
onPick="{{onChooseChannelMp}}"
|
|
33
23
|
/>
|
|
34
24
|
</l-form-item>
|
|
35
|
-
</
|
|
36
|
-
<
|
|
37
|
-
<l-form-item label="{{t('deposit:attr.loss')}}" label-placement="column">
|
|
25
|
+
</view>
|
|
26
|
+
<view wx:if="{{lossStr}}" id="loss">
|
|
27
|
+
<l-form-item label="{{t('deposit:attr.loss')}}" label-placement="column" >
|
|
38
28
|
<l-input
|
|
39
29
|
hide-label
|
|
40
30
|
show-row="{{false}}"
|
|
@@ -42,7 +32,7 @@
|
|
|
42
32
|
disabled="{{true}}"
|
|
43
33
|
/>
|
|
44
34
|
</l-form-item>
|
|
45
|
-
</
|
|
35
|
+
</view>
|
|
46
36
|
</l-form>
|
|
47
37
|
</block>
|
|
48
38
|
<block wx:else>
|
|
@@ -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
|
}
|
|
@@ -4,6 +4,9 @@ import { StartPayRoutine, JudgeCanPay } from "../../../types/Pay";
|
|
|
4
4
|
export declare function registerFrontendPayRoutine<ED extends EntityDict & BaseEntityDict>(entity: keyof ED, routine: StartPayRoutine, projection: ED['pay']['Selection']['data'], judgeCanPay: JudgeCanPay): void;
|
|
5
5
|
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<EntityDict, "pay", false, {
|
|
6
6
|
onClose: () => void;
|
|
7
|
+
onPaid: () => void;
|
|
8
|
+
onPayFailure: () => void;
|
|
7
9
|
disableAutoPay: boolean;
|
|
10
|
+
closeWhenFailure: boolean;
|
|
8
11
|
}>) => React.ReactElement;
|
|
9
12
|
export default _default;
|