From 9b7c2429cf2a0ac5b97b3aa362987b97e267defd Mon Sep 17 00:00:00 2001 From: xixi <123@qq.com> Date: Wed, 11 Sep 2024 14:20:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CouponModal/HeadCouponModal.css | 4 +--- src/components/CouponModal/HeadCouponModal.tsx | 2 +- src/route/index/Index.tsx | 6 +++++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/CouponModal/HeadCouponModal.css b/src/components/CouponModal/HeadCouponModal.css index 4a89d0f..39af0b9 100644 --- a/src/components/CouponModal/HeadCouponModal.css +++ b/src/components/CouponModal/HeadCouponModal.css @@ -124,14 +124,13 @@ .content-button { width: 94px; height: 32px; - background: #d3d3d3; + background: #1677FF; border-radius: 10px; font-size: 16px; color: #FFFFFF; text-align: center; line-height: 32px; cursor: pointer; - } .content-projName { @@ -147,7 +146,6 @@ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; - } .noDatebox { diff --git a/src/components/CouponModal/HeadCouponModal.tsx b/src/components/CouponModal/HeadCouponModal.tsx index 67cbd1f..199cfb3 100644 --- a/src/components/CouponModal/HeadCouponModal.tsx +++ b/src/components/CouponModal/HeadCouponModal.tsx @@ -23,7 +23,7 @@ export default function HeadCouponModal(props: any) { const [page, setPage] = useState(1) const [total, setTotal] = useState(0) // 是否有效 - const [isEffective, setisEffective] = useState(null) + const [isEffective, setisEffective] = useState(1) const [isUsed, setisUsed] = useState(0) // 展示的优惠券数组 const [couponArray, setCouponArray] = useState([]) diff --git a/src/route/index/Index.tsx b/src/route/index/Index.tsx index a6d4d3f..041a395 100644 --- a/src/route/index/Index.tsx +++ b/src/route/index/Index.tsx @@ -1593,6 +1593,7 @@ export default function Index() { }} okButtonProps={{ style: { background: 'red', color: 'white' } }} width={592} + maskClosable={false} // 禁止通过点击蒙层关闭 > { setRefunModal(false) }}> @@ -1601,6 +1602,7 @@ export default function Index() { destroyOnClose={true} open={correctionModal} footer={null} + maskClosable={false} // 禁止通过点击蒙层关闭 onCancel={() => { setCorrectionModal(false) }} @@ -1679,7 +1681,9 @@ export default function Index() { 有效期:{item.useGmtStart} 至 {item.useGmtEnd} -
{ +
{ // props.closeModal() receiveCoupons(item.couponId)