You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

63 lines
1.4 KiB

// tabBarComponent/tabBar.js
const app = getApp();
Component({
/**
* 组件的属性列表
*/
properties: {
tabbar: {
type: Object,
value: {
"backgroundColor": "#ffffff",
"color": "#D4D4D4",
"selectedColor": "#FF6F34",
"list": [
{
"pagePath": "/pages/index/index",
"iconPath": "icon/home.png",
"selectedIconPath": "icon/home-a.png",
"text": "首页"
},
{
"pagePath": "/pages/demandHall/index",
"iconPath": "icon/tab2.png",
"selectedIconPath": "icon/tab2-a.png",
"text": "供需大厅"
},
{
"pagePath": "/pages/release/index",
"iconPath": "icon/icon_release.png",
"isSpecial": true,
"text": "发布"
},
{
"pagePath": "/pages/life/index",
"iconPath": "icon/tab3.png",
"selectedIconPath": "icon/tab3-a.png",
"text": "生活"
},
{
"pagePath": "/pages/user/index",
"iconPath": "icon/tab4.png",
"selectedIconPath": "icon/tab4-a.png",
"text": "我的"
}
]
}
}
},
/**
* 组件的初始数据
*/
data: {
isIphoneX: app.globalData.systemInfo.model.search('iPhone X') != -1 ? true : false
},
/**
* 组件的方法列表
*/
methods: {
}
})