| 1234567891011121314151617181920212223242526272829303132333435 |
- <script setup>
- import { onShow } from '@dcloudio/uni-app'
- import { useUserStore } from '@/stores/user'
- import { PAGE_PATHS } from '@/config/api'
- const userStore = useUserStore()
- onShow(() => {
- userStore.checkLoginStatus()
- if (!userStore.isLoggedIn) {
- uni.reLaunch({ url: PAGE_PATHS.login })
- }
- })
- const goWorkbench = () => {
- uni.switchTab({ url: PAGE_PATHS.workbench })
- }
- </script>
- <template>
- <view class="mp-page mp-page--tab">
- <view class="mp-header">
- <text class="mp-header__title">首页</text>
- <text class="mp-header__meta">概览与快捷入口(本期占位)</text>
- </view>
- <view class="mp-placeholder">
- <view class="mp-placeholder__icon" />
- <text class="mp-placeholder__title">首页功能建设中</text>
- <text class="mp-placeholder__desc">请从底部「工作台」进入 CRM、报销、地磅、运输业务办理。</text>
- <button class="mp-btn mp-btn--primary" style="margin-top: 40rpx; padding: 0 48rpx" @click="goWorkbench">
- 前往工作台
- </button>
- </view>
- </view>
- </template>
|