Эх сурвалжийг харах

feat(patient): 移除用户ID显示及类型定义

- 删除用户详情中 ID 字段的展示逻辑
- 更新用户对象类型定义,移除 openid 属性
mcbaiyun 1 сар өмнө
parent
commit
8c5edfa895

+ 1 - 2
src/pages/patient/index/index.vue

@@ -12,7 +12,6 @@
           <view class="user-details">
             <text class="username">{{ user.nickname || '未登录' }}</text>
             <text class="user-age" v-if="user.age">年龄: {{ user.age }}</text>
-            <text class="user-id" v-if="user.openid">ID: {{ user.openid }}</text>
           </view>
         </view>
       </view>
@@ -92,7 +91,7 @@ import { onShow } from '@dcloudio/uni-app'
 import CustomNav from '@/components/custom-nav.vue'
 import TabBar from '@/components/tab-bar.vue'
 
-const user = ref<{ avatar?: string; nickname?: string; openid?: string; age?: number }>({})
+const user = ref<{ avatar?: string; nickname?: string; age?: number }>({})
 
 const defaultAvatarUrl = 'https://mmbiz.qpic.cn/mmbiz/icTdbqWNOwNRna42FI242Lcia07jQodd2FJGIYQfG0LAJGFxM4FbnQP6yfMxBgJ0F3YRqJCJ1aPAK2dQagdusBZg/0'