From e9891a2e7c8d9de2b1fff67f4cbbfa150e631ee6 Mon Sep 17 00:00:00 2001 From: jscyl13849007907 <13849007907@163.com> Date: Fri, 29 Aug 2025 18:16:02 +0800 Subject: [PATCH 1/5] no message --- root/NEUIKit/pages/Chat/message/message-input.vue | 55 ++++++++++++++++++++++- root/detail/job.vue | 45 ++++++++----------- 2 files changed, 72 insertions(+), 28 deletions(-) diff --git a/root/NEUIKit/pages/Chat/message/message-input.vue b/root/NEUIKit/pages/Chat/message/message-input.vue index 2292e9e..dee120f 100644 --- a/root/NEUIKit/pages/Chat/message/message-input.vue +++ b/root/NEUIKit/pages/Chat/message/message-input.vue @@ -1,6 +1,6 @@ @@ -755,8 +805,9 @@ let uninstallTeamWatch = () => {}; const msgHeight = ref(0); const screenHeight = ref(0); screenHeight.value = uni.getSystemInfoSync().windowHeight; - +const chooseData = ref({}); onMounted(() => { + chooseData.value = JSON.parse(uni.getStorageSync("im_sendParams")).jobDetail; uninstallTeamWatch = autorun(() => { if (props.conversationType === V2NIMConst.V2NIMConversationType.V2NIM_CONVERSATION_TYPE_TEAM) { const _team: V2NIMTeam = deepClone(uni.$UIKitStore.teamStore.teams.get(props.to)); diff --git a/root/detail/job.vue b/root/detail/job.vue index d9ec9d9..ddbefce 100644 --- a/root/detail/job.vue +++ b/root/detail/job.vue @@ -1377,33 +1377,26 @@ export default { } }); that.jobDetail.info = newList.join("丨"); - 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.showPrice ? that.jobDetail.serverPrice : "", - monthPay: that.jobDetail.monthPay, - jobId: that.uid, - }, + 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.navigateTo({ - url: "/root/NEUIKit/pages/Chat/index", - }); - that.goImLoading = false; - }, - () => {} - ); + } + uni.setStorageSync("im_sendParams", JSON.stringify(sendParams)); + uni.navigateTo({ + url: "/root/NEUIKit/pages/Chat/index", + }); + that.goImLoading = false; }, () => {} ); From 9798941a9de6e9e0ac7204bca95faf16d41b3067 Mon Sep 17 00:00:00 2001 From: jscyl13849007907 <13849007907@163.com> Date: Fri, 29 Aug 2025 18:18:58 +0800 Subject: [PATCH 2/5] no message --- root/NEUIKit/pages/Chat/index.vue | 1 + root/NEUIKit/pages/Chat/message/message-input.vue | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/root/NEUIKit/pages/Chat/index.vue b/root/NEUIKit/pages/Chat/index.vue index 33d491e..f5596dc 100644 --- a/root/NEUIKit/pages/Chat/index.vue +++ b/root/NEUIKit/pages/Chat/index.vue @@ -437,6 +437,7 @@ onUnmounted(() => { connectedWatch(); msgsWatch(); conversationTypeWatch(); + uni.removeStorageSync('im_sendParams'); }); const query = ref({ page: 1, diff --git a/root/NEUIKit/pages/Chat/message/message-input.vue b/root/NEUIKit/pages/Chat/message/message-input.vue index dee120f..fcc1740 100644 --- a/root/NEUIKit/pages/Chat/message/message-input.vue +++ b/root/NEUIKit/pages/Chat/message/message-input.vue @@ -807,7 +807,9 @@ const screenHeight = ref(0); screenHeight.value = uni.getSystemInfoSync().windowHeight; const chooseData = ref({}); onMounted(() => { - chooseData.value = JSON.parse(uni.getStorageSync("im_sendParams")).jobDetail; + if(uni.getStorageSync("im_sendParams")){ + chooseData.value = JSON.parse(uni.getStorageSync("im_sendParams")).jobDetail; + } uninstallTeamWatch = autorun(() => { if (props.conversationType === V2NIMConst.V2NIMConversationType.V2NIM_CONVERSATION_TYPE_TEAM) { const _team: V2NIMTeam = deepClone(uni.$UIKitStore.teamStore.teams.get(props.to)); From b0632e6210668fedaae6180bc1d411e64d24e54c Mon Sep 17 00:00:00 2001 From: jscyl13849007907 <13849007907@163.com> Date: Sat, 30 Aug 2025 09:39:54 +0800 Subject: [PATCH 3/5] no message --- root/NEUIKit/pages/Chat/index.vue | 6 ++++++ root/NEUIKit/pages/Chat/message/message-input.vue | 7 +++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/root/NEUIKit/pages/Chat/index.vue b/root/NEUIKit/pages/Chat/index.vue index f5596dc..c94f0d3 100644 --- a/root/NEUIKit/pages/Chat/index.vue +++ b/root/NEUIKit/pages/Chat/index.vue @@ -26,6 +26,7 @@ " :conversation-type="conversationType" :to="to" + @exportPointJob="exportPointJob" /> @@ -65,6 +66,7 @@ import { V2NIMConst } from "nim-web-sdk-ng/dist/v2/NIM_UNIAPP_SDK"; const G = getCurrentInstance().appContext.app.config.globalProperties.G; const F = getCurrentInstance().appContext.app.config.globalProperties.F; const api = getCurrentInstance().appContext.app.config.globalProperties.api; +import { getList, query } from "../../components/list/job/api"; export interface YxReplyMsg { messageClientId: string; scene: V2NIMConst.V2NIMConversationType; @@ -591,6 +593,10 @@ onUnload(() => { uni.$off(events.CONFIRM_FORWARD_MSG); uni.$off(events.CANCEL_FORWARD_MSG); }); + +const exportPointJob = ()=>{ + F.wyyxPost(api.wyyx_sendCard,JSON.parse(uni.getStorageSync('im_sendParams')),() => {},() => {}); +}