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