diff --git a/root/person/loginIndex.vue b/root/person/loginIndex.vue index 7a10a13..eaeb2f3 100644 --- a/root/person/loginIndex.vue +++ b/root/person/loginIndex.vue @@ -319,16 +319,16 @@ export default { url: that.path, }); } - // if ($data.agencyStatus == 1) { - that.G.Get(that.api.login_agencyInfo, {}, (aRes) => { - console.log("获取团队信息:", aRes); - uni.setStorageSync("agencyInfo", aRes.agency); // 1是创建者 2是普通成员 - uni.setStorageSync("IS_CREATOR", aRes.agency.userId == $data.user.id || $data.admin == true ? 1 : 2); // 1是创建者 2是普通成员 + if ($data.agencyStatus == 1) { + that.G.Get(that.api.login_agencyInfo, {}, (aRes) => { + console.log("获取团队信息:", aRes); + uni.setStorageSync("agencyInfo", aRes.agency); // 1是创建者 2是普通成员 + uni.setStorageSync("IS_CREATOR", aRes.agency.userId == $data.user.id || $data.admin == true ? 1 : 2); // 1是创建者 2是普通成员 - // 登录跳转到首页的判断 - uni.setStorageSync("SHOW_INVITE", 1); - }); - // } + // 登录跳转到首页的判断 + uni.setStorageSync("SHOW_INVITE", 1); + }); + } }, // 发送验证码