|
|
|
|
@ -1834,45 +1834,14 @@ export default {
|
|
|
|
|
goIm() {
|
|
|
|
|
let that = this;
|
|
|
|
|
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,
|
|
|
|
|
senderAccid: uni.getStorageSync("im-accid"),
|
|
|
|
|
receiverAccid: cusData.accid,
|
|
|
|
|
},
|
|
|
|
|
(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
|
|
|
|
|
senderAccid: uni.getStorageSync("im-accid"),
|
|
|
|
|
receiverAccid: cusData.accid,
|
|
|
|
|
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/index?item=" + (uni.getStorageSync("im-accid") + '|1|' + cusData.accid),
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
() => {},
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
() => {},
|
|
|
|
|
);
|
|
|
|
|
uni.setStorageSync("jobim", json.stringify({
|
|
|
|
|
cusData: cusData,
|
|
|
|
|
jobDetail: that.jobDetail,
|
|
|
|
|
uid: that.uid,
|
|
|
|
|
}));
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: "/root/NEUIKit/index?item=" + (uni.getStorageSync("im-accid") + '|1|' + cusData.accid) + '&f=1',
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
switchRadioChange(e) {
|
|
|
|
|
|