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.5 KiB
63 lines
1.5 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/icon_home.png", |
|
"selectedIconPath": "icon/icon_home_HL.png", |
|
"text": "首页" |
|
}, |
|
{ |
|
"pagePath": "/pages/demandHall/index", |
|
"iconPath": "icon/icon_home.png", |
|
"selectedIconPath": "icon/icon_home_HL.png", |
|
"text": "供需大厅" |
|
}, |
|
{ |
|
"pagePath": "/pages/release/index", |
|
"iconPath": "icon/icon_release.png", |
|
"isSpecial": true, |
|
"text": "发布" |
|
}, |
|
{ |
|
"pagePath": "/pages/life/index", |
|
"iconPath": "icon/icon_mine.png", |
|
"selectedIconPath": "icon/icon_mine_HL.png", |
|
"text": "购物车" |
|
}, |
|
{ |
|
"pagePath": "/pages/user/index", |
|
"iconPath": "icon/icon_mine.png", |
|
"selectedIconPath": "icon/icon_mine_HL.png", |
|
"text": "我的" |
|
} |
|
] |
|
} |
|
} |
|
}, |
|
|
|
/** |
|
* 组件的初始数据 |
|
*/ |
|
data: { |
|
isIphoneX: app.globalData.systemInfo.model.search('iPhone X') != -1 ? true : false |
|
}, |
|
|
|
/** |
|
* 组件的方法列表 |
|
*/ |
|
methods: { |
|
|
|
} |
|
})
|
|
|