fix: tab icon

This commit is contained in:
zzc
2026-01-22 23:43:49 +08:00
parent 64b2abd29e
commit 3ecc525d2c
13 changed files with 21 additions and 21 deletions

View File

@@ -127,10 +127,10 @@ const features = ref([
type: "card",
},
{
title: "红包封面",
subtitle: "取新年红包封面",
icon: "/static/icon/hongbao.png",
type: "video",
title: "新年运势",
subtitle: "取新年关键词",
icon: "/static/icon/yunshi.png",
type: "fortune",
},
{
title: "新春头像",
@@ -139,10 +139,10 @@ const features = ref([
type: "avatar_decor",
},
{
title: "新年运势",
subtitle: "抽取新年关键词",
icon: "/static/icon/yunshi.png",
type: "fortune",
title: "精美壁纸",
subtitle: "获取精美壁纸",
icon: "/static/icon/bizhi.png",
type: "video",
},
]);
@@ -178,16 +178,16 @@ const popularCards = ref([
]);
const onFeatureTap = (item) => {
if (item.type === "avatar_decor" || item.type === "avatar_frame") {
uni.navigateTo({ url: "/pages/avatar/index" });
return;
}
if (item.type === "fortune") {
uni.navigateTo({ url: "/pages/fortune/index" });
return;
}
if (item.type === "card") {
uni.navigateTo({ url: "/pages/make/index" });
uni.switchTab({ url: "/pages/make/index" });
return;
}
if (item.type === "avatar_decor" || item.type === "avatar_frame") {
uni.navigateTo({ url: "/pages/avatar/index" });
return;
}
uni.showToast({ title: `进入:${item.title}`, icon: "none" });