make yunshi page

This commit is contained in:
zzc
2026-01-15 10:27:14 +08:00
parent 3d2d20dd5f
commit 67684572da
6 changed files with 960 additions and 26 deletions

View File

@@ -95,7 +95,7 @@ const features = ref([
type: "video",
},
{
title: "新春头像挂饰",
title: "新春头像",
subtitle: "焕上节日新饰",
icon: "/static/icon/guashi.png",
type: "avatar_decor",
@@ -104,7 +104,7 @@ const features = ref([
title: "新年运势",
subtitle: "抽取新年关键词",
icon: "/static/icon/yunshi.png",
type: "avatar_frame",
type: "fortune",
},
]);
@@ -140,8 +140,19 @@ 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" });
return;
}
uni.showToast({ title: `进入:${item.title}`, icon: "none" });
// uni.navigateTo({ url: `/pages/${item.type}/index` })
};
const previewCard = (card) => {