<script setup>
import { onShow } from '@dcloudio/uni-app'

import { useMemberStore } from '@/stores/index.js'
const memberStore = useMemberStore()
// export default {
//     onLaunch: function () {},
//     onShow: function () {
//         // console.log(memberStore.userType, 'memberStore.userType')
//         // if (memberStore.userType === 2) {
//         //     uni.setTabBarItem({
//         //         index: 2,
//         //         visible: true,
//         //     })
//         // }
//     },
//     onHide: function () {},
// }

onShow(() => {
    if (memberStore.userType === 2) {
        uni.setTabBarItem({
            index: 2,
            visible: true,
        })
    }
})
</script>

<style lang="scss">
/*每个页面公共css */
page {
    width: 100%;
    height: 100%;
    font-size: 14px;
    background-color: $uni-bg-color-grey;
}

view,
navigator,
input,
scroll-view {
    box-sizing: border-box;
}

button::after {
    border: none;
}

swiper,
scroll-view {
    flex: 1;
    height: 100%;
    overflow: hidden;
}
:deep(.van-nav-bar__content) {
    background-color: #75aea4;
    .van-nav-bar__text {
        color: #333;
    }
}

.ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
</style>
