fix: tab icon
This commit is contained in:
@@ -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" });
|
||||
|
||||
Reference in New Issue
Block a user