litian
2024-04-02 a9abe435bdc23bda340c84f45deb363eccf907a7
pages/personalCenter/index.js
@@ -156,7 +156,7 @@
      })
    } else {
      this.setData({
        currAuthStep: 1,
        currAuthStep: 3,
      });
      this.getUserInfo()
    }
@@ -186,7 +186,7 @@
          this.setData({
            userTypeActive: JSON.parse(userTypeData.data).userType,
          });
          type = userTypeList.find((item) => item.value === this.data.userTypeActive)?.lable;
          type = this.data.userTypeList.find((item) => item.value === this.data.userTypeActive)?.lable;
        } else {
          type = ''
        }
@@ -224,10 +224,11 @@
          });
        } else if (secretData) {
          defaultUser = {
            nickName: secretData.credential,
            icon: "",
            nickName: nickNameData && JSON.parse(nickNameData.data).nickName ? JSON.parse(nickNameData.data).nickName : secretData.credential,
            icon: nickNameData && JSON.parse(nickNameData.data).icon != "" ? JSON.parse(nickNameData.data).icon : "",
            userId: res.userId,
            role: "Student"
            role: "Student",
            userType: type,
          }
          this.setData({
            currAuthStep: 3,