index.vue 31 KB

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