From 7fe624987aca3764e24d0ef8810b57926a15c86e Mon Sep 17 00:00:00 2001 From: jscyl13849007907 <13849007907@163.com> Date: Wed, 18 Jun 2025 11:17:08 +0800 Subject: [PATCH 01/10] no message --- api/job.js | 1 + root/detail/job.vue | 72 +++++++++++++++++++++++++++------------------------- static/css/base.scss | 3 +++ 3 files changed, 42 insertions(+), 34 deletions(-) diff --git a/api/job.js b/api/job.js index 057e27c..ede0c56 100644 --- a/api/job.js +++ b/api/job.js @@ -15,6 +15,7 @@ let jobInfo = { job_getPolicyShare: '/yishoudan/store/job/getPolicyByStoreJobId',// 获取共享职位政策 job_ai: '/yishoudan/common/structure/get', // 获取ai结果 yi_job_class_new: "/labels/getListByTypeAndIndustry", // 新职位要求接口(新) + job_get_cus: "/yishoudan/job/customer/support/getJobCustomerSupportIM", // 获取客服ID } export default jobInfo; \ No newline at end of file diff --git a/root/detail/job.vue b/root/detail/job.vue index a838f55..c770ca6 100644 --- a/root/detail/job.vue +++ b/root/detail/job.vue @@ -1234,41 +1234,45 @@ export default { }, goIm() { let that = this; - that.F.wyyxPost( - that.api.wyyx_create, - { - senderUserId: uni.getStorageSync("apply-uid"), - receiverUserId: that.jobDetail.customServiceUserId, - }, - (res) => { - uni.$UIKitStore.uiStore.selectConversation(res.conversationId); - that.F.wyyxPost( - that.api.wyyx_sendCard, - { - conversationType: 1, - senderUserId: uni.getStorageSync("apply-uid"), // 发送者id 即当前登录用户id - receiverUserId: that.jobDetail.customServiceUserId, // 接收方用户id - type: 100000, - jobDetail: { - title: that.jobDetail.jobName, - info: (that.jobDetail.addss ? that.jobDetail.addss + "丨" : "") + that.jobDetail.genderRestrict + "丨" + that.jobDetail.age, - label: that.jobDetail.jobRequestLabelNames.length > 0 ? that.jobDetail.jobRequestLabelNames : "", - salaryClassifyValue: that.jobDetail.priceStr, - serviceFee: that.jobDetail.fuWuFei, - monthPay: that.jobDetail.monthPay, - jobId: that.uid, + that.F.wyyxGet(that.api.job_get_cus + '?jobId=' + that.jobDetail.id,{},(cusData)=>{ + + + that.F.wyyxPost( + that.api.wyyx_create, + { + senderUserId: uni.getStorageSync("apply-uid"), + receiverUserId: cusData, + }, + (res) => { + uni.$UIKitStore.uiStore.selectConversation(res.conversationId); + that.F.wyyxPost( + that.api.wyyx_sendCard, + { + conversationType: 1, + senderUserId: uni.getStorageSync("apply-uid"), // 发送者id 即当前登录用户id + receiverUserId: cusData, // 接收方用户id + type: 100000, + jobDetail: { + title: that.jobDetail.jobName, + info: (that.jobDetail.addss ? that.jobDetail.addss + "丨" : "") + that.jobDetail.genderRestrict + "丨" + that.jobDetail.age, + label: that.jobDetail.jobRequestLabelNames.length > 0 ? that.jobDetail.jobRequestLabelNames : "", + salaryClassifyValue: that.jobDetail.priceStr, + serviceFee: that.jobDetail.fuWuFei, + monthPay: that.jobDetail.monthPay, + jobId: that.uid, + }, }, - }, - () => { - uni.navigateTo({ - url: "/root/NEUIKit/pages/Chat/index", - }); - }, - () => {} - ); - }, - () => {} - ); + () => { + uni.navigateTo({ + url: "/root/NEUIKit/pages/Chat/index", + }); + }, + () => {} + ); + }, + () => {} + ); + }) }, }, }; diff --git a/static/css/base.scss b/static/css/base.scss index 5e64947..8cc9ab5 100644 --- a/static/css/base.scss +++ b/static/css/base.scss @@ -832,3 +832,6 @@ $max-radius: 49; height: 40% !important; } // 职位排序样式结束 +.g_mb_50 { + margin-bottom: 50px; +} \ No newline at end of file From a0380a03c42ea1c9432cba7302ec9b65a5da9530 Mon Sep 17 00:00:00 2001 From: jscyl13849007907 <13849007907@163.com> Date: Wed, 18 Jun 2025 11:20:48 +0800 Subject: [PATCH 02/10] no message --- root/person/loginIndex.vue | 1 + utils/common.js | 1 + 2 files changed, 2 insertions(+) diff --git a/root/person/loginIndex.vue b/root/person/loginIndex.vue index b534ded..f6ff232 100644 --- a/root/person/loginIndex.vue +++ b/root/person/loginIndex.vue @@ -274,6 +274,7 @@ export default { uni.setStorageSync("apply-tel", $data.tel); // 单独存储 -- 手机号,方便修改 uni.setStorageSync("apply-token", $data.token); // 单独存储 -- token,方便获取 uni.setStorageSync("apply-agencyId", $data.user.agencyId); // 单独存储 -- 代理id,方便获取 + uni.setStorageSync("apply-uid", $data.user.id); // 单独存储 -- 用户名,方便修改 uni.setStorageSync("apply-supplierAccount", $data.supplierAccount); // 单独存储 -- 是否是发单号,方便获取 0.不是发单号 1.是发单号 uni.$emit("isGlogin", { uid: $data.user.id, diff --git a/utils/common.js b/utils/common.js index d640fa3..659cbfb 100644 --- a/utils/common.js +++ b/utils/common.js @@ -27,6 +27,7 @@ let data = { uni.removeStorageSync("apply-userinfo-copy"); uni.removeStorageSync("apply-agencyId"); uni.removeStorageSync("apply-supplierAccount"); + uni.removeStorageSync("apply-uid"); }, /* 分享给好友 */ From fcd2db904a3dc17933bb7bb5333473c32c5a6a87 Mon Sep 17 00:00:00 2001 From: jscyl13849007907 <13849007907@163.com> Date: Wed, 18 Jun 2025 13:48:41 +0800 Subject: [PATCH 03/10] no message --- pages/workBench/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/workBench/index.vue b/pages/workBench/index.vue index 2c8ae98..bec578d 100644 --- a/pages/workBench/index.vue +++ b/pages/workBench/index.vue @@ -321,8 +321,8 @@ export default { }); }, getNum() { - let that = this; - that.G.Get(that.api.bind_getApplyNum + "/" + 1, {}, (res) => { + let that = this; + that.G.Get(that.api.bind_getApplyNum, {}, (res) => { console.log("获取待处理数量:", res); if (res.approvePassHasNotRed > 0) { uni.setTabBarBadge({ From ebd02b420153c8e6ecf5fa8776ed757ee7318195 Mon Sep 17 00:00:00 2001 From: jscyl13849007907 <13849007907@163.com> Date: Wed, 18 Jun 2025 13:57:34 +0800 Subject: [PATCH 04/10] no message --- pages/NEUIKit/pages/Contact/contact-list/index.vue | 2 +- pages/message/index.vue | 24 +++++++++++----------- utils/common.js | 2 +- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/pages/NEUIKit/pages/Contact/contact-list/index.vue b/pages/NEUIKit/pages/Contact/contact-list/index.vue index 35f4817..1ea6804 100644 --- a/pages/NEUIKit/pages/Contact/contact-list/index.vue +++ b/pages/NEUIKit/pages/Contact/contact-list/index.vue @@ -48,7 +48,7 @@ {{ t("blacklistText") }} -
+
公司内部成员 diff --git a/pages/message/index.vue b/pages/message/index.vue index 610635a..8b2f5ec 100644 --- a/pages/message/index.vue +++ b/pages/message/index.vue @@ -4,17 +4,19 @@ - - - - - - - - - + + + + + + + { @@ -135,8 +136,7 @@ onShow(() => { }); } }, 1000); - current.value = globalData.value.messageTab; - messageId.value = globalData.value.messageId; + current.value = 0; } }); const goLogin = () => { diff --git a/utils/common.js b/utils/common.js index 659cbfb..0abe804 100644 --- a/utils/common.js +++ b/utils/common.js @@ -6,7 +6,7 @@ let data = { appid: 'wxa7b4864efbcff191', // localBaseImg: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/dailibaoming/APP/", // app图片前缀 cdnBaseImg: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/dailibaoming/", // cdn图片公共前缀路径 - v3BaseImg: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/dailibaoming/v3", // cdn图片公共前缀路径 + v3BaseImg: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/dailibaoming/v3/", // cdn图片公共前缀路径 loginText: '请登录', // #ifdef MP-WEIXIN version: uni.getAccountInfoSync().miniProgram.version || "1.0.16", From 33d2bb39e1aaf5d83bca59740fde3a39d4d1c1dd Mon Sep 17 00:00:00 2001 From: jscyl13849007907 <13849007907@163.com> Date: Thu, 19 Jun 2025 15:25:05 +0800 Subject: [PATCH 05/10] no message --- root/detail/job.vue | 160 +++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 159 insertions(+), 1 deletion(-) diff --git a/root/detail/job.vue b/root/detail/job.vue index c770ca6..9da833d 100644 --- a/root/detail/job.vue +++ b/root/detail/job.vue @@ -540,6 +540,7 @@
+
@@ -552,7 +553,27 @@ export default { }, onShareAppMessage() { this.attention = false; - return this.G.shareFun("/root/detail/job?id=" + this.jobDetail.id, "", this.jobDetail.jobName + " " + this.jobDetail.priceStr + " " + "好厂好工作 火热招聘中"); + // return this.G.shareFun("/root/detail/job?id=" + this.jobDetail.id, + // "", this.jobDetail.jobName + " " + this.jobDetail.priceStr + " " + "好厂好工作 火热招聘中"); + let that = this; + let path; + if (this.isMember) { + path = `/root/detail/job?id=${that.jobDetail.id}&from=home&userId=${that.userInfo.user.id}`; + } else { + path = `/root/detail/job?id=${that.jobDetail.id}&from=home`; + } + return { + promise: new Promise((resolve, reject) => { + that.getWXCanvas("", "setShare").then((res) => { + wx.hideLoading(); + resolve({ + title: " ", + imageUrl: res.tempFilePath, + path, + }); + }); + }), + }; }, mounted() { var obj = dateTimePicker.dateTimePicker(this.startYear, this.endYear, this.currentTime); @@ -1274,6 +1295,143 @@ export default { ); }) }, + // 微信端绘制 + getWXCanvas(sharelImg, type) { + const that = this; + return new Promise((resolve) => { + var mycenter = 0; //文字左右居中显示 + var myheight = 0; //文字高度 + const query = uni.createSelectorQuery().in(this); + query + .select("#canvasId") + .fields({ + node: true, + size: true, + }) + .exec((res) => { + console.log("uni 获取节点信息:", res); + const canvas = res[0].node; + const ctx = canvas.getContext("2d"); + that.setShareCover(ctx, canvas, mycenter).then((canvas) => { + uni.canvasToTempFilePath({ + canvas: canvas, + success(res) { + resolve(res); + }, + fail(res) { + uni.hideLoading(); + uni.showToast({ + title: res.errMsg, + icon: "error", + }); + }, + }); + }); + }); + }); + }, + /** + * 生成分享小程序的封面 + */ + setShareCover(ctx, canvas, mycenter) { + let that = this; + canvas.width = 750; + canvas.height = 600; + mycenter = canvas.width / 2; + let labelLeft = 0; + let baseLeft, logoSize, titleFontSize, mainFontSize, line1, line2, line3, line4, line5, line6, line7, line8; + baseLeft = 24; // 左侧基准线 + logoSize = 132; // logo尺寸 + mainFontSize = 36; // 内容字体大小 + titleFontSize = 56; // 标题字体大小 + line1 = 68; // 第一行距顶部距离 + line2 = 90; + line3 = 200; + line4 = 280; + line5 = 350; + line6 = 380; + line7 = 460; + + // 绘制基础白色背景 + console.log("that.jobDetail", that.jobDetail); + that.G.roundRect1(ctx, 0, 0, 750, 600, 0, "#fff"); + return new Promise(function (imgres) { + // 岗位标题 + that.G.fillTextLineBreak(ctx, that.jobDetail.jobName, baseLeft, line2, 800, 20, "#000", titleFontSize, "500", "left"); + // 月工资 + that.G.fillTextLineBreak(ctx, that.jobDetail.monthPay, 750 - ctx.measureText(that.jobDetail.monthPay).width + 20, line3 + 6, 400, 20, "#ff4400", titleFontSize, "400"); + // 时薪 + that.G.fillTextLineBreak(ctx, that.G.getSalaryClassifyValue(that.jobDetail.salaryClassify, that.jobDetail.salaryClassifyValue), baseLeft, line3, 400, 40, "#ff4400", titleFontSize + 6, "600", "left"); + + if (that.jobDetail.jobRequestLabelNames.length > 0) { + that.jobDetail.jobRequestLabelNames.forEach((item1, index) => { + if (index <= 3) { + that.G.fillTextLineBreak(ctx, item1, baseLeft + labelLeft + 80, line4 + 4, 400, 40, "#666", mainFontSize); // 标签字符 + // that.G.roundRect1(ctx, baseLeft + labelLeft, line4 - 38, ctx.measureText(item1).width + 24, 56, 8, "#00000012"); + labelLeft += ctx.measureText(item1).width + 32; + if (index == 3) { + labelLeft = 0; + } + } else if (index > 3 && index <= 6) { + // that.G.roundRect1(ctx, baseLeft + labelLeft, line5 - 38, ctx.measureText(item1).width + 24, 56, 8, "#00000012"); + that.G.fillTextLineBreak(ctx, item1, baseLeft + labelLeft + 80, line5 + 4, 400, 40, "#666", mainFontSize); // 标签字符 + labelLeft += ctx.measureText(item1).width + 32; + } + }); + } else if (that.jobDetail.jobSpecialLabelNames.length > 0) { + that.jobDetail.jobSpecialLabelNames.forEach((item1, index) => { + if (index <= 3) { + that.G.fillTextLineBreak(ctx, item1, baseLeft + labelLeft + 80, line4 + 4, 400, 40, "#666", mainFontSize); // 标签字符 + // that.G.roundRect1(ctx, baseLeft + labelLeft, line4 - 38, ctx.measureText(item1).width + 24, 56, 8, "#00000012"); + labelLeft += ctx.measureText(item1).width + 32; + if (index == 3) { + labelLeft = 0; + } + } else if (index > 3 && index <= 6) { + // that.G.roundRect1(ctx, baseLeft + labelLeft, line5 - 38, ctx.measureText(item1).width + 24, 56, 8, "#00000012"); + that.G.fillTextLineBreak(ctx, item1, baseLeft + labelLeft + 80, line5 + 4, 400, 40, "#666", mainFontSize); // 标签字符 + labelLeft += ctx.measureText(item1).width + 32; + } + }); + } + // 根据标签数量调整宣传标语位置 + that.G.roundRect1(ctx, mycenter - 712 / 2, line6, 712, 60, 4, "#fff6e8"); // 宣传标语背景 + // 绘制立即咨询 + // 根据标签数量调整立即咨询背景位置 + that.G.roundRect1(ctx, mycenter - 712 / 2, line7, 712, 100, 4, "#3b80fa"); // 立即咨询背景 + // 根据标签数量调整立即咨询位置 + that.G.fillTextLineBreak(ctx, "立即咨询", mycenter - 24 - ctx.measureText("立即咨询").width / 2 + 100, line7 + 65, 300, 120, "#fff", titleFontSize, "500"); // 立即咨询 + // 绘制职位logo + uni.downloadFile({ + url: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/pugongying/goxj2-qpwbo.png", + success(res) { + console.log("duihao", res); + const img1 = canvas.createImage(); + img1.src = res.tempFilePath; + console.log("img info img", img1); + img1.onload = (info) => { + console.log("img info", info); + let safeMarkPosition = 44; + // 宣传标语 + ["安全保障", "工资保障", "补贴保障"].forEach((item1, index) => { + // 根据标签数量调整安全标识位置 + that.G.fillTextLineBreak(ctx, item1, baseLeft + safeMarkPosition + 70, line6 + 40, 100, 32, "#fca025"); + that.G.roundRect(ctx, img1, baseLeft + safeMarkPosition - 36, line6 + 12, 32, 32, 12); + safeMarkPosition += 130 + ctx.measureText(item1).width; + }); + setTimeout(() => { + imgres(canvas); + }, 200); + }; + }, + fail(err) { + console.log("downloadFile err", err); + }, + }); + }).catch((err) => { + console.log("all err", err); + }); + }, }, }; From 71609aecb8525bef6e30a8220439c0f249804bf4 Mon Sep 17 00:00:00 2001 From: jscyl13849007907 <13849007907@163.com> Date: Thu, 19 Jun 2025 15:49:58 +0800 Subject: [PATCH 06/10] no message --- root/detail/job.vue | 47 +++++++++++++++++++++++------------------------ 1 file changed, 23 insertions(+), 24 deletions(-) diff --git a/root/detail/job.vue b/root/detail/job.vue index 9da833d..34fcf1d 100644 --- a/root/detail/job.vue +++ b/root/detail/job.vue @@ -1366,34 +1366,33 @@ export default { if (that.jobDetail.jobRequestLabelNames.length > 0) { that.jobDetail.jobRequestLabelNames.forEach((item1, index) => { if (index <= 3) { - that.G.fillTextLineBreak(ctx, item1, baseLeft + labelLeft + 80, line4 + 4, 400, 40, "#666", mainFontSize); // 标签字符 - // that.G.roundRect1(ctx, baseLeft + labelLeft, line4 - 38, ctx.measureText(item1).width + 24, 56, 8, "#00000012"); - labelLeft += ctx.measureText(item1).width + 32; - if (index == 3) { - labelLeft = 0; - } - } else if (index > 3 && index <= 6) { - // that.G.roundRect1(ctx, baseLeft + labelLeft, line5 - 38, ctx.measureText(item1).width + 24, 56, 8, "#00000012"); - that.G.fillTextLineBreak(ctx, item1, baseLeft + labelLeft + 80, line5 + 4, 400, 40, "#666", mainFontSize); // 标签字符 - labelLeft += ctx.measureText(item1).width + 32; - } - }); - } else if (that.jobDetail.jobSpecialLabelNames.length > 0) { - that.jobDetail.jobSpecialLabelNames.forEach((item1, index) => { - if (index <= 3) { - that.G.fillTextLineBreak(ctx, item1, baseLeft + labelLeft + 80, line4 + 4, 400, 40, "#666", mainFontSize); // 标签字符 - // that.G.roundRect1(ctx, baseLeft + labelLeft, line4 - 38, ctx.measureText(item1).width + 24, 56, 8, "#00000012"); - labelLeft += ctx.measureText(item1).width + 32; - if (index == 3) { - labelLeft = 0; - } + that.G.fillTextLineBreak(ctx, item1, baseLeft + labelLeft + 80, line4 + 4, 500, 40, "#666", mainFontSize); + labelLeft += ctx.measureText(item1).width + 40; + if (index == 3) { + labelLeft = 0; + } } else if (index > 3 && index <= 6) { - // that.G.roundRect1(ctx, baseLeft + labelLeft, line5 - 38, ctx.measureText(item1).width + 24, 56, 8, "#00000012"); - that.G.fillTextLineBreak(ctx, item1, baseLeft + labelLeft + 80, line5 + 4, 400, 40, "#666", mainFontSize); // 标签字符 - labelLeft += ctx.measureText(item1).width + 32; + that.G.fillTextLineBreak(ctx, item1, baseLeft + labelLeft + 80, line5 + 4, 500, 40, "#666", mainFontSize); + labelLeft += ctx.measureText(item1).width + 40; } }); } + // else if (that.jobDetail.jobSpecialLabelNames.length > 0) { + // that.jobDetail.jobSpecialLabelNames.forEach((item1, index) => { + // // if (index <= 3) { + // that.G.fillTextLineBreak(ctx, item1, baseLeft + labelLeft + 80, line4 + 4, 400, 40, "#666", mainFontSize); // 标签字符 + // // that.G.roundRect1(ctx, baseLeft + labelLeft, line4 - 38, ctx.measureText(item1).width + 24, 56, 8, "#00000012"); + // labelLeft += ctx.measureText(item1).width + 20; + // // if (index == 3) { + // // labelLeft = 0; + // // } + // // } else if (index > 3 && index <= 6) { + // // // that.G.roundRect1(ctx, baseLeft + labelLeft, line5 - 38, ctx.measureText(item1).width + 24, 56, 8, "#00000012"); + // // that.G.fillTextLineBreak(ctx, item1, baseLeft + labelLeft + 80, line5 + 4, 400, 40, "#666", mainFontSize); // 标签字符 + // // labelLeft += ctx.measureText(item1).width + 32; + // // } + // }); + // } // 根据标签数量调整宣传标语位置 that.G.roundRect1(ctx, mycenter - 712 / 2, line6, 712, 60, 4, "#fff6e8"); // 宣传标语背景 // 绘制立即咨询 From 2ce4c31cd4b689fa88970018736eee11914f7772 Mon Sep 17 00:00:00 2001 From: jscyl13849007907 <13849007907@163.com> Date: Thu, 19 Jun 2025 16:01:04 +0800 Subject: [PATCH 07/10] no message --- root/detail/job.vue | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/root/detail/job.vue b/root/detail/job.vue index 34fcf1d..8e15eb6 100644 --- a/root/detail/job.vue +++ b/root/detail/job.vue @@ -721,6 +721,7 @@ export default { let num1 = 1; this.templateArr.forEach((item) => { let num = 1; + item.children = []; item.childrenType.forEach((innerItem) => { item.children.push({ key: innerItem, @@ -1344,13 +1345,15 @@ export default { logoSize = 132; // logo尺寸 mainFontSize = 36; // 内容字体大小 titleFontSize = 56; // 标题字体大小 - line1 = 68; // 第一行距顶部距离 - line2 = 90; - line3 = 200; - line4 = 280; - line5 = 350; - line6 = 380; - line7 = 460; + let dis = 44, + labelHeight = 44; + line1 = 0; // 第一行距顶部距离 + line2 = 90 - dis; + line3 = 200 - dis; + line4 = 280 - dis; + line5 = 350 - dis - labelHeight; + line6 = 380 - dis - labelHeight - 10; + line7 = 460 - dis - labelHeight; // 绘制基础白色背景 console.log("that.jobDetail", that.jobDetail); From 17ec0672d9ae3a5206187d5df5c64862c95a801f Mon Sep 17 00:00:00 2001 From: jscyl13849007907 <13849007907@163.com> Date: Thu, 19 Jun 2025 16:09:09 +0800 Subject: [PATCH 08/10] no message --- root/detail/job.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/root/detail/job.vue b/root/detail/job.vue index 8e15eb6..4ef5b54 100644 --- a/root/detail/job.vue +++ b/root/detail/job.vue @@ -1345,14 +1345,14 @@ export default { logoSize = 132; // logo尺寸 mainFontSize = 36; // 内容字体大小 titleFontSize = 56; // 标题字体大小 - let dis = 44, - labelHeight = 44; + let dis = 0, + labelHeight = 0; line1 = 0; // 第一行距顶部距离 line2 = 90 - dis; line3 = 200 - dis; line4 = 280 - dis; line5 = 350 - dis - labelHeight; - line6 = 380 - dis - labelHeight - 10; + line6 = 380 - dis - labelHeight - 0; line7 = 460 - dis - labelHeight; // 绘制基础白色背景 From 07691492178b97a5129243697c0d1078b24f56ac Mon Sep 17 00:00:00 2001 From: jscyl13849007907 <13849007907@163.com> Date: Thu, 19 Jun 2025 16:30:23 +0800 Subject: [PATCH 09/10] no message --- root/detail/job.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/detail/job.vue b/root/detail/job.vue index 4ef5b54..c122adf 100644 --- a/root/detail/job.vue +++ b/root/detail/job.vue @@ -1400,7 +1400,7 @@ export default { that.G.roundRect1(ctx, mycenter - 712 / 2, line6, 712, 60, 4, "#fff6e8"); // 宣传标语背景 // 绘制立即咨询 // 根据标签数量调整立即咨询背景位置 - that.G.roundRect1(ctx, mycenter - 712 / 2, line7, 712, 100, 4, "#3b80fa"); // 立即咨询背景 + that.G.roundRect1(ctx, mycenter - 712 / 2, line7, 712, 100, 4, "#00b666"); // 立即咨询背景 // 根据标签数量调整立即咨询位置 that.G.fillTextLineBreak(ctx, "立即咨询", mycenter - 24 - ctx.measureText("立即咨询").width / 2 + 100, line7 + 65, 300, 120, "#fff", titleFontSize, "500"); // 立即咨询 // 绘制职位logo 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 10/10] 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 @@ -