diff --git a/api/user/user.js b/api/user/user.js index aad0b56..482d259 100644 --- a/api/user/user.js +++ b/api/user/user.js @@ -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} 返回提现相关信息 diff --git a/pages/profile/profile.vue b/pages/profile/profile.vue index 189c248..03cda7b 100644 --- a/pages/profile/profile.vue +++ b/pages/profile/profile.vue @@ -2,14 +2,6 @@ - - - - - 加载中... - - - @@ -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);