- 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
48 lines
1.0 KiB
Vue
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>
|