23 lines
462 B
JavaScript
23 lines
462 B
JavaScript
// 控制tabbar是否显示
|
|
import store from "@/store/index.js"
|
|
|
|
export const showTab = (data)=>{
|
|
let user = data || store.state.app.userInfo;
|
|
if(user.mer_info&&user.mer_info.mer_settlement_agree_status){
|
|
uni.setTabBarItem({
|
|
index: 1,
|
|
visible: true,
|
|
fail:(e)=>{
|
|
console.log(e);
|
|
}
|
|
})
|
|
}else {
|
|
uni.setTabBarItem({
|
|
index: 1,
|
|
visible: false,
|
|
fail:(e)=>{
|
|
console.log(e);
|
|
}
|
|
})
|
|
}
|
|
} |