diff --git a/pages/login/index.vue b/pages/login/index.vue
index a0409b1..6402ec5 100644
--- a/pages/login/index.vue
+++ b/pages/login/index.vue
@@ -262,29 +262,31 @@ export default {
uni.setStorageSync("apply-token", $data.token); // 单独存储 -- token,方便获取
uni.setStorageSync("apply-agencyId", $data.user.agencyId); // 单独存储 -- 代理id,方便获取
uni.setStorageSync("apply-supplierAccount", $data.supplierAccount); // 单独存储 -- 是否是发单号,方便获取 0.不是发单号 1.是发单号
- that.G.Get(that.api.login_agencyInfo, {}, (aRes) => {
- console.log("获取团队信息:", aRes);
- uni.setStorageSync("IS_CREATOR", aRes.agency.userId == $data.user.id || $data.admin == true ? 1 : 2); // 1是创建者 2是普通成员
- if (that.fromPageType == "detail") {
- uni.navigateBack({
- delta: 1,
- });
- return;
- }
- // 登录跳转到首页的判断
- uni.setStorageSync("SHOW_INVITE", 1);
- console.log("that.path", that.path);
- if (!that.path) {
- uni.switchTab({
- url: "/pages/home/index",
- });
- } else {
- // 固定跳首页
- uni.reLaunch({
- url: that.path,
- });
- }
- });
+ if (!that.path) {
+ uni.switchTab({
+ url: "/pages/home/index",
+ });
+ } else if (that.fromPageType == "detail") {
+ uni.navigateBack({
+ delta: 1,
+ });
+ return;
+ } else {
+ // 固定跳首页
+ uni.reLaunch({
+ 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是普通成员
+
+ // 登录跳转到首页的判断
+ uni.setStorageSync("SHOW_INVITE", 1);
+ });
+ }
},
// 发送验证码
diff --git a/pages/workBench/index.vue b/pages/workBench/index.vue
index 52719a8..614e5d9 100644
--- a/pages/workBench/index.vue
+++ b/pages/workBench/index.vue
@@ -11,7 +11,8 @@
{{ upNum }}
关注发单号
-
+
+
diff --git a/root/bind/myMain.vue b/root/bind/myMain.vue
index 58d36c6..9c87868 100644
--- a/root/bind/myMain.vue
+++ b/root/bind/myMain.vue
@@ -2,7 +2,7 @@
邀请粉丝(代理)关注我的发单号
-
+