|
@@ -1,7 +1,7 @@
|
|
<template>
|
|
<template>
|
|
<view class="talent-search-page">
|
|
<view class="talent-search-page">
|
|
<!-- 搜索框 -->
|
|
<!-- 搜索框 -->
|
|
- <view class="search flex align-center justify-center">
|
|
|
|
|
|
+ <view class="search flex align-center justify-center" :style="{ paddingTop: (12 + statusBarHeight) + 'px' }">
|
|
<view class="search-box">
|
|
<view class="search-box">
|
|
<view class="dropdown-btn" @click="showDropdown">
|
|
<view class="dropdown-btn" @click="showDropdown">
|
|
<text class="dropdown-text">{{ positionOptions[selectedPosition] }}</text>
|
|
<text class="dropdown-text">{{ positionOptions[selectedPosition] }}</text>
|
|
@@ -19,7 +19,7 @@
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<!-- 筛选栏 -->
|
|
<!-- 筛选栏 -->
|
|
- <view class="topbg-sx-box flex justify-start align-center">
|
|
|
|
|
|
+ <view class="topbg-sx-box flex justify-start align-center" :style="{ top: searchBoxHeight }">
|
|
<view class="topbg-sx-box-r flex align-center">
|
|
<view class="topbg-sx-box-r flex align-center">
|
|
<!-- 城市 -->
|
|
<!-- 城市 -->
|
|
<view class="topbg-sx-box-r-i flex align-center" style="">
|
|
<view class="topbg-sx-box-r-i flex align-center" style="">
|
|
@@ -40,7 +40,7 @@
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<!-- 人才列表 -->
|
|
<!-- 人才列表 -->
|
|
- <view class="talent-list">
|
|
|
|
|
|
+ <view class="talent-list" :style="{ marginTop: talentListMarginTop }">
|
|
<view
|
|
<view
|
|
class="talent-card"
|
|
class="talent-card"
|
|
v-for="(talent, index) in talentList"
|
|
v-for="(talent, index) in talentList"
|
|
@@ -133,6 +133,7 @@
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ statusBarHeight: 0, // 状态栏高度
|
|
searchKeyword: '',
|
|
searchKeyword: '',
|
|
currentSx: 0,
|
|
currentSx: 0,
|
|
sxTypeList: [
|
|
sxTypeList: [
|
|
@@ -216,9 +217,28 @@ export default {
|
|
description: '负责Amazon英国、欧洲站、制定推广与销售计划,达成团队要求的销售业绩;做好数据的统计分析工作,收集、分析...',
|
|
description: '负责Amazon英国、欧洲站、制定推广与销售计划,达成团队要求的销售业绩;做好数据的统计分析工作,收集、分析...',
|
|
workPeriod: ''
|
|
workPeriod: ''
|
|
}
|
|
}
|
|
- ]
|
|
|
|
|
|
+ ]
|
|
|
|
+}
|
|
|
|
+},
|
|
|
|
+ computed: {
|
|
|
|
+ // 计算搜索框的总高度(px)
|
|
|
|
+ searchBoxHeight() {
|
|
|
|
+ // 动态 paddingTop (12 + statusBarHeight) + 搜索框内容高度 + paddingBottom
|
|
|
|
+ // 搜索框内容约 52rpx ≈ 26px, paddingBottom 20rpx ≈ 10px
|
|
|
|
+ return (12 + this.statusBarHeight + 26 + 10) + 'px';
|
|
|
|
+ },
|
|
|
|
+ // 计算人才列表的 margin-top(包括搜索框 + 筛选栏)
|
|
|
|
+ talentListMarginTop() {
|
|
|
|
+ // 搜索框高度 + 筛选栏高度(紧凑布局)
|
|
|
|
+ // 筛选栏实际高度约 46px(按钮18px + 内边距16px + 外边距12px)
|
|
|
|
+ return (12 + this.statusBarHeight + 26 + 10 + 46) + 'px';
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ onLoad() {
|
|
|
|
+ // 获取状态栏高度
|
|
|
|
+ let systemInfo = uni.getSystemInfoSync();
|
|
|
|
+ this.statusBarHeight = systemInfo.statusBarHeight || 0;
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
// 返回上一页
|
|
// 返回上一页
|
|
goBack() {
|
|
goBack() {
|
|
@@ -357,7 +377,8 @@ export default {
|
|
position: fixed;
|
|
position: fixed;
|
|
top: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
width: 100%;
|
|
- padding: 80rpx 20rpx 20rpx 20rpx;
|
|
|
|
|
|
+ padding: 0rpx 20rpx 20rpx 20rpx;
|
|
|
|
+ // padding-top 已改为动态计算,在模板中通过 :style 设置
|
|
background: linear-gradient(180.00deg, rgba(255, 102, 0, 1),rgba(255, 89, 89, 1) 83%);
|
|
background: linear-gradient(180.00deg, rgba(255, 102, 0, 1),rgba(255, 89, 89, 1) 83%);
|
|
z-index: 99;
|
|
z-index: 99;
|
|
|
|
|
|
@@ -490,7 +511,7 @@ export default {
|
|
|
|
|
|
.topbg-sx-box {
|
|
.topbg-sx-box {
|
|
position: fixed;
|
|
position: fixed;
|
|
- top: 160rpx;
|
|
|
|
|
|
+ // top: 160rpx; // 已改为动态计算,在模板中通过 :style 设置
|
|
left: 0;
|
|
left: 0;
|
|
right: 0;
|
|
right: 0;
|
|
width: 100%;
|
|
width: 100%;
|
|
@@ -569,7 +590,7 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
.talent-list {
|
|
.talent-list {
|
|
- margin-top: 280rpx;
|
|
|
|
|
|
+ // margin-top: 280rpx; // 已改为动态计算,在模板中通过 :style 设置
|
|
padding: 20rpx;
|
|
padding: 20rpx;
|
|
}
|
|
}
|
|
|
|
|