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
b6d3b129
Commit
b6d3b129
authored
Jan 26, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 订单结算合同数据加载时体验优化
parent
1913e34c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
index.tsx
src/pages/lxMall/order/index.tsx
+6
-7
No files found.
src/pages/lxMall/order/index.tsx
View file @
b6d3b129
...
...
@@ -70,7 +70,7 @@ const Order: React.FC<OrderPropsType> = (props) => {
const
[
contracErrorInfo
,
setContracErrorInfo
]
=
useState
<
any
>
()
const
[
electronicContractId
,
setElectronicContractId
]
=
useState
<
number
>
()
const
[
agreeSingLoading
,
setAgreeSignLoading
]
=
useState
<
boolean
>
(
false
)
const
[
btnDisabled
,
setBtnDisable
]
=
useState
<
boolean
>
(
tru
e
)
const
[
btnDisabled
]
=
useState
<
boolean
>
(
fals
e
)
const
{
storeId
}
=
useStoreId
(
getLayoutType
(
layoutType
,
Number
(
type
)))
useEffect
(()
=>
{
...
...
@@ -131,7 +131,7 @@ const Order: React.FC<OrderPropsType> = (props) => {
if
(
sessionStorage
.
getItem
(
`contract
${
spam_id
}
`
))
{
setContractInfo
(
JSON
.
parse
(
sessionStorage
.
getItem
(
`contract
${
spam_id
}
`
)))
setIsElectronicContract
(
true
)
set
BtnDisabl
e
(
false
)
set
SpinningStat
e
(
false
)
}
else
{
// 根据电子合同模板id获取生成电子合同
const
param
:
any
=
{
...
...
@@ -156,19 +156,19 @@ const Order: React.FC<OrderPropsType> = (props) => {
setContracErrorInfo
(
signRes
.
message
)
}
setIsElectronicContract
(
true
)
set
BtnDisabl
e
(
false
)
set
SpinningStat
e
(
false
)
}
}
else
{
set
BtnDisabl
e
(
false
)
set
SpinningStat
e
(
false
)
}
}
else
{
set
BtnDisabl
e
(
false
)
set
SpinningStat
e
(
false
)
}
}
catch
(
error
)
{
console
.
log
(
"获取交易规则失败"
)
}
}
else
{
set
BtnDisabl
e
(
false
)
set
SpinningStat
e
(
false
)
}
}
...
...
@@ -198,7 +198,6 @@ const Order: React.FC<OrderPropsType> = (props) => {
}
setOrderList
(
result
)
setOrderInfo
(
sessionOrderInfo
)
setSpinningState
(
false
)
}
const
renderLogisticsInfo
=
(
type
,
logisticsInfo
)
=>
{
...
...
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