index.vue 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. <template>
  2. <view class="splash-overlay">
  3. <view class="splash-overlay-bg">
  4. <view class="bg-circle bg-circle-1"></view>
  5. <view class="bg-circle bg-circle-2"></view>
  6. <view class="bg-circle bg-circle-3"></view>
  7. </view>
  8. <view class="splash-overlay-body">
  9. <view class="splash-logo-wrap">
  10. <image class="splash-logo-img" src="/static/logo.png" mode="aspectFit" />
  11. </view>
  12. <text class="splash-brand-name">浠艾福</text>
  13. <text class="splash-brand-en">Care Family</text>
  14. <view class="splash-dims-row">
  15. <view class="splash-dim-item">
  16. <view class="splash-dim-circle" style="background:rgba(255,140,66,0.3);"><text class="splash-dim-icon">🌏</text></view>
  17. <text class="splash-dim-label">身</text>
  18. </view>
  19. <view class="splash-dim-item">
  20. <view class="splash-dim-circle" style="background:rgba(255,107,157,0.3);"><text class="splash-dim-icon">🔥</text></view>
  21. <text class="splash-dim-label">心</text>
  22. </view>
  23. <view class="splash-dim-item">
  24. <view class="splash-dim-circle" style="background:rgba(99,102,241,0.3);"><text class="splash-dim-icon">⚡</text></view>
  25. <text class="splash-dim-label">智</text>
  26. </view>
  27. <view class="splash-dim-item">
  28. <view class="splash-dim-circle" style="background:rgba(16,185,129,0.3);"><text class="splash-dim-icon">🌿</text></view>
  29. <text class="splash-dim-label">行</text>
  30. </view>
  31. <view class="splash-dim-item">
  32. <view class="splash-dim-circle" style="background:rgba(245,158,11,0.3);"><text class="splash-dim-icon">💧</text></view>
  33. <text class="splash-dim-label">富</text>
  34. </view>
  35. </view>
  36. <text class="splash-tagline">给全家的一站式幸福提案</text>
  37. <view class="splash-overlay-loading">
  38. <view class="splash-overlay-dot"></view>
  39. <view class="splash-overlay-dot"></view>
  40. <view class="splash-overlay-dot"></view>
  41. </view>
  42. </view>
  43. </view>
  44. </template>
  45. <script>
  46. export default {
  47. onShow() {
  48. // 显示 2 秒后自动跳转到首页
  49. setTimeout(() => {
  50. uni.reLaunch({ url: '/pages/index-home/index' })
  51. }, 2000)
  52. }
  53. }
  54. </script>
  55. <style scoped>
  56. .splash-overlay {
  57. position: fixed;
  58. top: 0; left: 0; right: 0; bottom: 0;
  59. z-index: 9999;
  60. display: flex;
  61. align-items: center;
  62. justify-content: center;
  63. background: linear-gradient(160deg, #FFF7ED 0%, #FFEDD5 50%, #FED7AA 100%);
  64. overflow: hidden;
  65. }
  66. .splash-overlay-bg {
  67. position: absolute;
  68. top: 0; left: 0; right: 0; bottom: 0;
  69. pointer-events: none;
  70. }
  71. .bg-circle {
  72. position: absolute;
  73. border-radius: 50%;
  74. opacity: 0.12;
  75. }
  76. .bg-circle-1 {
  77. width: 400rpx;
  78. height: 400rpx;
  79. background: #FF8C42;
  80. top: -100rpx;
  81. right: -80rpx;
  82. animation: splash-float-1 4s ease-in-out infinite;
  83. }
  84. .bg-circle-2 {
  85. width: 280rpx;
  86. height: 280rpx;
  87. background: #FF6B9D;
  88. bottom: 80rpx;
  89. left: -60rpx;
  90. animation: splash-float-2 5s ease-in-out infinite;
  91. }
  92. .bg-circle-3 {
  93. width: 180rpx;
  94. height: 180rpx;
  95. background: #6366F1;
  96. top: 50%;
  97. right: -40rpx;
  98. animation: splash-float-3 6s ease-in-out infinite;
  99. }
  100. @keyframes splash-float-1 {
  101. 0%, 100% { transform: translateY(0) scale(1); }
  102. 50% { transform: translateY(-30rpx) scale(1.05); }
  103. }
  104. @keyframes splash-float-2 {
  105. 0%, 100% { transform: translateY(0) scale(1); }
  106. 50% { transform: translateY(20rpx) scale(1.08); }
  107. }
  108. @keyframes splash-float-3 {
  109. 0%, 100% { transform: translateY(0) rotate(0deg); }
  110. 50% { transform: translateY(-20rpx) rotate(10deg); }
  111. }
  112. .splash-overlay-body {
  113. display: flex;
  114. flex-direction: column;
  115. align-items: center;
  116. animation: splash-body-in 0.8s cubic-bezier(0.16,1,0.3,1) forwards;
  117. }
  118. @keyframes splash-body-in {
  119. from { opacity: 0; transform: translateY(40rpx) scale(0.96); }
  120. to { opacity: 1; transform: translateY(0) scale(1); }
  121. }
  122. .splash-logo-wrap {
  123. width: 160rpx;
  124. height: 160rpx;
  125. border-radius: 40rpx;
  126. background: rgba(255,255,255,0.95);
  127. display: flex;
  128. align-items: center;
  129. justify-content: center;
  130. margin-bottom: 16rpx;
  131. box-shadow: 0 8rpx 32rpx rgba(249,115,22,0.25);
  132. animation: splash-logo-pulse 2.5s ease-in-out infinite;
  133. }
  134. @keyframes splash-logo-pulse {
  135. 0%, 100% { box-shadow: 0 8rpx 32rpx rgba(249,115,22,0.25); }
  136. 50% { box-shadow: 0 8rpx 48rpx rgba(249,115,22,0.45); }
  137. }
  138. .splash-logo-img {
  139. width: 100rpx;
  140. height: 100rpx;
  141. }
  142. .splash-brand-name {
  143. font-size: 64rpx;
  144. font-weight: 800;
  145. color: #7C2D12;
  146. letter-spacing: 10rpx;
  147. margin-bottom: 2rpx;
  148. }
  149. .splash-brand-en {
  150. font-size: 20rpx;
  151. color: rgba(124,45,18,0.5);
  152. letter-spacing: 6rpx;
  153. margin-bottom: 30rpx;
  154. }
  155. .splash-dims-row {
  156. display: flex;
  157. flex-direction: row;
  158. align-items: center;
  159. justify-content: center;
  160. gap: 28rpx;
  161. }
  162. .splash-dim-item {
  163. display: flex;
  164. flex-direction: column;
  165. align-items: center;
  166. gap: 8rpx;
  167. }
  168. .splash-dim-circle {
  169. width: 80rpx;
  170. height: 80rpx;
  171. border-radius: 50%;
  172. display: flex;
  173. align-items: center;
  174. justify-content: center;
  175. }
  176. .splash-dim-icon {
  177. font-size: 36rpx;
  178. line-height: 1;
  179. }
  180. .splash-dim-label {
  181. font-size: 22rpx;
  182. font-weight: 500;
  183. color: rgba(124,45,18,0.75);
  184. line-height: 1;
  185. }
  186. .splash-dim-item:nth-child(1) { animation: splash-dim-in 0.5s ease 0.1s both; }
  187. .splash-dim-item:nth-child(2) { animation: splash-dim-in 0.5s ease 0.2s both; }
  188. .splash-dim-item:nth-child(3) { animation: splash-dim-in 0.5s ease 0.3s both; }
  189. .splash-dim-item:nth-child(4) { animation: splash-dim-in 0.5s ease 0.4s both; }
  190. .splash-dim-item:nth-child(5) { animation: splash-dim-in 0.5s ease 0.5s both; }
  191. @keyframes splash-dim-in {
  192. from { opacity: 0; transform: translateY(16rpx) scale(0.8); }
  193. to { opacity: 1; transform: translateY(0) scale(1); }
  194. }
  195. .splash-tagline {
  196. font-size: 26rpx;
  197. color: rgba(124,45,18,0.7);
  198. letter-spacing: 4rpx;
  199. margin-top: 24rpx;
  200. }
  201. .splash-overlay-loading {
  202. position: absolute;
  203. bottom: 120rpx;
  204. left: 0;
  205. right: 0;
  206. display: flex;
  207. justify-content: center;
  208. align-items: center;
  209. gap: 12rpx;
  210. }
  211. .splash-overlay-dot {
  212. width: 14rpx;
  213. height: 14rpx;
  214. border-radius: 50%;
  215. background: rgba(249,115,22,0.6);
  216. animation: splash-dot-bounce 1.4s ease-in-out infinite both;
  217. }
  218. .splash-overlay-dot:nth-child(1) { animation-delay: -0.32s; }
  219. .splash-overlay-dot:nth-child(2) { animation-delay: -0.16s; }
  220. .splash-overlay-dot:nth-child(3) { animation-delay: 0s; }
  221. @keyframes splash-dot-bounce {
  222. 0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  223. 40% { transform: scale(1); opacity: 1; }
  224. }
  225. </style>