index.vue 29 KB

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