update(Footer): 替换二维码为本地图片资源

main
mackt 4 weeks ago
parent 2a54bb661c
commit af782e37c1

@ -44,6 +44,7 @@ export default function FooterPlatform({ className }: { className?: string }) {
header="IOS版下载"
subHeader={ios?.version ? `最新版V${ios.version}` : ''}
buttonText="去App Store下载"
img="/img/download/qrcode_apple.svg"
url={ios?.url ?? ''}
>
<DownLoadItem platform="ios" />
@ -53,6 +54,7 @@ export default function FooterPlatform({ className }: { className?: string }) {
header="安卓版下载"
subHeader={android?.version ? `最新版V${android.version}` : ''}
buttonText="下载安装包至本地"
img="/img/download/qrcode_android.svg"
url={android?.url ?? ''}
>
<DownLoadItem platform="android" />

@ -1,18 +1,22 @@
'use client';
import Image from 'next/image';
import { Dialog, DialogContent, DialogTrigger, DialogClose } from '@/components/ui/dialog';
import { QRCode, IconClose } from '@/components';
import { IconClose } from '@/components';
export default function QRCodeDialog({
header,
buttonText,
url,
img,
subHeader,
children,
}: {
header: string;
url: string;
img: string;
children: React.ReactNode;
subHeader?: string;
buttonText?: string;
@ -33,7 +37,7 @@ export default function QRCodeDialog({
{/* 二维码 */}
<div className="w-[200px] h-[200px] mt-[24px] bg-[#fff] rounded-[6px] overflow-hidden">
{!!url && <QRCode text={url} className="w-full h-full" />}
{!!img && <Image width={200} height={200} src={img} alt="" />}
</div>
{/* 按钮 */}

Loading…
Cancel
Save