From 08c2e4160393e7ec4322c0f6f18a04d55996055c Mon Sep 17 00:00:00 2001 From: jscyl13849007907 <13849007907@163.com> Date: Fri, 19 Sep 2025 18:41:22 +0800 Subject: [PATCH] 1 --- root/detail/job.vue | 66 +++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 46 insertions(+), 20 deletions(-) diff --git a/root/detail/job.vue b/root/detail/job.vue index 5a9430d..2b54ac6 100644 --- a/root/detail/job.vue +++ b/root/detail/job.vue @@ -1381,7 +1381,7 @@ export default { if (that.goImLoading) { return false; } - + that.goImLoading = true; that.F.wyyxGet(that.api.job_get_cus + "?jobId=" + that.jobDetail.id, {}, (cusData) => { that.F.wyyxPost( @@ -1403,26 +1403,52 @@ export default { } }); that.jobDetail.info = newList.join("丨"); - let sendParams = { - conversationType: 1, - senderAccid: uni.getStorageSync("im-accid"), - receiverAccid: cusData.accid, - type: 100000, - jobDetail: { - title: that.jobDetail.jobName, - info: that.jobDetail.info, - label: that.jobDetail.jobRequestLabelNames.length > 0 ? that.jobDetail.jobRequestLabelNames : [], - salaryClassifyValue: that.jobDetail.priceStr, - serviceFee: that.showPrice ? that.jobDetail.serverPrice : "", - monthPay: that.jobDetail.monthPay, - jobId: that.uid, + that.F.wyyxPost( + that.api.wyyx_sendCard, { + conversationType: 1, + // senderUserId: uni.getStorageSync("apply-uid"), // 发送者id 即当前登录用户id + // receiverUserId: cusData, // 接收方用户id + senderAccid: uni.getStorageSync("im-accid"), + receiverAccid: cusData.accid, + type: 100000, + jobDetail: { + title: that.jobDetail.jobName, + info: that.jobDetail.info, + 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.setStorageSync("im_sendParams", JSON.stringify(sendParams)); - uni.navigateTo({ - url: "/root/NEUIKit/pages/Chat/index", - }); - that.goImLoading = false; + () => { + uni.navigateTo({ + url: "/root/NEUIKit/pages/Chat/index", + }); + }, + () => {} + ); + // let sendParams = { + // conversationType: 1, + // senderAccid: uni.getStorageSync("im-accid"), + // receiverAccid: cusData.accid, + // type: 100000, + // jobDetail: { + // title: that.jobDetail.jobName, + // info: that.jobDetail.info, + // label: that.jobDetail.jobRequestLabelNames.length > 0 ? that.jobDetail.jobRequestLabelNames : [], + // salaryClassifyValue: that.jobDetail.priceStr, + // serviceFee: that.showPrice ? that.jobDetail.serverPrice : "", + // monthPay: that.jobDetail.monthPay, + // jobId: that.uid, + // }, + // }; + // uni.setStorageSync("im_sendParams", JSON.stringify(sendParams)); + // uni.navigateTo({ + // url: "/root/NEUIKit/pages/Chat/index", + // }); + // that.goImLoading = false; }, () => {} );