1

parent aa476488
......@@ -52,9 +52,28 @@ onLoad(({ id }) => {
} else {
data.value.bm = false;
}
registerStatus(id).then(Res => {
data.value.bmStutas = Res.data;
});
});
registerStatus(id).then(Res => {
data.value.bmStutas = Res.data;
console.log("data.value", data.value.bm, data.value.bmStutas);
});
onShow(() => {
const currentTime = Date.now();
getArticleDetailApi(articleId.value).then(res => {
console.log(res);
data.value = res.data;
// 选择 btnTxt 的值
if (currentTime >= res.data.registerStartTime && currentTime <= res.data.registerEndTime) {
data.value.bm = true; // 当前时间在开始时间和结束时间之间
} else {
data.value.bm = false;
}
registerStatus(articleId.value).then(Res => {
data.value.bmStutas = Res.data;
});
});
});
......
......@@ -22,7 +22,7 @@ const contentHeight = ref("100rpx");
const active = ref("");
const typeList = ref([
{ id: "", name: "全部" },
{ id: "aaaa", name: "招聘会" }
{ id: "zph", name: "招聘会" }
]);
getArticleTypesApi(2).then(res => {
typeList.value.push(...res.data);
......@@ -67,6 +67,13 @@ onShow(() => {
});
const feedbackListFn = () => {
if (active.value == "zph") {
params.value.type = 3;
params.value.categoryId = "";
} else {
params.value.type = 2;
params.value.categoryId = active.value;
}
if (params.value.isEnd === true)
return new Promise(resolve => {
resolve();
......
<template>
<NavBar :showIcon="false" :showTitle="true" title="消息"></NavBar>
<div class="message-list">
<NavBar :showIcon="false" :showTitle="true" title="消息"></NavBar>
<scroll-view :scroll-y="true" @scrolltolower="getList">
<view class="system">
<view class="item flex-between" v-for="(v, i) in list" :key="i" @click="goToDetail(v)">
......@@ -97,7 +97,7 @@ getList();
display: flex;
flex-direction: column;
height: 100%;
padding-bottom: 100rpx;
padding-bottom: 98rpx;
}
.tabs {
display: flex;
......
<template>
<div class="page">
<NavBar :showIcon="true" :showTitle="true" title="投递管理" backgroundBox="#FFFFFF"></NavBar>
<div class="filter-bar flex-between">
<div class="filter-bar flex-between" :style="{ position: 'sticky', top: contentHeight, background: '#fff', zIndex: 99 }">
<p
:class="{ active: apiParams.status == item.code }"
:class="{ active: apiParams.status === item.code }"
v-for="(item, index) in EnumJobApplication"
:key="index"
@click="changeFilter(item.code)"
......@@ -36,6 +37,7 @@ const getFilterData = async () => {
});
};
getFilterData();
const contentHeight = ref("100rpx");
const changeFilter = code => {
apiParams.pageNo = 1;
apiParams.status = code;
......@@ -47,9 +49,23 @@ const changeFilter = code => {
let jobIds = 0;
onLoad(({ jobId, status }) => {
jobIds = jobId;
apiParams.status = status;
if (!status) {
apiParams.status = "";
} else {
apiParams.status = status * 1;
}
apiParams.jobId = jobId;
getApplicationList();
xma.xh.getSystemInfo({
success(res) {
// console.log('设备信息', res); // 设备信息
}
});
xma.xh.getMenuButtonBoundingClientRect({
success(res) {
contentHeight.value = (res.top + res.bottom) / 2 + 25 + "px";
}
});
});
/* 获取列表 */
const apiParams = reactive({
......@@ -75,13 +91,11 @@ const getApplicationList = () => {
<style lang="scss" scoped>
.page {
display: flex;
flex-direction: column;
height: 100%;
// display: flex;
// flex-direction: column;
}
.filter-bar {
padding: 16rpx 40rpx;
border-bottom: 16rpx solid #f3f4f8;
p {
font-size: 28rpx;
line-height: 44rpx;
......@@ -106,10 +120,12 @@ const getApplicationList = () => {
}
scroll-view {
flex-grow: 1;
height: 100vh;
height: 100%;
.item {
padding: 16rpx 32rpx;
margin-top: 16rpx;
background: #fff;
border-bottom: 16rpx solid #f3f4f8;
padding: 16rpx 32rpx;
}
}
</style>
......@@ -190,6 +190,7 @@ const changeActiveTab = tab => {
activeTab.value = tab;
getTopFilter();
getJobList(activeTopFilter.value);
getJobListApiFn();
};
let refresherEnabled = ref(true);
/* 获取职位列表 */
......@@ -215,18 +216,20 @@ function fresherrefresh() {
getResumeRecommendList();
});
}
getJobListApi().then(res => {
if (res.code == 200) {
jobListColumns.value = res.data;
console.log(res.data[0].jobType);
function getJobListApiFn() {
getJobListApi().then(res => {
if (res.code == 200) {
jobListColumns.value = res.data;
console.log(res.data[0].jobType);
// 初始化选择器
getApplicationListParams.value.jobType = res.data[0].jobType;
jobTypeText.value = res.data[0].jobTypeText;
// 获取推荐列表
getResumeRecommendList();
}
});
// 初始化选择器
getApplicationListParams.value.jobType = res.data[0].jobType;
jobTypeText.value = res.data[0].jobTypeText;
// 获取推荐列表
getResumeRecommendList();
}
});
}
function jobOfftopApiFn(v) {
jobOfftopApi(v.id).then(res => {
if (res.code == 200) {
......@@ -433,6 +436,7 @@ onLoad(() => {
});
onShow(() => {
getTopFilter();
getJobListApiFn();
getJobList();
});
/* 职位上下线 */
......
......@@ -403,7 +403,7 @@ const openMask = () => {
];
pinias.resetForm();
xma.reLaunch({
url: "/pages/recommend/index"
url: "/pages/dynamic/index"
});
}
});
......
......@@ -59,6 +59,12 @@ function handleError(message) {
handleError("登录已过期");
} else if (code == 2) {
handleError("登录超时");
}else if (code ==8) {
xma.showToast({
title: '未查到该企业',
icon: "none",
duration: 1900,
});
}
},
error => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment