| | |
| | | </view> |
| | | </view> |
| | | <view class="tabbar-placeholder" :style="{ height: '100px' }"></view> |
| | | <auth-login :show="showLogin" @close="showLogin = false"></auth-login> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | data() { |
| | | return { |
| | | safeAreaBottom: 0, |
| | | showLogin: false, |
| | | memberTabList: [ |
| | | { |
| | | text: '首页', |
| | |
| | | } |
| | | }, |
| | | computed: { |
| | | ...mapState(['userType']), |
| | | ...mapState(['userType', 'token']), |
| | | currentIndex() { |
| | | const pages = getCurrentPages() |
| | | const currentPage = pages[pages.length - 1] |
| | |
| | | this.safeAreaBottom = systemInfo.safeAreaInsets.bottom || 0 |
| | | }, |
| | | switchTab(item) { |
| | | if (item.pagePath === '/pages/itinerary/itinerary' && !this.token) { |
| | | this.showLogin = true |
| | | return |
| | | } |
| | | const currentPath = getCurrentPages()[getCurrentPages().length - 1].$page.fullPath |
| | | if (this.userType === 1) { |
| | | if (currentPath !== item.pagePath) { |