gameList.vue 31 KB

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