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
shenshaokai
jinfa-platform
Commits
149cfb4e
Commit
149cfb4e
authored
Apr 14, 2022
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 代客下单商品详情不显示拼团活动
parent
02c4709a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
index.tsx
...on/saleOrder/agentPurchaseOrder/commodityDetail/index.tsx
+4
-1
No files found.
src/pages/transaction/saleOrder/agentPurchaseOrder/commodityDetail/index.tsx
View file @
149cfb4e
...
@@ -275,7 +275,10 @@ const CommodityDetail: React.FC = (props: any) => {
...
@@ -275,7 +275,10 @@ const CommodityDetail: React.FC = (props: any) => {
setMarketingData
(
data
as
unknown
as
MarketingDetailType
);
setMarketingData
(
data
as
unknown
as
MarketingDetailType
);
// 如果有活动标签,则表示是活动商品
// 如果有活动标签,则表示是活动商品
if
(
data
.
tagDetailList
&&
data
.
tagDetailList
.
length
>
0
)
{
if
(
data
.
tagDetailList
&&
data
.
tagDetailList
.
length
>
0
)
{
setHasActivity
(
true
)
// 排除拼团商品
if
(
data
.
tagDetailList
.
every
((
item
:
{
activityType
:
number
})
=>
item
.
activityType
!==
MarketingTypeEnum
.
activity_type_9
))
{
setHasActivity
(
true
)
}
}
else
{
}
else
{
setCurrentGroupDetail
(
undefined
)
setCurrentGroupDetail
(
undefined
)
setHasActivity
(
false
)
setHasActivity
(
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