todo.vue 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. <script setup>
  2. import { onShow } from '@dcloudio/uni-app'
  3. import { useUserStore } from '@/stores/user'
  4. import { PAGE_PATHS } from '@/config/api'
  5. import { getSafeAreaStyle } from '@/utils/safeArea'
  6. const safeAreaStyle = getSafeAreaStyle()
  7. const userStore = useUserStore()
  8. onShow(() => {
  9. userStore.checkLoginStatus()
  10. if (!userStore.isLoggedIn) {
  11. uni.reLaunch({ url: PAGE_PATHS.login })
  12. }
  13. })
  14. </script>
  15. <template>
  16. <view class="mp-page mp-page--tab">
  17. <view class="sq-nav-header" :style="safeAreaStyle">
  18. <view class="sq-nav-header__nav">
  19. <view class="sq-nav-header__left">
  20. <text class="sq-nav-header__title">待办</text>
  21. </view>
  22. <view /><!-- 胶囊占位 -->
  23. </view>
  24. </view>
  25. <view class="mp-placeholder">
  26. <view class="mp-placeholder__icon" />
  27. <text class="mp-placeholder__title">待办功能建设中</text>
  28. <text class="mp-placeholder__desc">本期请从「工作台」进入各业务模块办理;全局待办将在后续阶段开放。</text>
  29. </view>
  30. </view>
  31. </template>