diff --git a/src/components/Footer/Download/FooterDownload.tsx b/src/components/Footer/Download/FooterDownload.tsx index d4af4ef..66fa924 100644 --- a/src/components/Footer/Download/FooterDownload.tsx +++ b/src/components/Footer/Download/FooterDownload.tsx @@ -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 ?? ''} > @@ -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 ?? ''} > diff --git a/src/components/common/QRCodeDialog.tsx b/src/components/common/QRCodeDialog.tsx index e34fcb2..1d618bb 100644 --- a/src/components/common/QRCodeDialog.tsx +++ b/src/components/common/QRCodeDialog.tsx @@ -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({ {/* 二维码 */}
- {!!url && } + {!!img && }
{/* 按钮 */}