Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
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
project
jinfa-admin
Commits
337ce82f
Commit
337ce82f
authored
Aug 23, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v2' of
http://10.0.0.22:3000/lingxi/lingxi-business-system
into v2
parents
b098bc05
e3841e40
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
3 deletions
+21
-3
index.tsx
...geCustomized/components/drawers/commodityDrawer/index.tsx
+1
-1
schema.ts
...geCustomized/components/drawers/commodityDrawer/schema.ts
+2
-2
index.tsx
...tingPanel/propsSettings/components/bannerClient/index.tsx
+18
-0
No files found.
src/pages/pageCustomized/components/drawers/commodityDrawer/index.tsx
View file @
337ce82f
...
...
@@ -131,7 +131,7 @@ const CommodityDrawer: React.FC<CommodityDrawerProps> = (props: CommodityDrawerP
return
(
<
Drawer
width=
{
1200
}
title=
{
'选择
活动
'
}
title=
{
'选择
商品
'
}
visible=
{
visible
}
onClose=
{
onClose
}
footer=
{
...
...
src/pages/pageCustomized/components/drawers/commodityDrawer/schema.ts
View file @
337ce82f
...
...
@@ -44,7 +44,7 @@ const CommoditySchema: ISchema = {
type
:
'string'
,
'x-component'
:
'CustomInputSearch'
,
'x-component-props'
:
{
placeholder
:
'
商品
品牌'
,
placeholder
:
'品牌'
,
showSearch
:
true
,
showArrow
:
true
,
defaultActiveFirstOption
:
false
,
...
...
@@ -59,7 +59,7 @@ const CommoditySchema: ISchema = {
type
:
'string'
,
'x-component'
:
'CustomCategorySearch'
,
'x-component-props'
:
{
placeholder
:
'
平台
品类'
,
placeholder
:
'品类'
,
showSearch
:
true
,
notFoundContent
:
null
,
style
:
{
width
:
'174px'
},
...
...
src/pages/pageCustomized/mobileSettingPanel/propsSettings/components/bannerClient/index.tsx
View file @
337ce82f
...
...
@@ -10,6 +10,7 @@ import { priceFormat } from '@/utils/numberFomat';
import
MixDrawer
from
'@/pages/pageCustomized/components/drawers/mixDrawer'
;
import
ActivityDrawer
from
'@/pages/pageCustomized/components/drawers/activityDrawer'
;
import
CommodityDrawer
from
'@/pages/pageCustomized/components/drawers/commodityDrawer'
;
import
uploadImgIcon
from
'@/asserts/icons/upload_img_icon.svg'
...
...
@@ -85,6 +86,7 @@ const BannerClient: React.FC<BannerClientProps> = (props: BannerClientProps) =>
const
{
name
,
img
,
id
,
type
,
property
=
2
,
selectedKey
}
=
props
;
const
[
mixVisible
,
setMixVisible
]
=
useState
<
boolean
>
(
false
);
const
[
actVisible
,
setActVisible
]
=
useState
<
boolean
>
(
false
);
const
[
commodityVisible
,
setCommodityVisible
]
=
useState
<
boolean
>
(
false
);
const
[
record
,
setRecord
]
=
useState
<
any
>
();
const
_fetch
:
any
=
useMemo
(()
=>
{
...
...
@@ -222,8 +224,15 @@ const BannerClient: React.FC<BannerClientProps> = (props: BannerClientProps) =>
setActVisible
(
false
);
}
const
_onCommodityClose
=
()
=>
{
setCommodityVisible
(
false
);
}
const
_onChoose
=
()
=>
{
switch
(
type
)
{
case
1
:
setCommodityVisible
(
true
);
break
;
case
2
:
setActVisible
(
true
);
break
;
...
...
@@ -237,6 +246,9 @@ const BannerClient: React.FC<BannerClientProps> = (props: BannerClientProps) =>
const
_onChooseConfirm
=
(
record
)
=>
{
setRecord
(
record
);
switch
(
type
)
{
case
1
:
_onCommodityClose
();
break
;
case
2
:
changeProps
({
props
:
Object
.
assign
({
...
props
},
{
id
:
record
.
id
,
isnull
:
_isNull
([
name
,
img
,
type
])
})
...
...
@@ -321,6 +333,12 @@ const BannerClient: React.FC<BannerClientProps> = (props: BannerClientProps) =>
onClose=
{
_onActClose
}
onConfirm=
{
_onChooseConfirm
}
/>
<
CommodityDrawer
selectId=
{
id
}
visible=
{
commodityVisible
}
onClose=
{
_onCommodityClose
}
onConfirm=
{
_onChooseConfirm
}
/>
</
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