parent
3753d2cbf9
commit
2e278e2ead
After Width: | Height: | Size: 498 B |
After Width: | Height: | Size: 544 B |
After Width: | Height: | Size: 51 KiB |
@ -0,0 +1,23 @@
|
||||
import Image from 'next/image';
|
||||
|
||||
export default function Footer({ platform, iconUrl, qrCode }: DownloadQrcodeCard) {
|
||||
console.log({ platform, iconUrl, qrCode });
|
||||
|
||||
return (
|
||||
<div>
|
||||
{/* 卡片 */}
|
||||
<div className="flex flex-col w-[200px] h-[72px] bg-[#000] mx-[22px]">
|
||||
<Image className="" width={48} height={48} src={iconUrl} alt={`${platform}-icon`} />
|
||||
<div>
|
||||
<p>下载应用</p>
|
||||
<p>{platform}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* 二维码 */}
|
||||
<div>
|
||||
{/* {qrCode && <Image className="" width={48} height={48} src={qrCode} alt={`${platform}-qrCode`} />} */}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
declare interface DownloadQrcodeCard {
|
||||
platform: 'APP Store' | 'Android';
|
||||
iconUrl: string;
|
||||
qrCode: string;
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
import { Hosting } from '@/utils/ua';
|
||||
|
||||
// 下载
|
||||
export const download = () => {
|
||||
const ua = window?.navigator?.userAgent?.toLowerCase();
|
||||
if (!Hosting.isWX(ua)) {
|
||||
window.open('//cdn.indie.cn/release/queyue.apk', '__blank');
|
||||
}
|
||||
};
|
Loading…
Reference in new issue