fix: tab icon
16
pages.json
@@ -74,24 +74,24 @@
|
|||||||
},
|
},
|
||||||
"tabBar": {
|
"tabBar": {
|
||||||
"color": "#999999",
|
"color": "#999999",
|
||||||
"selectedColor": "#7DBB9D",
|
"selectedColor": "#ff3b30",
|
||||||
"backgroundColor": "#f6f1ec",
|
"backgroundColor": "#ffffff",
|
||||||
"iconWidth": "8px",
|
"iconWidth": "24px",
|
||||||
"list": [
|
"list": [
|
||||||
{
|
{
|
||||||
"text": "祝福",
|
"text": "首页",
|
||||||
"pagePath": "pages/index/index",
|
"pagePath": "pages/index/index",
|
||||||
"iconPath": "static/images/tabBar/home.png",
|
"iconPath": "static/images/tabBar/home.png",
|
||||||
"selectedIconPath": "static/images/tabBar/home_s.png"
|
"selectedIconPath": "static/images/tabBar/home_s.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"text": "制作",
|
"text": "定制贺卡",
|
||||||
"pagePath": "pages/make/index",
|
"pagePath": "pages/make/index",
|
||||||
"iconPath": "static/images/tabBar/message.png",
|
"iconPath": "static/images/tabBar/creation.png",
|
||||||
"selectedIconPath": "static/images/tabBar/message_s.png"
|
"selectedIconPath": "static/images/tabBar/creation_s.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"text": "个人中心",
|
"text": "我的",
|
||||||
"pagePath": "pages/mine/mine",
|
"pagePath": "pages/mine/mine",
|
||||||
"iconPath": "static/images/tabBar/me.png",
|
"iconPath": "static/images/tabBar/me.png",
|
||||||
"selectedIconPath": "static/images/tabBar/me_s.png"
|
"selectedIconPath": "static/images/tabBar/me_s.png"
|
||||||
|
|||||||
@@ -127,10 +127,10 @@ const features = ref([
|
|||||||
type: "card",
|
type: "card",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "红包封面",
|
title: "新年运势",
|
||||||
subtitle: "获取新年红包封面",
|
subtitle: "抽取新年关键词",
|
||||||
icon: "/static/icon/hongbao.png",
|
icon: "/static/icon/yunshi.png",
|
||||||
type: "video",
|
type: "fortune",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "新春头像",
|
title: "新春头像",
|
||||||
@@ -139,10 +139,10 @@ const features = ref([
|
|||||||
type: "avatar_decor",
|
type: "avatar_decor",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "新年运势",
|
title: "精美壁纸",
|
||||||
subtitle: "抽取新年关键词",
|
subtitle: "获取精美壁纸",
|
||||||
icon: "/static/icon/yunshi.png",
|
icon: "/static/icon/bizhi.png",
|
||||||
type: "fortune",
|
type: "video",
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
@@ -178,16 +178,16 @@ const popularCards = ref([
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
const onFeatureTap = (item) => {
|
const onFeatureTap = (item) => {
|
||||||
if (item.type === "avatar_decor" || item.type === "avatar_frame") {
|
|
||||||
uni.navigateTo({ url: "/pages/avatar/index" });
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (item.type === "fortune") {
|
if (item.type === "fortune") {
|
||||||
uni.navigateTo({ url: "/pages/fortune/index" });
|
uni.navigateTo({ url: "/pages/fortune/index" });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (item.type === "card") {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
uni.showToast({ title: `进入:${item.title}`, icon: "none" });
|
uni.showToast({ title: `进入:${item.title}`, icon: "none" });
|
||||||
|
|||||||
BIN
static/icon/bizhi.png
Normal file
|
After Width: | Height: | Size: 6.9 KiB |
BIN
static/images/tabBar/creation.png
Normal file
|
After Width: | Height: | Size: 6.0 KiB |
BIN
static/images/tabBar/creation_s.png
Normal file
|
After Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 5.0 KiB |
BIN
static/images/tabBar/home_old.png
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 5.0 KiB |
BIN
static/images/tabBar/home_s_old.png
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 5.9 KiB |
BIN
static/images/tabBar/me_old.png
Normal file
|
After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 5.8 KiB |
BIN
static/images/tabBar/me_s_old.png
Normal file
|
After Width: | Height: | Size: 3.9 KiB |