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.

65 lines
1.5 KiB

// tabBarComponent/tabBar.js
const app = getApp();
Component({
/**
* 组件的属性列表
*/
properties: {
tabbar: {
type: Object,
value: {
"backgroundColor": "#ffffff",
"color": "#979795",
"selectedColor": "#1c1c1b",
"list": [
{
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "icons/home.png",
"selectedIconPath": "icons/homeActive.png",
},
{
"pagePath": "pages/insight/index",
"text": "洞查",
"iconPath": "icons/insight.png",
"selectedIconPath": "icons/insightActive.png",
},
{
"pagePath": "pages/brandSearch/index",
"text": "导航",
"iconPath": "icons/appSearch.png",
"selectedIconPath": "icons/appSearchActive.png",
"isSpecial": true,
},
{
"pagePath": "pages/varComm/index",
"text": "对比",
"iconPath": "icons/varComm.png",
"selectedIconPath": "icons/varCommActive.png",
},
{
"pagePath": "pages/mine/index",
"text": "我的",
"iconPath": "icons/mine.png",
"selectedIconPath": "icons/mineActive.png",
}
]
}
}
},
/**
* 组件的初始数据
*/
data: {
isIphoneX: app.globalData.systemInfo.model.search('iPhone X') != -1 ? true : false
},
/**
* 组件的方法列表
*/
methods: {
}
})