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
398addd7
Commit
398addd7
authored
Sep 29, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改装修店铺bug
parent
ab47bcc5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
5 deletions
+17
-5
index.tsx
src/pages/editor/components/drawer/commodityDrawer/index.tsx
+2
-2
schema.ts
src/pages/editor/components/drawer/commodityDrawer/schema.ts
+1
-1
index.tsx
...nel/propsSettings/components/recommendCommodity/index.tsx
+14
-2
No files found.
src/pages/editor/components/drawer/commodityDrawer/index.tsx
View file @
398addd7
...
...
@@ -213,8 +213,8 @@ const CommodityDrawer: React.FC<CommodityDrawerProps> = (props: CommodityDrawerP
FormEffectHooks
.
onFieldChange$
(
'brandId'
).
subscribe
(
state
=>
{
searchBrandOptionEffect
(
shopId
,
actions
,
'brandId'
,
memberId
,
memberRoleId
)
})
FormEffectHooks
.
onFieldChange$
(
'categoryId'
).
subscribe
(
state
=>
{
searchCustomerCategoryOptionEffect
(
shopId
,
actions
,
'categoryId'
,
memberId
,
memberRoleId
)
FormEffectHooks
.
onFieldChange$
(
'c
ustomerC
ategoryId'
).
subscribe
(
state
=>
{
searchCustomerCategoryOptionEffect
(
shopId
,
actions
,
'c
ustomerC
ategoryId'
,
memberId
,
memberRoleId
)
})
},
components
:
{
ModalSearch
:
Search
,
DateRangePickerUnix
,
Submit
,
CustomInputSearch
,
CustomCategorySearch
},
...
...
src/pages/editor/components/drawer/commodityDrawer/schema.ts
View file @
398addd7
...
...
@@ -56,7 +56,7 @@ const CommoditySchema: ISchema = {
fieldNames
:
{
label
:
'title'
,
value
:
'id'
,
children
:
'children'
},
},
},
categoryId
:
{
c
ustomerC
ategoryId
:
{
type
:
'string'
,
'x-component'
:
'CustomCategorySearch'
,
'x-component-props'
:
{
...
...
src/pages/editor/mobileSettingPanel/propsSettings/components/recommendCommodity/index.tsx
View file @
398addd7
import
React
,
{
useState
,
useEffect
,
useMemo
}
from
'react'
import
{
Input
,
Radio
,
Space
,
Select
,
Button
,
message
,
Tooltip
}
from
'antd'
import
{
Input
,
Radio
,
Space
,
Select
,
Button
,
message
,
Tooltip
,
InputNumber
}
from
'antd'
import
{
DeleteOutlined
}
from
'@ant-design/icons'
import
{
changeProps
}
from
'@lingxi-disign/core'
import
{
PublicApi
}
from
'@/services/api'
...
...
@@ -81,6 +81,18 @@ const RecommendCommodity: React.FC<RecommendCommodityProps> = (props: RecommendC
[
key
]:
val
,
}
if
(
key
===
'num'
)
{
console
.
log
(
val
,
Number
(
val
))
if
(
Number
(
val
)
<
0
)
{
newProps
[
key
]
=
1
}
}
if
(
key
===
'categoryId'
)
{
newProps
.
idList
=
[]
newProps
.
dataList
=
[]
}
changeProps
({
title
:
newTitle
?
newTitle
:
title
,
props
:
Object
.
assign
({
...
props
},
newProps
)
...
...
@@ -181,7 +193,7 @@ const RecommendCommodity: React.FC<RecommendCommodityProps> = (props: RecommendC
(
manageWay
===
1
||
manageWay
===
2
)
&&
(
<
div
className=
{
styles
[
'RecommendCommodity-box'
]
}
>
<
div
className=
{
styles
[
'RecommendCommodity-box-label'
]
}
>
展示数量
</
div
>
<
Input
key=
{
`${selectedKey}-num`
}
type=
'number'
defaultValue=
{
num
}
onBlur=
{
(
e
)
=>
_onChangeByKey
(
e
.
target
.
value
,
'num'
)
}
/>
<
Input
Number
style=
{
{
width
:
'100%'
}
}
key=
{
`${selectedKey}-num`
}
min=
{
1
}
defaultValue=
{
num
}
onBlur=
{
(
e
)
=>
_onChangeByKey
(
e
.
target
.
value
,
'num'
)
}
/>
</
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