gameList.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059
  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. @confirm="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/jobIntention')"
  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 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">16薪</text>
  190. </text>
  191. </view>
  192. <!-- 职位要求标签 -->
  193. <view
  194. class="job-requirements"
  195. v-if="item.experience || item.education || item.positionWelfare"
  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.positionWelfare"
  206. :key="idx"
  207. >{{ welfare }}</text
  208. >
  209. </view>
  210. <!-- 联系人信息 -->
  211. <view class="contact-info">
  212. <image
  213. :src="
  214. item.company ? item.company.companyLogo : '../../../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" v-if="item.company">
  225. {{
  226. item.company.companyLegalPerson
  227. ? item.company.companyLegalPerson
  228. : "未知"
  229. }}·人事总监
  230. </view>
  231. <view class="reply-time">10分钟前回复</view>
  232. </view>
  233. <!-- 地址和距离 -->
  234. <view class="location-info">
  235. <u-icon name="map" color="#999999" size="16"></u-icon>
  236. <text class="address"
  237. >{{ item.province || "" }}{{ item.city || "" }}{{ item.county || ""
  238. }}{{ item.address || "" }}</text
  239. >
  240. <image
  241. src="../../../static/images/index/navigation.svg"
  242. class="distance-icon"
  243. ></image>
  244. <text class="distance">{{ item.distance || "22km" }}</text>
  245. </view>
  246. </view>
  247. </view>
  248. </view>
  249. <!-- 暂无数据 -->
  250. <view class="empty-state" v-else>
  251. <text>暂无更多职位</text>
  252. </view>
  253. </view>
  254. </view>
  255. </view>
  256. </template>
  257. <script>
  258. export default {
  259. name: "gameList",
  260. data() {
  261. return {
  262. statusBarHeight: 0, // 状态栏高度
  263. current: 0,
  264. typeList: [],
  265. currentSx: 0,
  266. sxTypeList: [
  267. {
  268. id: 1,
  269. name: "推荐",
  270. },
  271. {
  272. id: 2,
  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. isFixed: false, // 是否固定
  287. fixedThreshold: 300, // 固定阈值
  288. };
  289. },
  290. onLoad() {
  291. // 获取状态栏高度
  292. let systemInfo = uni.getSystemInfoSync();
  293. this.statusBarHeight = systemInfo.statusBarHeight || 0;
  294. this.getTypeList();
  295. this.getLocation();
  296. this.getJobSearchList();
  297. },
  298. onPageScroll(e) {
  299. // 监听页面滚动
  300. const scrollTop = e.scrollTop;
  301. if (scrollTop > this.fixedThreshold) {
  302. this.isFixed = true;
  303. } else {
  304. this.isFixed = false;
  305. }
  306. },
  307. methods: {
  308. // 获取工作性质列表
  309. getTypeList() {
  310. this.$Request
  311. .getT("/app/dict/list", {
  312. type: "工作性质",
  313. })
  314. .then((res) => {
  315. if (res.code == 0) {
  316. this.typeList = res.data.map((item) => ({
  317. label: item.value,
  318. value: item.code,
  319. }));
  320. // 获取到tabs数据后调用职位列表
  321. this.getJobList();
  322. }
  323. });
  324. },
  325. // 跳转到搜索页面
  326. goNavs(url) {
  327. uni.navigateTo({
  328. url: url,
  329. });
  330. },
  331. // 跳转到求职意向页面
  332. goNav(url) {
  333. uni.navigateTo({
  334. url: url,
  335. });
  336. },
  337. // 处理搜索
  338. handleSearch() {
  339. if (this.searchKeyword.trim()) {
  340. uni.navigateTo({
  341. url: "/package/search/search?keyword=" + encodeURIComponent(this.searchKeyword),
  342. });
  343. } else {
  344. uni.showToast({
  345. title: "请输入搜索关键词",
  346. icon: "none",
  347. });
  348. }
  349. },
  350. // 获取位置信息
  351. getLocation() {
  352. let that = this;
  353. uni.getLocation({
  354. type: "wgs84",
  355. success: function (res) {
  356. that.latitude = res.latitude;
  357. that.longitude = res.longitude;
  358. that.getJobList();
  359. },
  360. fail: function () {
  361. that.getJobList();
  362. },
  363. });
  364. },
  365. // 获取职位列表
  366. getJobList() {
  367. let data = {
  368. page: this.page,
  369. limit: this.limit,
  370. postType: this.typeList.length > 0 ? this.typeList[this.current].label : "",
  371. screen: +this.currentSx + 1, //1推荐 2最新
  372. city: this.city == "全国" ? "" : this.city,
  373. lng: this.longitude,
  374. lat: this.latitude,
  375. userId: uni.getStorageSync("userId") ? uni.getStorageSync("userId") : "",
  376. };
  377. this.$Request.get("/app/postPush/userGetPostPushList", data).then((res) => {
  378. if (res.code == 0) {
  379. res.data.records.map((item) => {
  380. if (item.positionWelfare) {
  381. item.positionWelfare = item.positionWelfare.split(",");
  382. } else {
  383. item.positionWelfare = [];
  384. }
  385. if (item.distance) {
  386. if (parseFloat(item.distance) > 1000) {
  387. item.distance = (parseFloat(item.distance) / 1000).toFixed(2) + "km";
  388. } else {
  389. item.distance = parseFloat(item.distance).toFixed(2) + "m";
  390. }
  391. } else {
  392. item.distance = "";
  393. }
  394. });
  395. if (this.page == 1) {
  396. this.dataList = res.data.records.slice(0, 2);
  397. } else {
  398. this.dataList = [...this.dataList, ...res.data.records.slice(0, 2)];
  399. }
  400. }
  401. });
  402. },
  403. // 跳转到职位详情
  404. gotoInfo(postPushId) {
  405. uni.navigateTo({
  406. url: "/pages/index/game/order?postPushId=" + postPushId,
  407. });
  408. },
  409. // 判断岗位名称与职位名称是否相同
  410. isSameName(className, name) {
  411. let str1 = className.trim();
  412. let str2 = name.trim();
  413. if (str1.length !== str2.length) {
  414. return true;
  415. }
  416. return str1.toLowerCase() !== str2.toLowerCase();
  417. },
  418. // 刷新职位列表
  419. refreshJobList() {
  420. this.page = 1;
  421. this.getJobList();
  422. },
  423. // 获取求职列表
  424. getJobSearchList() {
  425. let data = {
  426. page: this.searchPage,
  427. limit: this.searchLimit,
  428. postType: this.typeList.length > 0 ? this.typeList[this.current].label : "",
  429. screen: +this.currentSx + 1, //1推荐 2最新
  430. city: this.city == "全国" ? "" : this.city,
  431. lng: this.longitude,
  432. lat: this.latitude,
  433. userId: uni.getStorageSync("userId") ? uni.getStorageSync("userId") : "",
  434. };
  435. this.$Request.get("/app/postPush/userGetPostPushList", data).then((res) => {
  436. if (res.code == 0) {
  437. res.data.records.map((item) => {
  438. if (item.positionWelfare) {
  439. item.positionWelfare = item.positionWelfare.split(",");
  440. } else {
  441. item.positionWelfare = [];
  442. }
  443. if (item.distance) {
  444. if (parseFloat(item.distance) > 1000) {
  445. item.distance = (parseFloat(item.distance) / 1000).toFixed(2) + "km";
  446. } else {
  447. item.distance = parseFloat(item.distance).toFixed(2) + "m";
  448. }
  449. } else {
  450. item.distance = "";
  451. }
  452. });
  453. if (this.searchPage == 1) {
  454. this.jobSearchList = res.data.records;
  455. } else {
  456. this.jobSearchList = [...this.jobSearchList, ...res.data.records];
  457. }
  458. }
  459. });
  460. },
  461. },
  462. };
  463. </script>
  464. <style lang="scss" scoped>
  465. page {
  466. background-color: #f2f2f7;
  467. }
  468. .page-container {
  469. position: absolute;
  470. left: 0;
  471. right: 0;
  472. top: 0;
  473. bottom: 0;
  474. display: flex;
  475. flex-direction: column;
  476. overflow: hidden;
  477. .page-bg {
  478. position: absolute;
  479. top: 0;
  480. left: 0;
  481. right: 0;
  482. height: 40vh;
  483. background: linear-gradient(90deg, rgba(13, 39, 247, 1), rgba(19, 193, 234, 1) 100%);
  484. z-index: -1;
  485. .page-bottom {
  486. height: 20vh;
  487. position: absolute;
  488. bottom: 0;
  489. left: 0;
  490. right: 0;
  491. background: linear-gradient(
  492. to top,
  493. rgba(244, 243, 243, 1),
  494. rgba(255, 255, 255, 0.5) 46%,
  495. rgba(255, 255, 255, 0) 100%
  496. );
  497. }
  498. }
  499. .page-content {
  500. flex: 1;
  501. width: 100%;
  502. overflow: hidden;
  503. overflow-y: auto;
  504. }
  505. }
  506. .search-section {
  507. flex-shrink: 0;
  508. width: 100%;
  509. padding: 20rpx 20rpx;
  510. display: flex;
  511. justify-content: space-between;
  512. .search-bar {
  513. flex: 1;
  514. height: 52rpx;
  515. background-color: #ffffff;
  516. border-radius: 40rpx;
  517. display: flex;
  518. align-items: center;
  519. padding: 0 30rpx;
  520. margin-right: 20rpx;
  521. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
  522. .search-icon {
  523. margin-right: 20rpx;
  524. }
  525. .search-input {
  526. flex: 1;
  527. height: 100%;
  528. font-size: 24rpx;
  529. color: #333333;
  530. border: none;
  531. outline: none;
  532. background: transparent;
  533. &::placeholder {
  534. color: #999999;
  535. }
  536. }
  537. }
  538. .search-btn {
  539. color: rgba(255, 255, 255, 1);
  540. font-family: DM Sans;
  541. font-size: 24rpx;
  542. font-weight: 500;
  543. line-height: 24px;
  544. letter-spacing: 0%;
  545. text-align: center;
  546. }
  547. }
  548. .active {
  549. font-size: 38rpx !important;
  550. font-weight: 800 !important;
  551. }
  552. .active2 {
  553. color: #1a1a1a !important;
  554. font-size: 38rpx !important;
  555. font-weight: 800 !important;
  556. }
  557. .active3 {
  558. color: #1a1a1a !important;
  559. font-size: 28rpx !important;
  560. font-weight: 800 !important;
  561. }
  562. .topbg-type {
  563. width: 710rpx;
  564. border-radius: 6px;
  565. box-shadow: 0px 8px 12px 0px rgba(0, 0, 0, 0.05);
  566. background: rgba(255, 255, 255, 1);
  567. padding: 18rpx 25rpx;
  568. margin: 0rpx auto 12rpx auto;
  569. .topbg-type-box {
  570. width: 686rpx;
  571. }
  572. .topbg-type-box-row {
  573. margin-bottom: 20rpx;
  574. }
  575. .topbg-type-box-l {
  576. flex: 1;
  577. white-space: nowrap;
  578. overflow-x: auto;
  579. }
  580. .topbg-type-box-l-i {
  581. color: rgba(153, 153, 153, 1);
  582. font-family: DM Sans;
  583. font-size: 28rpx;
  584. font-weight: 400;
  585. line-height: 18px;
  586. letter-spacing: 0%;
  587. text-align: left;
  588. margin-right: 14rpx;
  589. &.active {
  590. background: linear-gradient(
  591. 90deg,
  592. rgba(13, 39, 247, 1),
  593. rgba(19, 193, 234, 1) 100%
  594. );
  595. -webkit-background-clip: text;
  596. -webkit-text-fill-color: transparent;
  597. background-clip: text;
  598. text-fill-color: transparent;
  599. font-family: DM Sans;
  600. font-size: 24rpx;
  601. font-weight: 700;
  602. line-height: 48rpx;
  603. letter-spacing: 0%;
  604. text-align: left;
  605. }
  606. }
  607. .topbg-type-box-r {
  608. color: #ffffff;
  609. }
  610. .attachment-icon {
  611. width: 38rpx;
  612. height: 38rpx;
  613. }
  614. }
  615. .topbg-sx-box {
  616. width: 100%;
  617. margin-top: 0rpx;
  618. .topbg-sx-box-l-i {
  619. color: rgba(153, 153, 153, 1);
  620. font-family: DM Sans;
  621. font-size: 24rpx;
  622. font-weight: 400;
  623. line-height: 18px;
  624. letter-spacing: 0%;
  625. text-align: center;
  626. margin-right: 20rpx;
  627. border-radius: 6px;
  628. background: rgba(198, 198, 198, 0.1);
  629. padding: 8rpx 12rpx;
  630. display: inline-block;
  631. min-width: 60rpx;
  632. white-space: nowrap;
  633. &.active3 {
  634. font-family: DM Sans;
  635. font-size: 24rpx !important;
  636. font-weight: 400 !important;
  637. line-height: 18px;
  638. letter-spacing: 0%;
  639. text-align: left;
  640. padding: 8rpx 12rpx !important;
  641. color: rgba(1, 107, 246, 1) !important;
  642. background: rgba(252, 233, 220, 1) !important;
  643. border: 1px solid rgba(1, 107, 246, 1);
  644. }
  645. }
  646. .topbg-sx-box-r-i {
  647. color: rgba(1, 107, 246, 1);
  648. font-family: DM Sans;
  649. font-size: 24rpx;
  650. font-weight: 400;
  651. line-height: 18px;
  652. letter-spacing: 0%;
  653. text-align: center;
  654. margin-right: 20rpx;
  655. border-radius: 6px;
  656. background: rgba(252, 233, 220, 1);
  657. padding: 8rpx 12rpx;
  658. display: inline-block;
  659. min-width: 60rpx;
  660. white-space: nowrap;
  661. cursor: pointer;
  662. transition: all 0.3s ease;
  663. border: 0.5px solid rgba(1, 107, 246, 1);
  664. }
  665. .topbg-sx-box-filter {
  666. color: rgba(153, 153, 153, 1);
  667. font-family: DM Sans;
  668. font-size: 24rpx;
  669. font-weight: 400;
  670. line-height: 18px;
  671. letter-spacing: 0%;
  672. text-align: center;
  673. border-radius: 6px;
  674. background: rgba(198, 198, 198, 0.1);
  675. padding: 8rpx 12rpx;
  676. display: inline-block;
  677. min-width: 60rpx;
  678. white-space: nowrap;
  679. cursor: pointer;
  680. transition: all 0.3s ease;
  681. }
  682. }
  683. .job-list-section {
  684. padding: 20rpx;
  685. margin: 20rpx;
  686. border-radius: 6px;
  687. box-shadow: 0px 5px 8px 0px rgba(255, 255, 255, 0.05);
  688. background: linear-gradient(180deg, #78e4ff9d 1%, rgb(255, 255, 255) 38%);
  689. .job-list-header {
  690. display: flex;
  691. justify-content: space-between;
  692. align-items: center;
  693. margin-bottom: 20rpx;
  694. .job-list-title {
  695. color: rgba(1, 107, 246, 1);
  696. font-family: DM Sans;
  697. font-size: 32rpx;
  698. font-weight: 700;
  699. line-height: 21px;
  700. text-align: left;
  701. }
  702. .refresh-btn {
  703. color: rgba(1, 107, 246, 1);
  704. font-family: DM Sans;
  705. font-size: 18rpx;
  706. font-weight: 400;
  707. line-height: 10px;
  708. text-align: right;
  709. display: flex;
  710. align-items: center;
  711. gap: 8rpx;
  712. .refresh-icon {
  713. width: 28rpx;
  714. height: 28rpx;
  715. }
  716. }
  717. }
  718. .job-list {
  719. .job-item {
  720. background-color: #ffffff;
  721. border-radius: 12rpx;
  722. margin-bottom: 16rpx;
  723. padding: 20rpx;
  724. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
  725. .job-item-content {
  726. display: flex;
  727. align-items: center;
  728. gap: 20rpx;
  729. .company-logo {
  730. width: 80rpx;
  731. height: 80rpx;
  732. border-radius: 8rpx;
  733. flex-shrink: 0;
  734. }
  735. .job-info {
  736. flex: 1;
  737. .company-name {
  738. color: rgba(29, 33, 41, 1);
  739. font-family: DM Sans;
  740. font-size: 24rpx;
  741. font-weight: 500;
  742. line-height: 13px;
  743. letter-spacing: 0%;
  744. text-align: left;
  745. margin-bottom: 8rpx;
  746. }
  747. .company-details {
  748. display: flex;
  749. gap: 16rpx;
  750. margin-bottom: 8rpx;
  751. text {
  752. color: rgba(153, 153, 153, 1);
  753. font-family: DM Sans;
  754. font-size: 20rpx;
  755. font-weight: 400;
  756. line-height: 13px;
  757. letter-spacing: 0%;
  758. text-align: left;
  759. }
  760. }
  761. .job-benefits {
  762. display: flex;
  763. gap: 12rpx;
  764. flex-wrap: nowrap;
  765. overflow: hidden;
  766. text-overflow: ellipsis;
  767. width: 450rpx;
  768. .text {
  769. color: rgba(153, 153, 153, 1);
  770. font-family: DM Sans;
  771. font-size: 20rpx;
  772. font-weight: 400;
  773. line-height: 13px;
  774. letter-spacing: 0%;
  775. text-align: left;
  776. white-space: nowrap;
  777. overflow: hidden;
  778. text-overflow: ellipsis;
  779. // 可选:设置最大宽度
  780. max-width: 100rpx;
  781. flex-shrink: 0;
  782. }
  783. }
  784. }
  785. }
  786. }
  787. }
  788. .empty-state {
  789. text-align: center;
  790. padding: 60rpx 0;
  791. color: #999999;
  792. font-size: 28rpx;
  793. }
  794. }
  795. // 求职列表样式
  796. .job-search-section {
  797. width: 100%;
  798. padding: 0 20rpx 20rpx 20rpx;
  799. .job-search-header {
  800. margin-bottom: 20rpx;
  801. .job-search-title {
  802. font-size: 32rpx;
  803. font-weight: 600;
  804. color: #333333;
  805. }
  806. }
  807. .job-search-list {
  808. .job-search-item {
  809. background-color: #ffffff;
  810. border-radius: 12rpx;
  811. margin-bottom: 16rpx;
  812. padding: 30rpx;
  813. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
  814. position: relative;
  815. .urgent-tag {
  816. position: absolute;
  817. top: 0rpx;
  818. right: 40rpx;
  819. .urgent-icon {
  820. width: 80rpx;
  821. height: 80rpx;
  822. }
  823. }
  824. .job-search-content {
  825. .job-title {
  826. color: rgba(29, 33, 41, 1);
  827. font-family: DM Sans;
  828. font-size: 36rpx;
  829. font-weight: 500;
  830. line-height: 21px;
  831. letter-spacing: 0%;
  832. text-align: left;
  833. }
  834. .company-info {
  835. display: flex;
  836. gap: 16rpx;
  837. margin: 12rpx 0;
  838. .company-name {
  839. color: rgba(156, 164, 171, 1);
  840. font-family: DM Sans;
  841. font-size: 24rpx;
  842. font-weight: 400;
  843. line-height: 20px;
  844. letter-spacing: 0%;
  845. text-align: left;
  846. }
  847. }
  848. .salary {
  849. display: flex;
  850. align-items: center;
  851. justify-content: space-between;
  852. color: rgba(1, 107, 246, 1);
  853. font-family: DM Sans;
  854. font-size: 32rpx;
  855. font-weight: 700;
  856. line-height: 23px;
  857. letter-spacing: 0%;
  858. text-align: left;
  859. .bonus-tag {
  860. color: rgba(255, 255, 255, 1);
  861. font-family: DM Sans;
  862. padding: 4rpx;
  863. font-size: 24rpx;
  864. font-weight: 400;
  865. letter-spacing: 0%;
  866. text-align: center;
  867. border-radius: 4rpx;
  868. background: rgba(1, 107, 246, 1);
  869. margin-right: 12rpx;
  870. }
  871. .bonus-xin {
  872. color: rgba(1, 107, 246, 1);
  873. font-family: DM Sans;
  874. font-size: 24rpx;
  875. font-weight: 700;
  876. line-height: 20px;
  877. letter-spacing: 0%;
  878. text-align: right;
  879. }
  880. }
  881. .job-requirements {
  882. display: flex;
  883. gap: 12rpx;
  884. flex-wrap: wrap;
  885. margin-bottom: 12rpx;
  886. .requirement-tag {
  887. font-size: 18rpx;
  888. color: rgba(1, 107, 246, 1);
  889. padding: 6rpx 10rpx;
  890. background: rgba(153, 196, 250, 0.4);
  891. border-radius: 12rpx;
  892. margin: 12rpx 0;
  893. }
  894. }
  895. .contact-info {
  896. display: flex;
  897. align-items: center;
  898. margin-bottom: 12rpx;
  899. .company-info-text {
  900. color: rgba(51, 51, 51, 1);
  901. font-family: DM Sans;
  902. font-size: 24rpx;
  903. font-weight: 400;
  904. line-height: 20px;
  905. letter-spacing: 0%;
  906. text-align: left;
  907. }
  908. .reply-time {
  909. display: flex;
  910. flex-direction: row;
  911. justify-content: center;
  912. align-items: center;
  913. padding: 8rpx;
  914. font-family: DM Sans;
  915. font-size: 20rpx;
  916. font-weight: 400;
  917. line-height: 30rpx;
  918. letter-spacing: 0.5%;
  919. text-align: left;
  920. border-radius: 12rpx;
  921. background: #ece1fd;
  922. color: #8858c5;
  923. margin-left: 12rpx;
  924. }
  925. }
  926. .location-info {
  927. display: flex;
  928. align-items: center;
  929. gap: 8rpx;
  930. .address {
  931. font-size: 22rpx;
  932. color: #999999;
  933. flex: 1;
  934. }
  935. .distance-icon {
  936. width: 24rpx;
  937. height: 24rpx;
  938. }
  939. .distance {
  940. font-size: 22rpx;
  941. color: #999999;
  942. }
  943. }
  944. }
  945. }
  946. }
  947. .empty-state {
  948. text-align: center;
  949. padding: 60rpx 0;
  950. color: #999999;
  951. font-size: 28rpx;
  952. }
  953. }
  954. // 固定样式
  955. .search-section.fixed {
  956. position: fixed;
  957. top: 0;
  958. left: 0;
  959. right: 0;
  960. z-index: 100;
  961. background-image: url("../../../static/images/index/jipinBac.png");
  962. background-size: cover;
  963. background-position: top center;
  964. background-repeat: no-repeat;
  965. height: 19vh;
  966. }
  967. .topbg-type.fixed {
  968. position: fixed;
  969. top: 9vh;
  970. left: 50%;
  971. transform: translateX(-50%);
  972. z-index: 101;
  973. background: rgba(255, 255, 255, 0.95);
  974. backdrop-filter: blur(10rpx);
  975. }
  976. </style>