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
01bf0aba
Commit
01bf0aba
authored
Sep 27, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 店铺装修选择商品传参问题修复
parent
a2e3d999
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
index.tsx
...nel/propsSettings/components/recommendCommodity/index.tsx
+6
-3
No files found.
src/pages/editor/mobileSettingPanel/propsSettings/components/recommendCommodity/index.tsx
View file @
01bf0aba
...
...
@@ -7,6 +7,7 @@ import CommodityDrawer from '@/pages/editor/components/drawer/commodityDrawer'
import
ActivityImage
from
'@/assets/couponIcons/ActivityImage.svg'
;
import
{
getAuth
}
from
'@/utils/auth'
import
StatusTag
from
'@/components/StatusTag'
import
{
LAYOUT_TYPE
}
from
'@/constants'
import
{
priceFormat
}
from
'@/utils/numberFomat'
import
styles
from
'./index.less'
;
...
...
@@ -22,11 +23,12 @@ interface RecommendCommodityProps {
customize
?:
any
,
// 当前选中组件的key
selectedKey
?:
any
,
shopId
:
number
shopId
:
number
,
layoutType
:
LAYOUT_TYPE
}
const
RecommendCommodity
:
React
.
FC
<
RecommendCommodityProps
>
=
(
props
:
RecommendCommodityProps
)
=>
{
const
{
title
,
categoryId
,
num
,
idList
=
[],
dataList
=
[],
manageWay
,
selectedKey
,
shopId
}
=
props
;
const
{
title
,
categoryId
,
num
,
idList
=
[],
dataList
=
[],
manageWay
,
layoutType
,
selectedKey
,
shopId
}
=
props
;
const
[
categoryList
,
setCategoryList
]
=
useState
<
{
label
:
string
,
value
:
number
}[]
>
([])
const
[
commodityVisible
,
setCommodityVisible
]
=
useState
<
boolean
>
(
false
);
const
{
memberId
,
memberRoleId
}
=
getAuth
()
||
{}
...
...
@@ -194,6 +196,7 @@ const RecommendCommodity: React.FC<RecommendCommodityProps> = (props: RecommendC
{
_recordDetail
}
<
CommodityDrawer
selectId=
{
idList
}
layoutType=
{
layoutType
}
visible=
{
commodityVisible
}
onClose=
{
_onCommodityClose
}
onConfirm=
{
_onChooseConfirm
}
...
...
@@ -201,7 +204,7 @@ const RecommendCommodity: React.FC<RecommendCommodityProps> = (props: RecommendC
filterParam=
{
{
memberId
,
memberRoleId
,
customerCategory
:
categoryId
customerCategory
Id
:
categoryId
}
}
/>
</
div
>
...
...
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