gameList.vue 27 KB

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