gameList.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909
  1. <template>
  2. <view class="page-container">
  3. <!-- 搜索栏 -->
  4. <view class="search-section" :class="{'fixed': isFixed}">
  5. <view class="search-bar">
  6. <u-icon name="search" color="#999999" size="32" class="search-icon"></u-icon>
  7. <input type="text" placeholder="搜索职位" class="search-input" v-model="searchKeyword" @confirm="handleSearch" />
  8. </view>
  9. <text class="search-btn" @click="handleSearch">搜索</text>
  10. </view>
  11. <!-- tabs和筛选 -->
  12. <view class="topbg-type flex justify-center" :class="{'fixed': isFixed}">
  13. <view class="topbg-type-box">
  14. <!-- 第一行:tabs -->
  15. <view class="topbg-type-box-row flex justify-between align-center">
  16. <view class="topbg-type-box-l flex align-center">
  17. <view class="topbg-type-box-l-i" :class="current==index?'active':''"
  18. @tap="current = index" v-for="(item,index) in typeList" :key="index">
  19. {{item.label}}
  20. </view>
  21. </view>
  22. <!-- 添加求职意向 -->
  23. <view class="topbg-yx-box-r flex align-center"
  24. @click="goNav('/package/jobIntention/jobIntention')">
  25. <image src="../../../static/images/index/Attachment.svg" class="attachment-icon" />
  26. </view>
  27. </view>
  28. <!-- 第二行:筛选 -->
  29. <view class="topbg-sx-box flex justify-between align-center">
  30. <!-- 分类 -->
  31. <view class="topbg-sx-box-l flex align-center">
  32. <view class="topbg-sx-box-l-i" :class="currentSx==index?'active3':''"
  33. @click="currentSx = index" v-for="(item,index) in sxTypeList" :key="index">
  34. {{item.name}}
  35. </view>
  36. </view>
  37. <view class="topbg-sx-box-r flex align-center">
  38. <!-- 城市 -->
  39. <view class="topbg-sx-box-r-i flex align-center" style="">
  40. <text style="margin-right: 10rpx;"
  41. @click="goNavs('/package/jobIntention/city')">{{city?city:'选择城市'}}</text>
  42. <u-icon name="arrow-down" color="#00B78F" size="16"
  43. @click="goNavs('/package/jobIntention/city')"></u-icon>
  44. </view>
  45. <!-- 筛选 -->
  46. <view class="topbg-sx-box-filter flex align-center">
  47. <text style="margin-right: 10rpx;"
  48. @click="goNavs('/package/screen/screen')">筛选</text>
  49. <u-icon name="arrow-down" color="#999999" size="16"
  50. @click="goNavs('/package/screen/screen')"></u-icon>
  51. </view>
  52. </view>
  53. </view>
  54. </view>
  55. </view>
  56. <!-- 职位列表 -->
  57. <view class="job-list-section">
  58. <view class="job-list-header">
  59. <text class="job-list-title">亿职赞急聘推荐</text>
  60. <view class="refresh-btn" @click="refreshJobList">
  61. <text>换一批推荐</text>
  62. <image src="../../../static/images/index/shuaxin.svg" class="refresh-icon"></image>
  63. </view>
  64. </view>
  65. <view class="job-list" v-if="dataList.length > 0">
  66. <view class="job-item" @click="gotoInfo(item.postPushId)" v-for="(item, index) in dataList" :key="index">
  67. <view class="job-item-content">
  68. <!-- 公司logo -->
  69. <image :src="item.company ? item.company.companyLogo : '../../../static/logo.png'"
  70. class="company-logo" mode="aspectFill"></image>
  71. <view class="job-info">
  72. <!-- 公司名称 -->
  73. <view class="company-name">{{item.company ? item.company.companyName : ''}}</view>
  74. <!-- 公司规模-行业 -->
  75. <view class="company-details">
  76. <text>{{item.company ? item.company.companyPeople : '0人'}}</text>
  77. <text>{{item.company ? item.industry.split(',').join(' ') : '未知行业'}}</text>
  78. </view>
  79. <!-- 工作时间-福利 -->
  80. <view class="job-benefits">
  81. <text>上午9:00-下午06:30</text>
  82. <text v-for="(benefit, idx) in item.positionWelfare" :key="idx">{{benefit}}</text>
  83. </view>
  84. </view>
  85. <!-- 右箭头 -->
  86. <u-icon name="arrow-right" color="rgba(29, 33, 41, 1)" size="24"></u-icon>
  87. </view>
  88. </view>
  89. </view>
  90. <!-- 暂无数据 -->
  91. <view class="empty-state" v-else>
  92. <text>暂无急聘职位</text>
  93. </view>
  94. </view>
  95. <!-- 求职列表 -->
  96. <view class="job-search-section">
  97. <view class="job-search-list" v-if="jobSearchList.length > 0">
  98. <view class="job-search-item" @click="gotoInfo(item.postPushId)" v-for="(item, index) in jobSearchList" :key="index">
  99. <!-- 急聘标签 -->
  100. <view class="urgent-tag">
  101. <image src="../../../static/images/index/jijiji.svg" class="urgent-icon"></image>
  102. </view>
  103. <view class="job-search-content">
  104. <!-- 职位标题 -->
  105. <view class="job-title">{{item.stationName || item.positionName || '职位名称'}}</view>
  106. <!-- 公司信息 -->
  107. <view class="company-info">
  108. <text class="company-name">{{item.company ? item.company.companyName : ''}}</text>
  109. <text class="company-name">{{item.company ? item.company.companyPeople : '0人'}}</text>
  110. </view>
  111. <!-- 薪资 -->
  112. <view class="salary" v-if="item.salaryRange">
  113. <text>¥{{item.salaryRange}}/月</text>
  114. <text>
  115. <text class="bonus-tag">奖</text>
  116. <text class="bonus-xin">16薪</text>
  117. </text>
  118. </view>
  119. <!-- 职位要求标签 -->
  120. <view class="job-requirements" v-if="item.experience || item.education || item.positionWelfare">
  121. <text class="requirement-tag" v-if="item.experience">{{item.experience}}</text>
  122. <text class="requirement-tag" v-if="item.education">{{item.education}}</text>
  123. <text class="requirement-tag" v-for="(welfare, idx) in item.positionWelfare" :key="idx">{{welfare}}</text>
  124. </view>
  125. <!-- 联系人信息 -->
  126. <view class="contact-info">
  127. <image :src="item.company?item.company.companyLogo:'../../../static/logo.png'"
  128. style="width: 58rpx;height: 58rpx;border-radius: 50%;margin-right: 20rpx;" mode=""></image>
  129. <view class="company-info-text" v-if="item.company">
  130. {{item.company.companyLegalPerson?item.company.companyLegalPerson:'未知'}}·人事总监
  131. </view>
  132. <view class="reply-time">10分钟前回复</view>
  133. </view>
  134. <!-- 地址和距离 -->
  135. <view class="location-info">
  136. <u-icon name="map" color="#999999" size="16"></u-icon>
  137. <text class="address">{{item.province || ''}}{{item.city || ''}}{{item.county || ''}}{{item.address || ''}}</text>
  138. <image src="../../../static/images/index/navigation.svg" class="distance-icon"></image>
  139. <text class="distance">{{item.distance || '22km'}}</text>
  140. </view>
  141. </view>
  142. </view>
  143. </view>
  144. <!-- 暂无数据 -->
  145. <view class="empty-state" v-else>
  146. <text>暂无更多职位</text>
  147. </view>
  148. </view>
  149. </view>
  150. </template>
  151. <script>
  152. export default {
  153. name: 'gameList',
  154. data() {
  155. return {
  156. current: 0,
  157. typeList: [],
  158. currentSx: 0,
  159. sxTypeList: [{
  160. id: 1,
  161. name: '推荐',
  162. },
  163. {
  164. id: 2,
  165. name: '最新',
  166. }
  167. ],
  168. city: '',
  169. searchKeyword: '', // 搜索关键词
  170. dataList: [], // 职位列表
  171. jobSearchList: [], // 求职列表
  172. page: 1,
  173. limit: 10,
  174. searchPage: 1,
  175. searchLimit: 10,
  176. latitude: '',
  177. longitude: '',
  178. isFixed: false, // 是否固定
  179. fixedThreshold: 300, // 固定阈值
  180. };
  181. },
  182. onLoad() {
  183. this.getTypeList()
  184. this.getLocation()
  185. this.getJobSearchList()
  186. },
  187. onPageScroll(e) {
  188. // 监听页面滚动
  189. const scrollTop = e.scrollTop
  190. if (scrollTop > this.fixedThreshold) {
  191. this.isFixed = true
  192. } else {
  193. this.isFixed = false
  194. }
  195. },
  196. methods: {
  197. // 获取工作性质列表
  198. getTypeList() {
  199. this.$Request.getT('/app/dict/list', {
  200. type: '工作性质'
  201. }).then(res => {
  202. if (res.code == 0) {
  203. this.typeList = res.data.map(item => ({
  204. label: item.value,
  205. value: item.code
  206. }))
  207. // 获取到tabs数据后调用职位列表
  208. this.getJobList()
  209. }
  210. })
  211. },
  212. // 跳转到搜索页面
  213. goNavs(url) {
  214. uni.navigateTo({
  215. url: url
  216. })
  217. },
  218. // 跳转到求职意向页面
  219. goNav(url) {
  220. uni.navigateTo({
  221. url: url
  222. })
  223. },
  224. // 处理搜索
  225. handleSearch() {
  226. if (this.searchKeyword.trim()) {
  227. uni.navigateTo({
  228. url: '/package/search/search?keyword=' + encodeURIComponent(this.searchKeyword)
  229. })
  230. } else {
  231. uni.showToast({
  232. title: '请输入搜索关键词',
  233. icon: 'none'
  234. })
  235. }
  236. },
  237. // 获取位置信息
  238. getLocation() {
  239. let that = this
  240. uni.getLocation({
  241. type: 'wgs84',
  242. success: function(res) {
  243. that.latitude = res.latitude;
  244. that.longitude = res.longitude;
  245. that.getJobList()
  246. },
  247. fail: function() {
  248. that.getJobList()
  249. }
  250. })
  251. },
  252. // 获取职位列表
  253. getJobList() {
  254. let data = {
  255. page: this.page,
  256. limit: this.limit,
  257. postType: this.typeList.length > 0 ? this.typeList[this.current].label : '',
  258. screen: +this.currentSx + 1, //1推荐 2最新
  259. city: this.city == '全国' ? '' : this.city,
  260. lng: this.longitude,
  261. lat: this.latitude,
  262. userId: uni.getStorageSync('userId') ? uni.getStorageSync('userId') : ''
  263. }
  264. this.$Request.get('/app/postPush/userGetPostPushList', data).then(res => {
  265. if (res.code == 0) {
  266. res.data.records.map(item => {
  267. if (item.positionWelfare) {
  268. item.positionWelfare = item.positionWelfare.split(',')
  269. } else {
  270. item.positionWelfare = []
  271. }
  272. if (item.distance) {
  273. if (parseFloat(item.distance) > 1000) {
  274. item.distance = (parseFloat(item.distance) / 1000).toFixed(2) + 'km'
  275. } else {
  276. item.distance = (parseFloat(item.distance)).toFixed(2) + 'm'
  277. }
  278. } else {
  279. item.distance = ''
  280. }
  281. })
  282. if (this.page == 1) {
  283. this.dataList = res.data.records.slice(0, 2)
  284. } else {
  285. this.dataList = [...this.dataList, ...res.data.records.slice(0, 2)]
  286. }
  287. }
  288. })
  289. },
  290. // 跳转到职位详情
  291. gotoInfo(postPushId) {
  292. uni.navigateTo({
  293. url: '/pages/index/game/order?postPushId=' + postPushId
  294. })
  295. },
  296. // 判断岗位名称与职位名称是否相同
  297. isSameName(className, name) {
  298. let str1 = className.trim();
  299. let str2 = name.trim();
  300. if (str1.length !== str2.length) {
  301. return true;
  302. }
  303. return str1.toLowerCase() !== str2.toLowerCase();
  304. },
  305. // 刷新职位列表
  306. refreshJobList() {
  307. this.page = 1
  308. this.getJobList()
  309. },
  310. // 获取求职列表
  311. getJobSearchList() {
  312. let data = {
  313. page: this.searchPage,
  314. limit: this.searchLimit,
  315. postType: this.typeList.length > 0 ? this.typeList[this.current].label : '',
  316. screen: +this.currentSx + 1, //1推荐 2最新
  317. city: this.city == '全国' ? '' : this.city,
  318. lng: this.longitude,
  319. lat: this.latitude,
  320. userId: uni.getStorageSync('userId') ? uni.getStorageSync('userId') : ''
  321. }
  322. this.$Request.get('/app/postPush/userGetPostPushList', data).then(res => {
  323. if (res.code == 0) {
  324. res.data.records.map(item => {
  325. if (item.positionWelfare) {
  326. item.positionWelfare = item.positionWelfare.split(',')
  327. } else {
  328. item.positionWelfare = []
  329. }
  330. if (item.distance) {
  331. if (parseFloat(item.distance) > 1000) {
  332. item.distance = (parseFloat(item.distance) / 1000).toFixed(2) + 'km'
  333. } else {
  334. item.distance = (parseFloat(item.distance)).toFixed(2) + 'm'
  335. }
  336. } else {
  337. item.distance = ''
  338. }
  339. })
  340. if (this.searchPage == 1) {
  341. this.jobSearchList = res.data.records
  342. } else {
  343. this.jobSearchList = [...this.jobSearchList, ...res.data.records]
  344. }
  345. }
  346. })
  347. }
  348. }
  349. }
  350. </script>
  351. <style lang="scss">
  352. page {
  353. background-color: #F2F2F7;
  354. }
  355. .page-container {
  356. width: 100%;
  357. height: 40vh;
  358. background-image: url('../../../static/images/index/jipinBac.png');
  359. background-size: cover;
  360. background-position: center;
  361. background-repeat: no-repeat;
  362. padding-top: 80rpx;
  363. }
  364. .search-section {
  365. width: 100%;
  366. padding: 0 20rpx;
  367. margin-bottom: 20rpx;
  368. display: flex;
  369. justify-content: space-between;
  370. .search-bar {
  371. flex: 1;
  372. height: 52rpx;
  373. background-color: #ffffff;
  374. border-radius: 40rpx;
  375. display: flex;
  376. align-items: center;
  377. padding: 0 30rpx;
  378. margin-right: 20rpx;
  379. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
  380. .search-icon {
  381. margin-right: 20rpx;
  382. }
  383. .search-input {
  384. flex: 1;
  385. height: 100%;
  386. font-size: 24rpx;
  387. color: #333333;
  388. border: none;
  389. outline: none;
  390. background: transparent;
  391. &::placeholder {
  392. color: #999999;
  393. }
  394. }
  395. }
  396. .search-btn {
  397. color: rgba(255, 255, 255, 1);
  398. font-family: DM Sans;
  399. font-size: 24rpx;
  400. font-weight: 500;
  401. line-height: 24px;
  402. letter-spacing: 0%;
  403. text-align: center;
  404. }
  405. }
  406. .active {
  407. font-size: 38rpx !important;
  408. font-weight: 800 !important;
  409. }
  410. .active2 {
  411. color: #1A1A1A !important;
  412. font-size: 38rpx !important;
  413. font-weight: 800 !important;
  414. }
  415. .active3 {
  416. color: #1A1A1A !important;
  417. font-size: 28rpx !important;
  418. font-weight: 800 !important;
  419. }
  420. .topbg-type {
  421. width: 710rpx;
  422. border-radius: 6px;
  423. box-shadow: 0px 8px 12px 0px rgba(0, 0, 0, 0.05);
  424. background: rgba(255, 255, 255, 1);
  425. padding: 18rpx 25rpx;
  426. margin: 0rpx auto 12rpx auto;
  427. .topbg-type-box {
  428. width: 686rpx;
  429. }
  430. .topbg-type-box-row {
  431. margin-bottom: 20rpx;
  432. }
  433. .topbg-type-box-l {
  434. flex: 1;
  435. white-space: nowrap;
  436. overflow-x: auto;
  437. }
  438. .topbg-type-box-l-i {
  439. color: rgba(153, 153, 153, 1);
  440. font-family: DM Sans;
  441. font-size: 28rpx;
  442. font-weight: 400;
  443. line-height: 18px;
  444. letter-spacing: 0%;
  445. text-align: left;
  446. margin-right: 14rpx;
  447. &.active {
  448. background: linear-gradient(90deg, rgba(13, 39, 247, 1), rgba(19, 193, 234, 1) 100%);
  449. -webkit-background-clip: text;
  450. -webkit-text-fill-color: transparent;
  451. background-clip: text;
  452. text-fill-color: transparent;
  453. font-family: DM Sans;
  454. font-size: 24rpx;
  455. font-weight: 700;
  456. line-height: 48rpx;
  457. letter-spacing: 0%;
  458. text-align: left;
  459. }
  460. }
  461. .topbg-type-box-r {
  462. color: #ffffff;
  463. }
  464. .attachment-icon {
  465. width: 38rpx;
  466. height: 38rpx;
  467. }
  468. }
  469. .topbg-sx-box {
  470. width: 100%;
  471. margin-top: 0rpx;
  472. .topbg-sx-box-l-i {
  473. color: rgba(153, 153, 153, 1);
  474. font-family: DM Sans;
  475. font-size: 24rpx;
  476. font-weight: 400;
  477. line-height: 18px;
  478. letter-spacing: 0%;
  479. text-align: center;
  480. margin-right: 20rpx;
  481. border-radius: 6px;
  482. background: rgba(198, 198, 198, 0.1);
  483. padding: 8rpx 12rpx;
  484. display: inline-block;
  485. min-width: 60rpx;
  486. white-space: nowrap;
  487. &.active3 {
  488. font-family: DM Sans;
  489. font-size: 24rpx !important;
  490. font-weight: 400 !important;
  491. line-height: 18px;
  492. letter-spacing: 0%;
  493. text-align: left;
  494. padding: 8rpx 12rpx !important;
  495. color: rgba(1, 107, 246, 1) !important;
  496. background: rgba(252, 233, 220, 1) !important;
  497. border: 1px solid rgba(1, 107, 246, 1);
  498. }
  499. }
  500. .topbg-sx-box-r-i {
  501. color: rgba(1, 107, 246, 1);
  502. font-family: DM Sans;
  503. font-size: 24rpx;
  504. font-weight: 400;
  505. line-height: 18px;
  506. letter-spacing: 0%;
  507. text-align: center;
  508. margin-right: 20rpx;
  509. border-radius: 6px;
  510. background: rgba(252, 233, 220, 1);
  511. padding: 8rpx 12rpx;
  512. display: inline-block;
  513. min-width: 60rpx;
  514. white-space: nowrap;
  515. cursor: pointer;
  516. transition: all 0.3s ease;
  517. border: 0.5px solid rgba(1, 107, 246, 1);
  518. }
  519. .topbg-sx-box-filter {
  520. color: rgba(153, 153, 153, 1);
  521. font-family: DM Sans;
  522. font-size: 24rpx;
  523. font-weight: 400;
  524. line-height: 18px;
  525. letter-spacing: 0%;
  526. text-align: center;
  527. border-radius: 6px;
  528. background: rgba(198, 198, 198, 0.1);
  529. padding: 8rpx 12rpx;
  530. display: inline-block;
  531. min-width: 60rpx;
  532. white-space: nowrap;
  533. cursor: pointer;
  534. transition: all 0.3s ease;
  535. }
  536. }
  537. .job-list-section {
  538. padding: 20rpx;
  539. margin: 20rpx;
  540. border-radius: 6px;
  541. box-shadow: 0px 5px 8px 0px rgba(0, 0, 0, 0.05);
  542. background: linear-gradient(180.00deg, rgba(255, 179, 180, 1) 1%,rgba(255, 255, 255, 1) 38%);
  543. .job-list-header {
  544. display: flex;
  545. justify-content: space-between;
  546. align-items: center;
  547. margin-bottom: 20rpx;
  548. .job-list-title {
  549. color: rgba(255, 89, 89, 1);
  550. font-family: DM Sans;
  551. font-size: 32rpx;
  552. font-weight: 700;
  553. line-height: 21px;
  554. text-align: left;
  555. }
  556. .refresh-btn {
  557. color: rgba(255, 89, 89, 1);
  558. font-family: DM Sans;
  559. font-size: 18rpx;
  560. font-weight: 400;
  561. line-height: 10px;
  562. text-align: right;
  563. display: flex;
  564. align-items: center;
  565. gap: 8rpx;
  566. .refresh-icon {
  567. width: 28rpx;
  568. height: 28rpx;
  569. }
  570. }
  571. }
  572. .job-list {
  573. .job-item {
  574. background-color: #ffffff;
  575. border-radius: 12rpx;
  576. margin-bottom: 16rpx;
  577. padding: 20rpx;
  578. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
  579. .job-item-content {
  580. display: flex;
  581. align-items: center;
  582. gap: 20rpx;
  583. .company-logo {
  584. width: 80rpx;
  585. height: 80rpx;
  586. border-radius: 8rpx;
  587. flex-shrink: 0;
  588. }
  589. .job-info {
  590. flex: 1;
  591. .company-name {
  592. color: rgba(29, 33, 41, 1);
  593. font-family: DM Sans;
  594. font-size: 24rpx;
  595. font-weight: 500;
  596. line-height: 13px;
  597. letter-spacing: 0%;
  598. text-align: left;
  599. margin-bottom: 8rpx;
  600. }
  601. .company-details {
  602. display: flex;
  603. gap: 16rpx;
  604. margin-bottom: 8rpx;
  605. text {
  606. color: rgba(153, 153, 153, 1);
  607. font-family: DM Sans;
  608. font-size: 20rpx;
  609. font-weight: 400;
  610. line-height: 13px;
  611. letter-spacing: 0%;
  612. text-align: left;
  613. }
  614. }
  615. .job-benefits {
  616. display: flex;
  617. gap: 12rpx;
  618. flex-wrap: nowrap;
  619. overflow: hidden;
  620. width: 450rpx;
  621. text {
  622. color: rgba(153, 153, 153, 1);
  623. font-family: DM Sans;
  624. font-size: 20rpx;
  625. font-weight: 400;
  626. line-height: 13px;
  627. letter-spacing: 0%;
  628. text-align: left;
  629. white-space: nowrap;
  630. flex-shrink: 0;
  631. }
  632. }
  633. }
  634. }
  635. }
  636. }
  637. .empty-state {
  638. text-align: center;
  639. padding: 60rpx 0;
  640. color: #999999;
  641. font-size: 28rpx;
  642. }
  643. }
  644. // 求职列表样式
  645. .job-search-section {
  646. width: 100%;
  647. padding: 0 20rpx 20rpx 20rpx;
  648. .job-search-header {
  649. margin-bottom: 20rpx;
  650. .job-search-title {
  651. font-size: 32rpx;
  652. font-weight: 600;
  653. color: #333333;
  654. }
  655. }
  656. .job-search-list {
  657. .job-search-item {
  658. background-color: #ffffff;
  659. border-radius: 12rpx;
  660. margin-bottom: 16rpx;
  661. padding: 30rpx;
  662. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
  663. position: relative;
  664. .urgent-tag {
  665. position: absolute;
  666. top: 0rpx;
  667. right: 40rpx;
  668. .urgent-icon {
  669. width: 80rpx;
  670. height: 80rpx;
  671. }
  672. }
  673. .job-search-content {
  674. .job-title {
  675. color: rgba(29, 33, 41, 1);
  676. font-family: DM Sans;
  677. font-size: 36rpx;
  678. font-weight: 500;
  679. line-height: 21px;
  680. letter-spacing: 0%;
  681. text-align: left;
  682. }
  683. .company-info {
  684. display: flex;
  685. gap: 16rpx;
  686. margin: 12rpx 0;
  687. .company-name {
  688. color: rgba(156, 164, 171, 1);
  689. font-family: DM Sans;
  690. font-size: 24rpx;
  691. font-weight: 400;
  692. line-height: 20px;
  693. letter-spacing: 0%;
  694. text-align: left;
  695. }
  696. }
  697. .salary {
  698. display: flex;
  699. align-items: center;
  700. justify-content: space-between;
  701. color: rgba(255, 89, 89, 1);
  702. font-family: DM Sans;
  703. font-size: 32rpx;
  704. font-weight: 700;
  705. line-height: 23px;
  706. letter-spacing: 0%;
  707. text-align: left;
  708. .bonus-tag {
  709. color: rgba(255, 255, 255, 1);
  710. font-family: DM Sans;
  711. padding: 4rpx;
  712. font-size: 24rpx;
  713. font-weight: 400;
  714. letter-spacing: 0%;
  715. text-align: center;
  716. border-radius: 4rpx;
  717. background: rgba(255, 89, 89, 1);
  718. margin-right: 12rpx;
  719. }
  720. .bonus-xin {
  721. color: rgba(255, 89, 89, 1);
  722. font-family: DM Sans;
  723. font-size: 24rpx;
  724. font-weight: 700;
  725. line-height: 20px;
  726. letter-spacing: 0%;
  727. text-align: right;
  728. }
  729. }
  730. .job-requirements {
  731. display: flex;
  732. gap: 12rpx;
  733. flex-wrap: wrap;
  734. margin-bottom: 12rpx;
  735. .requirement-tag {
  736. font-size: 18rpx;
  737. color: rgba(1, 107, 246, 1);
  738. padding: 6rpx 10rpx;
  739. background: rgba(153, 196, 250, 0.4);
  740. border-radius: 12rpx;
  741. margin: 12rpx 0;
  742. }
  743. }
  744. .contact-info {
  745. display: flex;
  746. align-items: center;
  747. margin-bottom: 12rpx;
  748. .company-info-text {
  749. color: rgba(51, 51, 51, 1);
  750. font-family: DM Sans;
  751. font-size: 24rpx;
  752. font-weight: 400;
  753. line-height: 20px;
  754. letter-spacing: 0%;
  755. text-align: left;
  756. }
  757. .reply-time {
  758. display: flex;
  759. flex-direction: row;
  760. justify-content: center;
  761. align-items: center;
  762. padding: 8rpx;
  763. font-family: DM Sans;
  764. font-size: 20rpx;
  765. font-weight: 400;
  766. line-height: 30rpx;
  767. letter-spacing: 0.5%;
  768. text-align: left;
  769. border-radius: 12rpx;
  770. background: #ECE1FD;
  771. color: #8858C5;
  772. margin-left: 12rpx;
  773. }
  774. }
  775. .location-info {
  776. display: flex;
  777. align-items: center;
  778. gap: 8rpx;
  779. .address {
  780. font-size: 22rpx;
  781. color: #999999;
  782. flex: 1;
  783. }
  784. .distance-icon {
  785. width: 24rpx;
  786. height: 24rpx;
  787. }
  788. .distance {
  789. font-size: 22rpx;
  790. color: #999999;
  791. }
  792. }
  793. }
  794. }
  795. }
  796. .empty-state {
  797. text-align: center;
  798. padding: 60rpx 0;
  799. color: #999999;
  800. font-size: 28rpx;
  801. }
  802. }
  803. // 固定样式
  804. .search-section.fixed {
  805. position: fixed;
  806. top: 0;
  807. left: 0;
  808. right: 0;
  809. z-index: 100;
  810. background-image: url('../../../static/images/index/jipinBac.png');
  811. background-size: cover;
  812. background-position: top center;
  813. background-repeat: no-repeat;
  814. height: 19vh;
  815. padding-top: 80rpx;
  816. }
  817. .topbg-type.fixed {
  818. position: fixed;
  819. top: 9vh;
  820. left: 50%;
  821. transform: translateX(-50%);
  822. z-index: 101;
  823. background: rgba(255, 255, 255, 0.95);
  824. backdrop-filter: blur(10rpx);
  825. }
  826. </style>