gameList.vue 32 KB

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