商城列表需要优化

This commit is contained in:
bobobobo
2025-12-24 22:21:24 +08:00
parent b67f9611c7
commit 334c0800fa
8 changed files with 202 additions and 64 deletions

View File

@@ -1,5 +1,5 @@
<script setup>
import { useUserStore } from '@/stores/user'
import { useAuthUser } from '@/composables/useAuthUser'
const bottomList = [
{ name: '我的钱包', icon: 'wallet' },
@@ -10,10 +10,7 @@
{ name: '在线客服', icon: 'customer' },
{ name: '系统设置', icon: 'system' }
]
const { userInfo } = useUserStore()
console.log(userInfo)
const { userInfo } = useAuthUser()
</script>
<template>
@@ -26,8 +23,8 @@
class="avatar"
></image>
<view class="nickname">
<text class="name">{{ userInfo.userName }}</text>
<text class="name">ID:{{ userInfo.userId }}</text>
<text class="name">{{ userInfo?.userName || '' }}</text>
<text class="name">ID:{{ userInfo?.userId || '' }}</text>
</view>
</view>
<image