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] 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