From 26f293c79c561a77d43c1c50741f955b7b7c8ad9 Mon Sep 17 00:00:00 2001
From: wangxia <779219182@qq.com>
Date: Tue, 5 Aug 2025 18:45:20 +0800
Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E6=B3=A8=E6=97=B6=E5=8A=A0=E5=85=A5?=
=?UTF-8?q?=E5=9B=A2=E9=98=9F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/bind.js | 2 +
main.js | 6 +-
pages/person/index.vue | 138 ++++++++++++------------
root/detail/userShare.vue | 259 +++++++++++++++++++++++++++++++--------------
root/person/teamManage.vue | 6 +-
5 files changed, 262 insertions(+), 149 deletions(-)
diff --git a/api/bind.js b/api/bind.js
index 5ee9576..5142294 100644
--- a/api/bind.js
+++ b/api/bind.js
@@ -7,6 +7,8 @@ let bindInfo = {
bind_recordDetail:"/assistant/circle/agency/apply/info",// 申请记录当前行记录详情
bind_recordSubmit:"/assistant/circle/agency/apply/agree",// 通过申请提交事件
bind_enterpriseDetail:"/assistant/circle/agency/detail",// 企业详情
+ bind_getAgencyByAdminTel:"/yishoudan/agency/getAgencyByAdminTel",// 根据团队创建人手机号获取团队信息
+
bind_getWaitNum:"/assistant/circle/agency/countPending",// 获取统计处理中的数量
bind_getApplyNum:"/assistant/circle/agency/countHasNotReadNum",// 获取通过未读的关注数
bind_isSee:"/assistant/circle/agency/himSee",// 让不让他看
diff --git a/main.js b/main.js
index 9858219..71c4412 100644
--- a/main.js
+++ b/main.js
@@ -74,6 +74,8 @@ export function createApp () {
uni.setStorageSync("SHOW_INVITE", 1);
resolve(res)
});
+ } else {
+ resolve(res)
}
},
@@ -94,7 +96,7 @@ export function createApp () {
uni.setStorageSync('apply-userinfo-copy', JSON.stringify(res));
uni.setStorageSync("apply-agencyId", res.user.agencyId); // 单独存储 -- 代理id,方便获取
uni.setStorageSync("apply-supplierAccount", res.supplierAccount); // 单独存储 -- 是否是发单号,方便获取 0.不是发单号 1.是发单号
- if (res.agencyStatus == 1) {
+ if (res.agencyStatus == 1) {
G.Get(apiInfo.login_agencyInfo, {}, (aRes) => {
uni.setStorageSync("agencyInfo", aRes.agency); // 1是创建者 2是普通成员
uni.setStorageSync("IS_CREATOR", aRes.agency.userId == res.user.id || res.admin == true ? 1 : 2); // 1是创建者 2是普通成员
@@ -103,6 +105,8 @@ export function createApp () {
uni.setStorageSync("SHOW_INVITE", 1);
resolve(res)
});
+ } else {
+ resolve(res)
}
})
})
diff --git a/pages/person/index.vue b/pages/person/index.vue
index efec115..7384698 100644
--- a/pages/person/index.vue
+++ b/pages/person/index.vue
@@ -330,18 +330,20 @@ export default {
that.isCreator = uni.getStorageSync("IS_CREATOR") == 1 ? true : false;
that.agencyInfo = uni.getStorageSync("agencyInfo");
if (uni.getStorageSync("apply-token")) {
- that.setUserInfo();
- // that.userInfo = uni.getStorageSync("apply-userinfo");
- that.isLogin = uni.getStorageSync("apply-token") ? true : false;
- if (that.isLogin) {
+ that.isLogin = true;
+ console.log(56456567675);
+ this.G.checkToken().then(() => {
+ console.log(123123123123123);
+ that.setUserInfo();
this.getAuthInfo();
this.getData();
this.getNum();
- if(uni.getStorageSync("apply-userinfo").agencyStatus == 1){
- this.getCompanyInfo();
+ if (uni.getStorageSync("apply-userinfo").agencyStatus == 1) {
+ this.getCompanyInfo();
+ }
+ });
- }
- }
+ // that.userInfo = uni.getStorageSync("apply-userinfo");
} else {
that.waitNum_ups = 0;
that.pageSpeed = 1;
@@ -674,67 +676,67 @@ export default {
console.log("res", res);
if (res) {
that.map = res;
+ let resdata = res.classify1num;
+ that.todayDataList = [
+ {
+ name: "报名",
+ num: resdata.signUps || 0,
+ path: "/root/person/todayData",
+ },
+ {
+ name: "到面",
+ num: resdata.arrived || 0,
+ path: "/root/person/todayData",
+ },
+ {
+ name: "通过",
+ num: resdata.passed || 0,
+ path: "/root/person/todayData",
+ },
+ {
+ name: "入职",
+ num: resdata.entry || 0,
+ path: "/root/person/todayData",
+ },
+ {
+ name: "在职",
+ num: resdata.obJob || 0,
+ path: "/root/person/todayData",
+ },
+ ];
+ that.billDataList = [
+ {
+ name: "审核中",
+ num: that.map.classify1num.num10 || 0,
+ type: 1,
+ path: "/root/person/applyIndex?status=1",
+ },
+ {
+ name: "待接待",
+ num: that.map.classify1num.num20 || 0,
+ type: 2,
+ path: "/root/person/applyIndex?status=2",
+ },
+ {
+ name: "待面试",
+ num: that.map.classify1num.num25 || 0,
+ type: 3,
+ path: "/root/person/applyIndex?status=3",
+ },
+ {
+ name: "待入职",
+ num: that.map.classify1num.num30 || 0,
+ type: 4,
+ path: "/root/person/applyIndex?status=4",
+ },
+ {
+ name: "在职中",
+ num: that.map.classify1num.num40 || 0,
+ type: 5,
+ path: "/root/person/applyIndex?status=5",
+ },
+ ];
}
- let resdata = res.classify1num;
- that.todayDataList = [
- {
- name: "报名",
- num: resdata.signUps || 0,
- path: "/root/person/todayData",
- },
- {
- name: "到面",
- num: resdata.arrived || 0,
- path: "/root/person/todayData",
- },
- {
- name: "通过",
- num: resdata.passed || 0,
- path: "/root/person/todayData",
- },
- {
- name: "入职",
- num: resdata.entry || 0,
- path: "/root/person/todayData",
- },
- {
- name: "在职",
- num: resdata.obJob || 0,
- path: "/root/person/todayData",
- },
- ];
- that.billDataList = [
- {
- name: "审核中",
- num: that.map.classify1num.num10 || 0,
- type: 1,
- path: "/root/person/applyIndex?status=1",
- },
- {
- name: "待接待",
- num: that.map.classify1num.num20 || 0,
- type: 2,
- path: "/root/person/applyIndex?status=2",
- },
- {
- name: "待面试",
- num: that.map.classify1num.num25 || 0,
- type: 3,
- path: "/root/person/applyIndex?status=3",
- },
- {
- name: "待入职",
- num: that.map.classify1num.num30 || 0,
- type: 4,
- path: "/root/person/applyIndex?status=4",
- },
- {
- name: "在职中",
- num: that.map.classify1num.num40 || 0,
- type: 5,
- path: "/root/person/applyIndex?status=5",
- },
- ];
}
);
},
diff --git a/root/detail/userShare.vue b/root/detail/userShare.vue
index 743bdbd..91f001d 100644
--- a/root/detail/userShare.vue
+++ b/root/detail/userShare.vue
@@ -1,37 +1,22 @@