Forráskód Böngészése

feat(consumer): 登录浮层品牌版式与五维能量轮盘动画

- 品牌区改为左上角锁定版式(logo+浠艾福+专属家庭主动健康陪跑)
- 副标题更新为「您的专属家庭主动健康陪跑」,删除理念卡描述
- 底部五维改为参照 Web 后台登录页的能量轮盘:中心「家」脉冲徽章、
  虚线轨道环自转、五节点按 72° 等分公转且文字保持正立
- 手机号快捷登录按钮改为橙黄渐变、黑字与黑色闪烁箭头
asus 3 hete
szülő
commit
4a78cb393a
1 módosított fájl, 154 hozzáadás és 78 törlés
  1. 154 78
      cfc-frontend/components/login-sheet.vue

+ 154 - 78
cfc-frontend/components/login-sheet.vue

@@ -6,19 +6,17 @@
       </view>
       <scroll-view scroll-y class="login-sheet-scroll" :show-scrollbar="false">
         <view class="login-sheet-content">
-          <!-- 品牌区 -->
-          <view class="brand-section">
-            <image class="logo" src="/static/logo.png" mode="aspectFit" @error="handleImageError"></image>
-            <text class="app-name">浠艾福</text>
-            <text class="identity">您的专属家庭主动健康管理师</text>
-            <text class="slogan">家里每个人的状态,你真的看见了?</text>
+          <!-- 品牌区(左上角锁定版式,与首页一致) -->
+          <view class="brand-bar">
+            <image class="brand-logo" src="/static/logo.png" mode="aspectFit" @error="handleImageError"></image>
+            <view class="brand-texts">
+              <text class="brand-name">浠艾福</text>
+              <text class="brand-tagline">您的专属家庭主动健康陪跑</text>
+            </view>
           </view>
 
           <!-- 理念卡 -->
           <view class="concept-card">
-            <view class="concept-desc">
-              不等问题发生,先一步<text class="concept-highlight">识别风险 · 主动干预 · 持续评估</text>,把全家健康管理融入每一天。
-            </view>
             <view class="loop-row">
               <view class="loop-pill loop-pill-indigo"><text>🔍</text><text class="loop-pill-text">提前识别</text></view>
               <text class="loop-arrow">→</text>
@@ -30,15 +28,6 @@
             </view>
           </view>
 
-          <!-- 五维标签 -->
-          <view class="dims-row">
-            <view class="dim-tag dim-tag-body"><text>🌏</text><text>身·健康</text></view>
-            <view class="dim-tag dim-tag-wisdom"><text>⚡</text><text>智·认知</text></view>
-            <view class="dim-tag dim-tag-wealth"><text>💧</text><text>富·创富</text></view>
-            <view class="dim-tag dim-tag-action"><text>🌿</text><text>行·和谐</text></view>
-            <view class="dim-tag dim-tag-mind"><text>🔥</text><text>心·大爱</text></view>
-          </view>
-
           <!-- 登录表单 -->
           <view class="login-form">
             <view class="phone-section">
@@ -51,7 +40,8 @@
                 :disabled="!agreed || loading || tapLock"
               >
                 <text class="phone-btn-icon">📱</text>
-                <text>手机号快捷登录</text>
+                <text class="phone-btn-text">手机号快捷登录</text>
+                <text class="phone-arrows">›››</text>
               </button>
             </view>
 
@@ -71,6 +61,17 @@
               <view class="skip-btn" @click="handleSkipLogin">暂不登录,先逛逛</view>
             </view>
           </view>
+
+          <!-- 五维能量轮盘(参照 Web 后台登录页动画风格) -->
+          <view class="dim-orbit">
+            <view class="orbit-ring"></view>
+            <view class="orbit-center">家</view>
+            <view class="orbit-node node-0"><text class="orbit-node-char">身</text></view>
+            <view class="orbit-node node-1"><text class="orbit-node-char">智</text></view>
+            <view class="orbit-node node-2"><text class="orbit-node-char">富</text></view>
+            <view class="orbit-node node-3"><text class="orbit-node-char">行</text></view>
+            <view class="orbit-node node-4"><text class="orbit-node-char">心</text></view>
+          </view>
         </view>
       </scroll-view>
     </view>
@@ -294,34 +295,46 @@ export default {
   box-sizing: border-box;
 }
 
