| | |
| | | icon: "error", |
| | | duration: 2000 |
| | | }) |
| | | this.setData({ |
| | | loading: false |
| | | }) |
| | | } |
| | | }); |
| | | }, |
| | |
| | | defaultUser = { |
| | | ...teacherInfos, |
| | | nickName: teacherInfos.fullName, |
| | | avatarUrl: teacherInfos.icon, |
| | | icon: teacherInfos.icon, |
| | | userId: res.userId, |
| | | role: 'Teacher', |
| | | roleId: teacherRole.role.id |
| | |
| | | } 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 |
| | | } |
| | | } |