Sfoglia il codice sorgente

增加tabbar图标

ming 3 anni fa
parent
commit
048dcde1fc

+ 8 - 3
pages.json

@@ -111,14 +111,19 @@
 		"navigationBarBackgroundColor": "#F8F8F8",
 		"backgroundColor": "#F8F8F8"
 	},
-	"tabBar": {
+	"tabBar": {
+		"selectedColor": "#0063F5",
 		"list": [{
 				"pagePath": "pages/index/index",
-				"text": "首页"
+				"text": "首页",
+				"iconPath": "static/images/tabbar/home.png",
+				"selectedIconPath": "static/images/tabbar/home-on.png"
 			},
 			{
 				"pagePath": "pages/my/my",
-				"text": "我的"
+				"text": "我的",
+				"iconPath": "static/images/tabbar/my.png",
+				"selectedIconPath": "static/images/tabbar/my-on.png"
 			}
 		]
 	}

BIN
static/images/tabbar/home-on.png


BIN
static/images/tabbar/home.png


BIN
static/images/tabbar/my-on.png


BIN
static/images/tabbar/my.png