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;
|
|
|
|
|
}
|
2024-12-18 18:05:02 +08:00
|
|
|
|
|
|
|
|
view,
|
|
|
|
|
navigator,
|
|
|
|
|
input,
|
|
|
|
|
scroll-view {
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
button::after {
|
|
|
|
|
border: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
swiper,
|
|
|
|
|
scroll-view {
|
|
|
|
|
flex: 1;
|
|
|
|
|
height: 100%;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
2024-12-19 18:25:30 +08:00
|
|
|
:deep(.van-nav-bar__content) {
|
|
|
|
|
background-color: #75aea4;
|
|
|
|
|
.van-nav-bar__text {
|
|
|
|
|
color: #333;
|
|
|
|
|
}
|
2024-12-18 18:05:02 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ellipsis {
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
2024-12-13 15:30:11 +08:00
|
|
|
</style>
|