From 3c13abb316394775fae7cfee89453e98f3a6411f Mon Sep 17 00:00:00 2001 From: zpc Date: Sun, 7 Jul 2024 16:59:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/gotopage.js | 3 ++- custom-tab-bar/index.js | 5 +++++ custom-tab-bar/index.wxss | 4 ++-- pages.json | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/common/gotopage.js b/common/gotopage.js index c72eddb..93232e6 100644 --- a/common/gotopage.js +++ b/common/gotopage.js @@ -4,7 +4,8 @@ const tabBarLinks = [ '/pages/index/index', '/pages/product/category', '/pages/cart/cart', - '/pages/user/index/index' + '/pages/user/index/index', + '/pages/shop/index' ]; /*分享页面白名单*/ diff --git a/custom-tab-bar/index.js b/custom-tab-bar/index.js index 85bcfa2..337c160 100644 --- a/custom-tab-bar/index.js +++ b/custom-tab-bar/index.js @@ -22,6 +22,11 @@ Component({ "selectedIconPath": "/static/tabbar/s3.png", "text": "" }, + { + "pagePath": "/pages/shop/index", + "iconPath": "/static/tabbar/m5.png", + "selectedIconPath": "/static/tabbar/s5.png" + }, { "pagePath": "/pages/user/index", "iconPath": "/static/tabbar/m4.png", diff --git a/custom-tab-bar/index.wxss b/custom-tab-bar/index.wxss index 9338ffc..a0b46d2 100644 --- a/custom-tab-bar/index.wxss +++ b/custom-tab-bar/index.wxss @@ -32,8 +32,8 @@ } .tab-bar-item image { - width: 160rpx; - height: 96rpx; + width: 140rpx; + height: 80rpx; } .tab-bar-item view { diff --git a/pages.json b/pages.json index 4acc253..3d4dedc 100644 --- a/pages.json +++ b/pages.json @@ -487,7 +487,7 @@ "selectedColor": "#FFFFFF", "borderStyle": "black", "backgroundColor": "#111111", - "iconWidth": "80px", + "iconWidth": "60px", "list": [{ "pagePath": "pages/shouye/index", "iconPath": "static/tabbar/m1.png",