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
8b72e510
Commit
8b72e510
authored
Dec 20, 2021
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改组合促销
parent
5a25beb0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
index.less
...vePage/fixtures/components/Layouts/Combination/index.less
+4
-0
index.tsx
...ivePage/fixtures/components/Layouts/Combination/index.tsx
+10
-6
No files found.
src/pages/transaction/marketingAbility/marketingActivitiesManagement/activePage/fixtures/components/Layouts/Combination/index.less
View file @
8b72e510
...
...
@@ -11,6 +11,9 @@
background-color: #fff;
min-height: 188px;
border-radius: 8px;
display: flex;
flex-direction: column;
justify-content: space-between;
.container-title {
color: #252D37;
...
...
@@ -59,6 +62,7 @@
flex-direction: column;
justify-content: center;
align-items: center;
border: 1px dashed #919191;
}
.simple {
...
...
src/pages/transaction/marketingAbility/marketingActivitiesManagement/activePage/fixtures/components/Layouts/Combination/index.tsx
View file @
8b72e510
...
...
@@ -17,8 +17,8 @@ const Combination: React.FC<Iprops> & { Item: typeof CombinationItem } = (props:
const
{
children
,
className
,
title
,
theme
,
visible
=
true
,
...
other
}
=
props
;
const
classNameStr
=
cx
(
styles
.
combiantion
,
className
,
{
[
styles
.
hide
]:
!
visible
});
const
{
onClick
,
onDrag
,
onDragEnd
,
onDragEnter
,
onDragStart
,
onMouseOver
,
getOperateState
}
=
other
as
any
;
//
const { onClick, onDrag, onDragEnd, onDragEnter, onDragStart, onMouseOver, getOperateState } = other as any;
const
count
=
React
.
Children
.
count
(
children
);
const
renderChildren
=
()
=>
{
return
(
<
div
className=
{
styles
.
wrap
}
>
...
...
@@ -40,10 +40,14 @@ const Combination: React.FC<Iprops> & { Item: typeof CombinationItem } = (props:
<
div
className=
{
styles
.
container
}
>
<
div
className=
{
styles
[
'container-title'
]
}
>
以下商品认选2件,只需800元
</
div
>
{
renderChildren
()
}
<
div
className=
{
styles
.
footer
}
>
<
div
className=
{
styles
[
'footer-price'
]
}
>
¥99
</
div
>
<
div
className=
{
styles
[
'footer-btn'
]
}
>
立即购买
</
div
>
</
div
>
{
count
>
0
&&
(
<
div
className=
{
styles
.
footer
}
>
<
div
className=
{
styles
[
'footer-price'
]
}
>
¥99
</
div
>
<
div
className=
{
styles
[
'footer-btn'
]
}
>
立即购买
</
div
>
</
div
>
)
}
</
div
>
</
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