web
2025-07-11 ae00f214aaeb74d8f3c8e9c6fb0a8c793816f892
fix:修改默认头像
已修改1个文件
5 ■■■■■ 文件已修改
pages/user/index.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/user/index.vue
@@ -3,10 +3,10 @@
        <view class="content">
            <view class="user" @click="setUser">
                <view class="userImg">
                    <image :src="userInfo?.headImg" mode="widthFix"></image>
                    <image :src="userInfo?.headImg ? userInfo.headImg : defaultImg" mode="widthFix"></image>
                </view>
                <view class="info">
                    <text class="name">{{userInfo?.nickName}}</text>
                    <text class="name">{{userInfo?.nickName ? userInfo.nickName : '用户'}}</text>
                </view>
            </view>
            <view class="typeList">
@@ -33,6 +33,7 @@
<script setup>
    import { onMounted, ref } from "vue";
    import { onShow } from "@dcloudio/uni-app"
    import defaultImg from '../../static/images/default-head.png'
    
    const topHeight = ref(0)
    const userInfo = ref()