修改未完成
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
<!-- 公共组件:根页面底部导航;仅维护家谱、家族、我的三项已确认入口及其透明图标。 -->
|
||||
<template>
|
||||
<view class="app-tabbar">
|
||||
<view v-for="item in items" :key="item.key" class="tab-item" @click="switchTab(item)">
|
||||
@@ -11,9 +12,9 @@
|
||||
const props = defineProps({ active: { type: String, required: true } })
|
||||
|
||||
const items = [
|
||||
{ key: 'genealogy', label: '家谱', path: '/pages/genealogy/index', icon: '/static/assets/icons/tab/genealogy-v4.png', activeIcon: '/static/assets/icons/tab/genealogy-active-v4.png' },
|
||||
{ key: 'family', label: '家族', path: '/pages/family/index', icon: '/static/assets/icons/tab/family-v4.png', activeIcon: '/static/assets/icons/tab/family-active-v4.png' },
|
||||
{ key: 'profile', label: '我的', path: '/pages/profile/index', icon: '/static/assets/icons/tab/profile-v4.png', activeIcon: '/static/assets/icons/tab/profile-active-v4.png' }
|
||||
{ key: 'genealogy', label: '家谱', path: '/pages/genealogy/g01-my-genealogies', icon: '/static/assets/foundation/transparent/tab-genealogy.png', activeIcon: '/static/assets/foundation/transparent/tab-genealogy-active.png' },
|
||||
{ key: 'family', label: '家族', path: '/pages/family/f01-family-feed', icon: '/static/assets/foundation/transparent/tab-family.png', activeIcon: '/static/assets/foundation/transparent/tab-family-active.png' },
|
||||
{ key: 'profile', label: '我的', path: '/pages/profile/m01-profile-home', icon: '/static/assets/foundation/transparent/tab-profile.png', activeIcon: '/static/assets/foundation/transparent/tab-profile-active.png' }
|
||||
]
|
||||
|
||||
const switchTab = (item) => {
|
||||
|
||||
+160
-34
@@ -1,8 +1,21 @@
|
||||
<!-- 公共组件:G01 已创建/已加入家谱的题签列表项;保持透明题签框叠在纸纹底图上。 -->
|
||||
<template>
|
||||
<view class="genealogy-card" :class="{ 'genealogy-card--current': selected }" @click="$emit('select', genealogy)">
|
||||
<image class="row-frame" src="/static/assets/backgrounds/genealogy-list-slip-frame.png" mode="scaleToFill" />
|
||||
<view
|
||||
class="genealogy-card"
|
||||
:class="{ 'genealogy-card--current': selected }"
|
||||
@click="$emit('select', genealogy)"
|
||||
>
|
||||
<image
|
||||
class="row-frame"
|
||||
src="/static/assets/modules/genealogy/transparent/list-slip-frame.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
<view class="surname-seal">
|
||||
<image class="surname-seal-frame" src="/static/assets/icons/genealogy/seal-row-frame-v1.png" mode="scaleToFill" />
|
||||
<image
|
||||
class="surname-seal-frame"
|
||||
src="/static/assets/modules/genealogy/transparent/row-seal-frame.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
<view class="surname-seal-copy">
|
||||
<text class="seal-title">家谱</text>
|
||||
</view>
|
||||
@@ -13,17 +26,29 @@
|
||||
<text class="card-name">{{ genealogy.name }}</text>
|
||||
<view class="card-side">
|
||||
<text class="card-role">{{ role }}</text>
|
||||
<image class="card-chevron" src="/static/assets/icons/common/chevron-right-v2.png" mode="aspectFit" />
|
||||
<image
|
||||
class="card-chevron"
|
||||
src="/static/assets/foundation/transparent/chevron-right.png"
|
||||
mode="aspectFit"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="card-detail-row">
|
||||
<view class="card-metas">
|
||||
<view class="card-meta-item">
|
||||
<image class="card-meta-icon" src="/static/assets/icons/common/location-v1.png" mode="aspectFit" />
|
||||
<image
|
||||
class="card-meta-icon"
|
||||
src="/static/assets/foundation/transparent/meta-location.png"
|
||||
mode="aspectFit"
|
||||
/>
|
||||
<text class="card-meta">{{ genealogy.location }}</text>
|
||||
</view>
|
||||
<view class="card-meta-item">
|
||||
<image class="card-meta-icon" src="/static/assets/icons/common/member-meta-v1.png" mode="aspectFit" />
|
||||
<image
|
||||
class="card-meta-icon"
|
||||
src="/static/assets/foundation/transparent/meta-member.png"
|
||||
mode="aspectFit"
|
||||
/>
|
||||
<text class="card-meta">{{ genealogy.memberCount }} 位成员</text>
|
||||
</view>
|
||||
</view>
|
||||
@@ -39,9 +64,9 @@
|
||||
defineProps({
|
||||
genealogy: { type: Object, required: true },
|
||||
role: { type: String, required: true },
|
||||
selected: { type: Boolean, default: false }
|
||||
})
|
||||
defineEmits(['select'])
|
||||
selected: { type: Boolean, default: false },
|
||||
});
|
||||
defineEmits(["select"]);
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@@ -55,7 +80,9 @@ defineEmits(['select'])
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.genealogy-card--current { background: transparent; }
|
||||
.genealogy-card--current {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.row-frame {
|
||||
position: absolute;
|
||||
@@ -82,11 +109,39 @@ defineEmits(['select'])
|
||||
color: #fff5df;
|
||||
}
|
||||
|
||||
.surname-seal-frame { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; width: 100%; height: 100%; }
|
||||
.surname-seal-copy { position: relative; z-index: 1; display: flex; height: 82rpx; align-items: center; justify-content: center; }
|
||||
.seal-title { color: #fff5df; font-family: 'STKaiti', 'KaiTi', serif; font-size: 30rpx; font-weight: 700; letter-spacing: 2rpx; line-height: 1; writing-mode: vertical-rl; }
|
||||
.genealogy-card:not(.genealogy-card--current) .surname-seal-frame { opacity: .32; }
|
||||
.genealogy-card:not(.genealogy-card--current) .seal-title { color: $ink-muted; }
|
||||
.surname-seal-frame {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.surname-seal-copy {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
height: 82rpx;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.seal-title {
|
||||
color: #fff5df;
|
||||
font-family: "STKaiti", "KaiTi", serif;
|
||||
font-size: 30rpx;
|
||||
font-weight: 700;
|
||||
letter-spacing: 2rpx;
|
||||
line-height: 1;
|
||||
writing-mode: vertical-rl;
|
||||
}
|
||||
.genealogy-card:not(.genealogy-card--current) .surname-seal-frame {
|
||||
opacity: 0.32;
|
||||
}
|
||||
.genealogy-card:not(.genealogy-card--current) .seal-title {
|
||||
color: $ink-muted;
|
||||
}
|
||||
|
||||
.card-main {
|
||||
position: relative;
|
||||
@@ -97,21 +152,64 @@ defineEmits(['select'])
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.card-name,
|
||||
.card-meta {
|
||||
.card-name {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.card-title-row { display: flex; min-width: 0; align-items: center; justify-content: space-between; }
|
||||
.card-name { color: $ink; font-family: 'STKaiti', 'KaiTi', serif; font-size: 37rpx; font-weight: 700; }
|
||||
.card-detail-row { display: flex; min-width: 0; align-items: center; justify-content: space-between; margin-top: 12rpx; }
|
||||
.card-metas { display: flex; min-width: 0; align-items: center; }
|
||||
.card-meta-item { display: flex; min-width: 0; align-items: center; margin-right: 14rpx; }
|
||||
.card-meta-icon { width: 28rpx; height: 28rpx; margin-right: 6rpx; }
|
||||
.card-meta { color: $ink-muted; font-size: 26rpx; }
|
||||
.card-updated { display: flex; flex: 0 0 auto; align-items: center; margin-left: 10rpx; color: $ink-muted; font-size: 22rpx; white-space: nowrap; }
|
||||
.card-meta {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.card-title-row {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.card-name {
|
||||
color: $ink;
|
||||
font-family: "STKaiti", "KaiTi", serif;
|
||||
font-size: 37rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
.card-detail-row {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-top: 12rpx;
|
||||
}
|
||||
.card-metas {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
}
|
||||
.card-meta-item {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
margin-right: 14rpx;
|
||||
}
|
||||
.card-meta-icon {
|
||||
width: 28rpx;
|
||||
height: 28rpx;
|
||||
margin-right: 6rpx;
|
||||
}
|
||||
.card-meta {
|
||||
color: $ink-muted;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
.card-updated {
|
||||
display: flex;
|
||||
flex: 0 0 auto;
|
||||
align-items: center;
|
||||
margin-left: 10rpx;
|
||||
color: $ink-muted;
|
||||
font-size: 22rpx;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.card-side {
|
||||
position: relative;
|
||||
@@ -125,16 +223,44 @@ defineEmits(['select'])
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
|
||||
.card-role { color: $ink-muted; font-size: 24rpx; white-space: nowrap; }
|
||||
.card-chevron { width: 34rpx; height: 34rpx; margin-left: 14rpx; }
|
||||
.card-role {
|
||||
color: $ink-muted;
|
||||
font-size: 24rpx;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.card-chevron {
|
||||
width: 34rpx;
|
||||
height: 34rpx;
|
||||
margin-left: 14rpx;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 340px) {
|
||||
.genealogy-card { min-height: 148rpx; padding-right: 18rpx; padding-left: 18rpx; }
|
||||
.surname-seal { width: 66rpx; height: 100rpx; margin-right: 16rpx; }
|
||||
.card-name { font-size: 32rpx; }
|
||||
.card-meta { font-size: 22rpx; }
|
||||
.card-updated { display: none; }
|
||||
.card-side { margin-left: 12rpx; }
|
||||
.card-chevron { width: 28rpx; height: 28rpx; margin-left: 8rpx; }
|
||||
.genealogy-card {
|
||||
min-height: 148rpx;
|
||||
padding-right: 18rpx;
|
||||
padding-left: 18rpx;
|
||||
}
|
||||
.surname-seal {
|
||||
width: 66rpx;
|
||||
height: 100rpx;
|
||||
margin-right: 16rpx;
|
||||
}
|
||||
.card-name {
|
||||
font-size: 32rpx;
|
||||
}
|
||||
.card-meta {
|
||||
font-size: 22rpx;
|
||||
}
|
||||
.card-updated {
|
||||
display: none;
|
||||
}
|
||||
.card-side {
|
||||
margin-left: 12rpx;
|
||||
}
|
||||
.card-chevron {
|
||||
width: 28rpx;
|
||||
height: 28rpx;
|
||||
margin-left: 8rpx;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
<!-- 公共组件:根页朱砂页头与普通返回页头;根页背景图层由统一基础资产提供。 -->
|
||||
<template>
|
||||
<view class="page-header" :class="{ 'page-header--root': root }">
|
||||
<image v-if="root" class="header-texture" src="/static/assets/backgrounds/header-cinnabar-texture-v2.jpg" mode="scaleToFill" />
|
||||
<image v-if="root" class="header-hall" src="/static/assets/backgrounds/header-hall-lineart.png" mode="aspectFit" />
|
||||
<!-- 根页头部使用不透明朱砂底图与透明祠堂线稿两层完整资产。 -->
|
||||
<image v-if="root" class="header-texture" src="/static/assets/foundation/opaque/root-header-cinnabar.jpg" mode="scaleToFill" />
|
||||
<image v-if="root" class="header-hall" src="/static/assets/foundation/transparent/root-header-hall.png" mode="aspectFit" />
|
||||
<view class="header-side header-side--left">
|
||||
<view v-if="root" class="header-icon-button" @click="$emit('brand')">
|
||||
<image class="header-logo" src="/static/assets/icons/brand/jiapu-seal-logo-header.png" mode="aspectFit" />
|
||||
<image class="header-logo" src="/static/assets/foundation/transparent/brand-seal.png" mode="aspectFit" />
|
||||
</view>
|
||||
<view v-else class="header-back" @click="goBack">{{ backLabel }}</view>
|
||||
</view>
|
||||
@@ -13,7 +15,7 @@
|
||||
|
||||
<view class="header-side header-side--right">
|
||||
<view v-if="root" class="header-icon-button header-notice" @click="$emit('notice')">
|
||||
<image class="header-notice-icon" src="/static/assets/icons/common/notice-v3.png" mode="aspectFit" />
|
||||
<image class="header-notice-icon" src="/static/assets/foundation/transparent/notice.png" mode="aspectFit" />
|
||||
<view v-if="unreadCount > 0" class="notice-dot"></view>
|
||||
</view>
|
||||
<view v-else class="header-action" @click="$emit('action')">{{ action }}</view>
|
||||
|
||||
Reference in New Issue
Block a user