降低ios安装的优先级

This commit is contained in:
yezian 2024-11-05 20:11:03 +08:00
parent 6b177c8ed9
commit daef0c1f39
1 changed files with 17 additions and 17 deletions

View File

@ -190,10 +190,26 @@ export default function Home() {
)}
</div>
<div className="flex flex-col items-center gap-2">
{deviceType === "ios" && (
<div
className={`btn bg-gradient-to-r from-[#FF668B] to-[#FF66F0] rounded-full text-white text-lg font-medium w-64 h-14`}
onClick={() => {
const inviter = getCookie("inviter");
const url = `https://app.tiefen.fun?inviter=${inviter}`;
window.location.href = url;
}}
>
推荐手机网页版
</div>
)}
{(deviceType === "Android" ||
(deviceType === "ios" && isIosInstallButtonVisible)) && (
<div
className="btn bg-gradient-to-r from-[#FF668B] to-[#FF66F0] rounded-full text-white text-lg font-medium w-64 h-14"
className={`btn ${
deviceType === "ios"
? "bg-[#FFFFFF1A]"
: "bg-gradient-to-r from-[#FF668B] to-[#FF66F0]"
} rounded-full text-white text-lg font-medium w-64 h-14`}
onClick={() => {
if (deviceType === "ios") setIsIosInstallStepModalVisible(true);
const url =
@ -209,22 +225,6 @@ export default function Home() {
安装
</div>
)}
{deviceType === "ios" && (
<div
className={`btn ${
deviceType === "ios" &&
!isIosInstallButtonVisible &&
"bg-gradient-to-r from-[#FF668B] to-[#FF66F0]"
} bg-[#FFFFFF1A] rounded-full text-white text-lg font-medium w-64 h-14`}
onClick={() => {
const inviter = getCookie("inviter");
const url = `https://app.tiefen.fun?inviter=${inviter}`;
window.location.href = url;
}}
>
手机网页版
</div>
)}
</div>
</div>
<IosInstallStepModal