diff --git a/app.json b/app.json index a8acf72..e5afae0 100644 --- a/app.json +++ b/app.json @@ -18,32 +18,32 @@ "custom": true, "list": [{ "pagePath": "pages/index/index", - "iconPath": "/components/tabbarComponent/icons/home.png", - "selectedIconPath": "/components/tabbarComponent/icons/homeActive.png", + "iconPath": "/custom-tab-bar/icons/home.png", + "selectedIconPath": "/custom-tab-bar/icons/homeActive.png", "text": "首页" }, { "pagePath": "pages/insight/index", - "iconPath": "/components/tabbarComponent/icons/insight.png", - "selectedIconPath": "/components/tabbarComponent/icons/insightActive.png", + "iconPath": "/custom-tab-bar/icons/insight.png", + "selectedIconPath": "/custom-tab-bar/icons/insightActive.png", "text": "洞察" }, { "pagePath": "pages/brandSearch/index", - "iconPath": "/components/tabbarComponent/icons/appSearch.png", - "selectedIconPath": "/components/tabbarComponent/icons/appSearchActive.png", + "iconPath": "/custom-tab-bar/icons/appSearch.png", + "selectedIconPath": "/custom-tab-bar/icons/appSearchActive.png", "text": "品牌搜索" }, { "pagePath": "pages/varComm/index", - "iconPath": "/components/tabbarComponent/icons/varComm.png", - "selectedIconPath": "/components/tabbarComponent/icons/varCommActive.png", + "iconPath": "/custom-tab-bar/icons/varComm.png", + "selectedIconPath": "/custom-tab-bar/icons/varCommActive.png", "text": "对比" }, { "pagePath": "pages/mine/index", - "iconPath": "/components/tabbarComponent/icons/mine.png", - "selectedIconPath": "/components/tabbarComponent/icons/mineActive.png", + "iconPath": "/custom-tab-bar/icons/mine.png", + "selectedIconPath": "/custom-tab-bar/icons/mineActive.png", "text": "我的" } ] diff --git a/custom-tab-bar/icons/appSearch.png b/custom-tab-bar/icons/appSearch.png new file mode 100644 index 0000000..3a801c4 Binary files /dev/null and b/custom-tab-bar/icons/appSearch.png differ diff --git a/custom-tab-bar/icons/appSearchActive.png b/custom-tab-bar/icons/appSearchActive.png new file mode 100644 index 0000000..a74330b Binary files /dev/null and b/custom-tab-bar/icons/appSearchActive.png differ diff --git a/custom-tab-bar/icons/home.png b/custom-tab-bar/icons/home.png new file mode 100644 index 0000000..afbf260 Binary files /dev/null and b/custom-tab-bar/icons/home.png differ diff --git a/custom-tab-bar/icons/homeActive.png b/custom-tab-bar/icons/homeActive.png new file mode 100644 index 0000000..82e6aff Binary files /dev/null and b/custom-tab-bar/icons/homeActive.png differ diff --git a/custom-tab-bar/icons/insight.png b/custom-tab-bar/icons/insight.png new file mode 100644 index 0000000..caa7c01 Binary files /dev/null and b/custom-tab-bar/icons/insight.png differ diff --git a/custom-tab-bar/icons/insightActive.png b/custom-tab-bar/icons/insightActive.png new file mode 100644 index 0000000..f269cfe Binary files /dev/null and b/custom-tab-bar/icons/insightActive.png differ diff --git a/custom-tab-bar/icons/mine.png b/custom-tab-bar/icons/mine.png new file mode 100644 index 0000000..e79692e Binary files /dev/null and b/custom-tab-bar/icons/mine.png differ diff --git a/custom-tab-bar/icons/mineActive.png b/custom-tab-bar/icons/mineActive.png new file mode 100644 index 0000000..74fe2e1 Binary files /dev/null and b/custom-tab-bar/icons/mineActive.png differ diff --git a/custom-tab-bar/icons/varComm.png b/custom-tab-bar/icons/varComm.png new file mode 100644 index 0000000..912792c Binary files /dev/null and b/custom-tab-bar/icons/varComm.png differ diff --git a/custom-tab-bar/icons/varCommActive.png b/custom-tab-bar/icons/varCommActive.png new file mode 100644 index 0000000..d693004 Binary files /dev/null and b/custom-tab-bar/icons/varCommActive.png differ diff --git a/custom-tab-bar/icons/路径.png b/custom-tab-bar/icons/路径.png new file mode 100644 index 0000000..07de3e4 Binary files /dev/null and b/custom-tab-bar/icons/路径.png differ diff --git a/custom-tab-bar/index.js b/custom-tab-bar/index.js index 77d1cf0..c15a6a4 100644 --- a/custom-tab-bar/index.js +++ b/custom-tab-bar/index.js @@ -7,31 +7,31 @@ Component({ list: [{ "pagePath": "pages/index/index", "iconPath": "/components/tabbarComponent/icons/home.png", - "selectedIconPath": "/components/tabbarComponent/icons/homeActive.png", + "selectedIconPath": "icons/homeActive.png", "text": "首页" }, { "pagePath": "pages/insight/index", "iconPath": "/components/tabbarComponent/icons/insight.png", - "selectedIconPath": "/components/tabbarComponent/icons/insightActive.png", + "selectedIconPath": "icons/insightActive.png", "text": "洞察" }, { "pagePath": "pages/brandSearch/index", "iconPath": "/components/tabbarComponent/icons/appSearch.png", - "selectedIconPath": "/components/tabbarComponent/icons/appSearchActive.png", + "selectedIconPath": "icons/appSearchActive.png", "text": "品牌搜索" }, { "pagePath": "pages/varComm/index", "iconPath": "/components/tabbarComponent/icons/varComm.png", - "selectedIconPath": "/components/tabbarComponent/icons/varCommActive.png", + "selectedIconPath": "icons/varCommActive.png", "text": "对比" }, { "pagePath": "pages/mine/index", "iconPath": "/components/tabbarComponent/icons/mine.png", - "selectedIconPath": "/components/tabbarComponent/icons/mineActive.png", + "selectedIconPath": "icons/mineActive.png", "text": "我的" } ],//tabbar循环数据集