Files
happy-life-star/mini-program/src/pages/profile/index.vue
T
peanut 60c63850ee feat: 修复 Redis 超时问题、固定小程序端口、新增人生事件模块及优化多个页面
- 修复 Redis 超时:添加 commons-pool2 依赖,启用 Lettuce 连接池,超时提升至 15s
- 固定 mini-program H5 端口为 5175,避免与 web 项目端口冲突
- 新增人生事件(life-event)模块:表单和详情页面
- 新增 EpicScript 灵感接口(Controller/Service/DTO)
- 优化登录、引导、主页、记录、剧本详情等多个页面
- 优化服务管理脚本和 Nginx 配置

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-10 11:38:35 +08:00

62 lines
1.2 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<template>
<view class="profile-page">
<view class="top-safe" :style="{ height: safeAreaTop + 'px' }"></view>
<view class="header">
<text class="back" @click="goBack"></text>
<text class="title">个人中心</text>
<text></text>
</view>
<MineView class="content" />
</view>
</template>
<script setup>
import { onMounted, ref } from 'vue'
import MineView from '../main/MineView.vue'
const safeAreaTop = ref(20)
onMounted(() => {
const info = uni.getWindowInfo()
safeAreaTop.value = info.safeAreaInsets?.top || info.statusBarHeight || 20
})
const goBack = () => {
uni.navigateBack()
}
</script>
<style scoped>
.profile-page {
min-height: 100vh;
color: #fff;
background:
radial-gradient(circle at 18% 2%, rgba(124, 58, 237, 0.3), transparent 34%),
linear-gradient(180deg, #090514 0%, #1a0a2f 55%, #07020d 100%);
}
.header {
height: 92rpx;
display: grid;
grid-template-columns: 80rpx 1fr 80rpx;
align-items: center;
padding: 0 28rpx;
}
.back {
font-size: 62rpx;
color: rgba(255, 255, 255, 0.82);
}
.title {
text-align: center;
font-size: 32rpx;
font-weight: 800;
}
.content {
padding: 24rpx 32rpx 40rpx;
}
</style>