74 lines
2.1 KiB
Vue
74 lines
2.1 KiB
Vue
<!-- 页面编号:R-09;用途:人生大事。当前没有独立业务 operation。 -->
|
||
<template>
|
||
<view class="life-page"
|
||
><ModulePageBackground module="records" /><view class="page-header"
|
||
><PageHeader title="人生大事" custom-back @back="returnToRecords" /></view
|
||
><view class="page-content"
|
||
><view class="state-card"
|
||
><text>人生大事暂未开放</text
|
||
><text
|
||
>该功能正在准备中。开放后,重要人生经历会在这里沉淀为家族记忆。</text
|
||
><AppButton
|
||
block
|
||
:label="hasValidContext ? '返回记录首页' : '返回上一页'"
|
||
@click="returnToRecords" /></view></view
|
||
></view>
|
||
</template>
|
||
<script setup>
|
||
import { computed, ref } from "vue";
|
||
import { onLoad } from "@dcloudio/uni-app";
|
||
import AppButton from "@/components/AppButton.vue";
|
||
import ModulePageBackground from "@/components/ModulePageBackground.vue";
|
||
import PageHeader from "@/components/PageHeader.vue";
|
||
import { goBack, returnTo } from "@/utils/navigation.js";
|
||
const genealogyId = ref("");
|
||
const hasValidContext = computed(() => /^[1-9]\d*$/.test(genealogyId.value));
|
||
onLoad((query) => {
|
||
genealogyId.value = String(query?.genealogyId || "");
|
||
});
|
||
const returnToRecords = () =>
|
||
hasValidContext.value
|
||
? returnTo("R01", { genealogyId: genealogyId.value })
|
||
: goBack();
|
||
</script>
|
||
<style scoped lang="scss">
|
||
@import "../../styles/adaptive-frame-profiles.scss";
|
||
.life-page {
|
||
display: flex;
|
||
min-height: 100vh;
|
||
flex-direction: column;
|
||
background: $paper;
|
||
}
|
||
.page-header,
|
||
.page-content {
|
||
z-index: 1;
|
||
}
|
||
.page-content {
|
||
padding: 18rpx 24rpx 72rpx;
|
||
}
|
||
.state-card {
|
||
box-sizing: border-box;
|
||
min-height: 340rpx;
|
||
padding: 78rpx 52rpx 50rpx;
|
||
text-align: center;
|
||
@include adaptive-records-content;
|
||
}
|
||
.state-card text {
|
||
display: block;
|
||
}
|
||
.state-card text:first-child {
|
||
color: $ink;
|
||
font-size: clamp(19px, 35rpx, 24px);
|
||
font-weight: 700;
|
||
}
|
||
.state-card text:nth-child(2) {
|
||
margin-top: 18rpx;
|
||
color: $ink-muted;
|
||
font-size: clamp(15px, 24rpx, 18px);
|
||
line-height: 1.65;
|
||
}
|
||
.state-card .app-button {
|
||
margin-top: 28rpx;
|
||
}
|
||
</style>
|