,app.js里面只有简单的tabBar声明 没个页面也只有简陋的样式
app.js
{
"pages": [
"pages/index/index",
"pages/list/index",
"pages/history/index",
"pages/user/index",
"pages/login/index",
"pages/login/form"
],
"window": {
"navigationBarTitleText": "标题",
"navigationBarTextStyle": "white",
"navigationBarBackgroundColor": "#121325",
"backgroundColor": "#252735",
"backgroundColorBottom": "#252735",
"onReachBottomDistance": 300
},
"tabBar": {
"color": "#A1A3B5",
"selectedColor": "#ffffff",
"backgroundColor": "#252735",
"list": [
{
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "/static/images/tabbar/home.png",
"selectedIconPath": "/static/images/tabbar/home_white.png"
},
{
"pagePath": "pages/list/index",
"text": "片库",
"iconPath": "static/images/tabbar/list.png",
"selectedIconPath": "static/images/tabbar/list_white.png"
},
{
"pagePath": "pages/history/index",
"text": "历史",
"iconPath": "static/images/tabbar/history.png",
"selectedIconPath": "static/images/tabbar/history_white.png"
},
{
"pagePath": "pages/user/index",
"text": "我的",
"iconPath": "static/images/tabbar/user.png",
"selectedIconPath": "static/images/tabbar/user_white.png"
}
]
},
"component2": true,
"usingComponents": {}
}
ttml
<view><view class="white--text">1</view><view style="background:#f00;">1</view></view>