hookehuyr

fix(Profile): 修复编辑按钮显示条件和默认昵称

fix(Welcome): 优化隐私声明文本格式
<!--
* @Date: 2025-08-27 17:47:46
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-09-03 21:30:51
* @LastEditTime: 2025-09-06 01:26:41
* @FilePath: /lls_program/src/pages/Profile/index.vue
* @Description: 文件描述
-->
......@@ -19,7 +19,7 @@
<h1 class="text-xl font-bold text-white">{{ userInfo.nickName }}</h1>
</view>
</view>
<view @tap="goToEditProfile" class="text-white">
<view v-if="userInfo?.birth_date" @tap="goToEditProfile" class="text-white">
<span>编辑</span>
</view>
</view>
......@@ -116,9 +116,10 @@ const initPageData = async () => {
const { code, data } = await getUserProfileAPI()
if (code) {
userInfo.value = {
nickName: data?.user?.nickname || '',
nickName: data?.user?.nickname || '临时用户',
avatarUrl: data?.user?.avatar_url || '',
is_creator: data?.user?.is_creator || false
is_creator: data?.user?.is_creator || false,
birth_date: data?.user?.birth_date || ''
}
// 根据用户身份更新菜单项
if (userInfo.value.is_creator) {
......
<!--
* @Date: 2025-08-27 17:43:45
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-09-06 00:27:09
* @LastEditTime: 2025-09-06 01:21:51
* @FilePath: /lls_program/src/pages/Welcome/index.vue
* @Description: 文件描述
-->
......@@ -114,7 +114,7 @@ const handleNavigate = (url) => {
// 先显示隐私提醒
Taro.showModal({
title: '个人信息收集说明',
content: `为了提供更好的服务,我们需要收集您的基本信息: 1. 头像和昵称:用于家庭成员识别 2. 出生年月:验证年龄资格,60岁以上可创建家庭 3. 轮椅出行信息:为您提供无障碍活动推荐 我们承诺严格保护您的个人隐私,仅用于家庭功能和活动服务。`,
content: `为了提供更好的服务,我们需要收集您的基本信息:1.头像和昵称:用于家庭成员识别 2.出生年月:验证年龄资格,60岁以上可创建家庭 3.轮椅出行信息:为您提供无障碍活动推荐。我们承诺严格保护您的个人隐私,仅用于家庭功能和活动服务。`,
confirmText: '同意搜集',
cancelText: '取消操作',
success: (res) => {
......