@ -37,6 +37,22 @@
};
},
onLoad() {
uni.setTabBarItem({
index: 1,
"visible": false
});
index: 2,
index: 3,
index: 4,
this.listTabbar();
this.getSwiperList()
@ -44,7 +60,9 @@
listTabbar() {
this.$api.listTabbar({})
.then(res => {
console.log(res)
for (var i = 0; i < res.data.length; i++) {
if (res.data[i].hide == 1) {
if (res.data[i].type == "home") {
index: 0,
@ -74,6 +92,7 @@
}
}).catch((e) => console.log(e)); //捕获异常