gameList.vue 32 KB

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