Commit 55501178 authored by 李明环(东信)'s avatar 李明环(东信)

20241102问题修复

parent bf6d8f88
<template>
<div class="filter" id="filter">
<div class="filter" :style="{paddingTop: statusBarHeight+'px'}" id="filter">
<div class="menu">
<p v-for="v in menuList" :class="{ active: v.active }" :key="v.name" @click="onClickMenu(v)">{{ v.name }}</p>
</div>
......@@ -21,10 +21,13 @@
</div>
<!-- 年龄要求 -->
<div class="filter-item age">
<p class="title" style="margin-bottom: 0">年龄要求</p>
<p class="title" style="margin-top: 0;">年龄要求</p>
<wd-slider
style="margin: 0 25rpx"
v-model="age"
:step="1"
hide-min-max
:max="100"
inactive-color="rgba(31, 134, 255,0.3)"
active-color="rgba(31, 134, 255,1)"
/>
......@@ -85,6 +88,10 @@
<script setup>
import { getEumData } from "@/utils/utils";
import { dictJobTypeApi } from "@/api/common";
const statusBarHeight = ref(uni.getWindowInfo().screenTop)
// 导航
const menuList = ref([]);
const onClickMenu = data => {
......@@ -120,10 +127,7 @@ const onClickMajor = v => {
};
// 初始化数据
const initData = async () => {
uni.showLoading({
title: "加载中...",
mask: true
});
/* 初始化菜单 */
menuList.value = [
{ active: true, name: "学历", className: "education" },
......@@ -169,7 +173,6 @@ const initData = async () => {
];
const dictJobType = await dictJobTypeApi({});
dictJobTypeList.value = dictJobType.data;
// uni.hideLoading();
};
initData();
/*
......@@ -197,7 +200,7 @@ const onConfirm = () => {
.filter {
position: fixed;
inset: 0;
z-index: 66666666;
z-index: 6666666;
display: flex;
background-color: #ffffff;
.menu {
......
......@@ -5,7 +5,7 @@
<view class="text-wrap">
<view class="name">
{{ data.name || "名字" }}
<text>{{data.positionName||''}}</text>
<text>{{data.positionName?`岗位:${data.positionName}`:''}}</text>
</view>
<view class="other">
{{ data.workAge }} {{ educationLevelText }} {{ data.minSalary + "~" + data.maxSalary }}
......
......@@ -4,7 +4,7 @@ import store from "./store";
import Vconsole from "vconsole";
import NavBar from "@/components/navBar/index.vue";
// 字体
import '@/assets/font.css';
import "@/assets/font.css";
import { formatTimestamp } from "@/utils/utils";
export function createApp() {
const app = createSSRApp(App);
......
......@@ -30,7 +30,7 @@ import { getApplicationListApi } from "@/api/postion";
/* 过滤条件 */
const EnumJobApplication = ref([]);
const getFilterData = async () => {
EnumJobApplication.value = await getEumData("EnumJobApplication");
EnumJobApplication.value = await getEumData("EnumPositionApplication");
EnumJobApplication.value.unshift({
text: "总投递",
code: ""
......
......@@ -19,7 +19,7 @@
@confirm="positionConfirm"
use-default-slot
>
<view class="t2">{{ jobTypeText || "全部" }}</view>
<view class="t2">{{ jobTypeText || "" }}</view>
<view class="arrow"></view>
</wd-picker>
</view>
......@@ -56,7 +56,7 @@
</view>
</view>
<!-- 筛选弹窗 -->
<Filter v-show="showOtherFilter" @confirm="filterConfirm" @cancel="showOtherFilter = false" />
<Filter v-if="showOtherFilter" @confirm="filterConfirm" @cancel="showOtherFilter = false" />
</div>
</template>
<script setup>
......@@ -84,7 +84,9 @@ const contentHeight = ref("50px");
const activeTab = ref("求职推荐");
const changeActiveTab = tab => {
activeTab.value = tab;
resetParams();
isEnd.value = false;
applicationList.value = []
// resetParams();
getResumeRecommendList();
/* getTopFilter();
getJobListApiFn(); */
......@@ -102,6 +104,11 @@ function getJobListApiFn() {
getPositionListApi({ status: 3 }).then(res => {
if (res.code == 200) {
jobListColumns.value = res.data;
if (res.data.length) {
getResumeRecommendListParams.value.positionId = res.data[0].id
jobTypeText.value = res.data[0].name
}
getResumeRecommendList()
}
});
}
......@@ -235,7 +242,7 @@ const getResumeRecommendList = () => {
});
}
};
companyReviewInfoFn = () => {
const companyReviewInfoFn = () => {
companyReviewInfo().then(res => {
if (!res.data) {
uni.navigateTo({
......@@ -245,9 +252,14 @@ companyReviewInfoFn = () => {
});
};
companyReviewInfoFn();
// 第一次不执行推荐列表需要(需要拉取到列表在执行)
let notFirst = false
onShow(() => {
resetPageParams();
if (notFirst) {
getResumeRecommendList();
}
notFirst = true
getUserInfo();
});
// 城市筛选
......
......@@ -34,7 +34,7 @@
<!-- <view class="data">{{ data.positionName }}{{ data.salary }}</view> -->
<!-- 需要选择岗位 -->
<template v-if="jobIdTemp">
<view class="data">{{ data.positionName }}{{ data.salary }}</view>
<view class="data">{{ data.positionName }}{{data.negotiableSalary? '面议':data.salary }}</view>
</template>
<template v-else>
<wd-picker
......
......@@ -808,8 +808,6 @@ function addPost() {
</script>
<style lang="scss" scoped>
page {
}
.page {
width: 100%;
.title-box {
......@@ -824,9 +822,9 @@ page {
flex-direction: column;
width: 100%;
.wd-cell-item {
box-sizing: border-box;
display: flex;
width: 100%;
box-sizing: border-box;
padding: 32rpx 28rpx;
border-bottom: 2rpx solid #e0e0e1;
.right {
......@@ -846,22 +844,22 @@ page {
}
}
.from-2 {
width: 100%;
box-sizing: border-box;
display: flex;
flex-direction: column;
width: 100%;
padding: 32rpx;
margin-top: 32rpx;
background: #fff;
background: #ffffff;
.title {
font-size: 48rpx;
font-weight: 500;
color: #1b2026;
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
justify-content: space-between;
width: 100%;
margin-bottom: 32rpx;
font-size: 48rpx;
font-weight: 500;
color: #1b2026;
}
textarea {
box-sizing: border-box;
......@@ -875,17 +873,17 @@ page {
text-wrap: nowrap;
}
.checkbox {
white-space: nowrap;
flex-shrink: 0;
white-space: nowrap;
}
.transverse {
display: flex;
align-items: baseline;
justify-content: space-between;
:deep(.uni-checkbox-input) {
border-radius: 50% !important;
margin-left: 20rpx;
flex-shrink: 0;
margin-left: 20rpx;
border-radius: 50% !important;
}
}
.welfare {
......@@ -908,9 +906,9 @@ page {
}
.text-single {
width: 100%;
white-space: wrap;
overflow: hidden;
text-overflow: ellipsis;
white-space: wrap;
}
}
.footer {
......
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