fix(mini-user): 门店详情加载、标题居中与走马灯展示

修复仅用 useDidShow 导致一直加载中;顶栏标题左右等宽居中;走马灯改用 View 双份文本动画。发版默认改生产。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-03 14:28:59 +08:00
parent 4a5b9eaffa
commit 2ebdb08a2f
5 changed files with 145 additions and 44 deletions
+2 -1
View File
@@ -203,7 +203,8 @@
height: var(--nav-content-height);
line-height: var(--nav-content-height);
text-align: center;
padding: 0 88px 0 56px;
/* 左右等宽留白,避免右侧分享/胶囊导致标题视觉偏左 */
padding: 0 max(72px, var(--nav-padding-right, 96px));
box-sizing: border-box;
opacity: 0;
font-family: var(--font-headline);
+11 -10
View File
@@ -129,16 +129,16 @@
.store-detail-marquee {
margin: 0 var(--space-page) 12px;
padding: 8px 12px;
padding: 8px 0;
border-radius: var(--radius-lg);
background: rgba(166, 29, 36, 0.06);
overflow: hidden;
white-space: nowrap;
}
.store-detail-marquee-track {
display: inline-flex;
align-items: center;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
width: max-content;
animation-name: store-detail-marquee-scroll;
animation-timing-function: linear;
@@ -146,20 +146,21 @@
will-change: transform;
}
.store-detail-marquee-text,
.store-detail-marquee-gap {
flex-shrink: 0;
.store-detail-marquee-item {
flex: 0 0 auto;
padding: 0 24px;
white-space: nowrap;
font-size: 12px;
line-height: 1.4;
line-height: 1.5;
color: #666;
}
@keyframes store-detail-marquee-scroll {
from {
transform: translateX(0);
transform: translate3d(0, 0, 0);
}
to {
transform: translateX(-50%);
transform: translate3d(-50%, 0, 0);
}
}