index.vue 30 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283
  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. const parsed = JSON.parse(str);
  258. if (Array.isArray(parsed)) {
  259. return parsed;
  260. }
  261. } catch (e) {
  262. }
  263. str = str.replace(/,/g, ',');
  264. // 判断分隔符
  265. if (str.includes('/')) {
  266. return str.split('/').filter(Boolean);
  267. } else if (str.includes(',')) {
  268. return str.split(',').filter(Boolean);
  269. }
  270. return [str];
  271. },
  272. // 返回上一页
  273. goBack() {
  274. uni.navigateBack()
  275. },
  276. // 显示下拉菜单
  277. showDropdown() {
  278. this.showPositionModal = true
  279. },
  280. // 隐藏职位选择弹窗
  281. hidePositionModal() {
  282. this.showPositionModal = false
  283. },
  284. /**
  285. * 获取公司发布的岗位列表
  286. */
  287. getCompanyClassify() {
  288. let data = {
  289. }
  290. if(uni.getStorageSync('companyId')&&uni.getStorageSync('companyId')!='null')
  291. data.companyId= uni.getStorageSync('companyId')
  292. this.$Request.getT('/app/postPush/getCompanyClassify', data).then(res => {
  293. if (res.code == 0) {
  294. let arr = [
  295. /* {
  296. projectName: '',
  297. name: '全部',
  298. }, */
  299. ]
  300. if (res.data.length == 0) {
  301. if(uni.getStorageSync('companyId')&&uni.getStorageSync('companyId')!='null')
  302. uni.navigateTo({
  303. url: '/pages/my/jobPosting?companyId=' + uni.getStorageSync('companyId') + '&status=' + this
  304. .companyStatus + '&companyName=' + this.companyName
  305. })
  306. else
  307. this.$queue.showToast('请先进行企业认证')
  308. }
  309. if (res && res.data && Array.isArray(res.data)) {
  310. console.log(res.data,'啊啊啊')
  311. this.selectedPosition = res.data.length>0&&res.data[0].postPushId||''
  312. // 更新下拉按钮显示的文字
  313. this.selectedText = res.data.length>0&&res.data[0].ruleClassifyName || ''
  314. res.data.map(item => {
  315. let obj = {
  316. id: item.postPushId,
  317. projectName: item.ruleClassifyName,
  318. name: item.ruleClassifyName,
  319. }
  320. arr.push(obj)
  321. })
  322. console.log(arr)
  323. this.positionOptions = arr
  324. this.getPeopList()
  325. }
  326. }
  327. })
  328. },
  329. maskName(name) {
  330. // 处理空值或非字符串情况
  331. if (!name || typeof name !== 'string') {
  332. return '';
  333. }
  334. // 获取姓氏(第一个字符)
  335. const surname = name.charAt(0);
  336. // 计算需要替换的字符数(名字长度 - 1)
  337. const nameLength = name.length - 1;
  338. // 生成对应数量的星号
  339. const maskedPart = '*'.repeat(nameLength > 0 ? nameLength : 0);
  340. // 返回处理后的名字
  341. return surname + maskedPart;
  342. },
  343. /**
  344. * 获取简历列表
  345. */
  346. getPeopList() {
  347. if(!this.selectedText) return;
  348. let data = {
  349. page: this.page,
  350. limit: this.limit,
  351. lastWorkPosition: this.searchKeyword || "",
  352. expectedPosition: this.selectedText || "", //期望职位
  353. city: this.city || "", //期望城市
  354. salaryRange: this.salaryRange || "", //薪资
  355. resumesStatus: this.resumesStatus || "", //个人状态
  356. expRange: this.experience || "", //工作经验
  357. eduRange: this.education || "", //学历范围
  358. }
  359. this.$Request.postJson('/app/resumes/selectResumesList', data).then(res => {
  360. uni.stopPullDownRefresh()
  361. uni.hideLoading()
  362. if (res.code == 0 && res.data) {
  363. this.talentList = [] //清空下搜索和筛选之前的数据
  364. this.totalPage = res.data.totalPage
  365. // res.data.list.map(item => {
  366. // if (item.positionWelfare) {
  367. // item.positionWelfare = item.positionWelfare.split(',')
  368. // } else {
  369. // item.positionWelfare = []
  370. // }
  371. // })
  372. console.log(res.data);
  373. if (!res.data.records || !Array.isArray(res.data.records) || res.data.records.length === 0) {
  374. return uni.showToast({
  375. title: '暂无数据', // 提示文字
  376. icon: 'none', // 不显示图标(可选值:success / loading / none)
  377. duration: 2000, // 显示时长,单位毫秒(2000 = 2秒)
  378. mask: true // 是否显示透明蒙层,防止触摸穿透(可选)
  379. });
  380. }
  381. const list = res.data.records.map(item => {
  382. // 若技能字段为其他名称(如 skillTags),需映射为 skills
  383. // item.skills = item.skillName || '';
  384. item.skills = item.skillName ? item.skillName.split(',').map(skill => skill
  385. .trim()) : [];
  386. item.maskedName = this.maskName(item.userName);
  387. return item;
  388. });
  389. if (this.page == 1) {
  390. this.talentList = list
  391. } else {
  392. this.talentList = [...this.talentList, ...list]
  393. }
  394. this.totlo = list.totalPage
  395. } else {
  396. this.talentList = []
  397. }
  398. })
  399. },
  400. // 选择职位
  401. selectPosition(obj) {
  402. console.log(obj)
  403. this.selectedPosition = obj.id
  404. // 更新下拉按钮显示的文字
  405. const selectedTexts = obj.name
  406. this.selectedText = selectedTexts
  407. // 这里可以更新下拉按钮的显示文字
  408. /* uni.showToast({
  409. title: `已选择: ${selectedTexts}`,
  410. icon: 'none'
  411. }) */
  412. this.getPeopList()
  413. this.hidePositionModal()
  414. },
  415. // 搜索
  416. custom() {
  417. console.log('搜索关键词:', this.searchKeyword)
  418. // 这里可以添加搜索逻辑
  419. this.getPeopList()
  420. },
  421. // 跳转页面
  422. goNavs(url) {
  423. // #ifdef MP-WEIXIN
  424. if (uni.getStorageSync('sendMsg')) {
  425. // console.log('授权+1')
  426. wx.requestSubscribeMessage({
  427. tmplIds: this.arr,
  428. success(re) {
  429. // console.log(JSON.stringify(re), 111111111111)
  430. var datas = JSON.stringify(re);
  431. if (datas.indexOf("accept") != -1) {
  432. // console.log(re)
  433. }
  434. },
  435. fail: (res) => {
  436. // console.log(res)
  437. }
  438. })
  439. }
  440. // #endif
  441. uni.navigateTo({
  442. url: url
  443. })
  444. },
  445. // 清空搜索
  446. clear() {
  447. this.searchKeyword = ''
  448. },
  449. // 跳转页面
  450. goNav(url) {
  451. if (uni.getStorageSync('token')) {
  452. // #ifdef MP-WEIXIN
  453. if (uni.getStorageSync('sendMsg')) {
  454. // console.log('授权+1')
  455. wx.requestSubscribeMessage({
  456. tmplIds: this.arr,
  457. success(re) {
  458. // console.log(JSON.stringify(re), 111111111111)
  459. var datas = JSON.stringify(re);
  460. if (datas.indexOf("accept") != -1) {
  461. // console.log(re)
  462. }
  463. },
  464. fail: (res) => {
  465. // console.log(res)
  466. }
  467. })
  468. }
  469. // #endif
  470. uni.navigateTo({
  471. url: url
  472. })
  473. } else {
  474. this.noLogin()
  475. }
  476. },
  477. // 未登录提示
  478. noLogin() {
  479. uni.showModal({
  480. title: '提示',
  481. content: '您还未登录,请先登录',
  482. confirmColor: '#016BF6',
  483. success: function(res) {
  484. if (res.confirm) {
  485. uni.navigateTo({
  486. url: '/pages/public/login'
  487. })
  488. }
  489. }
  490. })
  491. },
  492. // 显示排序弹窗
  493. showSortModal() {
  494. this.showSortModalFlag = true
  495. },
  496. // 隐藏排序弹窗
  497. hideSortModal() {
  498. this.showSortModalFlag = false
  499. },
  500. // 选择排序选项
  501. selectSort(index) {
  502. this.selectedSort = index
  503. uni.showToast({
  504. title: `已选择: ${this.sortOptions[index]}`,
  505. icon: 'none'
  506. })
  507. this.hideSortModal()
  508. },
  509. // 跳转到人才详情
  510. goToResumeDetail(talent) {
  511. console.log('查看人才详情:', talent,this.selectedPosition)
  512. if(!this.selectedPosition){
  513. uni.showToast({
  514. title:'请添加招聘岗位!',
  515. icon:'none'
  516. })
  517. return;
  518. }
  519. // 跳转到简历详情页面
  520. uni.navigateTo({
  521. url: `/pages/talentSearch/resumeDetail?resumesId=${talent.id || talent.resumesId || ''}&postPushId=${this.selectedPosition}`
  522. })
  523. }
  524. }
  525. }
  526. </script>
  527. <style lang="scss" scoped>
  528. // 激活状态样式
  529. .active3 {
  530. flex-direction: row;
  531. justify-content: center;
  532. align-items: center;
  533. padding: 12rpx;
  534. border-radius: 12rpx;
  535. background: #FFFFFF !important;
  536. margin-right: 12rpx;
  537. border: 0.5px solid rgba(1, 107, 246, 1);
  538. color: rgba(1, 107, 246, 1) !important;
  539. font-family: DM Sans;
  540. font-size: 22rpx;
  541. font-weight: 400;
  542. line-height: 20rpx;
  543. letter-spacing: 0px;
  544. text-align: left;
  545. }
  546. .talent-search-page {
  547. min-height: 100vh;
  548. background-color: #f5f5f5;
  549. }
  550. .topbg-sticky {
  551. display: flex;
  552. flex-direction: column;
  553. justify-content: space-around;
  554. background-image: url('/static/images/index/index-bg1.png');
  555. background-repeat: no-repeat;
  556. background-size: cover;
  557. background-position-y: -38rpx;
  558. // border: #007AFF 1px solid;
  559. }
  560. .top-bg {
  561. position: relative;
  562. top: 0;
  563. z-index: 0;
  564. width: 100%;
  565. }
  566. .topbg-sticky-box {
  567. width: 100%;
  568. padding: 0 40rpx;
  569. position: relative;
  570. z-index: 1;
  571. }
  572. .topbg-sticky-title {
  573. width: 100%;
  574. margin-bottom: 20rpx;
  575. }
  576. .topbg-sticky-title-left {
  577. color: rgba(255, 255, 255, 1);
  578. font-family: DM Sans;
  579. font-size: 32rpx;
  580. font-weight: 700;
  581. line-height: 36rpx;
  582. letter-spacing: 0%;
  583. text-align: left;
  584. }
  585. .xing-icon {
  586. width: 42rpx;
  587. height: 42rpx;
  588. margin-right: 12rpx;
  589. }
  590. .topbg-sticky-title-right {
  591. color: #ffffff;
  592. }
  593. .topbg-sticky-subtitle {
  594. color: rgba(255, 255, 255, 1);
  595. font-family: DM Sans;
  596. font-size: 30rpx;
  597. font-weight: 700;
  598. line-height: 36rpx;
  599. letter-spacing: 0%;
  600. text-align: left;
  601. }
  602. .qySx-sx-box {
  603. width: 94%;
  604. //margin-top: -60rpx;
  605. background-color: #fff;
  606. height: 82rpx;
  607. margin: 2px auto;
  608. border-radius: 8px;
  609. padding: 24rpx;
  610. .qySx-sx-box-l-i {
  611. color: rgba(153, 153, 153, 1);
  612. font-family: DM Sans;
  613. font-size: 24rpx;
  614. font-weight: 400;
  615. line-height: 36rpx;
  616. letter-spacing: 0%;
  617. text-align: center;
  618. margin-right: 20rpx;
  619. border-radius: 6px;
  620. background: rgba(198, 198, 198, 0.1);
  621. padding: 8rpx 12rpx;
  622. display: inline-block;
  623. min-width: 60rpx;
  624. white-space: nowrap;
  625. &.active3 {
  626. font-family: DM Sans;
  627. font-size: 24rpx !important;
  628. font-weight: 400 !important;
  629. line-height: 36rpx;
  630. letter-spacing: 0%;
  631. text-align: left;
  632. padding: 8rpx 12rpx !important;
  633. color: rgba(1, 107, 246, 1) !important;
  634. // background: #D6E7FD !important;
  635. background: rgba(252, 233, 220, 1);
  636. border: 1px solid rgba(1, 107, 246, 1);
  637. }
  638. }
  639. .qySx-sx-box-r-i {
  640. color: rgba(1, 107, 246, 1);
  641. font-family: DM Sans;
  642. font-size: 24rpx;
  643. font-weight: 400;
  644. line-height: 36rpx;
  645. letter-spacing: 0%;
  646. text-align: center;
  647. margin-right: 20rpx;
  648. border-radius: 6px;
  649. // background: #D6E7FD;
  650. background: rgba(252, 233, 220, 1);
  651. padding: 8rpx 12rpx;
  652. display: inline-block;
  653. min-width: 60rpx;
  654. white-space: nowrap;
  655. cursor: pointer;
  656. transition: all 0.3s ease;
  657. border: 0.5px solid rgba(1, 107, 246, 1);
  658. }
  659. .qySx-sx-box-filter {
  660. color: rgba(153, 153, 153, 1);
  661. font-family: DM Sans;
  662. font-size: 24rpx;
  663. font-weight: 400;
  664. line-height: 36rpx;
  665. letter-spacing: 0%;
  666. text-align: center;
  667. border-radius: 6px;
  668. background: rgba(198, 198, 198, 0.1);
  669. padding: 8rpx 12rpx;
  670. display: inline-block;
  671. min-width: 60rpx;
  672. white-space: nowrap;
  673. cursor: pointer;
  674. transition: all 0.3s ease;
  675. .qySx-sx-box-filter-text {
  676. border: 1px solid #016bf6;
  677. border-radius: 3px;
  678. padding: 2px;
  679. font-size: 11px;
  680. margin-left: 12px;
  681. }
  682. }
  683. }
  684. // 搜索框
  685. .search {
  686. // position: fixed;
  687. // top: 0;
  688. width: 100%;
  689. padding: 0rpx 20rpx 20rpx 20rpx;
  690. // padding-top 已改为动态计算,在模板中通过 :style 设置
  691. //background: linear-gradient(180.00deg, rgba(255, 102, 0, 1), rgba(255, 89, 89, 1) 83%);
  692. z-index: 99;
  693. .search-box {
  694. flex: 1;
  695. box-sizing: border-box;
  696. border: 1px solid rgba(227, 231, 236, 1);
  697. border-radius: 24px;
  698. background: rgba(241, 241, 241, 1);
  699. overflow: hidden;
  700. display: flex;
  701. align-items: center;
  702. padding: 0 32rpx;
  703. height: 72rpx;
  704. }
  705. .dropdown-btn {
  706. display: flex;
  707. align-items: center;
  708. padding: 14rpx 16rpx;
  709. background-color: #F1F1F1;
  710. border: 1rpx solid #016BF6;
  711. border-radius: 8rpx;
  712. margin-right: 12rpx;
  713. .dropdown-text {
  714. color: rgba(1, 107, 246, 1);
  715. font-family: DM Sans;
  716. font-size: 24rpx;
  717. font-weight: 400;
  718. line-height: 20rpx;
  719. letter-spacing: -0.5px;
  720. text-align: left;
  721. margin-right: 8rpx;
  722. }
  723. }
  724. .separator {
  725. width: 4rpx;
  726. height: 56rpx;
  727. background-color: rgba(153, 153, 153, 1);
  728. margin-right: 12rpx;
  729. }
  730. .search-input {
  731. flex: 1;
  732. height: 100%;
  733. background: transparent;
  734. color: #333;
  735. font-family: DM Sans;
  736. font-size: 26rpx;
  737. font-weight: 400;
  738. line-height: 48rpx;
  739. letter-spacing: 0.5%;
  740. text-align: left;
  741. &::placeholder {
  742. color: rgba(182, 182, 182, 1);
  743. font-family: DM Sans;
  744. font-size: 20rpx;
  745. font-weight: 400;
  746. line-height: 48rpx;
  747. letter-spacing: 0.5%;
  748. text-align: left;
  749. }
  750. }
  751. .search-btn {
  752. width: 80rpx;
  753. color: rgba(255, 255, 255, 1);
  754. font-family: DM Sans;
  755. font-size: 30rpx;
  756. font-weight: 500;
  757. line-height: 48rpx;
  758. letter-spacing: 0.5%;
  759. text-align: center;
  760. }
  761. }
  762. .search-bar {
  763. display: flex;
  764. align-items: center;
  765. margin-bottom: 20rpx;
  766. .search-input {
  767. flex: 1;
  768. height: 80rpx;
  769. background-color: #f8f8f8;
  770. border-radius: 40rpx;
  771. padding: 0 30rpx;
  772. font-size: 28rpx;
  773. color: #333;
  774. margin-right: 20rpx;
  775. }
  776. .search-btn {
  777. width: 120rpx;
  778. height: 80rpx;
  779. background-color: #016BF6;
  780. color: #ffffff;
  781. border-radius: 40rpx;
  782. display: flex;
  783. align-items: center;
  784. justify-content: center;
  785. font-size: 32rpx;
  786. }
  787. }
  788. .filter-tags {
  789. display: flex;
  790. flex-wrap: wrap;
  791. gap: 16rpx;
  792. .filter-tag {
  793. padding: 12rpx 24rpx;
  794. background-color: #ffffff;
  795. border: 1rpx solid #e5e5e5;
  796. border-radius: 20rpx;
  797. font-size: 24rpx;
  798. color: #666;
  799. }
  800. }
  801. .active3 {
  802. color: #1A1A1A !important;
  803. font-size: 28rpx !important;
  804. font-weight: 800 !important;
  805. }
  806. .topbg-sx-box {
  807. position: fixed;
  808. // top: 160rpx; // 已改为动态计算,在模板中通过 :style 设置
  809. left: 0;
  810. right: 0;
  811. width: 100%;
  812. background-color: #ffffff;
  813. z-index: 98;
  814. padding: 20rpx;
  815. // box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
  816. .topbg-sx-box-l-i {
  817. color: rgba(153, 153, 153, 1);
  818. font-family: DM Sans;
  819. font-size: 24rpx;
  820. font-weight: 400;
  821. line-height: 18px;
  822. letter-spacing: 0%;
  823. text-align: center;
  824. margin-right: 20rpx;
  825. border-radius: 6px;
  826. background: rgba(198, 198, 198, 0.1);
  827. padding: 8rpx 12rpx;
  828. display: inline-block;
  829. min-width: 60rpx;
  830. white-space: nowrap;
  831. &.active3 {
  832. font-family: DM Sans;
  833. font-size: 24rpx !important;
  834. font-weight: 400 !important;
  835. line-height: 18px;
  836. letter-spacing: 0%;
  837. text-align: left;
  838. padding: 8rpx 12rpx !important;
  839. color: rgba(1, 107, 246, 1) !important;
  840. background: rgba(252, 233, 220, 1) !important;
  841. border: 1px solid rgba(1, 107, 246, 1);
  842. }
  843. }
  844. .topbg-sx-box-r-i {
  845. color: rgba(1, 107, 246, 1);
  846. font-family: DM Sans;
  847. font-size: 24rpx;
  848. font-weight: 400;
  849. line-height: 18px;
  850. letter-spacing: 0%;
  851. text-align: center;
  852. margin-right: 20rpx;
  853. border-radius: 6px;
  854. background: rgba(252, 233, 220, 1);
  855. padding: 8rpx 12rpx;
  856. display: inline-block;
  857. min-width: 60rpx;
  858. white-space: nowrap;
  859. cursor: pointer;
  860. transition: all 0.3s ease;
  861. border: 0.5px solid rgba(1, 107, 246, 1);
  862. }
  863. .topbg-sx-box-filter {
  864. color: rgba(153, 153, 153, 1);
  865. font-family: DM Sans;
  866. font-size: 24rpx;
  867. font-weight: 400;
  868. line-height: 18px;
  869. letter-spacing: 0%;
  870. text-align: center;
  871. border-radius: 6px;
  872. background: rgba(198, 198, 198, 0.1);
  873. padding: 8rpx 12rpx;
  874. display: inline-block;
  875. min-width: 60rpx;
  876. white-space: nowrap;
  877. cursor: pointer;
  878. transition: all 0.3s ease;
  879. }
  880. }
  881. .talent-list {
  882. // margin-top: 280rpx; // 已改为动态计算,在模板中通过 :style 设置
  883. padding: 20rpx;
  884. z-index: 100;
  885. position: relative;
  886. //border:1px solid red
  887. }
  888. .talent-card {
  889. background-color: #ffffff;
  890. border-radius: 16rpx;
  891. margin-bottom: 20rpx;
  892. padding: 30rpx;
  893. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
  894. }
  895. .talent-content {
  896. .talent-header {
  897. display: flex;
  898. align-items: flex-start;
  899. .talent-avatar {
  900. width: 80rpx;
  901. height: 80rpx;
  902. border-radius: 50%;
  903. margin-right: 20rpx;
  904. }
  905. .talent-info {
  906. flex: 1;
  907. .talent-name-section {
  908. display: flex;
  909. align-items: center;
  910. justify-content: flex-start;
  911. width: 100%;
  912. margin-bottom: 6rpx;
  913. }
  914. .talent-name {
  915. color: rgba(51, 51, 51, 1);
  916. font-family: DM Sans;
  917. font-size: 28rpx;
  918. font-weight: 500;
  919. line-height: 36rx;
  920. letter-spacing: 0.5%;
  921. text-align: left;
  922. margin-right: 16rpx;
  923. }
  924. .talent-tags {
  925. display: flex;
  926. flex-wrap: wrap;
  927. gap: 10rpx;
  928. .status-tag {
  929. padding: 8rpx;
  930. border-radius: 12rpx;
  931. font-size: 18rpx;
  932. font-family: DM Sans;
  933. font-weight: 400;
  934. line-height: 20rpx;
  935. letter-spacing: -0.5px;
  936. text-align: left;
  937. &.online {
  938. background: rgba(213, 255, 231, 1);
  939. color: rgba(29, 209, 104, 1);
  940. }
  941. &.hot {
  942. background: rgba(252, 233, 220, 1);
  943. color: rgba(1, 107, 246, 1);
  944. }
  945. &.active {
  946. color: rgba(153, 153, 153, 1);
  947. }
  948. }
  949. }
  950. }
  951. }
  952. .talent-experience {
  953. display: flex;
  954. align-items: center;
  955. margin-bottom: 12rpx;
  956. gap: 16rpx;
  957. color: rgba(156, 164, 171, 1);
  958. font-family: DM Sans;
  959. font-size: 24rpx;
  960. font-weight: 400;
  961. line-height: 32rpx;
  962. letter-spacing: 0.5%;
  963. text-align: left;
  964. }
  965. .current-job {
  966. display: flex;
  967. align-items: center;
  968. margin-bottom: 12rpx;
  969. .job-icon {
  970. width: 40rpx;
  971. height: 40rpx;
  972. margin-right: 8rpx;
  973. }
  974. .job-text {
  975. color: rgba(156, 164, 171, 1);
  976. font-family: DM Sans;
  977. font-size: 24rpx;
  978. font-weight: 400;
  979. line-height: 40rpx;
  980. letter-spacing: 0.5%;
  981. text-align: left;
  982. }
  983. }
  984. .job-expectation {
  985. display: flex;
  986. align-items: center;
  987. margin-bottom: 16rpx;
  988. .job-icon {
  989. width: 40rpx;
  990. height: 40rpx;
  991. margin-right: 8rpx;
  992. }
  993. .expectation-text {
  994. color: rgba(156, 164, 171, 1);
  995. font-family: DM Sans;
  996. font-size: 24rpx;
  997. font-weight: 400;
  998. line-height: 40rpx;
  999. letter-spacing: 0.5%;
  1000. text-align: left;
  1001. }
  1002. }
  1003. .skill-tags {
  1004. display: flex;
  1005. flex-wrap: wrap;
  1006. gap: 8rpx;
  1007. margin: 12rpx 0;
  1008. .skill-tag {
  1009. padding: 8rpx;
  1010. background: rgba(198, 198, 198, 0.1);
  1011. border-radius: 12rpx;
  1012. color: rgba(153, 153, 153, 1);
  1013. font-family: DM Sans;
  1014. font-size: 20rpx;
  1015. font-weight: 400;
  1016. line-height: 20rpx;
  1017. letter-spacing: -0.5px;
  1018. text-align: left;
  1019. }
  1020. }
  1021. .job-description {
  1022. // margin-bottom: 12rpx;
  1023. width: 100%;
  1024. .description-text {
  1025. color: rgba(97, 110, 124, 1);
  1026. font-family: DM Sans;
  1027. font-size: 24rpx;
  1028. font-weight: 400;
  1029. line-height: 32rpx;
  1030. letter-spacing: 0px;
  1031. text-align: left;
  1032. display: -webkit-box;
  1033. -webkit-line-clamp: 2;
  1034. /* 只显示2行 */
  1035. -webkit-box-orient: vertical;
  1036. overflow: hidden;
  1037. /* 隐藏超出内容 */
  1038. text-overflow: ellipsis;
  1039. /* 显示省略号 */
  1040. white-space: pre-wrap;
  1041. }
  1042. }
  1043. .work-period {
  1044. text-align: right;
  1045. .period-text {
  1046. font-size: 22rpx;
  1047. color: #999;
  1048. }
  1049. }
  1050. }
  1051. // 职位选择弹窗样式
  1052. .position-modal {
  1053. position: fixed;
  1054. top: 0;
  1055. left: 0;
  1056. right: 0;
  1057. bottom: 0;
  1058. background: rgba(0, 0, 0, 0.5);
  1059. z-index: 10001;
  1060. display: flex;
  1061. align-items: flex-end;
  1062. .position-modal-content {
  1063. width: 100%;
  1064. background: #ffffff;
  1065. border-radius: 24rpx 24rpx 0 0;
  1066. padding: 20rpx 40rpx 40rpx 40rpx;
  1067. max-height: 60vh;
  1068. .position-modal-handle {
  1069. width: 80rpx;
  1070. height: 8rpx;
  1071. background: #E5E5E5;
  1072. border-radius: 4rpx;
  1073. margin: 0 auto 30rpx auto;
  1074. }
  1075. .position-modal-title {
  1076. font-size: 32rpx;
  1077. font-weight: 600;
  1078. color: #333333;
  1079. text-align: center;
  1080. padding-bottom: 30rpx;
  1081. margin-bottom: 30rpx;
  1082. border-bottom: 1px solid rgba(153, 153, 153, 0.25);
  1083. }
  1084. .position-options {
  1085. .position-option {
  1086. display: flex;
  1087. align-items: center;
  1088. padding: 24rpx 32rpx;
  1089. margin-bottom: 16rpx;
  1090. border-radius: 42rpx;
  1091. border: 2rpx solid rgba(227, 231, 236, 1);
  1092. &.active {
  1093. background: #F0F8FF;
  1094. border-color: #007AFF;
  1095. .position-option-icon {
  1096. background: #007AFF;
  1097. border-color: #007AFF;
  1098. .check-icon {
  1099. color: #ffffff;
  1100. }
  1101. }
  1102. .position-option-text {
  1103. color: #007AFF;
  1104. font-weight: 500;
  1105. }
  1106. }
  1107. .position-option-icon {
  1108. width: 40rpx;
  1109. height: 40rpx;
  1110. border-radius: 50%;
  1111. border: 2rpx solid #E5E5E5;
  1112. background: #ffffff;
  1113. display: flex;
  1114. align-items: center;
  1115. justify-content: center;
  1116. margin-right: 24rpx;
  1117. .check-icon {
  1118. font-size: 24rpx;
  1119. color: #ffffff;
  1120. font-weight: bold;
  1121. }
  1122. }
  1123. .position-option-text {
  1124. font-size: 28rpx;
  1125. color: #333333;
  1126. flex: 1;
  1127. }
  1128. }
  1129. }
  1130. }
  1131. }
  1132. </style>