删除无用获取头像api,和删除个人中心页面多余加载提示
This commit is contained in:
parent
74ea2392e4
commit
14ee1c53d4
|
|
@ -155,20 +155,6 @@ export function updateNickName(nickName) {
|
|||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取用户头像
|
||||
* @param {string} userId - 用户ID
|
||||
* @returns {Promise} 返回头像URL
|
||||
*/
|
||||
export function getUserAvatar(userId) {
|
||||
return request({
|
||||
url: '/app/user/avatar',
|
||||
method: 'GET',
|
||||
params: { userId },
|
||||
showLoading: false,
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取提现信息
|
||||
* @returns {Promise} 返回提现相关信息
|
||||
|
|
|
|||
|
|
@ -2,14 +2,6 @@
|
|||
<view class="profile-page">
|
||||
<image :src="commonEnum.FIRE_BACKGROUND" class="fire-background"></image>
|
||||
|
||||
<!-- 加载状态 -->
|
||||
<view v-if="loading" class="loading-overlay">
|
||||
<view class="loading-content">
|
||||
<view class="loading-spinner"></view>
|
||||
<text class="loading-text">加载中...</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 头部用户信息 -->
|
||||
<view class="user-header">
|
||||
<view class="avatar">
|
||||
|
|
@ -380,44 +372,6 @@ export default {
|
|||
}
|
||||
}
|
||||
|
||||
// 加载状态
|
||||
.loading-overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 9999;
|
||||
|
||||
.loading-content {
|
||||
background: #fff;
|
||||
border-radius: 20rpx;
|
||||
padding: 60rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
.loading-spinner {
|
||||
width: 60rpx;
|
||||
height: 60rpx;
|
||||
border: 6rpx solid #f3f3f3;
|
||||
border-top: 6rpx solid #f15a04;
|
||||
border-radius: 50%;
|
||||
animation: spin 1s linear infinite;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
.loading-text {
|
||||
font-size: 28rpx;
|
||||
color: #666;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user