odf_new/odf-uniapp/pages/start/index.vue
zpc 7e260a1d57 feat(odf-uniapp): Refactor global background styling to use centralized page background
- Replace individual page background images with global page background in App.vue
- Update pages.json global styles to use transparent colors for navigation and backgrounds
- Remove redundant bg-image elements and styles from all page components
- Set global page background with login_bg.png image, cover sizing, and fixed attachment
- Simplify individual page styling by removing duplicate background color declarations
- Consolidate background management to single source of truth in App.vue for consistent theming
2026-04-04 00:20:24 +08:00

48 lines
1.0 KiB
Vue

<template>
<view class="start-page">
<text class="app-name">绥时录</text>
</view>
</template>
<script setup>
import { onLoad } from '@dcloudio/uni-app'
import store from '@/store'
import { checkPermission } from '@/services/auth'
onLoad(() => {
if (store.token) {
checkPermission().then((res) => {
if (res.code === 200) {
store.isPermission = true
uni.reLaunch({ url: '/pages/portal/index' })
} else if (res.code === 403) {
store.isPermission = false
uni.reLaunch({ url: '/pages/portal/index' })
} else if (res.code === 401) {
uni.reLaunch({ url: '/pages/login/index' })
}
}).catch(() => {
uni.reLaunch({ url: '/pages/login/index' })
})
} else {
uni.reLaunch({ url: '/pages/login/index' })
}
})
</script>
<style scoped>
.start-page {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
background-color: transparent;
}
.app-name {
font-size: 48rpx;
font-weight: bold;
color: #1A73EC;
}
</style>