todo.vue 1.0 KB

1234567891011121314151617181920212223242526272829303132
  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. import { useShareToLogin } from '@/utils/shareToLogin'
  7. useShareToLogin()
  8. const safeAreaStyle = getSafeAreaStyle()
  9. const userStore = useUserStore()
  10. onShow(() => {
  11. userStore.checkLoginStatus()
  12. if (!userStore.isLoggedIn) {
  13. uni.reLaunch({ url: PAGE_PATHS.login })
  14. }
  15. })
  16. </script>
  17. <template>
  18. <view class="mp-page mp-page--tab">
  19. <view class="mp-header" :style="safeAreaStyle">
  20. <text class="mp-header__title">待办</text>
  21. <text class="mp-header__meta">跨模块待办汇总(本期占位)</text>
  22. </view>
  23. <view class="mp-placeholder">
  24. <view class="mp-placeholder__icon" />
  25. <text class="mp-placeholder__title">待办功能建设中</text>
  26. <text class="mp-placeholder__desc">本期请从「工作台」进入各业务模块办理;全局待办将在后续阶段开放。</text>
  27. </view>
  28. </view>
  29. </template>