system-copyright-react/src/components/CouponModal/HeadCouponModal.tsx

66 lines
2.9 KiB
TypeScript
Raw Normal View History

2024-08-30 15:53:34 +08:00
import { useState } from 'react'
import './HeadCouponModal.css'
import { Button } from 'antd'
// import nouseImg from '../../static/coupon/nouse.png'
export default function HeadCouponModal() {
const [title, setTitle] = useState('未使用')
return (
<div>
<div className='headModal-top'>
<div className={title == '未使用' ? 'top-active' : 'top-title'}
onClick={() => {
setTitle('未使用')
}}
>使</div>
<div className={title == '已使用' ? 'top-active' : 'top-title'} style={{ marginLeft: 50 }}
onClick={() => {
setTitle('已使用')
}}
>使</div>
<div className={title == '已过期' ? 'top-active' : 'top-title'} style={{ marginLeft: 50 }}
onClick={() => {
setTitle('已过期')
}}
></div>
</div>
<div className='headModal-bot'>
<div style={{ display: title == '未使用' ? 'block' : 'none' }}>
<div className='couponList'>
<div className='nouse'>
<div className='nouse-left'>
{/* <img src={nouseImg} width={'100%'} height={'100%'} alt="" /> */}
<div className='nouse-left-num'>
<div
style={{ marginTop: -10 }}
>
<span style={{ fontSize: 30 }}></span>
<span style={{ fontSize: 60, fontWeight: 700 }}>100</span>
</div>
{/* <div >
100
</div> */}
</div>
</div>
<div className='nouse-right'>
<div>
使
</div>
<div>
2024.08.09 12:15:04
</div>
<Button>使</Button>
</div>
</div>
</div>
</div>
<div style={{ display: title == '已使用' ? 'block' : 'none' }}>
使
</div>
<div style={{ display: title == '已过期' ? 'block' : 'none' }}>
</div>
</div>
</div>
)
}