gaoluyang
4 天以前 eb62444060a1867ffea6f6c676c8ca55e620f4b6
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<template>
  <div class="splash-container">
        <div class="title-container">
          <span class="title-large">科技</span>
          <span class="title-small">便捷生活</span>
        </div>
        <span class="bottom-text">芯导云(管理信息系统)</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
  }, 3500)
})
</script>
 
<style scoped>
.splash-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, rgba(0,117,255,0.3) 0%, #FFFFFF 60%);
  overflow: hidden;
  position: relative;
}
 
.title-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  animation: fadeIn 1.5s ease-in-out;
}
 
.title-large {
  font-weight: 500;
  font-size: 60px;
  color: #000000;
  display: block;
  animation: slideUp 1s ease-out 0.2s both;
}
 
.title-small {
  font-weight: 400;
  font-size: 40px;
  color: #333333;
  display: block;
  margin-left: 15px;
  animation: slideUp 1s ease-out 0.5s both;
}
 
/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
 
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
 
/* 背景装饰效果 */
.splash-container::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0,117,255,0.1) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}
 
@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-10%, -10%) rotate(5deg);
  }
}
 
/* 底部文字样式 */
.bottom-text {
  position: absolute;
  bottom: 80px;
  font-size: 24px;
  color: #666666;
  opacity: 0;
  animation: fadeInUp 1s ease-out 1s both;
}
 
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
</style>