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
linweijiong
jinfa-platform
Commits
9aaa3b90
Commit
9aaa3b90
authored
Dec 04, 2020
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 判断交易规则接口添加参数
parent
e6d719e0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
index.tsx
src/pages/lxMall/commodityDetail/index.tsx
+3
-2
index.tsx
src/pages/lxMall/purchaseOrder/index.tsx
+3
-2
No files found.
src/pages/lxMall/commodityDetail/index.tsx
View file @
9aaa3b90
...
...
@@ -392,11 +392,12 @@ const CommodityDetail = (props) => {
postFn
=
PublicApi
.
postSearchShopPurchaseSaveOrUpdatePurchase
break
;
}
const
userInfo
=
getAuth
()
||
{}
const
directParam
:
any
=
{
productId
:
selectCommodityId
,
memberId
,
shopId
shopId
:
storeId
,
memberRoleId
:
userInfo
.
memberRoleId
}
PublicApi
.
postOrderDirectPayment
(
directParam
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
...
...
src/pages/lxMall/purchaseOrder/index.tsx
View file @
9aaa3b90
...
...
@@ -393,7 +393,6 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
* @param ids
*/
const
deleteListItems
=
(
ids
:
number
[])
=>
{
console
.
log
(
ids
,
"ids"
)
const
newOrderList
=
JSON
.
parse
(
JSON
.
stringify
(
orderList
))
const
result
=
[]
for
(
const
item
of
newOrderList
)
{
...
...
@@ -607,7 +606,9 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
setConfirmLoading
(
false
)
if
(
res
.
code
===
1000
)
{
message
.
destroy
()
PublicApi
.
postOrderDirectPayment
({
productId
:
productIds
[
0
],
memberId
:
selectItem
.
memberId
}).
then
(
res
=>
{
param
.
productId
=
productIds
[
0
]
param
.
productIds
=
undefined
PublicApi
.
postOrderDirectPayment
(
param
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
message
.
destroy
()
const
sessionKey
=
`
${
selectItem
.
id
}${
new
Date
().
getTime
()}
`
...
...
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