瀏覽代碼

增加tabbar图标

ming 3 年之前
父節點
當前提交
048dcde1fc
共有 5 個文件被更改,包括 8 次插入3 次删除
  1. 8 3
      pages.json
  2. 二進制
      static/images/tabbar/home-on.png
  3. 二進制
      static/images/tabbar/home.png
  4. 二進制
      static/images/tabbar/my-on.png
  5. 二進制
      static/images/tabbar/my.png

+ 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"
 			}
 		]
 	}

二進制
static/images/tabbar/home-on.png


二進制
static/images/tabbar/home.png


二進制
static/images/tabbar/my-on.png


二進制
static/images/tabbar/my.png