From 14ee1c53d448be40d6295c249c4ebff1e801a6a5 Mon Sep 17 00:00:00 2001 From: WindowBird <13870814+windows-bird@user.noreply.gitee.com> Date: Mon, 25 Aug 2025 10:17:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E5=A4=B4=E5=83=8Fapi=EF=BC=8C=E5=92=8C=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=A4=9A=E4=BD=99=E5=8A=A0=E8=BD=BD=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/user/user.js | 14 ------------ pages/profile/profile.vue | 46 --------------------------------------- 2 files changed, 60 deletions(-) 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);