cyl/master-0822
wangxia 3 months ago
parent ffd1a287fc
commit 6d80eecbda

@ -29,11 +29,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>
@ -76,7 +80,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 = () => {
@ -397,15 +417,20 @@ onLoad((options) => {
uni.$on(events.HANDLE_MOVE_THROUGH, (flag) => { uni.$on(events.HANDLE_MOVE_THROUGH, (flag) => {
moveThrough.value = flag; moveThrough.value = flag;
}); });
console.log("options聊天", options); console.log("options聊天", options);
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: options.ctitle, title: options.ctitle,
}); });
}); });
const msgHeight = ref(0); const msgHeight = ref(0);
const beCollectedAgencyId = ref(0);
onMounted(() => { onMounted(() => {
setNavTitle(); setNavTitle();
getList(); agencyIdByAccId().then((res) => {
beCollectedAgencyId.value = res.agencyId;
getList();
});
uni.$on("msgHeight", (res) => { uni.$on("msgHeight", (res) => {
console.log(res); console.log(res);
msgHeight.value = res; msgHeight.value = res;
@ -420,8 +445,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(() => {
@ -455,6 +478,24 @@ const checkLength = (e) => {
searchJob(); searchJob();
} }
}; };
const handleUpdateTab = (e) => {
console.log(e);
tabInfo.value.active = e;
if (e == 0 || e == 2) {
getList();
} else {
getSeenList();
}
};
const getSeenList = () => {};
const agencyIdByAccId = () => {
let accid = conversationId.split("|")[2];
return new Promise((reso) => {
G.Post(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;
@ -462,72 +503,74 @@ const searchJob = () => {
}; };
const getList = ($type = "init") => { const getList = ($type = "init") => {
loading.value = true; loading.value = true;
G.Post( let parmas = {
api.job_list, pageNum: query.value.page,
{ pageSize: query.value.size,
pageNum: query.value.page, keys: keyword.value,
pageSize: query.value.size, cityName: "全国",
agencyId: uni.getStorageSync("apply-agencyId"), sortTag: 2,
classify: 99, };
sortTag: 2, if (tabInfo.value.active === 0) {
keys: keyword.value, parmas.agencyId = uni.getStorageSync("apply-agencyId");
cityName: "全国", parmas.classify = 99;
}, } else if (tabInfo.value.active == 2) {
(res) => { parmas.classify = 3;
console.log("res", res); parmas.beCollectedAgencyId = beCollectedAgencyId.value;
loading.value = false; }
speed.value = res.recordCount; G.Post(api.job_list, {}, (res) => {
query.value.isFinish = res.recordList.length; console.log("res", res);
console.log("query.value", query.value); loading.value = false;
res.recordList = G.toGetAddressv3(res.recordList); speed.value = res.recordCount;
res.recordList = G.toGetAge(res.recordList); query.value.isFinish = res.recordList.length;
res.recordList = G.yijobCopy(res.recordList); console.log("query.value", query.value);
if ($type == "init") { res.recordList = G.toGetAddressv3(res.recordList);
query.value.list = []; res.recordList = G.toGetAge(res.recordList);
if (res.recordList.length > 0) { res.recordList = G.yijobCopy(res.recordList);
query.value.list = res.recordList.map((item, index) => { if ($type == "init") {
// console.log(item) query.value.list = [];
return { if (res.recordList.length > 0) {
...item, query.value.list = res.recordList.map((item, index) => {
title: item.jobName, // console.log(item)
address: item.district + item.age, return {
priceStr: item.salaryClassify != 7 ? G.getSalaryClassifyValue(item.salaryClassify, item.salaryClassifyValue) : G.getSalaryClassifyValue(item.salaryClassify, item.minMonthlyPay, item.maxMonthlyPay), ...item,
logo: item.agencyLogo, title: item.jobName,
time: G.setDeadLine(item.updateTime, "jiaofu"), address: item.district + item.age,
fuWuFei: G.setReturnFee(item.returnFee, item.returnFeeType), priceStr: item.salaryClassify != 7 ? G.getSalaryClassifyValue(item.salaryClassify, item.salaryClassifyValue) : G.getSalaryClassifyValue(item.salaryClassify, item.minMonthlyPay, item.maxMonthlyPay),
gender: G.getGenderByMinAge(item), logo: item.agencyLogo,
leafCateId: item.id, time: G.setDeadLine(item.updateTime, "jiaofu"),
// serverPrice: tabInfo.value.list[tabInfo.value.active].tip == 2 ? G.setReturnFee(item.returnFee, item.returnFeeType) : G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType), fuWuFei: G.setReturnFee(item.returnFee, item.returnFeeType),
serverPrice: G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType), gender: G.getGenderByMinAge(item),
recruitmentSwitch: item.recruitment == 1 ? true : false, leafCateId: item.id,
recruitmentImage: item.recruitment, // serverPrice: tabInfo.value.list[tabInfo.value.active].tip == 2 ? G.setReturnFee(item.returnFee, item.returnFeeType) : G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType),
isToday: item.today == 0 ? false : true, serverPrice: G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType),
}; recruitmentSwitch: item.recruitment == 1 ? true : false,
}); recruitmentImage: item.recruitment,
} isToday: item.today == 0 ? false : true,
} else { };
query.value.list = query.value.list.concat( });
res.recordList.map((item, index) => {
return {
...item,
title: item.jobName,
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),
logo: item.agencyLogo,
time: G.setDeadLine(item.updateTime, "jiaofu"),
leafCateId: item.id,
serverPrice: G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType),
recruitmentSwitch: item.recruitment == 1 ? true : false,
recruitmentImage: item.recruitment,
isToday: item.today == 0 ? false : true,
};
})
);
} }
console.log("query.value.list", query.value.list); } else {
query.value.list = query.value.list.concat(
res.recordList.map((item, index) => {
return {
...item,
title: item.jobName,
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),
logo: item.agencyLogo,
time: G.setDeadLine(item.updateTime, "jiaofu"),
leafCateId: item.id,
serverPrice: G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType),
recruitmentSwitch: item.recruitment == 1 ? true : false,
recruitmentImage: item.recruitment,
isToday: item.today == 0 ? false : true,
};
})
);
} }
); console.log("query.value.list", query.value.list);
});
}; };
const sendMsg = () => { const sendMsg = () => {
const customMsg = uni.$UIKitNIM.V2NIMMessageCreator.createCustomMessage( const customMsg = uni.$UIKitNIM.V2NIMMessageCreator.createCustomMessage(

@ -374,14 +374,15 @@
<g-panel-fixed style="box-shadow: 0 -4px 12px #ededed" v-if="(orderDetail.downAgencyId && orderDetail.downAgencyId != agencyId) || (orderDetail.upAgencyId && orderDetail.upAgencyId != agencyId)"> <g-panel-fixed style="box-shadow: 0 -4px 12px #ededed" v-if="(orderDetail.downAgencyId && orderDetail.downAgencyId != agencyId) || (orderDetail.upAgencyId && orderDetail.upAgencyId != agencyId)">
<slot> <slot>
<view class="g_ml_20 g_mr_20 g_flex_row_between flex_center flex_nw"> <view class="g_ml_20 g_mr_20 g_flex_row_between flex_center flex_nw">
<view class="g_flex_column_center flex_center g_mr_12" @click="getServiceInfo({ type: 'tel' })"> <i class="iconfont icon-phone g_c_main"></i><view class="g_fs_12 g_c_6 g_mt_4">电话客服</view> </view> <view class="g_flex_1 g_mr_12">
<view class="g_flex_row_between flex_center g_flex_1"> <g-button @clickBtn="getServiceInfo({ type: 'tel' })" size="auto" btnText="电话客服"></g-button>
<view class="g_flex_1 g_mr_12" v-if="orderDetail.downAgencyId && orderDetail.downAgencyId != agencyId"> </view>
<g-button @clickBtn="getServiceInfo({ type: 'im', info: 'up' })" size="auto" btnText="下游客服" type="primary"></g-button> <!-- <view class="g_flex_column_center flex_center g_mr_12" @click="getServiceInfo({ type: 'tel' })"> <i class="iconfont icon-phone g_c_main"></i><view class="g_fs_12 g_c_6 g_mt_4">电话客服</view> </view> -->
</view> <view class="g_flex_1 g_mr_12" v-if="orderDetail.downAgencyId && orderDetail.downAgencyId != agencyId">
<view class="g_flex_1" v-if="orderDetail.upAgencyId && orderDetail.upAgencyId != agencyId"> <g-button @clickBtn="getServiceInfo({ type: 'im', info: 'up' })" size="auto" btnText="下游客服" type="primary"></g-button>
<g-button @clickBtn="getServiceInfo({ type: 'im', info: 'down' })" size="auto" btnText="上游客服" type="primary"></g-button> </view>
</view> <view class="g_flex_1" v-if="orderDetail.upAgencyId && orderDetail.upAgencyId != agencyId">
<g-button @clickBtn="getServiceInfo({ type: 'im', info: 'down' })" size="auto" btnText="上游客服" type="primary"></g-button>
</view> </view>
</view> </view>
</slot> </slot>

@ -481,7 +481,7 @@
<div class="g_fs_12 g_c_6 g_w_28" style="margin-top: 8px">编辑</div> <div class="g_fs_12 g_c_6 g_w_28" style="margin-top: 8px">编辑</div>
</button> </button>
</div> </div>
<div class="g_flex_none g_flex_column_center" v-if=" from != 'bill'"> <div class="g_flex_none g_flex_column_center" v-if="from != 'bill'">
<button class="g_pl_0 g_pr_0 g_bg_f g_mr_12 g_w_36" hover-class="thover" style="line-height: 1; border-radius: 0" @click="handleCollection"> <button class="g_pl_0 g_pr_0 g_bg_f g_mr_12 g_w_36" hover-class="thover" style="line-height: 1; border-radius: 0" @click="handleCollection">
<icon v-if="isSc" class="iconfont icon-yishoucang g_fsi_16" style="color: #ff4400; line-height: 1; margin-top: -5px"></icon> <icon v-if="isSc" class="iconfont icon-yishoucang g_fsi_16" style="color: #ff4400; line-height: 1; margin-top: -5px"></icon>
<icon v-else class="iconfont icon-shoucang g_fsi_16" style="color: #787878; line-height: 1; margin-top: -5px"></icon> <icon v-else class="iconfont icon-shoucang g_fsi_16" style="color: #787878; line-height: 1; margin-top: -5px"></icon>
@ -500,7 +500,7 @@
<div class="g_flex_none g_flex_column_center g_mr_12"> <div class="g_flex_none g_flex_column_center g_mr_12">
<g-button btnText="联系客服" class="g_w_100" size="small_auto" @clickBtn="goIm"></g-button> <g-button btnText="联系客服" class="g_w_100" size="small_auto" @clickBtn="goIm"></g-button>
</div> </div>
<div class="g_flex_1 g_flex_column_center "> <div class="g_flex_1 g_flex_column_center">
<g-button btnText="我要报名" class="" size="small_auto" :type="jobDetail.recruitment == 2 ? 'infro' : 'primary'" @clickBtn="handleOpenApplyPopup" style="width: calc(100% - 32px)"></g-button> <g-button btnText="我要报名" class="" size="small_auto" :type="jobDetail.recruitment == 2 ? 'infro' : 'primary'" @clickBtn="handleOpenApplyPopup" style="width: calc(100% - 32px)"></g-button>
</div> </div>
</div> </div>
@ -725,6 +725,7 @@ export default {
}; };
}, },
onLoad(options) { onLoad(options) {
let that = this;
console.log("详情", options); console.log("详情", options);
let loginUrl; let loginUrl;
if (options.id) { if (options.id) {
@ -755,6 +756,23 @@ export default {
this.shareJobAgencyId && this.checkIsFans(this.shareJobAgencyId); this.shareJobAgencyId && this.checkIsFans(this.shareJobAgencyId);
this.userinfo = uni.getStorageSync("apply-userinfo"); this.userinfo = uni.getStorageSync("apply-userinfo");
that.hasSee();
this.IS_CREATOR = uni.getStorageSync("IS_CREATOR") == 1 ? true : false;
console.log("this.IS_CREATOR", this.IS_CREATOR);
this.corpUserFlag = uni.getStorageSync("apply-userinfo").corpUserFlag;
uni.$on("updateJobDetail", () => {
this.initDetail();
});
if (uni.getStorageSync("apply-token")) {
this.getIgnore();
this.initDetail();
}
uni.getSystemInfo({
success: function (res) {
console.log(res);
that.wxPlat = res.hostName;
},
});
// if (uni.getStorageSync("apply-AGENCY_MAMBER_LIST")) { // if (uni.getStorageSync("apply-AGENCY_MAMBER_LIST")) {
// this.applyList = uni.getStorageSync("apply-AGENCY_MAMBER_LIST"); // this.applyList = uni.getStorageSync("apply-AGENCY_MAMBER_LIST");
// console.log("this.applyList", this.applyList); // console.log("this.applyList", this.applyList);
@ -767,14 +785,11 @@ export default {
// }); // });
// } // }
}, },
onShow() { onShow() {},
let that = this;
that.hasSee(); methods: {
this.IS_CREATOR = uni.getStorageSync("IS_CREATOR") == 1 ? true : false; initDetail() {
console.log("this.IS_CREATOR", this.IS_CREATOR); let that = this;
this.corpUserFlag = uni.getStorageSync("apply-userinfo").corpUserFlag;
if (uni.getStorageSync("apply-token")) {
this.getIgnore();
this.getDetail().then((res) => { this.getDetail().then((res) => {
console.log("res", res); console.log("res", res);
let objMiddle = res.cozeStructureRes ? JSON.parse(res.cozeStructureRes) : {}; let objMiddle = res.cozeStructureRes ? JSON.parse(res.cozeStructureRes) : {};
@ -812,16 +827,7 @@ export default {
that.speed = 1; that.speed = 1;
// this.toKnowInfo(res.agencyId); // this.toKnowInfo(res.agencyId);
}); });
} },
uni.getSystemInfo({
success: function (res) {
console.log(res);
that.wxPlat = res.hostName;
},
});
},
methods: {
hasSee() { hasSee() {
var that = this; var that = this;
that.G.Get(that.api.hasSee + "?jobId=" + that.uid, "", (res) => { that.G.Get(that.api.hasSee + "?jobId=" + that.uid, "", (res) => {

@ -314,6 +314,7 @@ export default {
}); });
} else if (that.fromPageType == "detail" || that.fromPageType == "shareList") { } else if (that.fromPageType == "detail" || that.fromPageType == "shareList") {
console.log("that.currentId", that.currentId); console.log("that.currentId", that.currentId);
uni.$emit('updateJobDetail')
uni.reLaunch({ uni.reLaunch({
url: `${that.path}?scene=${that.currentId}`, url: `${that.path}?scene=${that.currentId}`,
}); });

@ -444,7 +444,7 @@ export default {
.u-close { .u-close {
position: absolute; position: absolute;
z-index: 3; z-index: 100;
} }
.u-close--top-left { .u-close--top-left {

Loading…
Cancel
Save