Zlpt_Portal_h5/src/App.vue

69 lines
1.2 KiB
Vue
Raw Normal View History

2024-12-20 14:23:43 +08:00
<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,
})
}
})
2024-12-13 15:30:11 +08:00
</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;
}
2024-12-13 15:30:11 +08:00
</style>