hookehuyr

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

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