index.vue 6.8 KB

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