Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄庭坚
jinfa-platform
Commits
60302a68
Commit
60302a68
authored
Dec 16, 2021
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 处理e账户认证绑定/解绑手机输入禁用
parent
dcb1f0bd
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
10 deletions
+18
-10
index.tsx
...Settle/eAccountApprove/components/companyFinish/index.tsx
+8
-3
index.tsx
...ettle/eAccountApprove/components/personalFinish/index.tsx
+9
-5
index.tsx
...s/payandSettle/eAccountApprove/components/phone/index.tsx
+0
-1
setStrategy.tsx
src/pages/priceManage/priceStrategy/setStrategy.tsx
+1
-1
No files found.
src/pages/payandSettle/eAccountApprove/components/companyFinish/index.tsx
View file @
60302a68
...
...
@@ -169,22 +169,27 @@ const CompanyFinish: React.FC<{}> = () => {
confirm=
{
handleBindSubmit
}
actions=
{
bindActions
}
schema=
{
data
?.
phone
?
unbindSchema
:
bindSchema
}
modalProps=
{
{
confirmLoading
:
bindLoading
}
}
modalProps=
{
{
confirmLoading
:
bindLoading
,
destroyOnClose
:
true
}
}
components=
{
{
PhoneCode
}
}
effects=
{
(
$
,
actions
)
=>
{
useAsyncSelect
(
'areaCode'
,
fetchTelCode
)
$
(
'onForm
Moun
t'
).
subscribe
(()
=>
{
$
(
'onForm
Ini
t'
).
subscribe
(()
=>
{
if
(
data
?.
phone
)
{
actions
.
setFieldValue
(
'phone'
,
data
.
phone
)
actions
.
setFieldState
(
'verificationCode'
,
state
=>
{
state
.
props
[
'x-component-props'
][
'type'
]
=
UNBIND_PHONE
})
actions
.
setFieldState
(
'phone'
,
state
=>
{
state
.
props
[
'x-component-props'
][
'disabled'
]
=
true
})
}
else
{
actions
.
setFieldState
(
'phone'
,
state
=>
{
state
.
props
[
'x-component-props'
][
'disabled'
]
=
false
})
actions
.
setFieldState
(
'verificationCode'
,
state
=>
{
state
.
props
[
'x-component-props'
][
'type'
]
=
BIND_PHONE
})
}
})
}
}
/>
...
...
src/pages/payandSettle/eAccountApprove/components/personalFinish/index.tsx
View file @
60302a68
...
...
@@ -33,7 +33,6 @@ const PersonalFinish: React.FC<{}> = () => {
},
[
data
])
const
onFinish
=
async
(
values
:
any
)
=>
{
console
.
log
(
'Received values of form: '
,
values
);
// 绑定银行卡
const
p1
=
await
postPayAllInPayBindBankCard
({
phone
:
data
.
phone
,
verificationCode
:
values
.
captcha
,
cardNo
:
values
.
cardNo
},
{
ctlType
:
"none"
})
// 进一步完善个人信息
...
...
@@ -110,9 +109,9 @@ const PersonalFinish: React.FC<{}> = () => {
// 绑定解绑手机
const
handleBindSubmit
=
()
=>
{
setBindLoading
(
true
)
const
fn
=
data
?.
phone
?
postPayAllInPayUnbindPhone
:
postPayAllInPayBindPhone
bindActions
.
submit
().
then
(
async
({
values
}:
any
)
=>
{
setBindLoading
(
true
)
fn
(
values
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
reloadFormData
()
...
...
@@ -295,22 +294,27 @@ const PersonalFinish: React.FC<{}> = () => {
confirm=
{
handleBindSubmit
}
actions=
{
bindActions
}
schema=
{
data
?.
phone
?
unbindSchema
:
bindSchema
}
modalProps=
{
{
confirmLoading
:
bindLoading
}
}
modalProps=
{
{
confirmLoading
:
bindLoading
,
destroyOnClose
:
true
}
}
components=
{
{
PhoneCode
}
}
effects=
{
(
$
,
actions
)
=>
{
useAsyncSelect
(
'areaCode'
,
fetchTelCode
)
$
(
'onForm
Moun
t'
).
subscribe
(()
=>
{
$
(
'onForm
Ini
t'
).
subscribe
(()
=>
{
if
(
data
?.
phone
)
{
actions
.
setFieldValue
(
'phone'
,
data
.
phone
)
actions
.
setFieldState
(
'verificationCode'
,
state
=>
{
state
.
props
[
'x-component-props'
][
'type'
]
=
UNBIND_PHONE
})
actions
.
setFieldState
(
'phone'
,
state
=>
{
state
.
props
[
'x-component-props'
][
'disabled'
]
=
true
})
}
else
{
actions
.
setFieldState
(
'phone'
,
state
=>
{
state
.
props
[
'x-component-props'
][
'disabled'
]
=
false
})
actions
.
setFieldState
(
'verificationCode'
,
state
=>
{
state
.
props
[
'x-component-props'
][
'type'
]
=
BIND_PHONE
})
}
})
}
}
/>
...
...
src/pages/payandSettle/eAccountApprove/components/phone/index.tsx
View file @
60302a68
...
...
@@ -36,7 +36,6 @@ const PhoneCode = (props) => {
}
setLoading
(
true
)
form
.
validate
(
'phone'
).
then
(
result
=>
{
console
.
log
(
result
,
type
)
// 发送验证码
const
phone
=
form
.
getFieldValue
(
'phone'
)
postPayAllInPaySendVerificationCode
({
phone
,
verificationCodeType
:
type
}).
then
(
res
=>
{
...
...
src/pages/priceManage/priceStrategy/setStrategy.tsx
View file @
60302a68
...
...
@@ -41,7 +41,7 @@ const SetStrategy: React.FC<{}> = () => {
let
res
=
await
postProductCommoditySaveOrUpdateUnitPriceStrategy
({
...
params
,
...
_params
})
if
(
res
.
code
===
1000
)
{
setTimeout
(()
=>
{
history
.
goBack
(
-
1
)
history
.
goBack
()
},
1000
)
}
setBtnLoading
(
false
)
...
...
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