Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
edf46c70
authored
Sep 08, 2025
by
Little Write
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
前端部分,调试 完善
parent
51a7aa44
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
0 deletions
+16
-0
web/src/components/settings/PaymentSetting.js
+16
-0
web/src/pages/Setting/Payment/SettingsPaymentGatewayCreem.js
+0
-0
web/src/pages/TopUp/index.js
+0
-0
No files found.
web/src/components/settings/PaymentSetting.js
View file @
edf46c70
...
...
@@ -3,9 +3,11 @@ import { Card, Spin } from '@douyinfe/semi-ui';
import
SettingsGeneralPayment
from
'../../pages/Setting/Payment/SettingsGeneralPayment.js'
;
import
SettingsPaymentGateway
from
'../../pages/Setting/Payment/SettingsPaymentGateway.js'
;
import
SettingsPaymentGatewayStripe
from
'../../pages/Setting/Payment/SettingsPaymentGatewayStripe.js'
;
import
SettingsPaymentGatewayCreem
from
'../../pages/Setting/Payment/SettingsPaymentGatewayCreem.js'
;
import
{
API
,
showError
,
toBoolean
}
from
'../../helpers'
;
import
{
useTranslation
}
from
'react-i18next'
;
const
PaymentSetting
=
()
=>
{
const
{
t
}
=
useTranslation
();
let
[
inputs
,
setInputs
]
=
useState
({
...
...
@@ -24,6 +26,9 @@ const PaymentSetting = () => {
StripePriceId
:
''
,
StripeUnitPrice
:
8.0
,
StripeMinTopUp
:
1
,
CreemApiKey
:
''
,
CreemProducts
:
'[]'
,
});
let
[
loading
,
setLoading
]
=
useState
(
false
);
...
...
@@ -43,6 +48,14 @@ const PaymentSetting = () => {
newInputs
[
item
.
key
]
=
item
.
value
;
}
break
;
case
'CreemProducts'
:
try
{
newInputs
[
item
.
key
]
=
item
.
value
;
}
catch
(
error
)
{
console
.
error
(
'解析CreemProducts出错:'
,
error
);
newInputs
[
item
.
key
]
=
'[]'
;
}
break
;
case
'Price'
:
case
'MinTopUp'
:
case
'StripeUnitPrice'
:
...
...
@@ -92,6 +105,9 @@ const PaymentSetting = () => {
<
Card
style
=
{{
marginTop
:
'10px'
}}
>
<
SettingsPaymentGatewayStripe
options
=
{
inputs
}
refresh
=
{
onRefresh
}
/
>
<
/Card
>
<
Card
style
=
{{
marginTop
:
'10px'
}}
>
<
SettingsPaymentGatewayCreem
options
=
{
inputs
}
refresh
=
{
onRefresh
}
/
>
<
/Card
>
<
/Spin
>
<
/
>
);
...
...
web/src/pages/Setting/Payment/SettingsPaymentGatewayCreem.js
0 → 100644
View file @
edf46c70
This diff is collapsed.
Click to expand it.
web/src/pages/TopUp/index.js
View file @
edf46c70
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment