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; }, () => {} );