gameList.vue 32 KB

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