From 78068d49c20a8b90db902d955f558af507eb8b96 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期四, 11 四月 2024 16:06:12 +0800 Subject: [PATCH] 各页面添加骨架屏 --- pages/testLogin/index.js | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pages/testLogin/index.js b/pages/testLogin/index.js index e83f718..01c8a86 100644 --- a/pages/testLogin/index.js +++ b/pages/testLogin/index.js @@ -40,6 +40,9 @@ icon: "error", duration: 2000 }) + this.setData({ + loading: false + }) } }); }, @@ -60,7 +63,7 @@ defaultUser = { ...teacherInfos, nickName: teacherInfos.fullName, - avatarUrl: teacherInfos.icon, + icon: teacherInfos.icon, userId: res.userId, role: 'Teacher', roleId: teacherRole.role.id @@ -68,13 +71,13 @@ } else if (WeChatInfo) { defaultUser = { nickName: WeChatInfo.name, - avatarUrl: WeChatInfo.icon, + icon: WeChatInfo.icon, userId: res.userId, } } else if (secretData) { defaultUser = { nickName: secretData.credential, - avatarUrl: "../../static/images/index/tab.png", + icon: "", userId: res.userId } } -- Gitblit v1.9.1