修改ios下载为企业签

This commit is contained in:
yezian 2024-05-22 13:45:45 +08:00
parent cc460de3f2
commit 30ce1f9ec5
2 changed files with 14 additions and 2 deletions

View File

@ -160,7 +160,7 @@ export default function Download({ params }) {
className="btn bg-gradient-to-r from-[#FF668B] to-[#FF66F0] rounded-full text-white text-lg font-medium w-64 h-14"
href={
deviceType === "ios"
? "https://apps.apple.com/app/%E9%93%81%E7%B2%89%E7%A9%BA%E9%97%B4/id6472775330"
? "itms-services://?action=download-manifest&url=https://filecdn01.tiefen.fun/appdownload/ironfans.plist"
: "https://filecdn01.tiefen.fun/appdownload/ironfans1.4.5.apk"
}
>

View File

@ -11,6 +11,7 @@ import download_rightbottom from "@/public/images/download_rightbottom.png";
import slogan from "@/public/images/slogan.png";
import qrcode from "@/public/images/qrcode.png";
import Footer from "@/components/Footer";
import Link from "next/link";
export default function Home() {
const [deviceType, setDeviceType] = useState("");
@ -136,7 +137,7 @@ export default function Home() {
className="btn bg-gradient-to-r from-[#FF668B] to-[#FF66F0] rounded-full text-white text-lg font-medium w-64 h-14"
href={
deviceType === "ios"
? "https://apps.apple.com/app/%E9%93%81%E7%B2%89%E7%A9%BA%E9%97%B4/id6472775330"
? "itms-services://?action=download-manifest&url=https://filecdn01.tiefen.fun/appdownload/ironfans.plist"
: "https://filecdn01.tiefen.fun/appdownload/ironfans1.4.5.apk"
}
>
@ -144,6 +145,17 @@ export default function Home() {
</a>
</>
)}
{deviceType !== "Android" && (
<p className="mt-3 text-white text-sm font-normal">
安装前请卸载旧版本详情请
<Link
className="link text-primary cursor-pointer"
href="/doc/ioshowtoinstall"
>
查看帮助
</Link>
</p>
)}
</div>
</div>
<Footer />