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 = () => {
@ -403,9 +423,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;
@ -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,18 +503,21 @@ 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, 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;
}
G.Post(api.job_list, {}, (res) => {
console.log("res", res); console.log("res", res);
loading.value = false; loading.value = false;
speed.value = res.recordCount; speed.value = res.recordCount;
@ -526,8 +570,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(

@ -374,8 +374,10 @@
<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>
<!-- <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" v-if="orderDetail.downAgencyId && orderDetail.downAgencyId != agencyId"> <view class="g_flex_1 g_mr_12" v-if="orderDetail.downAgencyId && orderDetail.downAgencyId != agencyId">
<g-button @clickBtn="getServiceInfo({ type: 'im', info: 'up' })" size="auto" btnText="下游客服" type="primary"></g-button> <g-button @clickBtn="getServiceInfo({ type: 'im', info: 'up' })" size="auto" btnText="下游客服" type="primary"></g-button>
</view> </view>
@ -383,7 +385,6 @@
<g-button @clickBtn="getServiceInfo({ type: 'im', info: 'down' })" 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> </view>
</view>
</slot> </slot>
</g-panel-fixed> </g-panel-fixed>
<!-- <u-popup v-model="shareModal.isShow" mode="bottom" border-radius="16" height="600px" :mask-close-able="true"> <!-- <u-popup v-model="shareModal.isShow" mode="bottom" border-radius="16" height="600px" :mask-close-able="true">

@ -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() {},
methods: {
initDetail() {
let that = this; let that = this;
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;
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