todo.vue 987 B

123456789101112131415161718192021222324252627282930
  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="mp-header" :style="safeAreaStyle">
  18. <text class="mp-header__title">待办</text>
  19. <text class="mp-header__meta">跨模块待办汇总(本期占位)</text>
  20. </view>
  21. <view class="mp-placeholder">
  22. <view class="mp-placeholder__icon" />
  23. <text class="mp-placeholder__title">待办功能建设中</text>
  24. <text class="mp-placeholder__desc">本期请从「工作台」进入各业务模块办理;全局待办将在后续阶段开放。</text>
  25. </view>
  26. </view>
  27. </template>