index.vue 30 KB

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