From 23fba497416e518471a1f87ae9bb307f0c744cda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AD=B1=E9=87=8E?= Date: Sun, 23 Nov 2025 21:57:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CommonPopup/index.module.scss | 4 +- src/components/UploadCover/index.tsx | 78 ++++++++++--------- .../SelectStadium/StadiumDetail.tsx | 1 + 3 files changed, 44 insertions(+), 39 deletions(-) diff --git a/src/components/CommonPopup/index.module.scss b/src/components/CommonPopup/index.module.scss index 0d0d84a..f9dfc02 100644 --- a/src/components/CommonPopup/index.module.scss +++ b/src/components/CommonPopup/index.module.scss @@ -3,7 +3,9 @@ .common-popup { position: fixed; z-index: 9999 !important; - + &:global(.nut-popup-bottom.nut-popup-round) { + border-radius: 20px 20px 0 0!important; + } .common-popup__drag-handle-container { position: position; } diff --git a/src/components/UploadCover/index.tsx b/src/components/UploadCover/index.tsx index d8e6b31..2de36e0 100644 --- a/src/components/UploadCover/index.tsx +++ b/src/components/UploadCover/index.tsx @@ -29,6 +29,7 @@ export interface UploadCoverProps { maxCount?: number; align?: "center" | "left"; tag?: "cover" | "screenshot"; + uploadText?: string } const mergeCoverImages = ( @@ -74,6 +75,7 @@ export default function UploadCover(props: UploadCoverProps) { align = "center", tag = "cover", changePicker, + uploadText = '添加活动封面' } = props; const [visible, setVisible] = useState(false); @@ -121,6 +123,44 @@ export default function UploadCover(props: UploadCoverProps) { return ( <> +
+ {value.length < maxCount && ( +
openPicker(true)}> + +
{uploadText}
+
+ )} +
+
+ {value.map((item) => { + return ( + + + onDelete(item)} + /> + + ); + })} +
+
+
openPicker(false)} @@ -160,44 +200,6 @@ export default function UploadCover(props: UploadCoverProps) { -
- {value.length < maxCount && ( -
openPicker(true)}> - -
添加活动封面
-
- )} -
-
- {value.map((item) => { - return ( - - - onDelete(item)} - /> - - ); - })} -
-
-
); } diff --git a/src/publish_pages/publishBall/components/SelectStadium/StadiumDetail.tsx b/src/publish_pages/publishBall/components/SelectStadium/StadiumDetail.tsx index 88935fb..491920e 100644 --- a/src/publish_pages/publishBall/components/SelectStadium/StadiumDetail.tsx +++ b/src/publish_pages/publishBall/components/SelectStadium/StadiumDetail.tsx @@ -234,6 +234,7 @@ const StadiumDetail = forwardRef(({ { if (value instanceof Function) { const newValue = value(formData[item.prop])