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

20241102问题修复

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