From bf4999c17773cd11f69249e9a2e709e3431cdbed Mon Sep 17 00:00:00 2001 From: jscyl13849007907 <13849007907@163.com> Date: Thu, 19 Jun 2025 17:06:01 +0800 Subject: [PATCH] no message --- components/list/apply.vue | 2 +- pages/message/index.vue | 15 +- pages/person/index.vue | 250 ++++++++++++++- pages/workBench/index.vue | 752 +++++++++++++++++++++++++++------------------- 4 files changed, 697 insertions(+), 322 deletions(-) diff --git a/components/list/apply.vue b/components/list/apply.vue index 1e4a6ac..ae48f9c 100644 --- a/components/list/apply.vue +++ b/components/list/apply.vue @@ -2,7 +2,7 @@ - + diff --git a/pages/message/index.vue b/pages/message/index.vue index 8b2f5ec..2db45ac 100644 --- a/pages/message/index.vue +++ b/pages/message/index.vue @@ -1,6 +1,6 @@ @@ -147,13 +171,6 @@ export default { onReady() { this.G.setNavStyle(); }, - // onShareAppMessage() { - // return { - // title: " ", - // imageUrl: "../../static/image/fdzsshare.png", - // }; - // // return this.G.shareFun(); - // }, watch: { showTeamToggle(val) { if (val) { @@ -239,6 +256,94 @@ export default { waitNum_ups: 0, itemList: [], isCreator: false, + + showService: false, + readed: true, + isLogin: false, + authInfo: { realNameAuth: 0 }, // 认证信息 + userNum: {}, + map: { num10: "0", num20: "0", num25: "0", num30: "0", num40: "0", num999: "0", user999: "0", user40: "0", user48: "0", user50: "0", agencyData: {} }, + orderDataList: [ + { + name: "在招", + num: "-", + path: "/root/merchantManagement/orderManagement?recruitment=1", + }, + { + name: "总职位", + num: "-", + path: "/root/merchantManagement/orderManagement", + }, + { + name: "互关", + num: "-", + path: "", + }, + { + name: "关注", + num: "-", + path: "", + }, + { + name: "粉丝", + num: "-", + path: "", + }, + ], + todayDataList: [ + { + name: "报名", + num: "-", + path: "/root/person/todayData", + }, + { + name: "到面", + num: "-", + path: "/root/person/todayData", + }, + { + name: "通过", + num: "-", + path: "/root/person/todayData", + }, + { + name: "入职", + num: "-", + path: "/root/person/todayData", + }, + { + name: "在职", + num: "-", + path: "/root/person/todayData", + }, + ], + billDataList: [ + { + name: "审核中", + num: 0, + path: "/root/person/applyIndex?status=1", + }, + { + name: "待接待", + num: 0, + path: "/root/person/applyIndex?status=2", + }, + { + name: "待面试", + num: 0, + path: "/root/person/applyIndex?status=3", + }, + { + name: "待入职", + num: 0, + path: "/root/person/applyIndex?status=4", + }, + { + name: "在职中", + num: 0, + path: "/root/person/applyIndex?status=5", + }, + ], }; }, onShow() { @@ -247,6 +352,16 @@ export default { 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) { + this.getAuthInfo(); + this.getData(); + this.getNum(); + + this.getCompanyInfo(); + } + } else { that.waitNum_ups = 0; that.pageSpeed = 1; @@ -569,6 +684,119 @@ export default { let that = this; that.showTeamToggle = true; }, + + getAuthInfo() { + let that = this; + console.log("this.agencyInfo.id", this.agencyInfo); + this.G.Get(this.api.get_supplier_info, { agencyId: this.agencyInfo.id || "" }, (res) => { + console.log("resresresresresres", res); + that.authInfo = res; + }); + }, + getData() { + let that = this; + this.G.Get(this.api.user_dataValue, {}, (res) => { + console.log("res", res); + if (res) { + that.map = res; + } + that.todayDataList = [ + { + name: "报名", + num: that.map.agencyData.signUps || 0, + path: "/root/person/todayData", + }, + { + name: "到面", + num: that.map.agencyData.arrived || 0, + path: "/root/person/todayData", + }, + { + name: "通过", + num: that.map.agencyData.passed || 0, + path: "/root/person/todayData", + }, + { + name: "入职", + num: that.map.agencyData.entry || 0, + path: "/root/person/todayData", + }, + { + name: "在职", + num: that.map.agencyData.obJob || 0, + path: "/root/person/todayData", + }, + ]; + that.billDataList = [ + { + name: "审核中", + num: that.map.classify2num.num10 || 0, + path: "/root/person/applyIndex?status=1", + }, + { + name: "待接待", + num: that.map.classify2num.num20 || 0, + path: "/root/person/applyIndex?status=2", + }, + { + name: "待面试", + num: that.map.classify2num.num25 || 0, + path: "/root/person/applyIndex?status=3", + }, + { + name: "待入职", + num: that.map.classify2num.num30 || 0, + path: "/root/person/applyIndex?status=4", + }, + { + name: "在职中", + num: that.map.classify2num.num40 || 0, + path: "/root/person/applyIndex?status=5", + }, + ]; + }); + }, + getCompanyInfo() { + let that = this; + that.G.Get( + that.api.bind_enterpriseDetail + "/" + uni.getStorageSync("apply-agencyId"), + { + agencyId: uni.getStorageSync("apply-agencyId"), + type: 1, + }, + (res) => { + console.log("item.", res); + that.userNum = res; + } + ); + }, + getNum() { + let that = this; + that.G.Get(that.api.bind_getApplyNum, {}, (res) => { + console.log("获取待处理数量:", res); + if (res.approvePassHasNotRed > 0) { + uni.setTabBarBadge({ + index: 1, + text: String(res.approvePassHasNotRed), + }); + that.readed = false; + } else { + uni.removeTabBarBadge({ + index: 1, + }); + that.readed = true; + } + }); + }, + goOrder(){ + uni.switchTab({ + url: '/pages/workBench/index', + success: (res) => {}, + fail: (res) => {}, + complete: (res) => {}, + }) + } + }, }; diff --git a/pages/workBench/index.vue b/pages/workBench/index.vue index bec578d..d78411e 100644 --- a/pages/workBench/index.vue +++ b/pages/workBench/index.vue @@ -1,364 +1,500 @@ -