很簡(jiǎn)單,參考API: https://mp.weixin.qq.com/debug/wxadoc/dev/framework/MINA.html?t=20161107
在app.json里填寫(xiě):tab個(gè)數(shù)范圍2-5個(gè)
[plain] view plain copy
 
-
"tabBar":{
-
"color": "#818181",
-
"selectedColor": "#0082D7",
-
"borderStyle": "white",
-
"list": [
-
{
-
"pagePath": "pages/index/index",
-
"text": "首頁(yè)",
-
"iconPath":"res/images/tabar/index.png",
-
"selectedIconPath": "res/images/toobar/index01.png"
-
},
-
{
-
"pagePath": "pages/me/me",
-
"text": "個(gè)人中心",
-
"iconPath": "res/images/tabar/me.png",
-
"selectedIconPath": "res/images/toobar/me.png"
-
},
-
{
-
"pagePath": "pages/more/more",
-
"text": "更多",
-
"iconPath": "res/images/tabar/more.png",
-
"selectedIconPath": "res/images/toobar/more.png"
-
}
-
]
-
}



另外貌似不支持網(wǎng)絡(luò)獲取圖片,點(diǎn)擊后對(duì)應(yīng)頁(yè)面根據(jù)需要自行添加編寫(xiě)即可。
|