recruitment.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944
  1. <template>
  2. <view id="recruitment">
  3. <view style="z-index: 999;">
  4. <u-navbar title="求职中心" :is-back="false">
  5. <view class="slot-wrap"><image src="/static/search.png" class="search" @click="jumpSearch"></image></view>
  6. </u-navbar>
  7. </view>
  8. <scroll-view
  9. scroll-y="true"
  10. @scroll="scroll"
  11. style="padding-top: 20rpx;"
  12. :style="'height: ' + windowHeight + 'px;'"
  13. @scrolltolower="scrollTolower"
  14. refresher-enabled
  15. @refresherpulling="pulling"
  16. @refresherrefresh="refresher"
  17. @refresherrestore="restore"
  18. :refresher-triggered="triggered"
  19. >
  20. <swiper class="swiper" :autoplay="true" previous-margin="15px" next-margin="15px" :circular="true">
  21. <swiper-item v-for="(item, index) in list" :key="index" style="padding: 0px 5px;box-sizing: border-box;">
  22. <view style="height: 100%;border-radius: 8px;overflow: hidden;">
  23. <image :src="$method.splitImgHost(item.adverUrl)" mode="" style="width: 100%;height: 100%;" @click="swiperClick(index)"></image>
  24. </view>
  25. </swiper-item>
  26. </swiper>
  27. <view style="margin: 31rpx 35rpx 24rpx;display: flex;align-items: center;">
  28. <view style="padding: 5rpx;margin-right: 16rpx;"><image src="/static/select.png" class="arr-icon" @click="showStatus"></image></view>
  29. <view class="dis_ssy">
  30. <view class="lszty" @click="sectionChange(0)" :class="current == 0 ?'acszty':''">找岗位</view>
  31. <view class="lszty" @click="sectionChange(1)" :class="current == 1 ?'acszty':''">找企业</view>
  32. <!-- <template>
  33. <u-subsection
  34. @change="sectionChange"
  35. height="54"
  36. button-color="rgba(47,67,121,0.6)"
  37. bg-color="#F8F9FF"
  38. active-color="#FFFFFF"
  39. inactive-color="#636A75"
  40. :bold="false"
  41. :list="tab_list"
  42. :current="current"
  43. ></u-subsection>
  44. </template> -->
  45. </view>
  46. <view style="width: 90px;" @click="showCityPicker = true">
  47. <view class="slh">{{ city === null ? '全国' : city }}</view>
  48. </view>
  49. </view>
  50. <view v-if="current === 0">
  51. <view class="boxsize lines" v-for="(item, index) in posts" :key="index" @click="jumpDetails(item)">
  52. <view class="top_sty">
  53. <view>
  54. <view class="heasd">
  55. {{ item.job }}
  56. <image v-if="item.isUrgent === 1" style="width:27rpx;height:27rpx;" src="../static/ji@3x.png" mode=""></image>
  57. </view>
  58. <view class="fotHs">{{ item.companyName }}</view>
  59. </view>
  60. <view class="priceSty">
  61. {{ item.incomeStart === item.incomeEnd ? item.incomeStart : item.incomeStart + '~' + item.incomeEnd }}/{{ item.incomeType === 1 ? '月' : '年' }}
  62. </view>
  63. </view>
  64. <view class="dis_foter">
  65. <view class="dis_f">
  66. <view class="fot_size">{{ item.workingYearsLabel }}</view>
  67. <view class="fot_size">{{ item.minimumEduLabel }}</view>
  68. <view class="yys" v-for="(items, indexs) in item.bonusCertificate" :key="indexs">{{ items }}</view>
  69. </view>
  70. <view class="right_address">{{ item.city }}•{{ item.district }}</view>
  71. </view>
  72. </view>
  73. <u-divider v-if="total == posts.length">到底啦</u-divider>
  74. </view>
  75. <view v-if="current === 1">
  76. <view class="boxsize" v-for="(item, index) in enterprise" :key="index">
  77. <view class="dis_flexs" @click="jumpCompany(item)">
  78. <view class="imgboxs"><image style="width: 100%; height: 100%;" :src="$method.splitImgHost(item.logoUrl)" mode=""></image></view>
  79. <view style="flex: 1;">
  80. <view class="headTits">{{ item.companyName }}</view>
  81. <view class="lisz">
  82. <view class="bqB">{{ item.city }}</view>
  83. <view class="bqB">{{ item.companyType }}</view>
  84. <view class="bqB">{{ item.companySize }}</view>
  85. </view>
  86. </view>
  87. </view>
  88. <view class="tnsz">
  89. <view class="litns" v-for="(items, indexs) in item.newNumObj" :key="indexs" @click="jumpDetails(items)">{{ items.job }}</view>
  90. <view class="moreLs" v-if="item.recruitNeedsVoList.length > 3" @click="jumpDetails(item.recruitNeedsVoList[0])">•••</view>
  91. </view>
  92. </view>
  93. <u-divider v-if="total1 == enterprise.length">到底啦</u-divider>
  94. </view>
  95. </scroll-view>
  96. <u-popup v-model="show" border-radius="14">
  97. <view class="flex-d" style="width: 600rpx">
  98. <view class="popup_t1">
  99. <view class="mors" :class="activePopBtn === 0 ? 'activesSty' : ''" @click="activePopBtn = 0">岗位筛选</view>
  100. <view class="mors" style="margin-left: 32rpx;" :class="activePopBtn === 1 ? 'activesSty' : ''" @click="activePopBtn = 1">企业筛选</view>
  101. </view>
  102. <view class="contentZ" v-if="activePopBtn === 0">
  103. <view class="heards">工作类型</view>
  104. <view class="boxPlus">
  105. <view
  106. class="liszing"
  107. v-for="(item, index) in workTypeList"
  108. :key="index"
  109. @click="activeWorkType(item)"
  110. :class="workActiveBoxs.indexOf(item) !== -1 ? 'activesLiszing' : ''"
  111. >
  112. {{ item }}
  113. </view>
  114. <view style="clear: both;"></view>
  115. </view>
  116. <view class="heards">薪资范围</view>
  117. <view class="priceType">
  118. <view class="lstq" :class="priceType === 1 ? 'activeLstq' : ''" @click="priceType = 1">月薪</view>
  119. <view class="lstq" :class="priceType === 2 ? 'activeLstq' : ''" @click="priceType = 2">年薪</view>
  120. </view>
  121. <view class="priceInput">
  122. <input class="inputSty" type="number" value="" placeholder="最低(元)" v-model="incomeStart" />
  123. <input class="inputSty" type="number" value="" placeholder="最高(元)" v-model="incomeEnd" />
  124. </view>
  125. <view class="heards">学历要求(可多选)</view>
  126. <view class="boxPlus">
  127. <view
  128. class="liszing"
  129. v-for="(item, index) in eduList"
  130. :key="index"
  131. @click="activeEduType(item)"
  132. :class="eduActiveBoxs.indexOf(item.value) !== -1 ? 'activesLiszing' : ''"
  133. >
  134. {{ item.label }}
  135. </view>
  136. <view style="clear: both;"></view>
  137. </view>
  138. <view class="heards">工作年限(可多选)</view>
  139. <view class="boxPlus">
  140. <view
  141. class="liszing"
  142. v-for="(item, index) in workYearsList"
  143. :key="index"
  144. @click="activeWorkYearsType(item)"
  145. :class="workYearsActiveBoxs.indexOf(item.value) !== -1 ? 'activesLiszing' : ''"
  146. >
  147. {{ item.label }}
  148. </view>
  149. <view style="clear: both;"></view>
  150. </view>
  151. </view>
  152. <view class="contentZ" v-if="activePopBtn === 1">
  153. <view class="heards">企业规模(可多选)</view>
  154. <view class="boxPlus">
  155. <view
  156. class="liszing"
  157. v-for="(item, index) in companySizeList"
  158. :key="index"
  159. @click="activeCompanySize(item)"
  160. :class="companySizeActiveBoxs.indexOf(item.value) !== -1 ? 'activesLiszing' : ''"
  161. >
  162. {{ item.label }}
  163. </view>
  164. <view style="clear: both;"></view>
  165. </view>
  166. <view class="heards">公司类型(可多选)</view>
  167. <view class="boxPlus">
  168. <view
  169. class="liszing"
  170. v-for="(item, index) in companyTypeList"
  171. :key="index"
  172. @click="activeCompanyType(item)"
  173. :class="companyTypeActiveBoxs.indexOf(item.value) !== -1 ? 'activesLiszing' : ''"
  174. >
  175. {{ item.label }}
  176. </view>
  177. <view style="clear: both;"></view>
  178. </view>
  179. </view>
  180. <view class="fots">
  181. <view class="leftBtns" @click="initLists">重置筛选</view>
  182. <view class="right_Btns" @click="searchPageInfos">确定筛选</view>
  183. </view>
  184. </view>
  185. </u-popup>
  186. <u-picker mode="region" v-model="showCityPicker" :params="{ province: true, city: true }" @confirm="activeCitys"></u-picker>
  187. </view>
  188. </template>
  189. <script>
  190. export default {
  191. name: 'recruitment',
  192. data() {
  193. return {
  194. list: [],
  195. showCityPicker: false,
  196. province: null,
  197. city: null,
  198. activePopBtn: 0,
  199. windowHeight: 0,
  200. show: false,
  201. tab_list: [
  202. {
  203. name: '找岗位'
  204. },
  205. {
  206. name: '找企业'
  207. }
  208. ],
  209. posts: [], //岗位列表
  210. enterprise: [], //企业列表
  211. current: 0,
  212. pageNum: 1,
  213. pageSize: 8,
  214. total: 0,
  215. pageNum1: 1,
  216. pageSize1: 8,
  217. total1: 0,
  218. workTypeList: ['全职', '兼职', '实习生'], //工作类型
  219. workActiveBoxs: [], //选中工作类型
  220. priceType: 1, //薪资类型 1月薪2年薪
  221. incomeStart: '', //薪资起点
  222. incomeEnd: '', //薪资结点
  223. eduList: [], //学历
  224. eduActiveBoxs: [], //选中学历
  225. workYearsList: [], //工作年限类型
  226. workYearsActiveBoxs: [], //选中工作年限类型
  227. companySizeList: [], //公司规模
  228. companySizeActiveBoxs: [], //选中公司规模
  229. companyTypeList: [], //公司类型
  230. companyTypeActiveBoxs: [], //选中公司类型
  231. sxGW: false,
  232. sxCM: false,
  233. triggered: false
  234. };
  235. },
  236. created() {
  237. this.windowHeight = uni.getSystemInfoSync().windowHeight - 120;
  238. },
  239. mounted() {
  240. this.inits();
  241. this.getDict();
  242. this.advertisingList();
  243. },
  244. methods: {
  245. pulling() {
  246. this.triggered = true;
  247. },
  248. refresher() {
  249. this.inits();
  250. this.getDict();
  251. this.advertisingList();
  252. this.triggered = false;
  253. },
  254. restore() {
  255. this.triggered = false;
  256. },
  257. swiperClick(index) {
  258. let item = this.list[index];
  259. uni.navigateTo({
  260. url: item.jumpUrl
  261. });
  262. },
  263. advertisingList() {
  264. let self = this;
  265. this.$api.advertisingList().then(res => {
  266. self.list = res.data.rows.filter((item, index) => {
  267. return item.type === 2;
  268. });
  269. });
  270. },
  271. getDict() {
  272. var self = this;
  273. this.$api.dictList().then(res => {
  274. res.data.data.forEach((item, index) => {
  275. if (item.dictType == 'edu_level') {
  276. self.eduList.push({ label: item.dictLabel, value: item.dictCode });
  277. }
  278. if (item.dictType == 'working_years') {
  279. if (item.dictCode !== 109) {
  280. self.workYearsList.push({ label: item.dictLabel, value: item.dictCode });
  281. }
  282. }
  283. if (item.dictType == 'company_size') {
  284. self.companySizeList.push({ label: item.dictLabel, value: item.dictCode });
  285. }
  286. if (item.dictType == 'company_type') {
  287. self.companyTypeList.push({ label: item.dictLabel, value: item.dictCode });
  288. }
  289. });
  290. });
  291. },
  292. inits() {
  293. this.getCurrentGW();
  294. this.getCurrentCM();
  295. },
  296. jumpSearch() {
  297. this.$navTo.togo('/pages2/index/searchRecruit', {});
  298. },
  299. scroll(e) {},
  300. getCurrentGW(v) {
  301. var self = this;
  302. var data = {
  303. pageNum: this.pageNum,
  304. pageSize: this.pageSize
  305. };
  306. if (this.city !== null && this.province !== null) {
  307. data.province = this.province;
  308. data.city = this.city;
  309. }
  310. if (v) {
  311. if (this.workActiveBoxs.length) {
  312. data.jobNature = this.workActiveBoxs.toString();
  313. }
  314. if (this.incomeStart !== '' || this.incomeEnd !== '') {
  315. if (this.incomeStart !== '' && this.incomeEnd !== '') {
  316. var testPrice = /((^[1-9]\d*)|^0)(\.\d{0,2}){0,1}$/;
  317. if (!testPrice.test(Number(this.incomeStart))) {
  318. uni.showToast({
  319. title: '请规范填写最低薪资',
  320. icon: 'none'
  321. });
  322. return;
  323. }
  324. if (!testPrice.test(Number(this.incomeEnd))) {
  325. uni.showToast({
  326. title: '请规范填写最高薪资',
  327. icon: 'none'
  328. });
  329. return;
  330. }
  331. if (Number(this.incomeStart) > Number(this.incomeEnd)) {
  332. uni.showToast({
  333. title: '请规范填写薪资范围',
  334. icon: 'none'
  335. });
  336. return;
  337. }
  338. data.incomeType = this.priceType;
  339. data.incomeList = [{ incomeStart: Number(this.incomeStart), incomeEnd: Number(this.incomeEnd) }];
  340. } else {
  341. uni.showToast({
  342. title: '请填写薪资范围',
  343. icon: 'none'
  344. });
  345. return;
  346. }
  347. }
  348. if (this.eduActiveBoxs.length) {
  349. data.minimumEduDictList = this.eduActiveBoxs.toString();
  350. }
  351. if (this.workYearsActiveBoxs.length) {
  352. data.workingYearsDictList = this.workYearsActiveBoxs.toString();
  353. }
  354. }
  355. this.$api.recruitneedslist(data).then(res => {
  356. if (res.data.code === 200) {
  357. self.total = res.data.total;
  358. res.data.rows.forEach((item, index) => {
  359. if (item.jobNature) {
  360. item.jobNature = item.jobNature.split(',');
  361. }
  362. if (item.welfare) {
  363. item.welfare = item.welfare.split(',');
  364. }
  365. if (item.bonusCertificate) {
  366. item.bonusCertificate = item.bonusCertificate.split(',');
  367. }
  368. });
  369. self.posts = res.data.rows;
  370. self.show = false;
  371. }
  372. });
  373. },
  374. getCurrentCM(v) {
  375. var self = this;
  376. var data1 = {
  377. pageNum: this.pageNum1,
  378. pageSize: this.pageSize1
  379. };
  380. if (this.city !== null && this.province !== null) {
  381. data1.province = this.province;
  382. data1.city = this.city;
  383. }
  384. if (v) {
  385. if (this.companySizeActiveBoxs.length) {
  386. data1.sizeIds = this.companySizeActiveBoxs.toString();
  387. }
  388. if (this.companyTypeActiveBoxs.length) {
  389. data1.typeIds = this.companyTypeActiveBoxs.toString();
  390. }
  391. }
  392. this.$api.recruitcompanyConlist(data1).then(res => {
  393. if (res.data.code === 200) {
  394. self.total1 = res.data.total;
  395. for (let k = 0; k < res.data.rows.length; k++) {
  396. if (res.data.rows[k].recruitNeedsVoList) {
  397. var anum = [];
  398. for (let i = 0; i < res.data.rows[k].recruitNeedsVoList.length; i++) {
  399. if (i >= 3) {
  400. break;
  401. } else {
  402. anum.push(res.data.rows[k].recruitNeedsVoList[i]);
  403. }
  404. }
  405. res.data.rows[k].newNumObj = anum;
  406. }
  407. }
  408. self.enterprise = res.data.rows;
  409. self.show = false;
  410. }
  411. });
  412. },
  413. searchPageInfos() {
  414. var self = this;
  415. if (this.activePopBtn === 0) {
  416. this.current = 0;
  417. this.sxGW = true;
  418. this.getCurrentGW(true);
  419. }
  420. if (this.activePopBtn === 1) {
  421. this.current = 1;
  422. this.sxCM = true;
  423. this.getCurrentCM(true);
  424. }
  425. },
  426. jumpCompany(v) {
  427. var data = {
  428. companyId: v.companyId
  429. };
  430. if (v.recruitNeedsVoList.length > 0) {
  431. data.id = v.recruitNeedsVoList[0].id;
  432. }
  433. this.$navTo.togo('/pages2/recruitment/detailsInfo', data);
  434. },
  435. jumpDetails(v) {
  436. this.$navTo.togo('/pages2/recruitment/detailsInfo', {
  437. id: v.id,
  438. companyId: v.companyId
  439. });
  440. },
  441. scrollTolower() {
  442. var self = this;
  443. if (this.current === 0) {
  444. if (this.total > this.posts.length) {
  445. var data = {
  446. pageNum: this.pageNum + 1,
  447. pageSize: this.pageSize
  448. };
  449. if (this.sxGW) {
  450. if (this.workActiveBoxs.length) {
  451. data.jobNature = this.workActiveBoxs.toString();
  452. }
  453. if (this.incomeStart !== '' || this.incomeEnd !== '') {
  454. if (this.incomeStart !== '' && this.incomeEnd !== '') {
  455. var testPrice = /((^[1-9]\d*)|^0)(\.\d{0,2}){0,1}$/;
  456. if (!testPrice.test(Number(this.incomeStart))) {
  457. uni.showToast({
  458. title: '请规范填写最低薪资',
  459. icon: 'none'
  460. });
  461. return;
  462. }
  463. if (!testPrice.test(Number(this.incomeEnd))) {
  464. uni.showToast({
  465. title: '请规范填写最高薪资',
  466. icon: 'none'
  467. });
  468. return;
  469. }
  470. if (Number(this.incomeStart) > Number(this.incomeEnd)) {
  471. uni.showToast({
  472. title: '请规范填写薪资范围',
  473. icon: 'none'
  474. });
  475. return;
  476. }
  477. data.incomeType = this.priceType;
  478. data.incomeList = [{ incomeStart: Number(this.incomeStart), incomeEnd: Number(this.incomeEnd) }];
  479. } else {
  480. uni.showToast({
  481. title: '请填写薪资范围',
  482. icon: 'none'
  483. });
  484. return;
  485. }
  486. }
  487. if (this.eduActiveBoxs.length) {
  488. data.minimumEduDictList = this.eduActiveBoxs.toString();
  489. }
  490. if (this.workYearsActiveBoxs.length) {
  491. data.workingYearsDictList = this.workYearsActiveBoxs.toString();
  492. }
  493. }
  494. this.$api.recruitneedslist(data).then(res => {
  495. if (res.data.code === 200) {
  496. self.pageNum++;
  497. res.data.rows.forEach((item, index) => {
  498. if (item.jobNature) {
  499. item.jobNature = item.jobNature.split(',');
  500. }
  501. if (item.welfare) {
  502. item.welfare = item.welfare.split(',');
  503. }
  504. if (item.bonusCertificate) {
  505. item.bonusCertificate = item.bonusCertificate.split(',');
  506. }
  507. self.posts.push(item);
  508. });
  509. }
  510. });
  511. }
  512. }
  513. if (this.current === 1) {
  514. if (this.total1 > this.enterprise.length) {
  515. var data1 = {
  516. pageNum: this.pageNum1 + 1,
  517. pageSize: this.pageSize1
  518. };
  519. if (this.sxCM) {
  520. if (this.companySizeActiveBoxs.length) {
  521. data1.sizeIds = this.companySizeActiveBoxs.toString();
  522. }
  523. if (this.companyTypeActiveBoxs.length) {
  524. data1.typeIds = this.companyTypeActiveBoxs.toString();
  525. }
  526. }
  527. this.$api.recruitcompanyConlist(data1).then(res => {
  528. if (res.data.code === 200) {
  529. self.pageNum1++;
  530. for (let k = 0; k < res.data.rows.length; k++) {
  531. if (res.data.rows[k].recruitNeedsVoList) {
  532. var anum = [];
  533. for (let i = 0; i < res.data.rows[k].recruitNeedsVoList.length; i++) {
  534. if (i >= 3) {
  535. break;
  536. } else {
  537. anum.push(res.data.rows[k].recruitNeedsVoList[i]);
  538. }
  539. }
  540. res.data.rows[k].newNumObj = anum;
  541. }
  542. self.enterprise.push(res.data.rows[k]);
  543. }
  544. }
  545. });
  546. }
  547. }
  548. },
  549. sectionChange(index) {
  550. this.current = index;
  551. },
  552. initLists() {
  553. if (this.activePopBtn === 0) {
  554. this.priceType = 1; //薪资类型 1月薪2年薪
  555. this.incomeStart = ''; //薪资起点
  556. this.incomeEnd = ''; //薪资结点
  557. this.workActiveBoxs = [];
  558. this.eduActiveBoxs = [];
  559. this.workYearsActiveBoxs = [];
  560. this.province = null;
  561. this.city = null;
  562. this.sxGW = false;
  563. this.getCurrentGW();
  564. }
  565. if (this.activePopBtn === 1) {
  566. this.companySizeActiveBoxs = [];
  567. this.companyTypeActiveBoxs = [];
  568. this.province = null;
  569. this.city = null;
  570. this.sxCM = false;
  571. this.getCurrentCM();
  572. }
  573. },
  574. initAll() {
  575. if (this.current === 0) {
  576. this.priceType = 1; //薪资类型 1月薪2年薪
  577. this.incomeStart = ''; //薪资起点
  578. this.incomeEnd = ''; //薪资结点
  579. this.workActiveBoxs = [];
  580. this.eduActiveBoxs = [];
  581. this.workYearsActiveBoxs = [];
  582. this.sxGW = false;
  583. this.getCurrentGW();
  584. }
  585. if (this.current === 1) {
  586. this.companySizeActiveBoxs = [];
  587. this.companyTypeActiveBoxs = [];
  588. this.sxCM = false;
  589. this.getCurrentCM();
  590. }
  591. },
  592. showStatus() {
  593. if(this.current === 0){
  594. this.activePopBtn = 0
  595. }
  596. if(this.current === 1){
  597. this.activePopBtn = 1
  598. }
  599. this.show = true;
  600. },
  601. activeWorkType(item) {
  602. if (this.workActiveBoxs.indexOf(item) !== -1) {
  603. this.workActiveBoxs.splice(this.workActiveBoxs.indexOf(item), 1);
  604. } else {
  605. this.workActiveBoxs.push(item);
  606. }
  607. },
  608. activeEduType(item) {
  609. if (this.eduActiveBoxs.indexOf(item.value) !== -1) {
  610. this.eduActiveBoxs.splice(this.eduActiveBoxs.indexOf(item.value), 1);
  611. } else {
  612. this.eduActiveBoxs.push(item.value);
  613. }
  614. },
  615. activeWorkYearsType(item) {
  616. if (this.workYearsActiveBoxs.indexOf(item.value) !== -1) {
  617. this.workYearsActiveBoxs.splice(this.workYearsActiveBoxs.indexOf(item.value), 1);
  618. } else {
  619. this.workYearsActiveBoxs.push(item.value);
  620. }
  621. },
  622. activeCompanySize(item) {
  623. if (this.companySizeActiveBoxs.indexOf(item.value) !== -1) {
  624. this.companySizeActiveBoxs.splice(this.companySizeActiveBoxs.indexOf(item.value), 1);
  625. } else {
  626. this.companySizeActiveBoxs.push(item.value);
  627. }
  628. },
  629. activeCompanyType(item) {
  630. if (this.companyTypeActiveBoxs.indexOf(item.value) !== -1) {
  631. this.companyTypeActiveBoxs.splice(this.companyTypeActiveBoxs.indexOf(item.value), 1);
  632. } else {
  633. this.companyTypeActiveBoxs.push(item.value);
  634. }
  635. },
  636. activeCitys(options) {
  637. this.province = options.province.label;
  638. this.city = options.city.label;
  639. if (this.current === 0) {
  640. this.getCurrentGW();
  641. }
  642. if (this.current === 1) {
  643. this.getCurrentCM();
  644. }
  645. }
  646. }
  647. };
  648. </script>
  649. <style scoped>
  650. .slh {
  651. line-height: 54rpx;
  652. height: 54rpx;
  653. text-align: center;
  654. display: -webkit-box;
  655. overflow: hidden;
  656. text-overflow: ellipsis;
  657. word-wrap: break-word;
  658. white-space: normal !important;
  659. -webkit-line-clamp: 1;
  660. -webkit-box-orient: vertical;
  661. }
  662. .search {
  663. width: 40rpx;
  664. height: 40rpx;
  665. margin-left: 30rpx;
  666. }
  667. .slot-wrap {
  668. display: flex;
  669. align-items: center;
  670. }
  671. .tests {
  672. background-color: #00ffff;
  673. margin-bottom: 20rpx;
  674. }
  675. .swiper {
  676. height: 329rpx;
  677. }
  678. .arr-icon {
  679. width: 40rpx;
  680. height: 40rpx;
  681. }
  682. .popup_t1 {
  683. display: flex;
  684. align-items: center;
  685. padding-left: 35rpx;
  686. border-bottom: 1rpx solid #eee;
  687. height: 57rpx;
  688. margin-top: 86rpx;
  689. }
  690. .mors {
  691. font-size: 30rpx;
  692. font-weight: bold;
  693. color: #999;
  694. }
  695. .activesSty {
  696. font-size: 30rpx;
  697. font-weight: bold;
  698. color: #2a4174;
  699. }
  700. .boxsize {
  701. border-radius: 32rpx;
  702. background: #ffffff;
  703. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(47, 67, 121, 0.05);
  704. margin: 0rpx 35rpx 24rpx;
  705. padding: 22rpx 20rpx;
  706. }
  707. .lines {
  708. height: 196rpx;
  709. display: flex;
  710. flex-direction: column;
  711. justify-content: space-between;
  712. }
  713. .dis_flexs {
  714. display: flex;
  715. margin-bottom: 24rpx;
  716. }
  717. .dis_flexs > .imgboxs {
  718. width: 100rpx;
  719. height: 100rpx;
  720. border-radius: 24rpx;
  721. overflow: hidden;
  722. margin-right: 24rpx;
  723. }
  724. .top_sty {
  725. display: flex;
  726. justify-content: space-between;
  727. }
  728. .dis_foter {
  729. display: flex;
  730. align-items: center;
  731. justify-content: space-between;
  732. }
  733. .dis_f {
  734. display: flex;
  735. align-items: center;
  736. overflow-x: auto;
  737. flex: 1;
  738. margin-right: 20rpx;
  739. }
  740. .right_address {
  741. font-weight: 500;
  742. font-size: 24rpx;
  743. color: #636a75;
  744. }
  745. .fot_size {
  746. height: 32rpx;
  747. line-height: 32rpx;
  748. padding: 0rpx 12rpx;
  749. margin-right: 8rpx;
  750. border-radius: 16rpx;
  751. font-size: 20rpx;
  752. background: #f2f6ff;
  753. flex-shrink: 0;
  754. color: #636a75;
  755. }
  756. .yys {
  757. height: 32rpx;
  758. font-size: 20rpx;
  759. line-height: 32rpx;
  760. padding: 0rpx 12rpx;
  761. margin-right: 8rpx;
  762. border-radius: 16rpx;
  763. color: #fff;
  764. background: #3fefb7;
  765. flex-shrink: 0;
  766. }
  767. .heasd {
  768. font-size: 30rpx;
  769. font-weight: bold;
  770. color: #2a4174;
  771. margin-bottom: 14rpx;
  772. }
  773. .fotHs {
  774. font-size: 20rpx;
  775. font-weight: 500;
  776. color: #636a75;
  777. }
  778. .priceSty {
  779. font-weight: bold;
  780. font-size: 28rpx;
  781. color: #32467b;
  782. }
  783. .headTits {
  784. font-size: 30rpx;
  785. font-weight: bold;
  786. color: #2a4174;
  787. margin-bottom: 26rpx;
  788. }
  789. .lisz {
  790. display: flex;
  791. align-items: center;
  792. }
  793. .lisz > .bqB {
  794. border-radius: 16rpx;
  795. background-color: #f2f6ff;
  796. padding: 0rpx 22rpx;
  797. text-align: center;
  798. height: 32rpx;
  799. line-height: 32rpx;
  800. margin-right: 8rpx;
  801. font-size: 20rpx;
  802. color: #636a75;
  803. }
  804. .tnsz {
  805. display: flex;
  806. align-items: center;
  807. }
  808. .litns {
  809. padding: 0rpx 15rpx;
  810. margin-right: 24rpx;
  811. border-radius: 16rpx;
  812. height: 48rpx;
  813. line-height: 48rpx;
  814. background-color: #32467b;
  815. color: #fff;
  816. box-shadow: 0rpx 0rpx 5rpx 0rpx rgba(47, 67, 121, 0.05);
  817. font-size: 26rpx;
  818. font-weight: bold;
  819. }
  820. .moreLs {
  821. border-radius: 16rpx;
  822. font-size: 26rpx;
  823. font-weight: bold;
  824. color: #32467b;
  825. border: 1rpx solid #32467b;
  826. padding: 0rpx 11rpx;
  827. height: 48rpx;
  828. letter-spacing: 1rpx;
  829. line-height: 40rpx;
  830. }
  831. .flex-d {
  832. display: flex;
  833. flex-direction: column;
  834. justify-content: space-between;
  835. height: 100%;
  836. }
  837. .contentZ {
  838. flex: 1;
  839. overflow-y: auto;
  840. padding-left: 35rpx;
  841. }
  842. .contentZ::-webkit-scrollbar {
  843. display: none;
  844. }
  845. .fots {
  846. height: 100rpx;
  847. display: flex;
  848. align-items: center;
  849. justify-content: space-around;
  850. border-top: 1rpx solid #eee;
  851. }
  852. .leftBtns {
  853. font-size: 30rpx;
  854. color: #32467b;
  855. font-weight: 500;
  856. }
  857. .right_Btns {
  858. font-size: 30rpx;
  859. color: #fff;
  860. background-color: #32467b;
  861. border-radius: 24rpx;
  862. height: 60rpx;
  863. line-height: 60rpx;
  864. text-align: center;
  865. padding: 0rpx 23rpx;
  866. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
  867. }
  868. .heards {
  869. margin: 25rpx 0rpx;
  870. font-size: 24rpx;
  871. color: #32467b;
  872. font-weight: bold;
  873. }
  874. .liszing {
  875. float: left;
  876. width: 161rpx;
  877. height: 57rpx;
  878. text-align: center;
  879. line-height: 57rpx;
  880. border: 1rpx solid transparent;
  881. border-radius: 16rpx;
  882. color: #999;
  883. background-color: #f5f7f9;
  884. margin-right: 13rpx;
  885. margin-bottom: 13rpx;
  886. }
  887. .activesLiszing {
  888. color: #2a4174;
  889. border-color: #2a4174;
  890. }
  891. .priceType {
  892. display: flex;
  893. align-items: center;
  894. margin-bottom: 22rpx;
  895. }
  896. .lstq {
  897. font-size: 30rpx;
  898. color: #999;
  899. font-weight: 400;
  900. margin-right: 27rpx;
  901. }
  902. .activeLstq {
  903. color: #2a4174;
  904. font-weight: 500;
  905. }
  906. .priceInput {
  907. display: flex;
  908. align-items: center;
  909. justify-content: space-between;
  910. padding-right: 56rpx;
  911. }
  912. .inputSty {
  913. border: none;
  914. border-bottom: 1rpx solid #eee;
  915. /* width: 220rpx; */
  916. text-align: center;
  917. }
  918. .dis_ssy {
  919. flex: 1;
  920. display: flex;
  921. align-items: center;
  922. height: 56rpx;
  923. border-radius: 20rpx;
  924. background-color: #f8f9ff;
  925. }
  926. .lszty {
  927. height: 44rpx;
  928. line-height: 44rpx;
  929. width: 50%;
  930. text-align: center;
  931. border-radius: 16rpx;
  932. color: #636a75;
  933. font-size: 24rpx;
  934. transition: all 0.3s;
  935. }
  936. .acszty {
  937. color: #fff;
  938. background: rgba(47, 67, 121, 0.6);
  939. }
  940. </style>