index.vue 30 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297
  1. <template>
  2. <view class="talent-search-page">
  3. <!-- <image class="top-bg" src="/static/images/index/index-bg1.png" mode="widthFix" /> -->
  4. <view class="topbg-sticky">
  5. <!-- <view class="top-bg"></view> -->
  6. <!-- 搜索框 -->
  7. <view class="search flex align-center justify-center"
  8. :style="{ paddingTop: (22 + statusBarHeight) + 'px' }">
  9. <view class="search-box">
  10. <view class="dropdown-btn" @click="showDropdown">
  11. <text class="dropdown-text">{{ selectedText||'请选择' }}</text>
  12. <u-icon name="arrow-down" color="#016BF6" size="16"></u-icon>
  13. </view>
  14. <view class="separator"></view>
  15. <input class="search-input" v-model="searchKeyword" placeholder="通过职位关键词查询" @confirm="custom" />
  16. </view>
  17. <view class="search-btn" @click="custom">搜索</view>
  18. </view>
  19. <!-- 筛选栏 -->
  20. <view class="qySx-sx-box flex justify-between align-center">
  21. <view class="qySx-sx-box-r flex align-center">
  22. <!-- 城市 -->
  23. <view class="qySx-sx-box-r-i flex align-center">
  24. <text style="margin-right: 10rpx;"
  25. @click="goNav('/package/jobIntention/city')">{{city?city:'选择城市'}}</text>
  26. <u-icon name="arrow-down" color="#00B78F" size="16"
  27. @click="goNav('/package/jobIntention/city')"></u-icon>
  28. </view>
  29. <!-- 筛选 -->
  30. <view class="qySx-sx-box-filter flex align-center">
  31. <text style="margin-right: 10rpx;" @click="goNav('/package/screen/screen?type=2')">筛选</text>
  32. <u-icon name="arrow-down" color="#999999" size="16"
  33. @click="goNav('/package/screen/screen?type=2')"></u-icon>
  34. </view>
  35. <view class="qySx-sx-box-filter flex align-center" v-if="education || salaryRange || experience">
  36. <text v-if="education" class="qySx-sx-box-filter-text">{{education}}</text>
  37. <text v-if="salaryRange" class="qySx-sx-box-filter-text">{{salaryRange}}</text>
  38. <text v-if="experience" class="qySx-sx-box-filter-text">{{experience}}</text>
  39. </view>
  40. </view>
  41. </view>
  42. </view>
  43. <!-- 人才列表 -->
  44. <!-- <view class="talent-list" :style="{ marginTop: talentListMarginTop }"> -->
  45. <view class="talent-list">
  46. <view class="talent-card" v-for="(talent, index) in talentList" :key="index"
  47. @click="goToResumeDetail(talent)">
  48. <view class="talent-content">
  49. <!-- 头像和基本信息 -->
  50. <view class="talent-header">
  51. <image :src="talent.userAvatar" class="talent-avatar" mode="aspectFill"></image>
  52. <view class="talent-info">
  53. <view class="talent-name-section">
  54. <view class="talent-name">{{ talent.maskedName }}</view>
  55. <view class="talent-tags">
  56. <view class="status-tag online" v-if="talent.isOnline">在线</view>
  57. <!-- <view class="status-tag hot" v-if="talent.isHot">热门搜索</view> -->
  58. <view class="status-tag active" v-if="talent.lastActive">{{ talent.lastActive }}
  59. </view>
  60. </view>
  61. </view>
  62. <!-- 经验和薪资 -->
  63. <view class="talent-experience">
  64. <text class="experience-text">{{ talent.resumesWorkExperience || 0 }}</text>
  65. <text class="education-salary">{{ talent.minSalary }} -{{ talent.maxSalary }}</text>
  66. <text class="status-text">{{ jobStatusList[talent.resumesStatus].text}}</text>
  67. </view>
  68. </view>
  69. </view>
  70. <!-- 当前职位 -->
  71. <view class="current-job">
  72. <image src="../../static/images/aixin.svg" class="job-icon" mode="aspectFit"></image>
  73. <text class="job-text">{{ talent.companyName }}·{{ talent.lastWorkPosition }}</text>
  74. </view>
  75. <!-- 求职期望 -->
  76. <view class="job-expectation">
  77. <image src="../../static/images/xiangzi.svg" class="job-icon" mode="aspectFit"></image>
  78. <text class="expectation-text">求职期望: {{ talent.expectedPosition }}</text>
  79. </view>
  80. <!-- 跨境标签 -->
  81. <view class="skill-tags" v-if="talent.intentPostSkill">
  82. <view class="skill-tag" v-for="(text,i) in parseSkills(talent.intentPostSkill)" :key="i">
  83. {{ text }}
  84. </view>
  85. </view>
  86. <!-- 工作经历 -->
  87. <view class="job-description">
  88. <text class="description-text">{{ talent.lastWorkContent }}</text>
  89. </view>
  90. </view>
  91. </view>
  92. </view>
  93. <!-- 职位选择弹窗 -->
  94. <view class="position-modal" v-if="showPositionModal" @click="hidePositionModal">
  95. <view class="position-modal-content" @click.stop>
  96. <!-- 拖拽条 -->
  97. <view class="position-modal-handle"></view>
  98. <!-- 标题 -->
  99. <view class="position-modal-title">选择职位</view>
  100. <!-- 职位选项 -->
  101. <view class="position-options">
  102. <view class="position-option" :class="selectedPosition === option.id ? 'active' : ''"
  103. @click="selectPosition(option)" v-for="(option, index) in positionOptions" :key="index">
  104. <view class="position-option-icon">
  105. <view class="check-icon" v-if="selectedPosition === option.id">✓</view>
  106. </view>
  107. <text class="position-option-text">{{ option.name }}</text>
  108. </view>
  109. </view>
  110. </view>
  111. </view>
  112. </view>
  113. </template>
  114. <script>
  115. export default {
  116. data() {
  117. return {
  118. statusBarHeight: 0, // 状态栏高度
  119. searchKeyword: '',
  120. currentSx: 0,
  121. sxTypeList: [{
  122. id: 1,
  123. name: '推荐',
  124. },
  125. {
  126. id: 2,
  127. name: '最新',
  128. }
  129. ],
  130. city: '深圳',
  131. county: '',
  132. showSortModalFlag: false,
  133. selectedSort: 0,
  134. sortOptions: ['综合排序', '最新优先', '距离优先'],
  135. showPositionModal: false,
  136. selectedPosition: 0,
  137. positionOptions: '',
  138. selectedText: "",
  139. talentList: [],
  140. jobStatusList: [],
  141. token: '',
  142. page: 1,
  143. limit: 10,
  144. latitude: '',
  145. longitude: '',
  146. totlo: '',
  147. education: '', //学历
  148. experience: '', //经验
  149. industry: '', //行业
  150. salaryRange: '', //薪资
  151. companyPeople: '', //公司规模
  152. preference: [],
  153. domeWidth: 0,
  154. showModal: true,
  155. arr: [],
  156. companyStatus: '',
  157. XCXIsSelect: '是',
  158. bannerList: [], //企业端轮播图
  159. bannerListuser: [], //用户端轮播图
  160. gridlist: [], //用户端分类
  161. gongao: [], //公告
  162. tuiguang: '', //分享标题
  163. bgImg: '', //分享图片
  164. companList: [], //公司列表
  165. directionList: [ //方向列表
  166. {
  167. id: '不限',
  168. name: '不限'
  169. }
  170. ],
  171. }
  172. },
  173. computed: {
  174. // 计算搜索框的总高度(px)
  175. searchBoxHeight() {
  176. // 动态 paddingTop (12 + statusBarHeight) + 搜索框内容高度 + paddingBottom
  177. // 搜索框内容约 52rpx ≈ 26px, paddingBottom 20rpx ≈ 10px
  178. return (12 + this.statusBarHeight + 26 + 10) + 'px';
  179. },
  180. // 计算人才列表的 margin-top(包括搜索框 + 筛选栏)
  181. talentListMarginTop() {
  182. // 搜索框高度 + 筛选栏高度(紧凑布局)
  183. // 筛选栏实际高度约 46px(按钮18px + 内边距16px + 外边距12px)
  184. return (1+ this.statusBarHeight) + 'px';
  185. //return '-69px';
  186. }
  187. },
  188. onLoad() {
  189. // 获取状态栏高度
  190. let systemInfo = uni.getSystemInfoSync();
  191. this.statusBarHeight = systemInfo.statusBarHeight || 0;
  192. this.getCompanyClassify()
  193. //this.getPeopList()
  194. this.jobStatusList = this.$queue.resumesStatus()
  195. },
  196. onShow() {
  197. if (uni.getStorageSync('city')) {
  198. this.city = uni.getStorageSync('city')
  199. } else {
  200. this.city = ''
  201. }
  202. //获取选中的筛选条件
  203. if (uni.getStorageSync('filter') && (uni.getStorageSync('filter')).length > 0) {
  204. let filter = uni.getStorageSync('filter')
  205. this.education = '' //学历
  206. this.experience = '' //经验
  207. this.industry = '' //行业
  208. this.salaryRange = '' //薪资
  209. this.companyPeople = '' //公司规模
  210. filter.map(item => {
  211. let arr = []
  212. item.list.map(ite => {
  213. if (ite.value != '不限') {
  214. arr.push(ite.value)
  215. }
  216. })
  217. console.log(item)
  218. switch (item.name) {
  219. case '学历要求':
  220. //this.education = arr.join(',')
  221. this.education = item.list[0].value == '不限' ? '' : item.list[0].value
  222. break;
  223. case '薪资范围(单选)':
  224. //this.salaryRange = arr.join(',')
  225. this.salaryRange = item.list[0].value == '不限' ? '' : item.list[0].value
  226. break;
  227. case '经验要求':
  228. //this.experience = arr.join(',')
  229. this.experience = item.list[0].value == '不限' ? '' : item.list[0].value
  230. break;
  231. case '公司规模':
  232. //this.companyPeople = arr.join(',')
  233. this.companyPeople = item.list[0].value == '不限' ? '' : item.list[0].value
  234. break;
  235. case '行业':
  236. //this.industry = arr.join(',')
  237. this.industry = item.list[0].value == '不限' ? '' : item.list[0].value
  238. break;
  239. }
  240. })
  241. console.log(this.experience)
  242. this.getPeopList()
  243. } else {
  244. this.education = '' //学历
  245. this.experience = '' //经验
  246. this.industry = '' //行业
  247. this.salaryRange = '' //薪资
  248. this.companyPeople = '' //公司规模
  249. // this.getCompanyClassify()
  250. this.getPeopList()
  251. }
  252. },
  253. methods: {
  254. parseSkills(str) {
  255. if (!str) return [];
  256. try {
  257. // ✅ 如果是多个 JSON 数组拼接:比如 ["A"],["B"]
  258. if (str.includes('],[')) {
  259. const wrapped = `[${str}]`; // 变成 [["A"],["B"]]
  260. const parsed = JSON.parse(wrapped);
  261. return [...new Set(parsed.flat())]; // 扁平化 + 去重
  262. }
  263. // ✅ 正常的单个 JSON 数组字符串
  264. const parsed = JSON.parse(str);
  265. if (Array.isArray(parsed)) {
  266. return [...new Set(parsed)];
  267. }
  268. } catch (e) {
  269. // 非 JSON 格式的情况继续往下处理
  270. }
  271. // ✅ 替换中文逗号
  272. str = str.replace(/,/g, ',');
  273. // ✅ 支持多种分隔符
  274. let arr = [];
  275. if (str.includes('/')) {
  276. arr = str.split('/');
  277. } else if (str.includes(',')) {
  278. arr = str.split(',');
  279. } else {
  280. arr = [str];
  281. }
  282. return [...new Set(arr.map(s => s.trim()).filter(Boolean))];
  283. },
  284. // 返回上一页
  285. goBack() {
  286. uni.navigateBack()
  287. },
  288. // 显示下拉菜单
  289. showDropdown() {
  290. this.showPositionModal = true
  291. },
  292. // 隐藏职位选择弹窗
  293. hidePositionModal() {
  294. this.showPositionModal = false
  295. },
  296. /**
  297. * 获取公司发布的岗位列表
  298. */
  299. getCompanyClassify() {
  300. let data = {
  301. }
  302. if(uni.getStorageSync('companyId')&&uni.getStorageSync('companyId')!='null')
  303. data.companyId= uni.getStorageSync('companyId')
  304. this.$Request.getT('/app/postPush/getCompanyClassify', data).then(res => {
  305. if (res.code == 0) {
  306. let arr = [
  307. /* {
  308. projectName: '',
  309. name: '全部',
  310. }, */
  311. ]
  312. if (res.data.length == 0) {
  313. if(uni.getStorageSync('companyId')&&uni.getStorageSync('companyId')!='null')
  314. uni.navigateTo({
  315. url: '/pages/my/jobPosting?companyId=' + uni.getStorageSync('companyId') + '&status=' + this
  316. .companyStatus + '&companyName=' + this.companyName
  317. })
  318. else
  319. this.$queue.showToast('请先进行企业认证')
  320. }
  321. if (res && res.data && Array.isArray(res.data)) {
  322. console.log(res.data,'啊啊啊')
  323. this.selectedPosition = res.data.length>0&&res.data[0].postPushId||''
  324. // 更新下拉按钮显示的文字
  325. this.selectedText = res.data.length>0&&res.data[0].ruleClassifyName || ''
  326. res.data.map(item => {
  327. let obj = {
  328. id: item.postPushId,
  329. projectName: item.ruleClassifyName,
  330. name: item.ruleClassifyName,
  331. }
  332. arr.push(obj)
  333. })
  334. console.log(arr)
  335. this.positionOptions = arr
  336. this.getPeopList()
  337. }
  338. }
  339. })
  340. },
  341. maskName(name) {
  342. // 处理空值或非字符串情况
  343. if (!name || typeof name !== 'string') {
  344. return '';
  345. }
  346. // 获取姓氏(第一个字符)
  347. const surname = name.charAt(0);
  348. // 计算需要替换的字符数(名字长度 - 1)
  349. const nameLength = name.length - 1;
  350. // 生成对应数量的星号
  351. const maskedPart = '*'.repeat(nameLength > 0 ? nameLength : 0);
  352. // 返回处理后的名字
  353. return surname + maskedPart;
  354. },
  355. /**
  356. * 获取简历列表
  357. */
  358. getPeopList() {
  359. if(!this.selectedText) return;
  360. let data = {
  361. page: this.page,
  362. limit: this.limit,
  363. lastWorkPosition: this.searchKeyword || "",
  364. expectedPosition: this.selectedText || "", //期望职位
  365. city: this.city || "", //期望城市
  366. salaryRange: this.salaryRange || "", //薪资
  367. resumesStatus: this.resumesStatus || "", //个人状态
  368. expRange: this.experience || "", //工作经验
  369. eduRange: this.education || "", //学历范围
  370. }
  371. this.$Request.postJson('/app/resumes/selectResumesList', data).then(res => {
  372. uni.stopPullDownRefresh()
  373. uni.hideLoading()
  374. if (res.code == 0 && res.data) {
  375. this.talentList = [] //清空下搜索和筛选之前的数据
  376. this.totalPage = res.data.totalPage
  377. // res.data.list.map(item => {
  378. // if (item.positionWelfare) {
  379. // item.positionWelfare = item.positionWelfare.split(',')
  380. // } else {
  381. // item.positionWelfare = []
  382. // }
  383. // })
  384. console.log(res.data);
  385. if (!res.data.records || !Array.isArray(res.data.records) || res.data.records.length === 0) {
  386. return uni.showToast({
  387. title: '暂无数据', // 提示文字
  388. icon: 'none', // 不显示图标(可选值:success / loading / none)
  389. duration: 2000, // 显示时长,单位毫秒(2000 = 2秒)
  390. mask: true // 是否显示透明蒙层,防止触摸穿透(可选)
  391. });
  392. }
  393. const list = res.data.records.map(item => {
  394. // 若技能字段为其他名称(如 skillTags),需映射为 skills
  395. // item.skills = item.skillName || '';
  396. item.skills = item.skillName ? item.skillName.split(',').map(skill => skill
  397. .trim()) : [];
  398. item.maskedName = this.maskName(item.userName);
  399. return item;
  400. });
  401. if (this.page == 1) {
  402. this.talentList = list
  403. } else {
  404. this.talentList = [...this.talentList, ...list]
  405. }
  406. this.totlo = list.totalPage
  407. } else {
  408. this.talentList = []
  409. }
  410. })
  411. },
  412. // 选择职位
  413. selectPosition(obj) {
  414. console.log(obj)
  415. this.selectedPosition = obj.id
  416. // 更新下拉按钮显示的文字
  417. const selectedTexts = obj.name
  418. this.selectedText = selectedTexts
  419. // 这里可以更新下拉按钮的显示文字
  420. /* uni.showToast({
  421. title: `已选择: ${selectedTexts}`,
  422. icon: 'none'
  423. }) */
  424. this.getPeopList()
  425. this.hidePositionModal()
  426. },
  427. // 搜索
  428. custom() {
  429. console.log('搜索关键词:', this.searchKeyword)
  430. // 这里可以添加搜索逻辑
  431. this.getPeopList()
  432. },
  433. // 跳转页面
  434. goNavs(url) {
  435. // #ifdef MP-WEIXIN
  436. if (uni.getStorageSync('sendMsg')) {
  437. // console.log('授权+1')
  438. wx.requestSubscribeMessage({
  439. tmplIds: this.arr,
  440. success(re) {
  441. // console.log(JSON.stringify(re), 111111111111)
  442. var datas = JSON.stringify(re);
  443. if (datas.indexOf("accept") != -1) {
  444. // console.log(re)
  445. }
  446. },
  447. fail: (res) => {
  448. // console.log(res)
  449. }
  450. })
  451. }
  452. // #endif
  453. uni.navigateTo({
  454. url: url
  455. })
  456. },
  457. // 清空搜索
  458. clear() {
  459. this.searchKeyword = ''
  460. },
  461. // 跳转页面
  462. goNav(url) {
  463. if (uni.getStorageSync('token')) {
  464. // #ifdef MP-WEIXIN
  465. if (uni.getStorageSync('sendMsg')) {
  466. // console.log('授权+1')
  467. wx.requestSubscribeMessage({
  468. tmplIds: this.arr,
  469. success(re) {
  470. // console.log(JSON.stringify(re), 111111111111)
  471. var datas = JSON.stringify(re);
  472. if (datas.indexOf("accept") != -1) {
  473. // console.log(re)
  474. }
  475. },
  476. fail: (res) => {
  477. // console.log(res)
  478. }
  479. })
  480. }
  481. // #endif
  482. uni.navigateTo({
  483. url: url
  484. })
  485. } else {
  486. this.noLogin()
  487. }
  488. },
  489. // 未登录提示
  490. noLogin() {
  491. uni.showModal({
  492. title: '提示',
  493. content: '您还未登录,请先登录',
  494. confirmColor: '#016BF6',
  495. success: (res) => {
  496. if (res.confirm) {
  497. this.$queue.toLogin('navigateTo')
  498. }
  499. }
  500. })
  501. },
  502. // 显示排序弹窗
  503. showSortModal() {
  504. this.showSortModalFlag = true
  505. },
  506. // 隐藏排序弹窗
  507. hideSortModal() {
  508. this.showSortModalFlag = false
  509. },
  510. // 选择排序选项
  511. selectSort(index) {
  512. this.selectedSort = index
  513. uni.showToast({
  514. title: `已选择: ${this.sortOptions[index]}`,
  515. icon: 'none'
  516. })
  517. this.hideSortModal()
  518. },
  519. // 跳转到人才详情
  520. goToResumeDetail(talent) {
  521. console.log('查看人才详情:', talent,this.selectedPosition)
  522. if(!this.selectedPosition){
  523. uni.showToast({
  524. title:'请添加招聘岗位!',
  525. icon:'none'
  526. })
  527. return;
  528. }
  529. // 跳转到简历详情页面
  530. uni.navigateTo({
  531. url: `/pages/talentSearch/resumeDetail?resumesId=${talent.id || talent.resumesId || ''}&postPushId=${this.selectedPosition}`
  532. })
  533. }
  534. }
  535. }
  536. </script>
  537. <style lang="scss" scoped>
  538. // 激活状态样式
  539. .active3 {
  540. flex-direction: row;
  541. justify-content: center;
  542. align-items: center;
  543. padding: 12rpx;
  544. border-radius: 12rpx;
  545. background: #FFFFFF !important;
  546. margin-right: 12rpx;
  547. border: 0.5px solid rgba(1, 107, 246, 1);
  548. color: rgba(1, 107, 246, 1) !important;
  549. font-family: DM Sans;
  550. font-size: 22rpx;
  551. font-weight: 400;
  552. line-height: 20rpx;
  553. letter-spacing: 0px;
  554. text-align: left;
  555. }
  556. .talent-search-page {
  557. min-height: 100vh;
  558. background-color: #f5f5f5;
  559. }
  560. .topbg-sticky {
  561. display: flex;
  562. flex-direction: column;
  563. justify-content: space-around;
  564. background-image: url('/static/images/index/index-bg1.png');
  565. background-repeat: no-repeat;
  566. background-size: cover;
  567. background-position-y: -38rpx;
  568. // border: #007AFF 1px solid;
  569. }
  570. .top-bg {
  571. position: relative;
  572. top: 0;
  573. z-index: 0;
  574. width: 100%;
  575. }
  576. .topbg-sticky-box {
  577. width: 100%;
  578. padding: 0 40rpx;
  579. position: relative;
  580. z-index: 1;
  581. }
  582. .topbg-sticky-title {
  583. width: 100%;
  584. margin-bottom: 20rpx;
  585. }
  586. .topbg-sticky-title-left {
  587. color: rgba(255, 255, 255, 1);
  588. font-family: DM Sans;
  589. font-size: 32rpx;
  590. font-weight: 700;
  591. line-height: 36rpx;
  592. letter-spacing: 0%;
  593. text-align: left;
  594. }
  595. .xing-icon {
  596. width: 42rpx;
  597. height: 42rpx;
  598. margin-right: 12rpx;
  599. }
  600. .topbg-sticky-title-right {
  601. color: #ffffff;
  602. }
  603. .topbg-sticky-subtitle {
  604. color: rgba(255, 255, 255, 1);
  605. font-family: DM Sans;
  606. font-size: 30rpx;
  607. font-weight: 700;
  608. line-height: 36rpx;
  609. letter-spacing: 0%;
  610. text-align: left;
  611. }
  612. .qySx-sx-box {
  613. width: 94%;
  614. //margin-top: -60rpx;
  615. background-color: #fff;
  616. height: 82rpx;
  617. margin: 2px auto;
  618. border-radius: 8px;
  619. padding: 24rpx;
  620. .qySx-sx-box-l-i {
  621. color: rgba(153, 153, 153, 1);
  622. font-family: DM Sans;
  623. font-size: 24rpx;
  624. font-weight: 400;
  625. line-height: 36rpx;
  626. letter-spacing: 0%;
  627. text-align: center;
  628. margin-right: 20rpx;
  629. border-radius: 6px;
  630. background: rgba(198, 198, 198, 0.1);
  631. padding: 8rpx 12rpx;
  632. display: inline-block;
  633. min-width: 60rpx;
  634. white-space: nowrap;
  635. &.active3 {
  636. font-family: DM Sans;
  637. font-size: 24rpx !important;
  638. font-weight: 400 !important;
  639. line-height: 36rpx;
  640. letter-spacing: 0%;
  641. text-align: left;
  642. padding: 8rpx 12rpx !important;
  643. color: rgba(1, 107, 246, 1) !important;
  644. // background: #D6E7FD !important;
  645. background: rgba(252, 233, 220, 1);
  646. border: 1px solid rgba(1, 107, 246, 1);
  647. }
  648. }
  649. .qySx-sx-box-r-i {
  650. color: rgba(1, 107, 246, 1);
  651. font-family: DM Sans;
  652. font-size: 24rpx;
  653. font-weight: 400;
  654. line-height: 36rpx;
  655. letter-spacing: 0%;
  656. text-align: center;
  657. margin-right: 20rpx;
  658. border-radius: 6px;
  659. // background: #D6E7FD;
  660. background: rgba(252, 233, 220, 1);
  661. padding: 8rpx 12rpx;
  662. display: inline-block;
  663. min-width: 60rpx;
  664. white-space: nowrap;
  665. cursor: pointer;
  666. transition: all 0.3s ease;
  667. border: 0.5px solid rgba(1, 107, 246, 1);
  668. }
  669. .qySx-sx-box-filter {
  670. color: rgba(153, 153, 153, 1);
  671. font-family: DM Sans;
  672. font-size: 24rpx;
  673. font-weight: 400;
  674. line-height: 36rpx;
  675. letter-spacing: 0%;
  676. text-align: center;
  677. border-radius: 6px;
  678. background: rgba(198, 198, 198, 0.1);
  679. padding: 8rpx 12rpx;
  680. display: inline-block;
  681. min-width: 60rpx;
  682. white-space: nowrap;
  683. cursor: pointer;
  684. transition: all 0.3s ease;
  685. .qySx-sx-box-filter-text {
  686. border: 1px solid #016bf6;
  687. border-radius: 3px;
  688. padding: 2px;
  689. font-size: 11px;
  690. margin-left: 12px;
  691. }
  692. }
  693. }
  694. // 搜索框
  695. .search {
  696. // position: fixed;
  697. // top: 0;
  698. width: 100%;
  699. padding: 0rpx 20rpx 20rpx 20rpx;
  700. // padding-top 已改为动态计算,在模板中通过 :style 设置
  701. //background: linear-gradient(180.00deg, rgba(255, 102, 0, 1), rgba(255, 89, 89, 1) 83%);
  702. z-index: 99;
  703. .search-box {
  704. flex: 1;
  705. box-sizing: border-box;
  706. border: 1px solid rgba(227, 231, 236, 1);
  707. border-radius: 24px;
  708. background: rgba(241, 241, 241, 1);
  709. overflow: hidden;
  710. display: flex;
  711. align-items: center;
  712. padding: 0 32rpx;
  713. height: 72rpx;
  714. }
  715. .dropdown-btn {
  716. display: flex;
  717. align-items: center;
  718. padding: 14rpx 16rpx;
  719. background-color: #F1F1F1;
  720. border: 1rpx solid #016BF6;
  721. border-radius: 8rpx;
  722. margin-right: 12rpx;
  723. .dropdown-text {
  724. color: rgba(1, 107, 246, 1);
  725. font-family: DM Sans;
  726. font-size: 24rpx;
  727. font-weight: 400;
  728. line-height: 20rpx;
  729. letter-spacing: -0.5px;
  730. text-align: left;
  731. margin-right: 8rpx;
  732. }
  733. }
  734. .separator {
  735. width: 4rpx;
  736. height: 56rpx;
  737. background-color: rgba(153, 153, 153, 1);
  738. margin-right: 12rpx;
  739. }
  740. .search-input {
  741. flex: 1;
  742. height: 100%;
  743. background: transparent;
  744. color: #333;
  745. font-family: DM Sans;
  746. font-size: 26rpx;
  747. font-weight: 400;
  748. line-height: 48rpx;
  749. letter-spacing: 0.5%;
  750. text-align: left;
  751. &::placeholder {
  752. color: rgba(182, 182, 182, 1);
  753. font-family: DM Sans;
  754. font-size: 20rpx;
  755. font-weight: 400;
  756. line-height: 48rpx;
  757. letter-spacing: 0.5%;
  758. text-align: left;
  759. }
  760. }
  761. .search-btn {
  762. width: 80rpx;
  763. color: rgba(255, 255, 255, 1);
  764. font-family: DM Sans;
  765. font-size: 30rpx;
  766. font-weight: 500;
  767. line-height: 48rpx;
  768. letter-spacing: 0.5%;
  769. text-align: center;
  770. }
  771. }
  772. .search-bar {
  773. display: flex;
  774. align-items: center;
  775. margin-bottom: 20rpx;
  776. .search-input {
  777. flex: 1;
  778. height: 80rpx;
  779. background-color: #f8f8f8;
  780. border-radius: 40rpx;
  781. padding: 0 30rpx;
  782. font-size: 28rpx;
  783. color: #333;
  784. margin-right: 20rpx;
  785. }
  786. .search-btn {
  787. width: 120rpx;
  788. height: 80rpx;
  789. background-color: #016BF6;
  790. color: #ffffff;
  791. border-radius: 40rpx;
  792. display: flex;
  793. align-items: center;
  794. justify-content: center;
  795. font-size: 32rpx;
  796. }
  797. }
  798. .filter-tags {
  799. display: flex;
  800. flex-wrap: wrap;
  801. gap: 16rpx;
  802. .filter-tag {
  803. padding: 12rpx 24rpx;
  804. background-color: #ffffff;
  805. border: 1rpx solid #e5e5e5;
  806. border-radius: 20rpx;
  807. font-size: 24rpx;
  808. color: #666;
  809. }
  810. }
  811. .active3 {
  812. color: #1A1A1A !important;
  813. font-size: 28rpx !important;
  814. font-weight: 800 !important;
  815. }
  816. .topbg-sx-box {
  817. position: fixed;
  818. // top: 160rpx; // 已改为动态计算,在模板中通过 :style 设置
  819. left: 0;
  820. right: 0;
  821. width: 100%;
  822. background-color: #ffffff;
  823. z-index: 98;
  824. padding: 20rpx;
  825. // box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
  826. .topbg-sx-box-l-i {
  827. color: rgba(153, 153, 153, 1);
  828. font-family: DM Sans;
  829. font-size: 24rpx;
  830. font-weight: 400;
  831. line-height: 18px;
  832. letter-spacing: 0%;
  833. text-align: center;
  834. margin-right: 20rpx;
  835. border-radius: 6px;
  836. background: rgba(198, 198, 198, 0.1);
  837. padding: 8rpx 12rpx;
  838. display: inline-block;
  839. min-width: 60rpx;
  840. white-space: nowrap;
  841. &.active3 {
  842. font-family: DM Sans;
  843. font-size: 24rpx !important;
  844. font-weight: 400 !important;
  845. line-height: 18px;
  846. letter-spacing: 0%;
  847. text-align: left;
  848. padding: 8rpx 12rpx !important;
  849. color: rgba(1, 107, 246, 1) !important;
  850. background: rgba(252, 233, 220, 1) !important;
  851. border: 1px solid rgba(1, 107, 246, 1);
  852. }
  853. }
  854. .topbg-sx-box-r-i {
  855. color: rgba(1, 107, 246, 1);
  856. font-family: DM Sans;
  857. font-size: 24rpx;
  858. font-weight: 400;
  859. line-height: 18px;
  860. letter-spacing: 0%;
  861. text-align: center;
  862. margin-right: 20rpx;
  863. border-radius: 6px;
  864. background: rgba(252, 233, 220, 1);
  865. padding: 8rpx 12rpx;
  866. display: inline-block;
  867. min-width: 60rpx;
  868. white-space: nowrap;
  869. cursor: pointer;
  870. transition: all 0.3s ease;
  871. border: 0.5px solid rgba(1, 107, 246, 1);
  872. }
  873. .topbg-sx-box-filter {
  874. color: rgba(153, 153, 153, 1);
  875. font-family: DM Sans;
  876. font-size: 24rpx;
  877. font-weight: 400;
  878. line-height: 18px;
  879. letter-spacing: 0%;
  880. text-align: center;
  881. border-radius: 6px;
  882. background: rgba(198, 198, 198, 0.1);
  883. padding: 8rpx 12rpx;
  884. display: inline-block;
  885. min-width: 60rpx;
  886. white-space: nowrap;
  887. cursor: pointer;
  888. transition: all 0.3s ease;
  889. }
  890. }
  891. .talent-list {
  892. // margin-top: 280rpx; // 已改为动态计算,在模板中通过 :style 设置
  893. padding: 20rpx;
  894. z-index: 100;
  895. position: relative;
  896. //border:1px solid red
  897. }
  898. .talent-card {
  899. background-color: #ffffff;
  900. border-radius: 16rpx;
  901. margin-bottom: 20rpx;
  902. padding: 30rpx;
  903. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
  904. }
  905. .talent-content {
  906. .talent-header {
  907. display: flex;
  908. align-items: flex-start;
  909. .talent-avatar {
  910. width: 80rpx;
  911. height: 80rpx;
  912. border-radius: 50%;
  913. margin-right: 20rpx;
  914. }
  915. .talent-info {
  916. flex: 1;
  917. .talent-name-section {
  918. display: flex;
  919. align-items: center;
  920. justify-content: flex-start;
  921. width: 100%;
  922. margin-bottom: 6rpx;
  923. }
  924. .talent-name {
  925. color: rgba(51, 51, 51, 1);
  926. font-family: DM Sans;
  927. font-size: 28rpx;
  928. font-weight: 500;
  929. line-height: 36rx;
  930. letter-spacing: 0.5%;
  931. text-align: left;
  932. margin-right: 16rpx;
  933. }
  934. .talent-tags {
  935. display: flex;
  936. flex-wrap: wrap;
  937. gap: 10rpx;
  938. .status-tag {
  939. padding: 8rpx;
  940. border-radius: 12rpx;
  941. font-size: 18rpx;
  942. font-family: DM Sans;
  943. font-weight: 400;
  944. line-height: 20rpx;
  945. letter-spacing: -0.5px;
  946. text-align: left;
  947. &.online {
  948. background: rgba(213, 255, 231, 1);
  949. color: rgba(29, 209, 104, 1);
  950. }
  951. &.hot {
  952. background: rgba(252, 233, 220, 1);
  953. color: rgba(1, 107, 246, 1);
  954. }
  955. &.active {
  956. color: rgba(153, 153, 153, 1);
  957. }
  958. }
  959. }
  960. }
  961. }
  962. .talent-experience {
  963. display: flex;
  964. align-items: center;
  965. margin-bottom: 12rpx;
  966. gap: 16rpx;
  967. color: rgba(156, 164, 171, 1);
  968. font-family: DM Sans;
  969. font-size: 24rpx;
  970. font-weight: 400;
  971. line-height: 32rpx;
  972. letter-spacing: 0.5%;
  973. text-align: left;
  974. }
  975. .current-job {
  976. display: flex;
  977. align-items: center;
  978. margin-bottom: 12rpx;
  979. .job-icon {
  980. width: 40rpx;
  981. height: 40rpx;
  982. margin-right: 8rpx;
  983. }
  984. .job-text {
  985. color: rgba(156, 164, 171, 1);
  986. font-family: DM Sans;
  987. font-size: 24rpx;
  988. font-weight: 400;
  989. line-height: 40rpx;
  990. letter-spacing: 0.5%;
  991. text-align: left;
  992. }
  993. }
  994. .job-expectation {
  995. display: flex;
  996. align-items: center;
  997. margin-bottom: 16rpx;
  998. .job-icon {
  999. width: 40rpx;
  1000. height: 40rpx;
  1001. margin-right: 8rpx;
  1002. }
  1003. .expectation-text {
  1004. color: rgba(156, 164, 171, 1);
  1005. font-family: DM Sans;
  1006. font-size: 24rpx;
  1007. font-weight: 400;
  1008. line-height: 40rpx;
  1009. letter-spacing: 0.5%;
  1010. text-align: left;
  1011. }
  1012. }
  1013. .skill-tags {
  1014. display: flex;
  1015. flex-wrap: wrap;
  1016. gap: 8rpx;
  1017. margin: 12rpx 0;
  1018. .skill-tag {
  1019. padding: 8rpx;
  1020. background: rgba(198, 198, 198, 0.1);
  1021. border-radius: 12rpx;
  1022. color: rgba(153, 153, 153, 1);
  1023. font-family: DM Sans;
  1024. font-size: 20rpx;
  1025. font-weight: 400;
  1026. line-height: 20rpx;
  1027. letter-spacing: -0.5px;
  1028. text-align: left;
  1029. }
  1030. }
  1031. .job-description {
  1032. // margin-bottom: 12rpx;
  1033. width: 100%;
  1034. .description-text {
  1035. color: rgba(97, 110, 124, 1);
  1036. font-family: DM Sans;
  1037. font-size: 24rpx;
  1038. font-weight: 400;
  1039. line-height: 32rpx;
  1040. letter-spacing: 0px;
  1041. text-align: left;
  1042. display: -webkit-box;
  1043. -webkit-line-clamp: 2;
  1044. /* 只显示2行 */
  1045. -webkit-box-orient: vertical;
  1046. overflow: hidden;
  1047. /* 隐藏超出内容 */
  1048. text-overflow: ellipsis;
  1049. /* 显示省略号 */
  1050. white-space: pre-wrap;
  1051. }
  1052. }
  1053. .work-period {
  1054. text-align: right;
  1055. .period-text {
  1056. font-size: 22rpx;
  1057. color: #999;
  1058. }
  1059. }
  1060. }
  1061. // 职位选择弹窗样式
  1062. .position-modal {
  1063. position: fixed;
  1064. top: 0;
  1065. left: 0;
  1066. right: 0;
  1067. bottom: 0;
  1068. background: rgba(0, 0, 0, 0.5);
  1069. z-index: 10001;
  1070. display: flex;
  1071. align-items: flex-end;
  1072. .position-modal-content {
  1073. width: 100%;
  1074. background: #ffffff;
  1075. border-radius: 24rpx 24rpx 0 0;
  1076. padding: 20rpx 40rpx 40rpx 40rpx;
  1077. max-height: 60vh;
  1078. .position-modal-handle {
  1079. width: 80rpx;
  1080. height: 8rpx;
  1081. background: #E5E5E5;
  1082. border-radius: 4rpx;
  1083. margin: 0 auto 30rpx auto;
  1084. }
  1085. .position-modal-title {
  1086. font-size: 32rpx;
  1087. font-weight: 600;
  1088. color: #333333;
  1089. text-align: center;
  1090. padding-bottom: 30rpx;
  1091. margin-bottom: 30rpx;
  1092. border-bottom: 1px solid rgba(153, 153, 153, 0.25);
  1093. }
  1094. .position-options {
  1095. .position-option {
  1096. display: flex;
  1097. align-items: center;
  1098. padding: 24rpx 32rpx;
  1099. margin-bottom: 16rpx;
  1100. border-radius: 42rpx;
  1101. border: 2rpx solid rgba(227, 231, 236, 1);
  1102. &.active {
  1103. background: #F0F8FF;
  1104. border-color: #007AFF;
  1105. .position-option-icon {
  1106. background: #007AFF;
  1107. border-color: #007AFF;
  1108. .check-icon {
  1109. color: #ffffff;
  1110. }
  1111. }
  1112. .position-option-text {
  1113. color: #007AFF;
  1114. font-weight: 500;
  1115. }
  1116. }
  1117. .position-option-icon {
  1118. width: 40rpx;
  1119. height: 40rpx;
  1120. border-radius: 50%;
  1121. border: 2rpx solid #E5E5E5;
  1122. background: #ffffff;
  1123. display: flex;
  1124. align-items: center;
  1125. justify-content: center;
  1126. margin-right: 24rpx;
  1127. .check-icon {
  1128. font-size: 24rpx;
  1129. color: #ffffff;
  1130. font-weight: bold;
  1131. }
  1132. }
  1133. .position-option-text {
  1134. font-size: 28rpx;
  1135. color: #333333;
  1136. flex: 1;
  1137. }
  1138. }
  1139. }
  1140. }
  1141. }
  1142. </style>