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
701d91c6
Commit
701d91c6
authored
Nov 10, 2020
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:下单时是否显示发票判断
parent
490ca5ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
index.tsx
src/pages/lxMall/commodityDetail/index.tsx
+7
-2
index.tsx
src/pages/lxMall/order/index.tsx
+3
-1
No files found.
src/pages/lxMall/commodityDetail/index.tsx
View file @
701d91c6
...
...
@@ -348,7 +348,7 @@ const CommodityDetail = (props) => {
postFn
=
PublicApi
.
postSearchShopPurchaseSaveOrUpdatePurchase
break
;
}
PublicApi
.
postOrderDirectPayment
({
productId
:
selectCommodityId
}).
then
(
res
=>
{
PublicApi
.
postOrderDirectPayment
({
productId
:
selectCommodityId
,
memberId
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
message
.
destroy
()
postFn
&&
postFn
(
param
).
then
(
res
=>
{
...
...
@@ -362,6 +362,8 @@ const CommodityDetail = (props) => {
clickFlag
=
true
})
}
}).
catch
(()
=>
{
clickFlag
=
true
})
}
}
...
...
@@ -468,7 +470,7 @@ const CommodityDetail = (props) => {
category
:
commodityDetail
.
customerCategory
.
name
,
brand
:
commodityDetail
.
brand
.
name
,
stockCount
:
stockCount
,
commodityPic
:
attrAndValList
.
commodityPic
?
attrAndValList
.
commodityPic
[
0
]
:
''
,
commodityPic
:
attrAndValList
.
commodityPic
?
attrAndValList
.
commodityPic
[
0
]
:
commodityDetail
.
mainPic
,
attribute
:
attrAndValList
.
attributeAndValueList
}
...
...
@@ -480,6 +482,7 @@ const CommodityDetail = (props) => {
supplyMembersName
:
commodityDetail
.
memberName
,
supplyMembersId
:
commodityDetail
.
memberId
,
supplyMembersRoleId
:
commodityDetail
.
memberRoleId
,
isInvoice
:
commodityDetail
.
isInvoice
,
orderList
:
[{
id
:
shopInfo
.
id
,
shopname
:
shopInfo
.
company
,
...
...
@@ -497,6 +500,8 @@ const CommodityDetail = (props) => {
}
else
{
clickFlag
=
true
}
}).
catch
(()
=>
{
clickFlag
=
true
})
}
...
...
src/pages/lxMall/order/index.tsx
View file @
701d91c6
...
...
@@ -423,7 +423,9 @@ const Order: React.FC<OrderPropsType> = (props) => {
}
<
PayWay
supplyMembersId=
{
orderInfo
.
supplyMembersId
}
supplyMembersRoleId=
{
orderInfo
.
supplyMembersRoleId
}
selectItem=
{
selectPayWay
}
payWayList=
{
orderInfo
.
payWayList
}
onChange=
{
(
val
)
=>
setSelectPayWay
(
val
)
}
/>
{
/* <Delivery /> */
}
<
Invoice
state=
{
needTheInvoice
}
onChange=
{
(
val
)
=>
setNeedTheInvoice
(
val
)
}
onSelect=
{
(
val
)
=>
setSelectInvoiceInfo
(
val
)
}
/>
{
orderInfo
.
isInvoice
&&
<
Invoice
state=
{
needTheInvoice
}
onChange=
{
(
val
)
=>
setNeedTheInvoice
(
val
)
}
onSelect=
{
(
val
)
=>
setSelectInvoiceInfo
(
val
)
}
/>
}
{
isElectronicContract
&&
<
Contract
contractInfo=
{
contractInfo
}
state=
{
needTheContract
}
onChange=
{
(
val
)
=>
setneedTheContract
(
val
)
}
/>
}
...
...
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