From 4a9955330070cf8abd78d95aaa2067d9a06a88c3 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期二, 07 五月 2024 10:05:59 +0800 Subject: [PATCH] 各页面bug修改 --- pages/testLogin/index.js | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/pages/testLogin/index.js b/pages/testLogin/index.js index 8dc1a28..01c8a86 100644 --- a/pages/testLogin/index.js +++ b/pages/testLogin/index.js @@ -7,7 +7,7 @@ * 椤甸潰鐨勫垵濮嬫暟鎹� */ data: { - textName: "18892081234", + textName: "15111111116", textPassword: "xA123456", loading: false, userInfo: { @@ -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