index.vue 30 KB

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