登录查询代理信息

cyl/master-0804
wangxia 4 months ago
parent 80c161ec01
commit 40c8881f86

@ -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);
});
}
},
//

Loading…
Cancel
Save