gameList.vue 32 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228
  1. <template>
  2. <view class="page-container">
  3. <view class="page-bg">
  4. <view class="page-bottom"></view>
  5. </view>
  6. <!-- 搜索栏 -->
  7. <view class="search-section" :style="{ paddingTop: 12 + statusBarHeight + 'px' }">
  8. <!-- :class="{ fixed: isFixed }"
  9. :style="isFixed ? { paddingTop: 12 + statusBarHeight + 'px' } : {}" -->
  10. <view class="search-bar">
  11. <u-icon name="search" color="#999999" size="32" class="search-icon"></u-icon>
  12. <input
  13. type="text"
  14. placeholder="搜索职位"
  15. class="search-input"
  16. v-model="searchKeyword"
  17. @click="handleSearch"
  18. />
  19. </view>
  20. <text class="search-btn" @click="handleSearch">搜索</text>
  21. </view>
  22. <view class="page-content">
  23. <!-- tabs和筛选 -->
  24. <view class="topbg-type flex justify-center" :class="{ fixed: isFixed }">
  25. <view class="topbg-type-box">
  26. <!-- 第一行:tabs -->
  27. <view class="topbg-type-box-row flex justify-between align-center">
  28. <view class="topbg-type-box-l flex align-center">
  29. <view
  30. class="topbg-type-box-l-i"
  31. :class="current == index ? 'active' : ''"
  32. @tap="current = index"
  33. v-for="(item, index) in typeList"
  34. :key="index"
  35. >
  36. {{ item.label }}
  37. </view>
  38. </view>
  39. <!-- 添加求职意向 -->
  40. <view
  41. class="topbg-yx-box-r flex align-center"
  42. @click="goNav('/package/jobIntention/tagManage')"
  43. >
  44. <image
  45. src="../../../static/images/index/Attachment.svg"
  46. class="attachment-icon"
  47. />
  48. </view>
  49. </view>
  50. <!-- 第二行:筛选 -->
  51. <view class="topbg-sx-box flex justify-between align-center">
  52. <!-- 分类 -->
  53. <view class="topbg-sx-box-l flex align-center">
  54. <view
  55. class="topbg-sx-box-l-i"
  56. :class="currentSx == index ? 'active3' : ''"
  57. @click="currentSx = index"
  58. v-for="(item, index) in sxTypeList"
  59. :key="index"
  60. >
  61. {{ item.name }}
  62. </view>
  63. </view>
  64. <view class="topbg-sx-box-r flex align-center">
  65. <!-- 城市 -->
  66. <view class="topbg-sx-box-r-i flex align-center" style="">
  67. <text
  68. style="margin-right: 10rpx"
  69. @click="goNavs('/package/jobIntention/city')"
  70. >{{ city ? city : "选择城市" }}</text
  71. >
  72. <u-icon
  73. name="arrow-down"
  74. color="#00B78F"
  75. size="16"
  76. @click="goNavs('/package/jobIntention/city')"
  77. ></u-icon>
  78. </view>
  79. <!-- 筛选 -->
  80. <view class="topbg-sx-box-filter flex align-center">
  81. <text
  82. style="margin-right: 10rpx"
  83. @click="goNavs('/package/screen/screen')"
  84. >筛选</text
  85. >
  86. <u-icon
  87. name="arrow-down"
  88. color="#999999"
  89. size="16"
  90. @click="goNavs('/package/screen/screen')"
  91. ></u-icon>
  92. </view>
  93. </view>
  94. </view>
  95. </view>
  96. </view>
  97. <!-- 职位列表 -->
  98. <view class="job-list-section">
  99. <view class="job-list-header">
  100. <text class="job-list-title">亿职赞急聘推荐</text>
  101. <view class="refresh-btn" @click="refreshJobList">
  102. <text>换一批推荐</text>
  103. <image
  104. src="../../../static/images/index/shuaxin.svg"
  105. class="refresh-icon"
  106. ></image>
  107. </view>
  108. </view>
  109. <view class="job-list" v-if="dataList.length > 0">
  110. <view
  111. class="job-item"
  112. @click="gotoInfo(item.postPushId)"
  113. v-for="(item, index) in dataList"
  114. :key="index"
  115. >
  116. <view class="job-item-content">
  117. <!-- 公司logo -->
  118. <image
  119. :src="
  120. item.company ? item.company.companyLogo : '../../../static/logo.png'
  121. "
  122. class="company-logo"
  123. mode="aspectFill"
  124. ></image>
  125. <view class="job-info">
  126. <!-- 公司名称 -->
  127. <view class="company-name">{{
  128. item.company ? item.company.companyName : ""
  129. }}</view>
  130. <!-- 公司规模-行业 -->
  131. <view class="company-details">
  132. <text>{{ item.company ? item.company.companyPeople : "0人" }}</text>
  133. <text>{{
  134. item.company ? item.industry.split(",").join(" ") : "未知行业"
  135. }}</text>
  136. </view>
  137. <!-- 工作时间-福利 -->
  138. <view class="job-benefits">
  139. <view class="text" v-for="(benefit, idx) in item.positionWelfare" :key="idx">{{
  140. benefit
  141. }}</view>
  142. </view>
  143. </view>
  144. <!-- 右箭头 -->
  145. <u-icon name="arrow-right" color="rgba(29, 33, 41, 1)" size="24"></u-icon>
  146. </view>
  147. </view>
  148. </view>
  149. <!-- 暂无数据 -->
  150. <view class="empty-state" v-else>
  151. <text>暂无急聘职位</text>
  152. </view>
  153. </view>
  154. <!-- 求职列表 -->
  155. <view class="job-search-section">
  156. <view class="job-search-list" v-if="jobSearchList.length > 0">
  157. <view
  158. class="job-search-item"
  159. @click="gotoInfo(item.postPushId)"
  160. v-for="(item, index) in jobSearchList"
  161. :key="index"
  162. >
  163. <!-- 急聘标签 -->
  164. <view v-if="item.isDue==1" class="urgent-tag">
  165. <image
  166. src="../../../static/images/index/jijiji.svg"
  167. class="urgent-icon"
  168. ></image>
  169. </view>
  170. <view class="job-search-content">
  171. <!-- 职位标题 -->
  172. <view class="job-title">{{
  173. item.stationName || item.positionName || "职位名称"
  174. }}</view>
  175. <!-- 公司信息 -->
  176. <view class="company-info">
  177. <text class="company-name">{{
  178. item.company ? item.company.companyName : ""
  179. }}</text>
  180. <text class="company-name">{{
  181. item.company ? item.company.companyPeople : "0人"
  182. }}</text>
  183. </view>
  184. <!-- 薪资 -->
  185. <view class="salary" v-if="item.salaryRange">
  186. <text>¥{{ item.salaryRange }}/月</text>
  187. <text>
  188. <text class="bonus-tag">奖</text>
  189. <text class="bonus-xin">{{item.salaryTimes}}薪</text>
  190. </text>
  191. </view>
  192. <!-- 职位要求标签 -->
  193. <view
  194. class="job-requirements"
  195. v-if="item.experience || item.education || item.welfareTag"
  196. >
  197. <text class="requirement-tag" v-if="item.experience">{{
  198. item.experience
  199. }}</text>
  200. <text class="requirement-tag" v-if="item.education">{{
  201. item.education
  202. }}</text>
  203. <text
  204. class="requirement-tag"
  205. v-for="(welfare, idx) in item.welfareTag"
  206. :key="idx"
  207. >{{ welfare }}</text
  208. >
  209. </view>
  210. <!-- 联系人信息 -->
  211. <view class="contact-info">
  212. <image
  213. :src="
  214. item.hr&&item.hr.hrImg?item.hr.hrImg:'../../../static/logo.png'
  215. "
  216. style="
  217. width: 58rpx;
  218. height: 58rpx;
  219. border-radius: 50%;
  220. margin-right: 20rpx;
  221. "
  222. mode=""
  223. ></image>
  224. <view class="company-info-text">
  225. {{item.user.userName?item.user.userName:'未知'}}·{{item.hr.hrPosition?item.hr.hrPosition:'未知'}}
  226. </view>
  227. <view v-if="item.respondTime" class="reply-time">{{item.respondTime}}</view>
  228. </view>
  229. <!-- 地址和距离 -->
  230. <view class="location-info">
  231. <u-icon name="map" color="#999999" size="16"></u-icon>
  232. <text class="address"
  233. >{{ item.province || "" }}{{ item.city || "" }}{{ item.county || ""
  234. }}{{ item.address || "" }}</text
  235. >
  236. <image
  237. src="../../../static/images/index/navigation.svg"
  238. class="distance-icon"
  239. ></image>
  240. <text class="distance">{{ item.distance || "--km" }}</text>
  241. </view>
  242. </view>
  243. </view>
  244. </view>
  245. <!-- 暂无数据 -->
  246. <view class="empty-state" v-else>
  247. <text>暂无更多职位</text>
  248. </view>
  249. </view>
  250. </view>
  251. </view>
  252. </template>
  253. <script>
  254. export default {
  255. name: "gameList",
  256. data() {
  257. return {
  258. statusBarHeight: 0, // 状态栏高度
  259. current: 0,
  260. typeList: [],
  261. currentSx: 0,
  262. sxTypeList: [
  263. {
  264. id: 1,
  265. name: "推荐",
  266. },
  267. {
  268. id: 2,
  269. name: "最新",
  270. },
  271. {
  272. id: 3,
  273. name: '附近',
  274. }
  275. ],
  276. city: "",
  277. searchKeyword: "", // 搜索关键词
  278. dataList: [], // 职位列表
  279. jobSearchList: [], // 求职列表
  280. page: 1,
  281. limit: 10,
  282. searchPage: 1,
  283. searchLimit: 10,
  284. latitude: "",
  285. longitude: "",
  286. industry:'',
  287. isFixed: false, // 是否固定
  288. fixedThreshold: 300, // 固定阈值
  289. education : '' ,//学历
  290. experience : '' ,//经验
  291. salaryRange : '' ,//薪资
  292. companyPeople : '' //公司规模
  293. };
  294. },
  295. onLoad() {
  296. // 获取状态栏高度
  297. let systemInfo = uni.getSystemInfoSync();
  298. this.statusBarHeight = systemInfo.statusBarHeight || 0;
  299. let that = this;
  300. // 更换城市调用getJobSearchList
  301. uni.$on('city', data => {
  302. that.city = data.city
  303. uni.setStorageSync('city', that.city);
  304. this.searchPage = 1
  305. this.getJobSearchList();
  306. })
  307. // 监听筛选条件触发getJobSearchList
  308. uni.$on('updateRecord', () => {
  309. this.getFilterData();
  310. })
  311. // 监听工作性质变化
  312. uni.$on('updatePosition', () => {
  313. this.searchPage = 1;
  314. this.page = 1;
  315. this.getTypeList();
  316. })
  317. if (uni.getStorageSync('city')) {
  318. this.city = uni.getStorageSync('city')
  319. } else {
  320. this.city = ''
  321. }
  322. this.getLocation();
  323. },
  324. onUnload(){
  325. uni.$off('city');
  326. uni.$off('updateRecord');
  327. uni.$off('updatePosition')
  328. },
  329. watch: {
  330. current(newData, oldData) {
  331. console.log(this.current)
  332. uni.showLoading({
  333. title: '加载中'
  334. })
  335. this.searchPage = 1
  336. this.getJobSearchList();
  337. },
  338. currentSx(newData, oldData) {
  339. uni.showLoading({
  340. title: '加载中'
  341. })
  342. this.searchPage = 1
  343. this.getJobSearchList();
  344. },
  345. // currentjob(newData, oldData) {
  346. // uni.showLoading({
  347. // title: '加载中'
  348. // })
  349. // this.page = 1
  350. // this.getJobSearchList();
  351. // },
  352. // currentJobSx(newData, oldData) {
  353. // uni.showLoading({
  354. // title: '加载中'
  355. // })
  356. // this.page = 1
  357. // this.getJobSearchList();
  358. // },
  359. // currentJobSxs(newData, oldData) {
  360. // uni.showLoading({
  361. // title: '加载中'
  362. // })
  363. // this.page = 1
  364. // this.getJobSearchList();
  365. // },
  366. },
  367. onPageScroll(e) {
  368. // 监听页面滚动
  369. const scrollTop = e.scrollTop;
  370. if (scrollTop > this.fixedThreshold) {
  371. this.isFixed = true;
  372. } else {
  373. this.isFixed = false;
  374. }
  375. },
  376. methods: {
  377. // 获取工作性质列表
  378. getTypeList() {
  379. var that=this
  380. //行业期望
  381. this.$Request.get('/app/intention/getIntentionList', {}).then(res => {
  382. if (res.code == 0) {
  383. let arr = res.data
  384. let classRule=[]
  385. let industry=[{id:'不限',name:'不限'}]
  386. var industryArr=this.industry==''?[]:this.industry.split(',')
  387. industryArr.forEach(function(item){
  388. if(that.$queue.array_column(that.directionList,'name').indexOf(item)<0)
  389. industry.push({id:item,name:item})
  390. })
  391. arr.forEach(function(item){
  392. var tmp={}
  393. tmp.id=item.ruleClassifyId
  394. tmp.name=item.ruleClassifyName
  395. tmp.label=item.ruleClassifyName
  396. classRule.push(tmp)
  397. var indus=!item.industry?[]:item.industry.split('/')
  398. indus.forEach(function(ind){
  399. var tm={}
  400. tm.name=ind
  401. tm.id=ind
  402. if(that.$queue.array_column(industry,'name').indexOf(tm.name)<0)
  403. industry.push(tm)
  404. })
  405. })
  406. this.typeList = classRule
  407. this.directionList=industry
  408. that.getJobSearchList();
  409. that.getJobList();
  410. }
  411. })
  412. // this.$Request
  413. // .getT("/app/dict/list", {
  414. // type: "工作性质",
  415. // })
  416. // .then((res) => {
  417. // if (res.code == 0) {
  418. // this.typeList = res.data.map((item) => ({
  419. // label: item.value,
  420. // value: item.code,
  421. // }));
  422. // // 获取到tabs数据后调用职位列表
  423. // this.getJobList();
  424. // }
  425. // });
  426. },
  427. // 跳转到搜索页面
  428. goNavs(url) {
  429. uni.navigateTo({
  430. url: url,
  431. });
  432. },
  433. // 跳转到求职意向页面
  434. goNav(url) {
  435. uni.navigateTo({
  436. url: url,
  437. });
  438. },
  439. // 处理搜索
  440. handleSearch() {
  441. if (this.searchKeyword.trim()||true) {
  442. uni.navigateTo({
  443. url: "/package/search/search?keyword=" + encodeURIComponent(this.searchKeyword),
  444. });
  445. } else {
  446. uni.showToast({
  447. title: "请输入搜索关键词",
  448. icon: "none",
  449. });
  450. }
  451. },
  452. // 获取位置信息
  453. getLocation() {
  454. let that = this;
  455. uni.getLocation({
  456. type: "wgs84",
  457. success: function (res) {
  458. that.latitude = res.latitude;
  459. that.longitude = res.longitude;
  460. that.getSelectCity(res.longitude,res.latitude)
  461. },
  462. fail: function () {
  463. this.getTypeList();
  464. },
  465. });
  466. },
  467. getSelectCity(longitude, latitude) {
  468. let that = this;
  469. this.$Request.get('/app/Login/selectCity?lat=' + latitude + '&lng=' + longitude).then(res => {
  470. if (res.code == 0) {
  471. // console.log(res, '获取地址信息')
  472. this.city = res.data.city ? res.data.city : '区域'
  473. uni.setStorageSync('city', res.data.city)
  474. that.getTypeList();
  475. }
  476. });
  477. },
  478. // 获取职位列表
  479. getJobList() {
  480. let data = {
  481. page: this.page,
  482. limit: this.limit,
  483. postType: this.typeList.length > 0 ? this.typeList[this.current].name : "",
  484. ruleClassifyName: this.typeList.length > 0 ? this.typeList[this.current].name : "", //岗位名称
  485. screen: +this.currentSx + 1, //1推荐 2最新
  486. city: this.city == "全国" ? "" : this.city,
  487. lng: this.longitude,
  488. lat: this.latitude,
  489. isDue:1,
  490. userId: uni.getStorageSync("userId") ? uni.getStorageSync("userId") : "",
  491. };
  492. this.$Request.get("/app/postPush/userGetPostPushList", data).then((res) => {
  493. if (res.code == 0) {
  494. res.data.records.map((item) => {
  495. if (item.positionWelfare) {
  496. item.positionWelfare = item.positionWelfare.split(",");
  497. } else {
  498. item.positionWelfare = [];
  499. }
  500. if (item.distance) {
  501. if (parseFloat(item.distance) > 1000) {
  502. item.distance = (parseFloat(item.distance) / 1000).toFixed(2) + "km";
  503. } else {
  504. item.distance = parseFloat(item.distance).toFixed(2) + "m";
  505. }
  506. } else {
  507. item.distance = "";
  508. }
  509. });
  510. if (this.page == 1) {
  511. this.dataList = res.data.records.slice(0, 2);
  512. } else {
  513. this.dataList = [...this.dataList, ...res.data.records.slice(0, 2)];
  514. }
  515. }
  516. });
  517. },
  518. // 跳转到职位详情
  519. gotoInfo(postPushId) {
  520. uni.navigateTo({
  521. url: "/pages/index/game/order?postPushId=" + postPushId,
  522. });
  523. },
  524. // 判断岗位名称与职位名称是否相同
  525. isSameName(className, name) {
  526. let str1 = className.trim();
  527. let str2 = name.trim();
  528. if (str1.length !== str2.length) {
  529. return true;
  530. }
  531. return str1.toLowerCase() !== str2.toLowerCase();
  532. },
  533. // 刷新职位列表
  534. refreshJobList() {
  535. this.page = 1;
  536. this.getJobList();
  537. },
  538. // 筛选求职列表
  539. getFilterData(){
  540. //获取选中的筛选条件
  541. if (uni.getStorageSync('filter') && (uni.getStorageSync('filter')).length > 0) {
  542. let filter = uni.getStorageSync('filter')
  543. this.education = '' //学历
  544. this.experience = '' //经验
  545. this.industry = '' //行业
  546. this.salaryRange = '' //薪资
  547. this.companyPeople = '' //公司规模
  548. filter.map(item => {
  549. let arr = []
  550. item.list.map(ite => {
  551. if (ite.value != '不限') {
  552. arr.push(ite.value)
  553. }
  554. })
  555. switch (item.name) {
  556. case '学历要求':
  557. this.education = arr.join(',')
  558. break;
  559. case '薪资范围(单选)':
  560. this.salaryRange = arr.join(',')
  561. break;
  562. case '经验要求':
  563. this.experience = arr.join(',')
  564. break;
  565. case '公司规模':
  566. this.companyPeople = arr.join(',')
  567. break;
  568. case '行业':
  569. this.industry = arr.join(',')
  570. break;
  571. }
  572. })
  573. // console.log(filter)
  574. } else {
  575. this.education = '' //学历
  576. this.experience = '' //经验
  577. this.industry = '' //行业
  578. this.salaryRange = '' //薪资
  579. this.companyPeople = '' //公司规模
  580. }
  581. this.searchPage = 1
  582. this.getJobSearchList();
  583. },
  584. // 获取求职列表
  585. getJobSearchList() {
  586. let data = {
  587. page: this.searchPage,
  588. limit: this.searchLimit,
  589. postType: this.typeList.length > 0 ? this.typeList[this.current].name : "",
  590. screen: +this.currentSx + 1, //1推荐 2最新
  591. city: this.city == "全国" ? "" : this.city,
  592. lng: this.longitude,
  593. lat: this.latitude,
  594. isDue:1,
  595. userId: uni.getStorageSync("userId") ? uni.getStorageSync("userId") : "",
  596. education:this.education || '',//学历
  597. experience:this.experience || '',//经验
  598. industry:this.industry || '',//行业
  599. salaryRange:this.salaryRange || '',//薪资
  600. companyPeople:this.companyPeople || ''//公司规模
  601. };
  602. this.$Request.get("/app/postPush/userGetPostPushList", data).then((res) => {
  603. uni.hideLoading()
  604. if (res.code == 0) {
  605. res.data.records.map((item) => {
  606. if (item.welfareTag) {
  607. item.welfareTag = item.welfareTag.split(";");
  608. } else {
  609. item.welfareTag = [];
  610. }
  611. if (item.distance) {
  612. if (parseFloat(item.distance) > 1000) {
  613. item.distance = (parseFloat(item.distance) / 1000).toFixed(2) + "km";
  614. } else {
  615. item.distance = parseFloat(item.distance).toFixed(2) + "m";
  616. }
  617. } else {
  618. item.distance = "";
  619. }
  620. });
  621. if (this.searchPage == 1) {
  622. this.jobSearchList = res.data.records;
  623. } else {
  624. this.jobSearchList = [...this.jobSearchList, ...res.data.records];
  625. }
  626. }
  627. });
  628. },
  629. },
  630. };
  631. </script>
  632. <style lang="scss" scoped>
  633. page {
  634. background-color: #f2f2f7;
  635. }
  636. .page-container {
  637. position: absolute;
  638. left: 0;
  639. right: 0;
  640. top: 0;
  641. bottom: 0;
  642. display: flex;
  643. flex-direction: column;
  644. overflow: hidden;
  645. .page-bg {
  646. position: absolute;
  647. top: 0;
  648. left: 0;
  649. right: 0;
  650. height: 40vh;
  651. background: linear-gradient(90deg, rgba(13, 39, 247, 1), rgba(19, 193, 234, 1) 100%);
  652. z-index: -1;
  653. .page-bottom {
  654. height: 20vh;
  655. position: absolute;
  656. bottom: 0;
  657. left: 0;
  658. right: 0;
  659. background: linear-gradient(
  660. to top,
  661. rgba(244, 243, 243, 1),
  662. rgba(255, 255, 255, 0.5) 46%,
  663. rgba(255, 255, 255, 0) 100%
  664. );
  665. }
  666. }
  667. .page-content {
  668. flex: 1;
  669. width: 100%;
  670. overflow: hidden;
  671. overflow-y: auto;
  672. }
  673. }
  674. .search-section {
  675. flex-shrink: 0;
  676. width: 100%;
  677. padding: 20rpx 20rpx;
  678. display: flex;
  679. justify-content: space-between;
  680. .search-bar {
  681. flex: 1;
  682. height: 52rpx;
  683. background-color: #ffffff;
  684. border-radius: 40rpx;
  685. display: flex;
  686. align-items: center;
  687. padding: 0 30rpx;
  688. margin-right: 20rpx;
  689. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
  690. .search-icon {
  691. margin-right: 20rpx;
  692. }
  693. .search-input {
  694. flex: 1;
  695. height: 100%;
  696. font-size: 24rpx;
  697. color: #333333;
  698. border: none;
  699. outline: none;
  700. background: transparent;
  701. &::placeholder {
  702. color: #999999;
  703. }
  704. }
  705. }
  706. .search-btn {
  707. color: rgba(255, 255, 255, 1);
  708. font-family: DM Sans;
  709. font-size: 24rpx;
  710. font-weight: 500;
  711. line-height: 24px;
  712. letter-spacing: 0%;
  713. text-align: center;
  714. }
  715. }
  716. .active {
  717. font-size: 38rpx !important;
  718. font-weight: 800 !important;
  719. }
  720. .active2 {
  721. color: #1a1a1a !important;
  722. font-size: 38rpx !important;
  723. font-weight: 800 !important;
  724. }
  725. .active3 {
  726. color: #1a1a1a !important;
  727. font-size: 28rpx !important;
  728. font-weight: 800 !important;
  729. }
  730. .topbg-type {
  731. width: 710rpx;
  732. border-radius: 6px;
  733. box-shadow: 0px 8px 12px 0px rgba(0, 0, 0, 0.05);
  734. background: rgba(255, 255, 255, 1);
  735. padding: 18rpx 25rpx;
  736. margin: 0rpx auto 12rpx auto;
  737. .topbg-type-box {
  738. width: 686rpx;
  739. }
  740. .topbg-type-box-row {
  741. margin-bottom: 20rpx;
  742. }
  743. .topbg-type-box-l {
  744. flex: 1;
  745. white-space: nowrap;
  746. overflow-x: auto;
  747. }
  748. .topbg-type-box-l-i {
  749. color: rgba(153, 153, 153, 1);
  750. font-family: DM Sans;
  751. font-size: 28rpx;
  752. font-weight: 400;
  753. line-height: 18px;
  754. letter-spacing: 0%;
  755. text-align: left;
  756. margin-right: 14rpx;
  757. &.active {
  758. background: linear-gradient(
  759. 90deg,
  760. rgba(13, 39, 247, 1),
  761. rgba(19, 193, 234, 1) 100%
  762. );
  763. -webkit-background-clip: text;
  764. -webkit-text-fill-color: transparent;
  765. background-clip: text;
  766. text-fill-color: transparent;
  767. font-family: DM Sans;
  768. font-size: 24rpx;
  769. font-weight: 700;
  770. line-height: 48rpx;
  771. letter-spacing: 0%;
  772. text-align: left;
  773. }
  774. }
  775. .topbg-type-box-r {
  776. color: #ffffff;
  777. }
  778. .attachment-icon {
  779. width: 38rpx;
  780. height: 38rpx;
  781. }
  782. }
  783. .topbg-sx-box {
  784. width: 100%;
  785. margin-top: 0rpx;
  786. .topbg-sx-box-l-i {
  787. color: rgba(153, 153, 153, 1);
  788. font-family: DM Sans;
  789. font-size: 24rpx;
  790. font-weight: 400;
  791. line-height: 18px;
  792. letter-spacing: 0%;
  793. text-align: center;
  794. margin-right: 20rpx;
  795. border-radius: 6px;
  796. background: rgba(198, 198, 198, 0.1);
  797. padding: 8rpx 12rpx;
  798. display: inline-block;
  799. min-width: 60rpx;
  800. white-space: nowrap;
  801. &.active3 {
  802. font-family: DM Sans;
  803. font-size: 24rpx !important;
  804. font-weight: 400 !important;
  805. line-height: 18px;
  806. letter-spacing: 0%;
  807. text-align: left;
  808. padding: 8rpx 12rpx !important;
  809. color: rgba(1, 107, 246, 1) !important;
  810. background: rgba(252, 233, 220, 1) !important;
  811. border: 1px solid rgba(1, 107, 246, 1);
  812. }
  813. }
  814. .topbg-sx-box-r-i {
  815. color: rgba(1, 107, 246, 1);
  816. font-family: DM Sans;
  817. font-size: 24rpx;
  818. font-weight: 400;
  819. line-height: 18px;
  820. letter-spacing: 0%;
  821. text-align: center;
  822. margin-right: 20rpx;
  823. border-radius: 6px;
  824. background: rgba(252, 233, 220, 1);
  825. padding: 8rpx 12rpx;
  826. display: inline-block;
  827. min-width: 60rpx;
  828. white-space: nowrap;
  829. cursor: pointer;
  830. transition: all 0.3s ease;
  831. border: 0.5px solid rgba(1, 107, 246, 1);
  832. }
  833. .topbg-sx-box-filter {
  834. color: rgba(153, 153, 153, 1);
  835. font-family: DM Sans;
  836. font-size: 24rpx;
  837. font-weight: 400;
  838. line-height: 18px;
  839. letter-spacing: 0%;
  840. text-align: center;
  841. border-radius: 6px;
  842. background: rgba(198, 198, 198, 0.1);
  843. padding: 8rpx 12rpx;
  844. display: inline-block;
  845. min-width: 60rpx;
  846. white-space: nowrap;
  847. cursor: pointer;
  848. transition: all 0.3s ease;
  849. }
  850. }
  851. .job-list-section {
  852. padding: 20rpx;
  853. margin: 20rpx;
  854. border-radius: 6px;
  855. box-shadow: 0px 5px 8px 0px rgba(255, 255, 255, 0.05);
  856. background: linear-gradient(180deg, #78e4ff9d 1%, rgb(255, 255, 255) 38%);
  857. .job-list-header {
  858. display: flex;
  859. justify-content: space-between;
  860. align-items: center;
  861. margin-bottom: 20rpx;
  862. .job-list-title {
  863. color: rgba(1, 107, 246, 1);
  864. font-family: DM Sans;
  865. font-size: 32rpx;
  866. font-weight: 700;
  867. line-height: 21px;
  868. text-align: left;
  869. }
  870. .refresh-btn {
  871. color: rgba(1, 107, 246, 1);
  872. font-family: DM Sans;
  873. font-size: 18rpx;
  874. font-weight: 400;
  875. line-height: 10px;
  876. text-align: right;
  877. display: flex;
  878. align-items: center;
  879. gap: 8rpx;
  880. .refresh-icon {
  881. width: 28rpx;
  882. height: 28rpx;
  883. }
  884. }
  885. }
  886. .job-list {
  887. .job-item {
  888. background-color: #ffffff;
  889. border-radius: 12rpx;
  890. margin-bottom: 16rpx;
  891. padding: 20rpx;
  892. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
  893. .job-item-content {
  894. display: flex;
  895. align-items: center;
  896. gap: 20rpx;
  897. .company-logo {
  898. width: 80rpx;
  899. height: 80rpx;
  900. border-radius: 8rpx;
  901. flex-shrink: 0;
  902. }
  903. .job-info {
  904. flex: 1;
  905. .company-name {
  906. color: rgba(29, 33, 41, 1);
  907. font-family: DM Sans;
  908. font-size: 24rpx;
  909. font-weight: 500;
  910. line-height: 13px;
  911. letter-spacing: 0%;
  912. text-align: left;
  913. margin-bottom: 8rpx;
  914. }
  915. .company-details {
  916. display: flex;
  917. gap: 16rpx;
  918. margin-bottom: 8rpx;
  919. text {
  920. color: rgba(153, 153, 153, 1);
  921. font-family: DM Sans;
  922. font-size: 20rpx;
  923. font-weight: 400;
  924. line-height: 13px;
  925. letter-spacing: 0%;
  926. text-align: left;
  927. }
  928. }
  929. .job-benefits {
  930. display: flex;
  931. gap: 12rpx;
  932. flex-wrap: nowrap;
  933. overflow: hidden;
  934. text-overflow: ellipsis;
  935. width: 450rpx;
  936. .text {
  937. color: rgba(153, 153, 153, 1);
  938. font-family: DM Sans;
  939. font-size: 20rpx;
  940. font-weight: 400;
  941. line-height: 26rpx;
  942. letter-spacing: 0%;
  943. text-align: left;
  944. white-space: nowrap;
  945. overflow: hidden;
  946. text-overflow: ellipsis;
  947. // 可选:设置最大宽度
  948. max-width: 100rpx;
  949. flex-shrink: 0;
  950. }
  951. }
  952. }
  953. }
  954. }
  955. }
  956. .empty-state {
  957. text-align: center;
  958. padding: 60rpx 0;
  959. color: #999999;
  960. font-size: 28rpx;
  961. }
  962. }
  963. // 求职列表样式
  964. .job-search-section {
  965. width: 100%;
  966. padding: 0 20rpx 20rpx 20rpx;
  967. .job-search-header {
  968. margin-bottom: 20rpx;
  969. .job-search-title {
  970. font-size: 32rpx;
  971. font-weight: 600;
  972. color: #333333;
  973. }
  974. }
  975. .job-search-list {
  976. .job-search-item {
  977. background-color: #ffffff;
  978. border-radius: 12rpx;
  979. margin-bottom: 16rpx;
  980. padding: 30rpx;
  981. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
  982. position: relative;
  983. .urgent-tag {
  984. position: absolute;
  985. top: 0rpx;
  986. right: 40rpx;
  987. .urgent-icon {
  988. width: 80rpx;
  989. height: 80rpx;
  990. }
  991. }
  992. .job-search-content {
  993. .job-title {
  994. color: rgba(29, 33, 41, 1);
  995. font-family: DM Sans;
  996. font-size: 36rpx;
  997. font-weight: 500;
  998. line-height: 21px;
  999. letter-spacing: 0%;
  1000. text-align: left;
  1001. }
  1002. .company-info {
  1003. display: flex;
  1004. gap: 16rpx;
  1005. margin: 12rpx 0;
  1006. .company-name {
  1007. color: rgba(156, 164, 171, 1);
  1008. font-family: DM Sans;
  1009. font-size: 24rpx;
  1010. font-weight: 400;
  1011. line-height: 20px;
  1012. letter-spacing: 0%;
  1013. text-align: left;
  1014. }
  1015. }
  1016. .salary {
  1017. display: flex;
  1018. align-items: center;
  1019. justify-content: space-between;
  1020. color: rgba(1, 107, 246, 1);
  1021. font-family: DM Sans;
  1022. font-size: 32rpx;
  1023. font-weight: 700;
  1024. line-height: 23px;
  1025. letter-spacing: 0%;
  1026. text-align: left;
  1027. .bonus-tag {
  1028. color: rgba(255, 255, 255, 1);
  1029. font-family: DM Sans;
  1030. padding: 4rpx;
  1031. font-size: 24rpx;
  1032. font-weight: 400;
  1033. letter-spacing: 0%;
  1034. text-align: center;
  1035. border-radius: 4rpx;
  1036. background: rgba(1, 107, 246, 1);
  1037. margin-right: 12rpx;
  1038. }
  1039. .bonus-xin {
  1040. color: rgba(1, 107, 246, 1);
  1041. font-family: DM Sans;
  1042. font-size: 24rpx;
  1043. font-weight: 700;
  1044. line-height: 20px;
  1045. letter-spacing: 0%;
  1046. text-align: right;
  1047. }
  1048. }
  1049. .job-requirements {
  1050. display: flex;
  1051. gap: 12rpx;
  1052. flex-wrap: wrap;
  1053. margin-bottom: 12rpx;
  1054. .requirement-tag {
  1055. font-size: 18rpx;
  1056. color: rgba(1, 107, 246, 1);
  1057. padding: 6rpx 10rpx;
  1058. background: rgba(153, 196, 250, 0.4);
  1059. border-radius: 12rpx;
  1060. margin: 12rpx 0;
  1061. }
  1062. }
  1063. .contact-info {
  1064. display: flex;
  1065. align-items: center;
  1066. margin-bottom: 12rpx;
  1067. .company-info-text {
  1068. color: rgba(51, 51, 51, 1);
  1069. font-family: DM Sans;
  1070. font-size: 24rpx;
  1071. font-weight: 400;
  1072. line-height: 20px;
  1073. letter-spacing: 0%;
  1074. text-align: left;
  1075. }
  1076. .reply-time {
  1077. display: flex;
  1078. flex-direction: row;
  1079. justify-content: center;
  1080. align-items: center;
  1081. padding: 8rpx;
  1082. font-family: DM Sans;
  1083. font-size: 20rpx;
  1084. font-weight: 400;
  1085. line-height: 30rpx;
  1086. letter-spacing: 0.5%;
  1087. text-align: left;
  1088. border-radius: 12rpx;
  1089. background: #ece1fd;
  1090. color: #8858c5;
  1091. margin-left: 12rpx;
  1092. }
  1093. }
  1094. .location-info {
  1095. display: flex;
  1096. align-items: center;
  1097. gap: 8rpx;
  1098. .address {
  1099. font-size: 22rpx;
  1100. color: #999999;
  1101. flex: 1;
  1102. }
  1103. .distance-icon {
  1104. width: 24rpx;
  1105. height: 24rpx;
  1106. }
  1107. .distance {
  1108. font-size: 22rpx;
  1109. color: #999999;
  1110. }
  1111. }
  1112. }
  1113. }
  1114. }
  1115. .empty-state {
  1116. text-align: center;
  1117. padding: 60rpx 0;
  1118. color: #999999;
  1119. font-size: 28rpx;
  1120. }
  1121. }
  1122. // 固定样式
  1123. .search-section.fixed {
  1124. position: fixed;
  1125. top: 0;
  1126. left: 0;
  1127. right: 0;
  1128. z-index: 100;
  1129. background-image: url("../../../static/images/index/jipinBac.png");
  1130. background-size: cover;
  1131. background-position: top center;
  1132. background-repeat: no-repeat;
  1133. height: 19vh;
  1134. }
  1135. .topbg-type.fixed {
  1136. position: fixed;
  1137. top: 9vh;
  1138. left: 50%;
  1139. transform: translateX(-50%);
  1140. z-index: 101;
  1141. background: rgba(255, 255, 255, 0.95);
  1142. backdrop-filter: blur(10rpx);
  1143. }
  1144. </style>