diff --git a/public/iphone.png b/public/iphone.png
new file mode 100644
index 0000000..b0bbbc5
Binary files /dev/null and b/public/iphone.png differ
diff --git a/src/layouts/index.tsx b/src/layouts/index.tsx
index 78b416d..5f5670a 100644
--- a/src/layouts/index.tsx
+++ b/src/layouts/index.tsx
@@ -91,7 +91,7 @@ export default function Layout({ children }: IRouteComponentProps) {
setTheme: setState,
}}
>
-
+
{
const ref = useRef
(null);
const width = useGetScrollBarWidth(ref);
- const pcStyle = useMemo(() => {
+ const pcStyle: CSSProperties = useMemo(() => {
return {
width: isMac ? 395 : 375 + width + 1, //小数会有偏差
- margin: '20px auto',
- border: '10px solid #000',
- borderRadius: '20px',
+ margin: '90px auto',
height: '684px',
overflow: 'auto',
+ position: 'relative',
};
}, [width]);
return (
- 800 ? pcStyle : {}}>
-
800 ? 375 : vw}
- margin={[0, 0]}
- >
- {pointData.map((value: PointDataItem) => (
-
-
-
- ))}
-
-
+ <>
+ 800 ? pcStyle : {}}>
+
800 ? 375 : vw}
+ margin={[0, 0]}
+ >
+ {pointData.map((value: PointDataItem) => (
+
+
+
+ ))}
+
+
+
+ {vw > 800 ? (
+
+ ) : null}
+ >
);
});