Commit 8b72e510 authored by Bill's avatar Bill

fix: 修改组合促销

parent 5a25beb0
......@@ -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 {
......
......@@ -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>
......
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