1

parent aa476488
...@@ -52,10 +52,29 @@ onLoad(({ id }) => { ...@@ -52,10 +52,29 @@ onLoad(({ id }) => {
} else { } else {
data.value.bm = false; data.value.bm = false;
} }
});
registerStatus(id).then(Res => { registerStatus(id).then(Res => {
data.value.bmStutas = Res.data; 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;
});
});
}); });
function next() { function next() {
......
...@@ -22,7 +22,7 @@ const contentHeight = ref("100rpx"); ...@@ -22,7 +22,7 @@ const contentHeight = ref("100rpx");
const active = ref(""); const active = ref("");
const typeList = ref([ const typeList = ref([
{ id: "", name: "全部" }, { id: "", name: "全部" },
{ id: "aaaa", name: "招聘会" } { id: "zph", name: "招聘会" }
]); ]);
getArticleTypesApi(2).then(res => { getArticleTypesApi(2).then(res => {
typeList.value.push(...res.data); typeList.value.push(...res.data);
...@@ -67,6 +67,13 @@ onShow(() => { ...@@ -67,6 +67,13 @@ onShow(() => {
}); });
const feedbackListFn = () => { 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) if (params.value.isEnd === true)
return new Promise(resolve => { return new Promise(resolve => {
resolve(); resolve();
......
<template> <template>
<NavBar :showIcon="false" :showTitle="true" title="消息"></NavBar>
<div class="message-list"> <div class="message-list">
<NavBar :showIcon="false" :showTitle="true" title="消息"></NavBar>
<scroll-view :scroll-y="true" @scrolltolower="getList"> <scroll-view :scroll-y="true" @scrolltolower="getList">
<view class="system"> <view class="system">
<view class="item flex-between" v-for="(v, i) in list" :key="i" @click="goToDetail(v)"> <view class="item flex-between" v-for="(v, i) in list" :key="i" @click="goToDetail(v)">
...@@ -97,7 +97,7 @@ getList(); ...@@ -97,7 +97,7 @@ getList();
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: 100%; height: 100%;
padding-bottom: 100rpx; padding-bottom: 98rpx;
} }
.tabs { .tabs {
display: flex; display: flex;
......
<template> <template>
<div class="page"> <div class="page">
<NavBar :showIcon="true" :showTitle="true" title="投递管理" backgroundBox="#FFFFFF"></NavBar> <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 <p
:class="{ active: apiParams.status == item.code }" :class="{ active: apiParams.status === item.code }"
v-for="(item, index) in EnumJobApplication" v-for="(item, index) in EnumJobApplication"
:key="index" :key="index"
@click="changeFilter(item.code)" @click="changeFilter(item.code)"
...@@ -36,6 +37,7 @@ const getFilterData = async () => { ...@@ -36,6 +37,7 @@ const getFilterData = async () => {
}); });
}; };
getFilterData(); getFilterData();
const contentHeight = ref("100rpx");
const changeFilter = code => { const changeFilter = code => {
apiParams.pageNo = 1; apiParams.pageNo = 1;
apiParams.status = code; apiParams.status = code;
...@@ -47,9 +49,23 @@ const changeFilter = code => { ...@@ -47,9 +49,23 @@ const changeFilter = code => {
let jobIds = 0; let jobIds = 0;
onLoad(({ jobId, status }) => { onLoad(({ jobId, status }) => {
jobIds = jobId; jobIds = jobId;
apiParams.status = status; if (!status) {
apiParams.status = "";
} else {
apiParams.status = status * 1;
}
apiParams.jobId = jobId; apiParams.jobId = jobId;
getApplicationList(); 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({ const apiParams = reactive({
...@@ -75,13 +91,11 @@ const getApplicationList = () => { ...@@ -75,13 +91,11 @@ const getApplicationList = () => {
<style lang="scss" scoped> <style lang="scss" scoped>
.page { .page {
display: flex; // display: flex;
flex-direction: column; // flex-direction: column;
height: 100%;
} }
.filter-bar { .filter-bar {
padding: 16rpx 40rpx; padding: 16rpx 40rpx;
border-bottom: 16rpx solid #f3f4f8;
p { p {
font-size: 28rpx; font-size: 28rpx;
line-height: 44rpx; line-height: 44rpx;
...@@ -106,10 +120,12 @@ const getApplicationList = () => { ...@@ -106,10 +120,12 @@ const getApplicationList = () => {
} }
scroll-view { scroll-view {
flex-grow: 1; flex-grow: 1;
height: 100vh; height: 100%;
.item { .item {
padding: 16rpx 32rpx; margin-top: 16rpx;
background: #fff;
border-bottom: 16rpx solid #f3f4f8; border-bottom: 16rpx solid #f3f4f8;
padding: 16rpx 32rpx;
} }
} }
</style> </style>
...@@ -190,6 +190,7 @@ const changeActiveTab = tab => { ...@@ -190,6 +190,7 @@ const changeActiveTab = tab => {
activeTab.value = tab; activeTab.value = tab;
getTopFilter(); getTopFilter();
getJobList(activeTopFilter.value); getJobList(activeTopFilter.value);
getJobListApiFn();
}; };
let refresherEnabled = ref(true); let refresherEnabled = ref(true);
/* 获取职位列表 */ /* 获取职位列表 */
...@@ -215,7 +216,8 @@ function fresherrefresh() { ...@@ -215,7 +216,8 @@ function fresherrefresh() {
getResumeRecommendList(); getResumeRecommendList();
}); });
} }
getJobListApi().then(res => { function getJobListApiFn() {
getJobListApi().then(res => {
if (res.code == 200) { if (res.code == 200) {
jobListColumns.value = res.data; jobListColumns.value = res.data;
console.log(res.data[0].jobType); console.log(res.data[0].jobType);
...@@ -226,7 +228,8 @@ getJobListApi().then(res => { ...@@ -226,7 +228,8 @@ getJobListApi().then(res => {
// 获取推荐列表 // 获取推荐列表
getResumeRecommendList(); getResumeRecommendList();
} }
}); });
}
function jobOfftopApiFn(v) { function jobOfftopApiFn(v) {
jobOfftopApi(v.id).then(res => { jobOfftopApi(v.id).then(res => {
if (res.code == 200) { if (res.code == 200) {
...@@ -433,6 +436,7 @@ onLoad(() => { ...@@ -433,6 +436,7 @@ onLoad(() => {
}); });
onShow(() => { onShow(() => {
getTopFilter(); getTopFilter();
getJobListApiFn();
getJobList(); getJobList();
}); });
/* 职位上下线 */ /* 职位上下线 */
......
...@@ -403,7 +403,7 @@ const openMask = () => { ...@@ -403,7 +403,7 @@ const openMask = () => {
]; ];
pinias.resetForm(); pinias.resetForm();
xma.reLaunch({ xma.reLaunch({
url: "/pages/recommend/index" url: "/pages/dynamic/index"
}); });
} }
}); });
......
...@@ -59,6 +59,12 @@ function handleError(message) { ...@@ -59,6 +59,12 @@ function handleError(message) {
handleError("登录已过期"); handleError("登录已过期");
} else if (code == 2) { } else if (code == 2) {
handleError("登录超时"); handleError("登录超时");
}else if (code ==8) {
xma.showToast({
title: '未查到该企业',
icon: "none",
duration: 1900,
});
} }
}, },
error => { 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