feat: 绘制海报 未完

This commit is contained in:
2025-10-01 22:49:42 +08:00
parent df121df045
commit 40a043d2a0
4 changed files with 346 additions and 28 deletions

View File

@@ -23,6 +23,7 @@ import {
NTRPEvaluatePopup,
GameManagePopup,
Comments,
Poster,
} from "@/components";
import DetailService, {
MATCH_STATUS,
@@ -175,7 +176,7 @@ function Coursel(props) {
// 分享弹窗
const SharePopup = forwardRef(
({ id, from }: { id: string; from: string }, ref) => {
const [visible, setVisible] = useState(false);
const [visible, setVisible] = useState(true);
useImperativeHandle(ref, () => ({
show: () => {
@@ -216,35 +217,53 @@ const SharePopup = forwardRef(
}
return (
<CommonPopup
title="分享"
visible={visible}
onClose={() => {
setVisible(false);
}}
hideFooter
style={{ minHeight: "100px" }}
>
<View className={styles.shareContainer}>
<View catchMove className={styles.title}>
<>
{/* <CommonPopup
title="分享至"
visible={visible}
onClose={() => {
setVisible(false);
}}
hideFooter
style={{ minHeight: "100px" }}
>
<View className={styles.shareContainer}>
<View catchMove className={styles.title}>
分享至
</View>
<View className={styles.shareItems}>
<Button
className={classnames(styles.button, styles.share)}
openType="share"
>
微信好友
</Button>
<Button
className={classnames(styles.button, styles.save)}
onClick={handleSaveToLocal}
>
生成分享图
</Button>
</View>
</View>
<View className={styles.shareItems}>
<Button
className={classnames(styles.button, styles.share)}
openType="share"
>
</Button>
<Button
className={classnames(styles.button, styles.save)}
onClick={handleSaveToLocal}
>
</Button>
</CommonPopup> */}
<CommonPopup
title="分享至"
visible={visible}
onClose={() => {
setVisible(false);
}}
showHeader={false}
position="center"
hideFooter
enableDragToClose={false}
style={{ minHeight: "100px" }}
>
<View className={styles.posterWrap}>
<Poster />
</View>
</View>
</CommonPopup>
</CommonPopup>
</>
);
}
);

View File

@@ -22,3 +22,6 @@
}
}
}
.posterWrap {
}