|
|
|
@ -30,11 +30,15 @@
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<!-- </div> -->
|
|
|
|
<!-- </div> -->
|
|
|
|
|
|
|
|
|
|
|
|
<u-popup v-model="jobListShow" mode="bottom" z-index="999999" border-radius="12" :closeable="false" :mask-close-able="true" :mask="true" @close="jobListShow = false">
|
|
|
|
<u-popup v-model="jobListShow" mode="bottom" z-index="999999" border-radius="12" :closeable="true" :mask-close-able="true" :mask="true" @close="jobListShow = false">
|
|
|
|
<scroll-view :scroll-y="true" @scrolltolower="reachBottom" class="g_bg_ed" style="height: 90vh">
|
|
|
|
<scroll-view :scroll-y="true" @scrolltolower="reachBottom" class="g_bg_ed" style="height: 95vh">
|
|
|
|
<div class="">
|
|
|
|
<div class="">
|
|
|
|
<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="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>
|
|
|
|
<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">
|
|
|
|
|
|
|
|
<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>
|
|
|
|
<g-list-job from="chat" @uploadList="getList" @sendJob="sendJob" bg="#ededed" class="" :query="query" :list="query.list" :loading="loading" :speed="speed" :isShowLoginBtn="false" emptyText="嘿,这里还没有数据呢" />
|
|
|
|
<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>
|
|
|
|
@ -78,7 +82,23 @@ export interface YxReplyMsg {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
trackInit("ChatUIKit");
|
|
|
|
trackInit("ChatUIKit");
|
|
|
|
|
|
|
|
const tabInfo = ref({
|
|
|
|
|
|
|
|
list: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name: "我的",
|
|
|
|
|
|
|
|
classify: 1,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name: "浏览",
|
|
|
|
|
|
|
|
classify: 2,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name: "收藏",
|
|
|
|
|
|
|
|
classify: 3,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
active: 0,
|
|
|
|
|
|
|
|
});
|
|
|
|
const title = ref("");
|
|
|
|
const title = ref("");
|
|
|
|
const jobListShow = ref(false);
|
|
|
|
const jobListShow = ref(false);
|
|
|
|
const toDetail = () => {
|
|
|
|
const toDetail = () => {
|
|
|
|
@ -405,9 +425,14 @@ onLoad((options) => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
const msgHeight = ref(0);
|
|
|
|
const msgHeight = ref(0);
|
|
|
|
|
|
|
|
const beCollectedAgencyId = ref(0);
|
|
|
|
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
onMounted(() => {
|
|
|
|
setNavTitle();
|
|
|
|
setNavTitle();
|
|
|
|
|
|
|
|
agencyIdByAccId().then((res) => {
|
|
|
|
|
|
|
|
beCollectedAgencyId.value = res.agencyId;
|
|
|
|
getList();
|
|
|
|
getList();
|
|
|
|
|
|
|
|
});
|
|
|
|
uni.$on("msgHeight", (res) => {
|
|
|
|
uni.$on("msgHeight", (res) => {
|
|
|
|
console.log(res);
|
|
|
|
console.log(res);
|
|
|
|
msgHeight.value = res;
|
|
|
|
msgHeight.value = res;
|
|
|
|
@ -422,8 +447,6 @@ onMounted(() => {
|
|
|
|
uni.$UIKitNIM.V2NIMTeamService.on("onTeamLeft", handleRemoveTeamMembers);
|
|
|
|
uni.$UIKitNIM.V2NIMTeamService.on("onTeamLeft", handleRemoveTeamMembers);
|
|
|
|
|
|
|
|
|
|
|
|
uni.$on(events.GET_HISTORY_MSG, loadMoreMsgs);
|
|
|
|
uni.$on(events.GET_HISTORY_MSG, loadMoreMsgs);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
onUnmounted(() => {
|
|
|
|
onUnmounted(() => {
|
|
|
|
@ -458,6 +481,27 @@ const checkLength = (e) => {
|
|
|
|
searchJob();
|
|
|
|
searchJob();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
const handleUpdateTab = (e) => {
|
|
|
|
|
|
|
|
console.log(e);
|
|
|
|
|
|
|
|
tabInfo.value.active = e;
|
|
|
|
|
|
|
|
uni.showLoading({
|
|
|
|
|
|
|
|
title: "加载中...",
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
if (e == 0 || e == 2) {
|
|
|
|
|
|
|
|
getList();
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
getSeenList();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
const getSeenList = () => {};
|
|
|
|
|
|
|
|
const agencyIdByAccId = () => {
|
|
|
|
|
|
|
|
let accid = conversationId.split("|")[2];
|
|
|
|
|
|
|
|
return new Promise((reso) => {
|
|
|
|
|
|
|
|
G.Get(api.get_AgencyIdByAccId, { accid }, (res) => {
|
|
|
|
|
|
|
|
reso(res);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
};
|
|
|
|
const searchJob = () => {
|
|
|
|
const searchJob = () => {
|
|
|
|
query.value.list = [];
|
|
|
|
query.value.list = [];
|
|
|
|
query.value.page = 1;
|
|
|
|
query.value.page = 1;
|
|
|
|
@ -465,20 +509,26 @@ const searchJob = () => {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
const getList = ($type = "init") => {
|
|
|
|
const getList = ($type = "init") => {
|
|
|
|
loading.value = true;
|
|
|
|
loading.value = true;
|
|
|
|
G.Post(
|
|
|
|
|
|
|
|
api.job_list,
|
|
|
|
let parmas = {
|
|
|
|
{
|
|
|
|
|
|
|
|
pageNum: query.value.page,
|
|
|
|
pageNum: query.value.page,
|
|
|
|
pageSize: query.value.size,
|
|
|
|
pageSize: query.value.size,
|
|
|
|
agencyId: uni.getStorageSync("apply-agencyId"),
|
|
|
|
|
|
|
|
classify: 99,
|
|
|
|
|
|
|
|
sortTag: 2,
|
|
|
|
|
|
|
|
keys: keyword.value,
|
|
|
|
keys: keyword.value,
|
|
|
|
cityName: "全国",
|
|
|
|
cityName: "全国",
|
|
|
|
},
|
|
|
|
sortTag: 2,
|
|
|
|
(res) => {
|
|
|
|
};
|
|
|
|
|
|
|
|
if (tabInfo.value.active === 0) {
|
|
|
|
|
|
|
|
parmas.agencyId = uni.getStorageSync("apply-agencyId");
|
|
|
|
|
|
|
|
parmas.classify = 99;
|
|
|
|
|
|
|
|
} else if (tabInfo.value.active == 2) {
|
|
|
|
|
|
|
|
parmas.classify = 3;
|
|
|
|
|
|
|
|
parmas.beCollectedAgencyId = beCollectedAgencyId.value;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
console.log("parmas", parmas);
|
|
|
|
|
|
|
|
G.Post(api.job_list, parmas, (res) => {
|
|
|
|
console.log("res", res);
|
|
|
|
console.log("res", res);
|
|
|
|
loading.value = false;
|
|
|
|
loading.value = false;
|
|
|
|
|
|
|
|
uni.hideLoading();
|
|
|
|
speed.value = res.recordCount;
|
|
|
|
speed.value = res.recordCount;
|
|
|
|
query.value.isFinish = res.recordList.length;
|
|
|
|
query.value.isFinish = res.recordList.length;
|
|
|
|
console.log("query.value", query.value);
|
|
|
|
console.log("query.value", query.value);
|
|
|
|
@ -529,8 +579,7 @@ const getList = ($type = "init") => {
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
console.log("query.value.list", query.value.list);
|
|
|
|
console.log("query.value.list", query.value.list);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
);
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
const sendMsg = () => {
|
|
|
|
const sendMsg = () => {
|
|
|
|
const customMsg = uni.$UIKitNIM.V2NIMMessageCreator.createCustomMessage(
|
|
|
|
const customMsg = uni.$UIKitNIM.V2NIMMessageCreator.createCustomMessage(
|
|
|
|
|