|
|
|
|
@ -21,12 +21,12 @@
|
|
|
|
|
:jobListShow="jobListShow"
|
|
|
|
|
@jobListShow="
|
|
|
|
|
(e) => {
|
|
|
|
|
jobListShow = e;
|
|
|
|
|
jobListShow = e.isShow;
|
|
|
|
|
popType = e.type;
|
|
|
|
|
}
|
|
|
|
|
"
|
|
|
|
|
:conversation-type="conversationType"
|
|
|
|
|
:to="to"
|
|
|
|
|
@exportPointJob="exportPointJob"
|
|
|
|
|
/>
|
|
|
|
|
<!-- </div> -->
|
|
|
|
|
|
|
|
|
|
@ -36,12 +36,18 @@
|
|
|
|
|
<div class="m-search g_p_10 g_pt_8 g_position_rela g_flex_1 g_bg_ed sticky" style id="searchInputBox">
|
|
|
|
|
<div class="g_text_c g_h_24 g_pt_6 g_pb_12">发送职位</div>
|
|
|
|
|
<u-search height="80" v-model="keyword" @input="checkLength" @clear="searchJob" @search="searchJob" class="" placeholder="搜索职位名称" bg-color="#fff" :show-action="false" placeholder-class="g_c_c" search-icon-color="#999999" :maxlength="20"></u-search>
|
|
|
|
|
<div class="g_pt_8">
|
|
|
|
|
<div class="g_pt_8" v-if="popType == 'job'">
|
|
|
|
|
<u-tabs bg-color="transparent" from="index" gutter="20" :showBar="false" :list="tabInfo.list" :is-scroll="true" v-model="tabInfo.active" active-color="#00b666" @change="handleUpdateTab" font-size="34" duration="0.05" height="48"></u-tabs>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="" v-if="popType == 'apply'">
|
|
|
|
|
<gListApply from="chat" :upAgencyId="beCollectedAgencyId" @sendApply="sendApply"></gListApply>
|
|
|
|
|
<!-- <g-list-apply from="home" @uploadList="getList('concat')" bg="" class="" :tabActive="tabActive" :loading="loading" :speed="speed" :isLogin="isLogin" :query.sync="query" :navInfo="navInfo" /> -->
|
|
|
|
|
</div>
|
|
|
|
|
<div class="" v-if="popType == 'job'">
|
|
|
|
|
<g-list-job from="chat" @uploadList="getList" @sendJob="sendJob" bg="#ededed" class="" :query="query" :list="query.list" :loading="loading" :speed="speed" :isShowLoginBtn="false" emptyText="嘿,这里还没有数据呢" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</scroll-view>
|
|
|
|
|
</u-popup>
|
|
|
|
|
</div>
|
|
|
|
|
@ -49,6 +55,7 @@
|
|
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import gListJob from "../../../../components/list/job";
|
|
|
|
|
import gListApply from "../../../../pages/workBench/index.vue";
|
|
|
|
|
import { onShow } from "@dcloudio/uni-app";
|
|
|
|
|
import { events } from "../../utils/constants";
|
|
|
|
|
import { trackInit } from "../../utils/reporter";
|
|
|
|
|
@ -71,13 +78,14 @@ const G = getCurrentInstance().appContext.app.config.globalProperties.G;
|
|
|
|
|
const F = getCurrentInstance().appContext.app.config.globalProperties.F;
|
|
|
|
|
import api from "../../utils/api.js";
|
|
|
|
|
console.log("apiapiapi", api);
|
|
|
|
|
const requestComeFrom = computed(() => {
|
|
|
|
|
const appType = computed(() => {
|
|
|
|
|
let val = "isToC";
|
|
|
|
|
if (G.globalConstantData.requestComeFrom && (G.globalConstantData.requestComeFrom == "assistant_miniapp" || G.globalConstantData.requestComeFrom == "supply_chain_miniapp")) {
|
|
|
|
|
val = "isToB";
|
|
|
|
|
}
|
|
|
|
|
return val; // 小程序的判断
|
|
|
|
|
});
|
|
|
|
|
const popType = ref(""); // 发送抽屉的显示类型
|
|
|
|
|
export interface YxReplyMsg {
|
|
|
|
|
messageClientId: string;
|
|
|
|
|
scene: V2NIMConst.V2NIMConversationType;
|
|
|
|
|
@ -410,6 +418,10 @@ onLoad((options) => {
|
|
|
|
|
uni.$on(events.HANDLE_MOVE_THROUGH, (flag) => {
|
|
|
|
|
moveThrough.value = flag;
|
|
|
|
|
});
|
|
|
|
|
uni.$on("sendApply", (_val) => {
|
|
|
|
|
console.log("_val_val_val_val_val", _val);
|
|
|
|
|
sendApply(_val);
|
|
|
|
|
});
|
|
|
|
|
console.log("options聊天", options);
|
|
|
|
|
uni.setNavigationBarTitle({
|
|
|
|
|
title: options.ctitle,
|
|
|
|
|
@ -419,10 +431,10 @@ const msgHeight = ref(0);
|
|
|
|
|
const beCollectedAgencyId = ref(0);
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
setNavTitle();
|
|
|
|
|
console.log('uni.getStorageSync("apply-userinfo")', requestComeFrom.value);
|
|
|
|
|
console.log('uni.getStorageSync("apply-userinfo")', appType.value);
|
|
|
|
|
let userInfo = uni.getStorageSync("apply-userinfo");
|
|
|
|
|
// 小程序的判断
|
|
|
|
|
if (requestComeFrom.value == "isToB") {
|
|
|
|
|
if (appType.value == "isToB") {
|
|
|
|
|
tabInfo.value = {
|
|
|
|
|
list: [
|
|
|
|
|
{
|
|
|
|
|
@ -465,12 +477,15 @@ onMounted(() => {
|
|
|
|
|
classify: 1,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
active: 0,
|
|
|
|
|
active: 2,
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
agencyIdByAccId().then((res) => {
|
|
|
|
|
beCollectedAgencyId.value = res.agencyId;
|
|
|
|
|
getList();
|
|
|
|
|
if (appType.value == "isToB") {
|
|
|
|
|
getApplyList();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
uni.$on("msgHeight", (res) => {
|
|
|
|
|
console.log(res);
|
|
|
|
|
@ -501,7 +516,7 @@ onUnmounted(() => {
|
|
|
|
|
connectedWatch();
|
|
|
|
|
msgsWatch();
|
|
|
|
|
conversationTypeWatch();
|
|
|
|
|
uni.removeStorageSync('im_sendParams');
|
|
|
|
|
uni.removeStorageSync("im_sendParams");
|
|
|
|
|
});
|
|
|
|
|
const query = ref({
|
|
|
|
|
page: 1,
|
|
|
|
|
@ -545,6 +560,7 @@ const searchJob = () => {
|
|
|
|
|
});
|
|
|
|
|
getList();
|
|
|
|
|
};
|
|
|
|
|
const getApplyList = () => {};
|
|
|
|
|
const getList = ($type = "init") => {
|
|
|
|
|
loading.value = true;
|
|
|
|
|
|
|
|
|
|
@ -555,9 +571,9 @@ const getList = ($type = "init") => {
|
|
|
|
|
cityName: "全国",
|
|
|
|
|
};
|
|
|
|
|
let url = "job_list";
|
|
|
|
|
console.log("G.globalConstantData.requestComeFrom", requestComeFrom.value);
|
|
|
|
|
console.log("G.globalConstantData.appType", appType.value);
|
|
|
|
|
let classify = tabInfo.value.list[tabInfo.value.active].classify;
|
|
|
|
|
if (requestComeFrom.value == "isToC") {
|
|
|
|
|
if (appType.value == "isToC") {
|
|
|
|
|
url = "yi_job_list";
|
|
|
|
|
parmas.classify = 1;
|
|
|
|
|
// classify: 3:想去 2:浏览历史 1:对方职位(商家)
|
|
|
|
|
@ -588,10 +604,12 @@ const getList = ($type = "init") => {
|
|
|
|
|
|
|
|
|
|
console.log("parmas", parmas);
|
|
|
|
|
G.Post(api[url], parmas, (res) => {
|
|
|
|
|
console.log("res", res);
|
|
|
|
|
console.log("res", JSON.parse(JSON.stringify(res)));
|
|
|
|
|
loading.value = false;
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
res = { ...res, ...res.pageBean };
|
|
|
|
|
speed.value = res.recordCount;
|
|
|
|
|
|
|
|
|
|
query.value.isFinish = res.recordList.length;
|
|
|
|
|
console.log("query.value", query.value);
|
|
|
|
|
res.recordList = G.toGetAddressv3(res.recordList);
|
|
|
|
|
@ -606,6 +624,7 @@ const getList = ($type = "init") => {
|
|
|
|
|
...item,
|
|
|
|
|
title: item.jobName,
|
|
|
|
|
address: item.district + item.age,
|
|
|
|
|
cus_price: item.salaryClassify != 7 ? G.getSalaryClassifyValueHtml(item.salaryClassify, item.salaryClassifyValue) : "月薪",
|
|
|
|
|
priceStr: item.salaryClassify != 7 ? G.getSalaryClassifyValue(item.salaryClassify, item.salaryClassifyValue) : G.getSalaryClassifyValue(item.salaryClassify, item.minMonthlyPay, item.maxMonthlyPay),
|
|
|
|
|
logo: item.agencyLogo,
|
|
|
|
|
time: G.setDeadLine(item.updateTime, "jiaofu"),
|
|
|
|
|
@ -626,6 +645,7 @@ const getList = ($type = "init") => {
|
|
|
|
|
return {
|
|
|
|
|
...item,
|
|
|
|
|
title: item.jobName,
|
|
|
|
|
cus_price: item.salaryClassify != 7 ? G.getSalaryClassifyValueHtml(item.salaryClassify, item.salaryClassifyValue) : "月薪",
|
|
|
|
|
priceStr: item.salaryClassify != 7 ? G.getSalaryClassifyValue(item.salaryClassify, item.salaryClassifyValue) : G.getSalaryClassifyValue(item.salaryClassify, item.minMonthlyPay, item.maxMonthlyPay),
|
|
|
|
|
fuWuFei: G.setReturnFee(item.returnFee, item.returnFeeType),
|
|
|
|
|
gender: G.getGenderByMinAge(item),
|
|
|
|
|
@ -677,8 +697,8 @@ const sendJob = (_item) => {
|
|
|
|
|
title: _item.jobName,
|
|
|
|
|
info: _item.info,
|
|
|
|
|
label: _item.jobSpecialLabelNameArray.length > 0 ? _item.jobSpecialLabelNameArray : [],
|
|
|
|
|
salaryClassifyValue: _item.priceStr,
|
|
|
|
|
serviceFee: _item.fuWuFei ? _item.fuWuFei : "",
|
|
|
|
|
salaryClassifyValue: _item.priceStr || _item.cus_price,
|
|
|
|
|
serviceFee: appType.value == "isToC" ? "" : _item.fuWuFei || "",
|
|
|
|
|
monthPay: _item.monthlyPay,
|
|
|
|
|
jobId: _item.id,
|
|
|
|
|
})
|
|
|
|
|
@ -694,6 +714,33 @@ const sendJob = (_item) => {
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
const sendApply = (_item) => {
|
|
|
|
|
console.log("_item", _item);
|
|
|
|
|
const customMsg = uni.$UIKitNIM.V2NIMMessageCreator.createCustomMessage(
|
|
|
|
|
"",
|
|
|
|
|
JSON.stringify({
|
|
|
|
|
type: 100002,
|
|
|
|
|
userName: _item.userName + G.titleToStr(_item) || "-",
|
|
|
|
|
idCard: _item.idCard || "-",
|
|
|
|
|
storeJobName: _item.storeJobName || "-",
|
|
|
|
|
interviewTime: G.getPointTime(_item.interviewTime, "YY--MM--DD HH:MM") || "-",
|
|
|
|
|
tel: _item.tel || "-",
|
|
|
|
|
applyId: _item.id || null,
|
|
|
|
|
relationId: _item.relationId || null,
|
|
|
|
|
active: _item.active,
|
|
|
|
|
})
|
|
|
|
|
);
|
|
|
|
|
console.log("customMsg", customMsg);
|
|
|
|
|
uni.$UIKitStore.msgStore.sendMessageActive({
|
|
|
|
|
msg: customMsg,
|
|
|
|
|
conversationId,
|
|
|
|
|
sendBefore: () => {
|
|
|
|
|
jobListShow.value = false;
|
|
|
|
|
uni.$emit(events.ON_SCROLL_BOTTOM);
|
|
|
|
|
// scrollBottom();
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
const reachBottom = () => {
|
|
|
|
|
if (query.value.isFinish == -1 || query.value.isFinish == query.value.size) {
|
|
|
|
|
query.value.page++;
|
|
|
|
|
@ -705,8 +752,7 @@ onUnload(() => {
|
|
|
|
|
uni.$off(events.CANCEL_FORWARD_MSG);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const exportPointJob = ()=>{
|
|
|
|
|
}
|
|
|
|
|
const exportPointJob = () => {};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
|