fix(h5): 星座分享卡置顶;首页头像进个人档案

星座 ShareSheet/落地页卡片改到上方;首页顶栏个人入口从愈心解码改为 /profile。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-08-13 02:34:58 +08:00
co-authored by Cursor
parent b7b0b18802
commit d81e8364cc
3 changed files with 29 additions and 5 deletions
+15 -3
View File
@@ -4,6 +4,11 @@
<div class="top-row">
<span class="who-static">分享</span>
</div>
<ShareCard
v-if="payload?.type === 'star'"
class="card-lead"
v-bind="cardProps"
/>
</template>
<div class="body">
@@ -17,13 +22,13 @@
</template>
<template v-else>
<div class="hero-block">
<HomeToolIcon :name="heroIcon" :size="64" />
<div class="hero-block" :class="{ compact: payload.type === 'star' }">
<HomeToolIcon v-if="payload.type !== 'star'" :name="heroIcon" :size="64" />
<h1 class="hero-title">{{ shareTitle }}</h1>
<p class="hero-sub">{{ shareSub }}</p>
</div>
<ShareCard v-bind="cardProps" />
<ShareCard v-if="payload.type !== 'star'" v-bind="cardProps" />
<div class="actions">
<router-link class="cta" :to="ctaTo">{{ ctaText }}</router-link>
@@ -113,10 +118,17 @@ const ctaText = computed(() => {
.who-static { flex: 1; font-size: 16px; font-weight: 700; text-align: center; }
.spacer { width: 36px; }
.body { padding: 8px 16px 24px; }
.card-lead {
margin: 10px 16px 0;
}
.hero-block, .empty-hero {
text-align: center;
padding: 20px 12px 16px;
}
.hero-block.compact {
padding: 14px 12px 8px;
}
.hero-block.compact .hero-title { font-size: 18px; margin-top: 0; }
.hero-title {
font-family: var(--font-display);
font-size: 22px;