| | |
| | | { |
| | | title: '出书申请', |
| | | icon: '/static/images/personal/chushu.png', |
| | | url: '/packagePersonal/pages/publishBooks/index', |
| | | url: '', |
| | | type: 'publishBooks', |
| | | } |
| | | ]; |
| | |
| | | let teacherRole = res.roleLinks.find((item) => item.role.refCode == 'teacher') |
| | | let teacherInfos = res.infoList.find((item) => item.type == 'teacherInfo') |
| | | let WeChatInfo = res.infoList.find((item) => item.type === "WeChat"); |
| | | let secretData = res.secretList.find(i => i.type == 'LoginNameAndPassword') |
| | | if (teacherRole && teacherInfos) { |
| | | defaultUser = { |
| | | ...teacherInfos, |
| | |
| | | this.setData({ |
| | | currAuthStep: 3, |
| | | }); |
| | | } else if (secretData) { |
| | | defaultUser = { |
| | | nickName: secretData.credential, |
| | | icon: "", |
| | | userId: res.userId, |
| | | role: "Student" |
| | | } |
| | | this.setData({ |
| | | currAuthStep: 3, |
| | | }); |
| | | } |
| | | this.setData({ |
| | | userInfo: defaultUser |