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
52830ee3
Commit
52830ee3
authored
Sep 28, 2020
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:修改下单参数
parent
5b0d8c05
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
4 deletions
+20
-4
detail.tsx
src/pages/lxMall/information/detail.tsx
+0
-1
index.tsx
src/pages/lxMall/order/index.tsx
+18
-3
index.tsx
src/pages/lxMall/pay/components/transfer/index.tsx
+2
-0
No files found.
src/pages/lxMall/information/detail.tsx
View file @
52830ee3
...
...
@@ -92,7 +92,6 @@ const InformationDetail: React.FC<InformationDetailPropsType> = (props) => {
}
}
return
(
<
div
className=
{
styles
.
information_detail
}
>
<
div
className=
{
styles
.
information_detail_container
}
>
...
...
src/pages/lxMall/order/index.tsx
View file @
52830ee3
...
...
@@ -27,6 +27,7 @@ interface OrderPropsType {
}
const
Order
:
React
.
FC
<
OrderPropsType
>
=
(
props
)
=>
{
let
checkoutCount
=
0
const
userInfo
=
getAuth
()
const
{
shopInfo
,
mallInfo
,
layoutType
,
}
=
props
const
{
query
:
{
type
=
COMMODITY_TYPE
.
prompt
}
}
=
props
.
location
...
...
@@ -287,6 +288,7 @@ const Order: React.FC<OrderPropsType> = (props) => {
}]
if
(
needTheInvoice
)
{
params
.
theInvoiceId
=
selectInvoiceInfo
.
id
params
.
theInvoiceInfo
=
selectInvoiceInfo
}
setConfirmLoading
(
true
)
PublicApi
.
postOrderProcurementOrderAdd
(
params
).
then
(
res
=>
{
...
...
@@ -346,6 +348,8 @@ const Order: React.FC<OrderPropsType> = (props) => {
// @ts-ignore
PublicApi
.
postOrderSignatureOrderSettleSign
(
param
).
then
((
res
:
any
)
=>
{
if
(
res
.
code
===
1000
)
{
message
.
destroy
()
checkoutCount
=
0
pollingCheckStatus
(
res
.
data
.
signatureLogId
)
}
else
{
setAgreeSignLoading
(
false
)
...
...
@@ -359,7 +363,7 @@ const Order: React.FC<OrderPropsType> = (props) => {
let
param
=
{
signatureLogId
}
PublicApi
.
pos
tOrderSignatureOrderSettleSignDetail
(
param
).
then
(
res
=>
{
PublicApi
.
ge
tOrderSignatureOrderSettleSignDetail
(
param
).
then
(
res
=>
{
let
timer
=
null
if
(
res
.
code
===
1000
)
{
if
(
res
.
data
.
state
===
4
)
{
...
...
@@ -368,9 +372,20 @@ const Order: React.FC<OrderPropsType> = (props) => {
submitOrder
()
}
else
{
timer
=
setTimeout
(()
=>
{
pollingCheckStatus
(
signatureLogId
)
},
1500
);
if
(
checkoutCount
<
20
)
{
checkoutCount
++
pollingCheckStatus
(
signatureLogId
)
}
else
{
timer
=
null
clearTimeout
(
timer
)
setAgreeSignLoading
(
false
)
message
.
error
(
"签署合同失败,请重新签署"
)
}
},
3000
);
}
}
else
{
setAgreeSignLoading
(
false
)
message
.
error
(
"签署合同失败,请重新签署"
)
}
})
}
...
...
src/pages/lxMall/pay/components/transfer/index.tsx
View file @
52830ee3
...
...
@@ -70,10 +70,12 @@ const TransferPayWay: React.FC<TransferPayWayPropsType> = (props) => {
payOrderUrls
:
[
payOrderUrl
]
}
setConfirmLoading
(
true
)
//@ts-ignore
PublicApi
.
postOrderPendingOrderPay
(
param
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
message
.
destroy
()
message
.
success
(
"支付成功"
)
}
else
{
}
...
...
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