-/* ===== 品牌区 ===== */
-.brand-section {
+/* ===== 品牌区(左上角锁定版式,与首页一致) ===== */
+.brand-bar {
   display: flex;
-  flex-direction: column;
   align-items: center;
-  padding: 24rpx 0 8rpx;
+  gap: 20rpx;
+  padding: 4rpx 0;
+  box-sizing: border-box;
 }
-.logo {
-  width: 128rpx;
-  height: 128rpx;
-  border-radius: 24rpx;
+.brand-logo {
+  width: 80rpx;
+  height: 80rpx;
+  border-radius: 20rpx;
+  background: $app-surface;
+  box-shadow: 0 6rpx 16rpx rgba($brand-primary, 0.18);
+  flex-shrink: 0;
 }
-.app-name {
-  font-size: calc(44rpx * var(--font-scale, 1));
+.brand-texts {
+  display: flex;
+  flex-direction: column;
+  justify-content: center;
+  min-width: 0;
+  padding-left: 20rpx;
+  border-left: 2rpx solid rgba($brand-primary, 0.28);
+}
+.brand-name {
+  font-size: calc(38rpx * var(--font-scale, 1));
   font-weight: bold;
   color: $facade-text-strong;
-  margin-top: 16rpx;
-}
-.identity {
-  font-size: calc(26rpx * var(--font-scale, 1));
-  color: $brand-primary;
-  margin-top: 8rpx;
+  letter-spacing: 3rpx;
+  line-height: 1.2;
 }
-.slogan {
-  font-size: calc(24rpx * var(--font-scale, 1));
-  color: $facade-text-muted;
-  margin-top: 12rpx;
-  text-align: center;
+.brand-tagline {
+  display: block;
+  font-size: calc(22rpx * var(--font-scale, 1));
+  font-weight: 500;
+  color: $brand-primary-deep;
+  margin-top: 6rpx;
+  letter-spacing: 1rpx;
+  line-height: 1.2;
+  white-space: nowrap;
 }
 
 /* ===== 理念卡 ===== */
@@ -331,15 +344,6 @@ export default {
   padding: 24rpx;
   margin-top: 28rpx;
 }
-.concept-desc {
-  font-size: calc(26rpx * var(--font-scale, 1));
-  color: $facade-text-deep;
-  line-height: 1.6;
-}
-.concept-highlight {
-  color: $brand-primary;
-  font-weight: 600;
-}
 .loop-row {
   display: flex;
   flex-direction: row;
@@ -374,33 +378,90 @@ export default {
   flex-shrink: 0;  /* 箭头不被压缩 */
 }
 
-/* ===== 五维标签 ===== */
-.dims-row {
-  display: flex;
-  flex-direction: row;
-  justify-content: center;
-  align-items: center;
-  flex-wrap: nowrap;  /* 禁止换行,保持五维维度在一行 */
-  margin-top: 24rpx;
-  padding: 0 32rpx;  /* 左右留白,避免贴边 */
+/* ===== 五维能量轮盘(参照 Web 后台登录页动画风格) ===== */
+.dim-orbit {
+  position: relative;
+  width: 340rpx;
+  height: 340rpx;
+  margin: 48rpx auto 8rpx;
+}
+/* 轨道环:缓慢旋转,呼应 Web 端虚线轨道 */
+.orbit-ring {
+  position: absolute;
+  left: 50%; top: 50%;
+  width: 240rpx; height: 240rpx;
+  margin-left: -120rpx; margin-top: -120rpx;
+  border: 2rpx dashed rgba(194, 112, 61, 0.35);
+  border-radius: 50%;
   box-sizing: border-box;
+  animation: orbitRingSpin 24s linear infinite;
+}
+@keyframes orbitRingSpin {
+  0%   { transform: rotate(0deg); }
+  100% { transform: rotate(360deg); }
+}
+/* 中心"家"徽章:金色脉冲,呼应 Web 端中心节点 */
+.orbit-center {
+  position: absolute;
+  left: 50%; top: 50%;
+  width: 84rpx; height: 84rpx;
+  margin-left: -42rpx; margin-top: -42rpx;
+  border-radius: 50%;
+  background: #F59E0B;
+  display: flex; align-items: center; justify-content: center;
+  color: #fff; font-size: calc(36rpx * var(--font-scale, 1)); font-weight: 700;
+  box-shadow: 0 0 20rpx rgba(245, 158, 11, 0.4);
+  animation: orbitCenterPulse 3s ease-in-out infinite;
+  z-index: 3;
+}
+@keyframes orbitCenterPulse {
+  0%, 100% { box-shadow: 0 0 20rpx rgba(245, 158, 11, 0.4); transform: scale(1); }
+  50%      { box-shadow: 0 0 36rpx rgba(245, 158, 11, 0.6); transform: scale(1.06); }
+}
+/* 五维公转节点:绕中心旋转,文字保持正立 */
+.orbit-node {
+  position: absolute;
+  left: 50%; top: 50%;
+  width: 76rpx; height: 76rpx;
+  margin-left: -38rpx; margin-top: -38rpx;
+  border-radius: 50%;
+  background: var(--node-color);
+  display: flex; align-items: center; justify-content: center;
+  color: #fff; font-size: calc(30rpx * var(--font-scale, 1)); font-weight: 700;
+  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.15);
+  z-index: 2;
+  animation-duration: 15s;
+  animation-timing-function: linear;
+  animation-iteration-count: infinite;
+}
+.orbit-node-char { line-height: 1; }
+/* 五节点:颜色 + 起始角度 + 错峰延迟,与 Web 端一致 */
+.node-0 { --node-color: #FF8C42; animation-name: orbitNode0; animation-delay: 0s; }    /* 身 */
+.node-1 { --node-color: #1677FF; animation-name: orbitNode1; animation-delay: -3s; }   /* 智 */
+.node-2 { --node-color: #F59E0B; animation-name: orbitNode2; animation-delay: -6s; }   /* 富 */
+.node-3 { --node-color: #10B981; animation-name: orbitNode3; animation-delay: -9s; }   /* 行 */
+.node-4 { --node-color: #FF6B9D; animation-name: orbitNode4; animation-delay: -12s; }  /* 心 */
+
+@keyframes orbitNode0 {
+  0%   { transform: rotate(0deg)   translateX(120rpx) rotate(0deg); }
+  100% { transform: rotate(360deg) translateX(120rpx) rotate(-360deg); }
 }
-.dim-tag {
-  display: flex;
-  flex-direction: row;
-  align-items: center;
-  border-radius: 999rpx;
-  padding: 8rpx 14rpx;
-  font-size: calc(22rpx * var(--font-scale, 1));
-  color: $app-surface;
-  margin: 0 8rpx;  /* 使用 margin 替代 gap,微信小程序不支持 gap */
-  white-space: nowrap;
+@keyframes orbitNode1 {
+  0%   { transform: rotate(72deg)   translateX(120rpx) rotate(-72deg); }
+  100% { transform: rotate(432deg)  translateX(120rpx) rotate(-432deg); }
+}
+@keyframes orbitNode2 {
+  0%   { transform: rotate(144deg)  translateX(120rpx) rotate(-144deg); }
+  100% { transform: rotate(504deg)  translateX(120rpx) rotate(-504deg); }
+}
+@keyframes orbitNode3 {
+  0%   { transform: rotate(216deg)  translateX(120rpx) rotate(-216deg); }
+  100% { transform: rotate(576deg)  translateX(120rpx) rotate(-576deg); }
+}
+@keyframes orbitNode4 {
+  0%   { transform: rotate(288deg)  translateX(120rpx) rotate(-288deg); }
+  100% { transform: rotate(648deg)  translateX(120rpx) rotate(-648deg); }
 }
-.dim-tag-body { background: $status-success; }
-.dim-tag-wisdom { background: $dim-wisdom; }
-.dim-tag-wealth { background: $dim-wealth; }
-.dim-tag-action { background: #14b8a6; }
-.dim-tag-mind { background: $status-danger; }
 
 /* ===== 登录表单 ===== */
 .login-form {
@@ -408,10 +469,10 @@ export default {
 }
 .phone-btn {
   width: 100%;
-  height: 96rpx;
+  height: 82rpx;
   border-radius: 24rpx;
-  background: linear-gradient(135deg, $brand-primary, $brand-primary-light);
-  color: $app-surface;
+  background: linear-gradient(135deg, #FFC24A 0%, #FFA726 100%);
+  color: #14458F;
   font-size: calc(32rpx * var(--font-scale, 1));
   font-weight: 600;
   display: flex;
@@ -419,17 +480,32 @@ export default {
   align-items: center;
   justify-content: center;
   border: none;
+  box-shadow: 0 8rpx 20rpx rgba(255, 167, 38, 0.32);
 }
 .phone-btn::after {
   border: none;
 }
 .phone-btn[disabled] {
-  background: #e0d8cc !important;
-  color: $text-ghost-soft !important;
+  background: #FFEFD0 !important;
+  color: #B57E2A !important;
 }
 .phone-btn-icon {
   margin-right: 8rpx;
 }
+.phone-btn-text {
+  color: #000000;
+}
+.phone-arrows {
+  margin-left: 10rpx;
+  font-weight: bold;
+  letter-spacing: 2rpx;
+  color: #000000;
+  animation: arrowBlink 1s ease-in-out infinite;
+}
+@keyframes arrowBlink {
+  0%, 100% { opacity: 1; }
+  50% { opacity: 0.15; }
+}
 
 /* ===== 暂不登录 ===== */
 .skip-section {