gameList.vue 31 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216
  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. uni.$on('city', data => {
  301. that.city = data.city
  302. uni.setStorageSync('city', that.city)
  303. })
  304. if (uni.getStorageSync('city')) {
  305. this.city = uni.getStorageSync('city')
  306. } else {
  307. this.city = ''
  308. }
  309. this.getTypeList();
  310. this.getLocation();
  311. //this.getJobSearchList();
  312. },
  313. onUnload(){
  314. uni.$off('city')
  315. },
  316. watch: {
  317. current(newData, oldData) {
  318. console.log(this.current)
  319. uni.showLoading({
  320. title: '加载中'
  321. })
  322. this.page = 1
  323. this.getJobSearchList();
  324. },
  325. currentSx(newData, oldData) {
  326. uni.showLoading({
  327. title: '加载中'
  328. })
  329. this.page = 1
  330. this.getJobSearchList();
  331. },
  332. currentjob(newData, oldData) {
  333. uni.showLoading({
  334. title: '加载中'
  335. })
  336. this.page = 1
  337. this.getJobSearchList();
  338. },
  339. currentJobSx(newData, oldData) {
  340. uni.showLoading({
  341. title: '加载中'
  342. })
  343. this.page = 1
  344. this.getJobSearchList();
  345. },
  346. currentJobSxs(newData, oldData) {
  347. uni.showLoading({
  348. title: '加载中'
  349. })
  350. this.page = 1
  351. this.getJobSearchList();
  352. },
  353. },
  354. onPageScroll(e) {
  355. // 监听页面滚动
  356. const scrollTop = e.scrollTop;
  357. if (scrollTop > this.fixedThreshold) {
  358. this.isFixed = true;
  359. } else {
  360. this.isFixed = false;
  361. }
  362. },
  363. onShow(){
  364. //获取选中的筛选条件
  365. if (uni.getStorageSync('filter') && (uni.getStorageSync('filter')).length > 0) {
  366. let filter = uni.getStorageSync('filter')
  367. this.education = '' //学历
  368. this.experience = '' //经验
  369. this.industry = '' //行业
  370. this.salaryRange = '' //薪资
  371. this.companyPeople = '' //公司规模
  372. filter.map(item => {
  373. let arr = []
  374. item.list.map(ite => {
  375. if (ite.value != '不限') {
  376. arr.push(ite.value)
  377. }
  378. })
  379. switch (item.name) {
  380. case '学历要求':
  381. this.education = arr.join(',')
  382. break;
  383. case '薪资范围(单选)':
  384. this.salaryRange = arr.join(',')
  385. break;
  386. case '经验要求':
  387. this.experience = arr.join(',')
  388. break;
  389. case '公司规模':
  390. this.companyPeople = arr.join(',')
  391. break;
  392. case '行业':
  393. this.industry = arr.join(',')
  394. break;
  395. }
  396. })
  397. // console.log(filter)
  398. } else {
  399. this.education = '' //学历
  400. this.experience = '' //经验
  401. this.industry = '' //行业
  402. this.salaryRange = '' //薪资
  403. this.companyPeople = '' //公司规模
  404. }
  405. this.getJobSearchList();
  406. },
  407. methods: {
  408. // 获取工作性质列表
  409. getTypeList() {
  410. var that=this
  411. //行业期望
  412. this.$Request.get('/app/intention/getIntentionList', {
  413. }).then(res => {
  414. if (res.code == 0) {
  415. let arr = res.data
  416. let classRule=[]
  417. let industry=[{id:'不限',name:'不限'}]
  418. var industryArr=this.industry==''?[]:this.industry.split(',')
  419. industryArr.forEach(function(item){
  420. if(that.$queue.array_column(that.directionList,'name').indexOf(item)<0)
  421. industry.push({id:item,name:item})
  422. })
  423. arr.forEach(function(item){
  424. var tmp={}
  425. tmp.id=item.ruleClassifyId
  426. tmp.name=item.ruleClassifyName
  427. tmp.label=item.ruleClassifyName
  428. classRule.push(tmp)
  429. var indus=!item.industry?[]:item.industry.split('/')
  430. indus.forEach(function(ind){
  431. var tm={}
  432. tm.name=ind
  433. tm.id=ind
  434. if(that.$queue.array_column(industry,'name').indexOf(tm.name)<0)
  435. industry.push(tm)
  436. })
  437. })
  438. this.typeList = classRule
  439. this.directionList=industry
  440. console.log(44444)
  441. that.getJobList();
  442. // console.log(this.typeList, '1111')
  443. }
  444. })
  445. return;
  446. this.$Request
  447. .getT("/app/dict/list", {
  448. type: "工作性质",
  449. })
  450. .then((res) => {
  451. if (res.code == 0) {
  452. this.typeList = res.data.map((item) => ({
  453. label: item.value,
  454. value: item.code,
  455. }));
  456. // 获取到tabs数据后调用职位列表
  457. console.log(3333333)
  458. this.getJobList();
  459. }
  460. });
  461. },
  462. // 跳转到搜索页面
  463. goNavs(url) {
  464. uni.navigateTo({
  465. url: url,
  466. });
  467. },
  468. // 跳转到求职意向页面
  469. goNav(url) {
  470. uni.navigateTo({
  471. url: url,
  472. });
  473. },
  474. // 处理搜索
  475. handleSearch() {
  476. if (this.searchKeyword.trim()||true) {
  477. uni.navigateTo({
  478. url: "/package/search/search?keyword=" + encodeURIComponent(this.searchKeyword),
  479. });
  480. } else {
  481. uni.showToast({
  482. title: "请输入搜索关键词",
  483. icon: "none",
  484. });
  485. }
  486. },
  487. // 获取位置信息
  488. getLocation() {
  489. let that = this;
  490. uni.getLocation({
  491. type: "wgs84",
  492. success: function (res) {
  493. that.latitude = res.latitude;
  494. that.longitude = res.longitude;
  495. that.getSelectCity(res.longitude,res.latitude)
  496. },
  497. fail: function () {
  498. console.log('1111')
  499. that.getJobList();
  500. },
  501. });
  502. },
  503. getSelectCity(longitude, latitude) {
  504. let that = this;
  505. this.$Request.get('/app/Login/selectCity?lat=' + latitude + '&lng=' + longitude).then(res => {
  506. if (res.code == 0) {
  507. // console.log(res, '获取地址信息')
  508. this.city = res.data.city ? res.data.city : '区域'
  509. uni.setStorageSync('city', res.data.city)
  510. console.log('2222')
  511. that.getJobList();
  512. }
  513. });
  514. },
  515. // 获取职位列表
  516. getJobList() {
  517. let data = {
  518. page: this.page,
  519. limit: this.limit,
  520. /* postType: this.typeList.length > 0 ? this.typeList[this.current].name : "", */
  521. ruleClassifyName: this.typeList[this.current].name, //岗位名称
  522. screen: +this.currentSx + 1, //1推荐 2最新
  523. city: this.city == "全国" ? "" : this.city,
  524. lng: this.longitude,
  525. lat: this.latitude,
  526. isDue:1,
  527. userId: uni.getStorageSync("userId") ? uni.getStorageSync("userId") : "",
  528. };
  529. this.$Request.get("/app/postPush/userGetPostPushList", data).then((res) => {
  530. if (res.code == 0) {
  531. res.data.records.map((item) => {
  532. if (item.positionWelfare) {
  533. item.positionWelfare = item.positionWelfare.split(",");
  534. } else {
  535. item.positionWelfare = [];
  536. }
  537. if (item.distance) {
  538. if (parseFloat(item.distance) > 1000) {
  539. item.distance = (parseFloat(item.distance) / 1000).toFixed(2) + "km";
  540. } else {
  541. item.distance = parseFloat(item.distance).toFixed(2) + "m";
  542. }
  543. } else {
  544. item.distance = "";
  545. }
  546. });
  547. if (this.page == 1) {
  548. this.dataList = res.data.records.slice(0, 2);
  549. } else {
  550. this.dataList = [...this.dataList, ...res.data.records.slice(0, 2)];
  551. }
  552. }
  553. });
  554. },
  555. // 跳转到职位详情
  556. gotoInfo(postPushId) {
  557. uni.navigateTo({
  558. url: "/pages/index/game/order?postPushId=" + postPushId,
  559. });
  560. },
  561. // 判断岗位名称与职位名称是否相同
  562. isSameName(className, name) {
  563. let str1 = className.trim();
  564. let str2 = name.trim();
  565. if (str1.length !== str2.length) {
  566. return true;
  567. }
  568. return str1.toLowerCase() !== str2.toLowerCase();
  569. },
  570. // 刷新职位列表
  571. refreshJobList() {
  572. this.page = 1;
  573. console.log(55555)
  574. this.getJobList();
  575. },
  576. // 获取求职列表
  577. getJobSearchList() {
  578. let data = {
  579. page: this.searchPage,
  580. limit: this.searchLimit,
  581. postType: this.typeList.length > 0 ? this.typeList[this.current].name : "",
  582. screen: +this.currentSx + 1, //1推荐 2最新
  583. city: this.city == "全国" ? "" : this.city,
  584. lng: this.longitude,
  585. lat: this.latitude,
  586. isDue:1,
  587. userId: uni.getStorageSync("userId") ? uni.getStorageSync("userId") : "",
  588. };
  589. this.$Request.get("/app/postPush/userGetPostPushList", data).then((res) => {
  590. uni.hideLoading()
  591. if (res.code == 0) {
  592. res.data.records.map((item) => {
  593. if (item.welfareTag) {
  594. item.welfareTag = item.welfareTag.split(";");
  595. } else {
  596. item.welfareTag = [];
  597. }
  598. if (item.distance) {
  599. if (parseFloat(item.distance) > 1000) {
  600. item.distance = (parseFloat(item.distance) / 1000).toFixed(2) + "km";
  601. } else {
  602. item.distance = parseFloat(item.distance).toFixed(2) + "m";
  603. }
  604. } else {
  605. item.distance = "";
  606. }
  607. });
  608. if (this.searchPage == 1) {
  609. this.jobSearchList = res.data.records;
  610. } else {
  611. this.jobSearchList = [...this.jobSearchList, ...res.data.records];
  612. }
  613. }
  614. });
  615. },
  616. },
  617. };
  618. </script>
  619. <style lang="scss" scoped>
  620. page {
  621. background-color: #f2f2f7;
  622. }
  623. .page-container {
  624. position: absolute;
  625. left: 0;
  626. right: 0;
  627. top: 0;
  628. bottom: 0;
  629. display: flex;
  630. flex-direction: column;
  631. overflow: hidden;
  632. .page-bg {
  633. position: absolute;
  634. top: 0;
  635. left: 0;
  636. right: 0;
  637. height: 40vh;
  638. background: linear-gradient(90deg, rgba(13, 39, 247, 1), rgba(19, 193, 234, 1) 100%);
  639. z-index: -1;
  640. .page-bottom {
  641. height: 20vh;
  642. position: absolute;
  643. bottom: 0;
  644. left: 0;
  645. right: 0;
  646. background: linear-gradient(
  647. to top,
  648. rgba(244, 243, 243, 1),
  649. rgba(255, 255, 255, 0.5) 46%,
  650. rgba(255, 255, 255, 0) 100%
  651. );
  652. }
  653. }
  654. .page-content {
  655. flex: 1;
  656. width: 100%;
  657. overflow: hidden;
  658. overflow-y: auto;
  659. }
  660. }
  661. .search-section {
  662. flex-shrink: 0;
  663. width: 100%;
  664. padding: 20rpx 20rpx;
  665. display: flex;
  666. justify-content: space-between;
  667. .search-bar {
  668. flex: 1;
  669. height: 52rpx;
  670. background-color: #ffffff;
  671. border-radius: 40rpx;
  672. display: flex;
  673. align-items: center;
  674. padding: 0 30rpx;
  675. margin-right: 20rpx;
  676. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
  677. .search-icon {
  678. margin-right: 20rpx;
  679. }
  680. .search-input {
  681. flex: 1;
  682. height: 100%;
  683. font-size: 24rpx;
  684. color: #333333;
  685. border: none;
  686. outline: none;
  687. background: transparent;
  688. &::placeholder {
  689. color: #999999;
  690. }
  691. }
  692. }
  693. .search-btn {
  694. color: rgba(255, 255, 255, 1);
  695. font-family: DM Sans;
  696. font-size: 24rpx;
  697. font-weight: 500;
  698. line-height: 24px;
  699. letter-spacing: 0%;
  700. text-align: center;
  701. }
  702. }
  703. .active {
  704. font-size: 38rpx !important;
  705. font-weight: 800 !important;
  706. }
  707. .active2 {
  708. color: #1a1a1a !important;
  709. font-size: 38rpx !important;
  710. font-weight: 800 !important;
  711. }
  712. .active3 {
  713. color: #1a1a1a !important;
  714. font-size: 28rpx !important;
  715. font-weight: 800 !important;
  716. }
  717. .topbg-type {
  718. width: 710rpx;
  719. border-radius: 6px;
  720. box-shadow: 0px 8px 12px 0px rgba(0, 0, 0, 0.05);
  721. background: rgba(255, 255, 255, 1);
  722. padding: 18rpx 25rpx;
  723. margin: 0rpx auto 12rpx auto;
  724. .topbg-type-box {
  725. width: 686rpx;
  726. }
  727. .topbg-type-box-row {
  728. margin-bottom: 20rpx;
  729. }
  730. .topbg-type-box-l {
  731. flex: 1;
  732. white-space: nowrap;
  733. overflow-x: auto;
  734. }
  735. .topbg-type-box-l-i {
  736. color: rgba(153, 153, 153, 1);
  737. font-family: DM Sans;
  738. font-size: 28rpx;
  739. font-weight: 400;
  740. line-height: 18px;
  741. letter-spacing: 0%;
  742. text-align: left;
  743. margin-right: 14rpx;
  744. &.active {
  745. background: linear-gradient(
  746. 90deg,
  747. rgba(13, 39, 247, 1),
  748. rgba(19, 193, 234, 1) 100%
  749. );
  750. -webkit-background-clip: text;
  751. -webkit-text-fill-color: transparent;
  752. background-clip: text;
  753. text-fill-color: transparent;
  754. font-family: DM Sans;
  755. font-size: 24rpx;
  756. font-weight: 700;
  757. line-height: 48rpx;
  758. letter-spacing: 0%;
  759. text-align: left;
  760. }
  761. }
  762. .topbg-type-box-r {
  763. color: #ffffff;
  764. }
  765. .attachment-icon {
  766. width: 38rpx;
  767. height: 38rpx;
  768. }
  769. }
  770. .topbg-sx-box {
  771. width: 100%;
  772. margin-top: 0rpx;
  773. .topbg-sx-box-l-i {
  774. color: rgba(153, 153, 153, 1);
  775. font-family: DM Sans;
  776. font-size: 24rpx;
  777. font-weight: 400;
  778. line-height: 18px;
  779. letter-spacing: 0%;
  780. text-align: center;
  781. margin-right: 20rpx;
  782. border-radius: 6px;
  783. background: rgba(198, 198, 198, 0.1);
  784. padding: 8rpx 12rpx;
  785. display: inline-block;
  786. min-width: 60rpx;
  787. white-space: nowrap;
  788. &.active3 {
  789. font-family: DM Sans;
  790. font-size: 24rpx !important;
  791. font-weight: 400 !important;
  792. line-height: 18px;
  793. letter-spacing: 0%;
  794. text-align: left;
  795. padding: 8rpx 12rpx !important;
  796. color: rgba(1, 107, 246, 1) !important;
  797. background: rgba(252, 233, 220, 1) !important;
  798. border: 1px solid rgba(1, 107, 246, 1);
  799. }
  800. }
  801. .topbg-sx-box-r-i {
  802. color: rgba(1, 107, 246, 1);
  803. font-family: DM Sans;
  804. font-size: 24rpx;
  805. font-weight: 400;
  806. line-height: 18px;
  807. letter-spacing: 0%;
  808. text-align: center;
  809. margin-right: 20rpx;
  810. border-radius: 6px;
  811. background: rgba(252, 233, 220, 1);
  812. padding: 8rpx 12rpx;
  813. display: inline-block;
  814. min-width: 60rpx;
  815. white-space: nowrap;
  816. cursor: pointer;
  817. transition: all 0.3s ease;
  818. border: 0.5px solid rgba(1, 107, 246, 1);
  819. }
  820. .topbg-sx-box-filter {
  821. color: rgba(153, 153, 153, 1);
  822. font-family: DM Sans;
  823. font-size: 24rpx;
  824. font-weight: 400;
  825. line-height: 18px;
  826. letter-spacing: 0%;
  827. text-align: center;
  828. border-radius: 6px;
  829. background: rgba(198, 198, 198, 0.1);
  830. padding: 8rpx 12rpx;
  831. display: inline-block;
  832. min-width: 60rpx;
  833. white-space: nowrap;
  834. cursor: pointer;
  835. transition: all 0.3s ease;
  836. }
  837. }
  838. .job-list-section {
  839. padding: 20rpx;
  840. margin: 20rpx;
  841. border-radius: 6px;
  842. box-shadow: 0px 5px 8px 0px rgba(255, 255, 255, 0.05);
  843. background: linear-gradient(180deg, #78e4ff9d 1%, rgb(255, 255, 255) 38%);
  844. .job-list-header {
  845. display: flex;
  846. justify-content: space-between;
  847. align-items: center;
  848. margin-bottom: 20rpx;
  849. .job-list-title {
  850. color: rgba(1, 107, 246, 1);
  851. font-family: DM Sans;
  852. font-size: 32rpx;
  853. font-weight: 700;
  854. line-height: 21px;
  855. text-align: left;
  856. }
  857. .refresh-btn {
  858. color: rgba(1, 107, 246, 1);
  859. font-family: DM Sans;
  860. font-size: 18rpx;
  861. font-weight: 400;
  862. line-height: 10px;
  863. text-align: right;
  864. display: flex;
  865. align-items: center;
  866. gap: 8rpx;
  867. .refresh-icon {
  868. width: 28rpx;
  869. height: 28rpx;
  870. }
  871. }
  872. }
  873. .job-list {
  874. .job-item {
  875. background-color: #ffffff;
  876. border-radius: 12rpx;
  877. margin-bottom: 16rpx;
  878. padding: 20rpx;
  879. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
  880. .job-item-content {
  881. display: flex;
  882. align-items: center;
  883. gap: 20rpx;
  884. .company-logo {
  885. width: 80rpx;
  886. height: 80rpx;
  887. border-radius: 8rpx;
  888. flex-shrink: 0;
  889. }
  890. .job-info {
  891. flex: 1;
  892. .company-name {
  893. color: rgba(29, 33, 41, 1);
  894. font-family: DM Sans;
  895. font-size: 24rpx;
  896. font-weight: 500;
  897. line-height: 13px;
  898. letter-spacing: 0%;
  899. text-align: left;
  900. margin-bottom: 8rpx;
  901. }
  902. .company-details {
  903. display: flex;
  904. gap: 16rpx;
  905. margin-bottom: 8rpx;
  906. text {
  907. color: rgba(153, 153, 153, 1);
  908. font-family: DM Sans;
  909. font-size: 20rpx;
  910. font-weight: 400;
  911. line-height: 13px;
  912. letter-spacing: 0%;
  913. text-align: left;
  914. }
  915. }
  916. .job-benefits {
  917. display: flex;
  918. gap: 12rpx;
  919. flex-wrap: nowrap;
  920. overflow: hidden;
  921. text-overflow: ellipsis;
  922. width: 450rpx;
  923. .text {
  924. color: rgba(153, 153, 153, 1);
  925. font-family: DM Sans;
  926. font-size: 20rpx;
  927. font-weight: 400;
  928. line-height: 26rpx;
  929. letter-spacing: 0%;
  930. text-align: left;
  931. white-space: nowrap;
  932. overflow: hidden;
  933. text-overflow: ellipsis;
  934. // 可选:设置最大宽度
  935. max-width: 100rpx;
  936. flex-shrink: 0;
  937. }
  938. }
  939. }
  940. }
  941. }
  942. }
  943. .empty-state {
  944. text-align: center;
  945. padding: 60rpx 0;
  946. color: #999999;
  947. font-size: 28rpx;
  948. }
  949. }
  950. // 求职列表样式
  951. .job-search-section {
  952. width: 100%;
  953. padding: 0 20rpx 20rpx 20rpx;
  954. .job-search-header {
  955. margin-bottom: 20rpx;
  956. .job-search-title {
  957. font-size: 32rpx;
  958. font-weight: 600;
  959. color: #333333;
  960. }
  961. }
  962. .job-search-list {
  963. .job-search-item {
  964. background-color: #ffffff;
  965. border-radius: 12rpx;
  966. margin-bottom: 16rpx;
  967. padding: 30rpx;
  968. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
  969. position: relative;
  970. .urgent-tag {
  971. position: absolute;
  972. top: 0rpx;
  973. right: 40rpx;
  974. .urgent-icon {
  975. width: 80rpx;
  976. height: 80rpx;
  977. }
  978. }
  979. .job-search-content {
  980. .job-title {
  981. color: rgba(29, 33, 41, 1);
  982. font-family: DM Sans;
  983. font-size: 36rpx;
  984. font-weight: 500;
  985. line-height: 21px;
  986. letter-spacing: 0%;
  987. text-align: left;
  988. }
  989. .company-info {
  990. display: flex;
  991. gap: 16rpx;
  992. margin: 12rpx 0;
  993. .company-name {
  994. color: rgba(156, 164, 171, 1);
  995. font-family: DM Sans;
  996. font-size: 24rpx;
  997. font-weight: 400;
  998. line-height: 20px;
  999. letter-spacing: 0%;
  1000. text-align: left;
  1001. }
  1002. }
  1003. .salary {
  1004. display: flex;
  1005. align-items: center;
  1006. justify-content: space-between;
  1007. color: rgba(1, 107, 246, 1);
  1008. font-family: DM Sans;
  1009. font-size: 32rpx;
  1010. font-weight: 700;
  1011. line-height: 23px;
  1012. letter-spacing: 0%;
  1013. text-align: left;
  1014. .bonus-tag {
  1015. color: rgba(255, 255, 255, 1);
  1016. font-family: DM Sans;
  1017. padding: 4rpx;
  1018. font-size: 24rpx;
  1019. font-weight: 400;
  1020. letter-spacing: 0%;
  1021. text-align: center;
  1022. border-radius: 4rpx;
  1023. background: rgba(1, 107, 246, 1);
  1024. margin-right: 12rpx;
  1025. }
  1026. .bonus-xin {
  1027. color: rgba(1, 107, 246, 1);
  1028. font-family: DM Sans;
  1029. font-size: 24rpx;
  1030. font-weight: 700;
  1031. line-height: 20px;
  1032. letter-spacing: 0%;
  1033. text-align: right;
  1034. }
  1035. }
  1036. .job-requirements {
  1037. display: flex;
  1038. gap: 12rpx;
  1039. flex-wrap: wrap;
  1040. margin-bottom: 12rpx;
  1041. .requirement-tag {
  1042. font-size: 18rpx;
  1043. color: rgba(1, 107, 246, 1);
  1044. padding: 6rpx 10rpx;
  1045. background: rgba(153, 196, 250, 0.4);
  1046. border-radius: 12rpx;
  1047. margin: 12rpx 0;
  1048. }
  1049. }
  1050. .contact-info {
  1051. display: flex;
  1052. align-items: center;
  1053. margin-bottom: 12rpx;
  1054. .company-info-text {
  1055. color: rgba(51, 51, 51, 1);
  1056. font-family: DM Sans;
  1057. font-size: 24rpx;
  1058. font-weight: 400;
  1059. line-height: 20px;
  1060. letter-spacing: 0%;
  1061. text-align: left;
  1062. }
  1063. .reply-time {
  1064. display: flex;
  1065. flex-direction: row;
  1066. justify-content: center;
  1067. align-items: center;
  1068. padding: 8rpx;
  1069. font-family: DM Sans;
  1070. font-size: 20rpx;
  1071. font-weight: 400;
  1072. line-height: 30rpx;
  1073. letter-spacing: 0.5%;
  1074. text-align: left;
  1075. border-radius: 12rpx;
  1076. background: #ece1fd;
  1077. color: #8858c5;
  1078. margin-left: 12rpx;
  1079. }
  1080. }
  1081. .location-info {
  1082. display: flex;
  1083. align-items: center;
  1084. gap: 8rpx;
  1085. .address {
  1086. font-size: 22rpx;
  1087. color: #999999;
  1088. flex: 1;
  1089. }
  1090. .distance-icon {
  1091. width: 24rpx;
  1092. height: 24rpx;
  1093. }
  1094. .distance {
  1095. font-size: 22rpx;
  1096. color: #999999;
  1097. }
  1098. }
  1099. }
  1100. }
  1101. }
  1102. .empty-state {
  1103. text-align: center;
  1104. padding: 60rpx 0;
  1105. color: #999999;
  1106. font-size: 28rpx;
  1107. }
  1108. }
  1109. // 固定样式
  1110. .search-section.fixed {
  1111. position: fixed;
  1112. top: 0;
  1113. left: 0;
  1114. right: 0;
  1115. z-index: 100;
  1116. background-image: url("../../../static/images/index/jipinBac.png");
  1117. background-size: cover;
  1118. background-position: top center;
  1119. background-repeat: no-repeat;
  1120. height: 19vh;
  1121. }
  1122. .topbg-type.fixed {
  1123. position: fixed;
  1124. top: 9vh;
  1125. left: 50%;
  1126. transform: translateX(-50%);
  1127. z-index: 101;
  1128. background: rgba(255, 255, 255, 0.95);
  1129. backdrop-filter: blur(10rpx);
  1130. }
  1131. </style>