From bfdd1a936731cf9b5f0d2c78d363cbb0ec93d941 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期三, 04 九月 2024 09:43:52 +0800 Subject: [PATCH] 树结构排序优化 --- 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