1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
| <template>
| <div class="splash-container">
| <span class="title">科技</span>
| <span class="title1">便携生活</span>
| </div>
| </template>
|
| <script setup>
| import { onMounted } from 'vue'
| // #ifdef H5
| import { useRouter } from 'vue-router'
| const router = useRouter()
| // #endif
| onMounted(() => {
| setTimeout(() => {
| // #ifdef H5
| router.replace({ path: '/pages/login' })
| // #endif
| // #ifndef H5
| uni.reLaunch({ url: '/pages/login' })
| // #endif
| }, 2000)
| })
| </script>
|
| <style scoped>
| .splash-container {
| width: 100vw;
| height: 100vh;
| display: flex;
| flex-direction: column;
| justify-content: center;
| align-items: center;
| background: #fff;
| }
| .title {
| font-weight: 400;
| font-size: 60px;
| color: #000000;
| }
| .title1 {
| font-weight: 400;
| font-size: 40px;
| color: #000000;
| }
| </style>
|
|