Commit 149cfb4e authored by GuanHua's avatar GuanHua

fix: 代客下单商品详情不显示拼团活动

parent 02c4709a
...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment