gongsi-info.vue 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620
  1. <template>
  2. <view class="gongsi-info">
  3. <image src="../static/images/gongsi-bg.png" class="gongsi-bg" mode=""></image>
  4. <u-navbar :fixed="false" bgColor='rgba(0,0,0,0)' placeholder :safeAreaInsetTop="true"
  5. @leftClick="return1"></u-navbar>
  6. <view class="" style="padding: 0 24rpx 0;box-sizing: border-box;">
  7. <view class="gongsi-header">
  8. <view class="header-top u-flex">
  9. <image :src="detail.logo" class="gongsi-logo" mode="aspectFill"></image>
  10. <view class="top-right u-flex-col u-flex-1">
  11. <text>{{detail.name || ''}}</text>
  12. <text>{{detail.category_name || ''}}|{{detail.stage_name || ''}}·{{detail.scale_name || ''}}</text>
  13. </view>
  14. </view>
  15. <view class="gongso-label u-flex u-flex-wrap">
  16. <text v-for="(a,b) in detail.tag_text" :key="b">{{a}}</text>
  17. </view>
  18. </view>
  19. <view class="gongsi-address">
  20. <view class="address-title">
  21. 公司地址
  22. </view>
  23. <view class="address-down u-flex u-row-between">
  24. <text>{{detail.province || ''}}{{detail.city || ''}}{{detail.address || ''}}</text>
  25. <image src="static/address.png" mode="" @click="openlocation"></image>
  26. </view>
  27. </view>
  28. <view class="gongsi-text">
  29. <view class="text-title">
  30. 公司介绍
  31. </view>
  32. <view class="text-body">
  33. {{detail.introduce || ''}}
  34. </view>
  35. </view>
  36. <view class="gongsi-text">
  37. <view class="text-title">
  38. 公司优势
  39. </view>
  40. <view class="text-body">
  41. {{detail.welfare_tag_text ? detail.welfare_tag_text.join(',') : ''}}
  42. </view>
  43. </view>
  44. </view>
  45. <view class="" style="height: 220rpx;"></view>
  46. <!-- <u-mask :show="showzhiwei" z-index="990" @click="closeshaixuan"></u-mask> -->
  47. <u-overlay :show="showzhiwei" z-index="990" @click="closeshaixuan"></u-overlay>
  48. <view class="gongsi-zhiwei u-flex-col" :style="{bottom:showzhiwei ? '0' : 'calc(210rpx - 90vh)'}">
  49. <view class="zhiwei-header">
  50. <view class="header-top" v-if="showsearch">
  51. <u-search placeholder="搜索职位" @search="tosearch(1)" action-text="取消" @custom="chongzhi"
  52. v-model="keyword1"></u-search>
  53. </view>
  54. <view class="header-top u-flex u-row-between" v-else @click="openzhiwei">
  55. <text class="text1">招聘职位({{total}})</text>
  56. <!-- <view @click.stop="opensearch">
  57. <u-icon name="search" size="32"></u-icon>
  58. </view> -->
  59. </view>
  60. <view class="header-shaixuan u-flex u-row-between">
  61. <view class="shaixuan-item u-flex u-row-center"
  62. :class="{shaixuanItemActive:(showshaixuan == 1 || zhiwei > 0)}" @click="openshaixuan(1)">
  63. <text class="text u-line-1">{{zhiwei == 0 ? '职位' : zhiweilist[zhiwei].name}}</text>
  64. <u-icon name="arrow-down-fill" size="16"></u-icon>
  65. </view>
  66. <view class="shaixuan-item u-flex u-row-center"
  67. :class="{shaixuanItemActive:showshaixuan == 2 || jingyan > -1}" @click="openshaixuan(2)">
  68. <text class="text u-line-1">{{jingyan == -1 ? '经验' : jingyanlist[jingyan].name}}</text>
  69. <u-icon name="arrow-down-fill" size="16"></u-icon>
  70. </view>
  71. <view class="shaixuan-item u-flex u-row-center"
  72. :class="{shaixuanItemActive:(showshaixuan == 3 || city.id)}" @click="openshaixuan(3)">
  73. <text class="text u-line-1">{{city.name || '城市'}}</text>
  74. <u-icon name="arrow-down-fill" size="16"></u-icon>
  75. </view>
  76. <view class="shaixuan-item u-flex u-row-center"
  77. :class="{shaixuanItemActive:showshaixuan == 4 || xinzi.name}" @click="openshaixuan(4)">
  78. <text class="text u-line-1">{{xinzi.name || '薪资'}}</text>
  79. <u-icon name="arrow-down-fill" size="16"></u-icon>
  80. </view>
  81. </view>
  82. </view>
  83. <view class="zhiwei-list u-flex-1">
  84. <scroll-view v-if="showshaixuan == 1" scroll-y="true" class="zhiwei-shaixuan">
  85. <view class="shaixuan1-item" v-for="(a,b) in zhiweilist" :key="b" :class="{shaixuan1:zhiwei == b}"
  86. @click="changeshaixuan(1,b)">
  87. {{a.name}}
  88. </view>
  89. </scroll-view>
  90. <scroll-view v-if="showshaixuan == 2" scroll-y="true" class="zhiwei-shaixuan">
  91. <view class="shaixuan1-item" :class="{shaixuan1:jingyan == -1}" @click="changeshaixuan(2,-1)">
  92. 全部
  93. </view>
  94. <view class="shaixuan1-item" v-for="(a,b) in jingyanlist" :key="b" :class="{shaixuan1:jingyan == b}"
  95. @click="changeshaixuan(2,b)">
  96. {{a.name}}
  97. </view>
  98. </scroll-view>
  99. <scroll-view scroll-y="true" class="zhiwei-scroll">
  100. <view class="zhiwei-item" v-for="(item,index) in list" :key="index" @click="toinfo(item)">
  101. <view class="item-top u-flex u-row-between">
  102. <text class="text1">{{item.job_name}}</text>
  103. <!-- <text class="text2">3天内反馈</text> -->
  104. <text class="text3 u-flex-1">{{item.salary_min}}-{{item.salary_max}}K</text>
  105. </view>
  106. <view class="item-label u-flex">
  107. <text>{{item.education_name}}</text>
  108. <text>{{item.experience_name}}</text>
  109. </view>
  110. <view class="item-down u-flex u-row-between">
  111. <text>{{item.audit_time}}发布</text>
  112. <text>{{item.work_province}} {{item.work_city}}</text>
  113. </view>
  114. </view>
  115. </scroll-view>
  116. </view>
  117. <view class="safe-area-inset-bottom"></view>
  118. </view>
  119. <!-- <u-picker :columns="citylist" :show="showcity" keyName="name" @confirm="changecity" @cancel="confirm1"></u-picker> -->
  120. <!-- <u-picker :columns="xinzilist" :show="showxinzi" @confirm="changexinzi" @cancel="confirm1"></u-picker> -->
  121. <picker mode = region @change="bindPickerChange" value="0" :range="clitylist" range-key="name"></picker>
  122. </view>
  123. </template>
  124. <script>
  125. import {
  126. companydetail,
  127. getjoblist,
  128. jobdata,
  129. getexperience,
  130. getareacity
  131. } from "@/units/inquire.js"
  132. export default {
  133. data() {
  134. return {
  135. showzhiwei: false,
  136. showsearch: false,
  137. showshaixuan: 0,
  138. zhiweilist: [],
  139. zhiwei: 0,
  140. jingyanlist: [],
  141. jingyan: -1,
  142. showcity: false,
  143. citylist: [],
  144. province: [], //省份
  145. city: [],
  146. area: [], //区域
  147. city: {
  148. id: '',
  149. name: ''
  150. },
  151. showxinzi: false,
  152. xinzilist: [],
  153. xinzi: {
  154. max: '',
  155. min: '',
  156. name: ''
  157. },
  158. keyword1: '',
  159. keyword: '',
  160. page: 1,
  161. total: 0,
  162. list: [],
  163. detail: {}
  164. }
  165. },
  166. onLoad(option) {
  167. this.id = option.id
  168. this.getdata()
  169. this.getlist()
  170. this.getconfig()
  171. },
  172. methods: {
  173. confirm1() {
  174. this.showxinzi = false,
  175. this.showcity = false
  176. },
  177. return1() {
  178. uni.navigateBack()
  179. },
  180. toinfo(item) {
  181. uni.navigateTo({
  182. url: "/pagesB/details?id=" + item.id
  183. })
  184. },
  185. openlocation() {
  186. uni.openLocation({
  187. longitude: Number(this.detail.lng),
  188. latitude: Number(this.detail.lat)
  189. })
  190. },
  191. getdata() {
  192. companydetail({
  193. id: this.id
  194. }).then((res) => {
  195. this.detail = res.data
  196. })
  197. },
  198. chongzhi() {
  199. this.keyword1 = ''
  200. this.showsearch = false
  201. this.tosearch()
  202. },
  203. opensearch() {
  204. if (this.showzhiwei) {
  205. this.showsearch = true
  206. } else {
  207. this.showzhiwei = true
  208. }
  209. },
  210. changexinzi(e) {
  211. if (e[0].value > e[1].value) {
  212. this.xinzi.min = e[1].value
  213. this.xinzi.max = e[0].value
  214. this.xinzi.name = e[1].value + "-" + e[0].label
  215. } else {
  216. this.xinzi.min = e[0].value
  217. this.xinzi.max = e[1].value
  218. this.xinzi.name = e[0].value + "-" + e[1].label
  219. }
  220. this.tosearch()
  221. },
  222. changeshaixuan(type, index) {
  223. if (type == 1) {
  224. this.zhiwei = index
  225. }
  226. if (type == 2) {
  227. this.jingyan = index
  228. }
  229. this.showshaixuan = 0
  230. this.tosearch()
  231. },
  232. changecity(e) {
  233. this.city.id = e[1].value
  234. this.city.name = e[1].label
  235. this.tosearch()
  236. },
  237. closeshaixuan() {
  238. this.showzhiwei = false;
  239. this.showsearch = false
  240. this.showshaixuan1 = false
  241. },
  242. openshaixuan(type) {
  243. if (!this.showzhiwei) {
  244. this.showzhiwei = true
  245. return
  246. }
  247. if (this.showshaixuan == type) {
  248. this.showshaixuan = 0
  249. } else {
  250. this.showshaixuan = type
  251. }
  252. if (type == 3) {
  253. this.showcity = true
  254. }
  255. if (type == 4) {
  256. this.showxinzi = true
  257. }
  258. },
  259. tosearch(type) {
  260. if (type == 1) {
  261. this.keyword = this.keyword1
  262. }
  263. this.page = 1
  264. this.total = 0
  265. this.list = []
  266. this.getlist()
  267. },
  268. openzhiwei() {
  269. if (this.showzhiwei) {
  270. this.showzhiwei = false
  271. this.showsearch = false
  272. } else {
  273. this.showzhiwei = true
  274. }
  275. },
  276. getlist() {
  277. getjoblist({
  278. id: this.id,
  279. group_id: 3,
  280. category_job_id: this.zhiwei > 0 ? this.zhiweilist[this.zhiwei].id : '',
  281. city_id: this.city.id,
  282. experience_id: this.jingyan == -1 ? '' : this.jingyanlist[this.jingyan].id,
  283. salary_min: this.xinzi.min,
  284. salary_max: this.xinzi.max
  285. }).then(res => {
  286. this.total = res.data.length
  287. this.list = res.data
  288. })
  289. },
  290. getconfig() {
  291. jobdata({
  292. id: this.id
  293. }).then(res => {
  294. this.zhiweilist = res.data
  295. })
  296. getexperience().then(res => {
  297. this.jingyanlist = res.data
  298. })
  299. getareacity().then(res => {
  300. this.citylist = res.data
  301. })
  302. var xinzilist = []
  303. for (var i = 1; i <= 100; i++) {
  304. xinzilist.push({
  305. label: `${i}K`,
  306. value: i
  307. })
  308. }
  309. this.xinzilist.push(xinzilist)
  310. this.xinzilist.push(xinzilist)
  311. }
  312. }
  313. }
  314. </script>
  315. <style lang="scss">
  316. page {
  317. background-color: #F3F3F3;
  318. }
  319. .gongsi-info {
  320. position: relative;
  321. z-index: 1;
  322. .zhiwei-list {
  323. min-height: 1rpx;
  324. position: relative;
  325. .zhiwei-shaixuan {
  326. position: absolute;
  327. top: 0;
  328. left: 0;
  329. z-index: 1;
  330. background-color: #fff;
  331. width: 750rpx;
  332. height: 100%;
  333. padding: 16rpx 0;
  334. box-sizing: border-box;
  335. .shaixuan1-item {
  336. padding: 16rpx 66rpx;
  337. font-size: 28rpx;
  338. font-family: PingFangSC-Regular, PingFang SC;
  339. font-weight: 400;
  340. color: #444444;
  341. }
  342. .shaixuan1 {
  343. font-size: 28rpx;
  344. font-family: PingFangSC-Medium, PingFang SC;
  345. font-weight: 500;
  346. color: #0C66C2;
  347. }
  348. }
  349. .zhiwei-scroll {
  350. height: 100%;
  351. .zhiwei-item {
  352. // width: 702rpx;
  353. background: #FFFFFF;
  354. border-radius: 20rpx;
  355. margin: 20rpx auto;
  356. padding: 0 20rpx 24rpx 20rpx;
  357. .item-down {
  358. text:first-child {
  359. font-size: 24rpx;
  360. font-family: SFPro-Regular, SFPro;
  361. font-weight: 400;
  362. color: #666666;
  363. }
  364. text:last-child {
  365. font-size: 24rpx;
  366. font-family: PingFangSC-Regular, PingFang SC;
  367. font-weight: 400;
  368. color: #979797;
  369. }
  370. }
  371. .item-label {
  372. margin-bottom: 24rpx;
  373. text {
  374. line-height: 46rpx;
  375. background: #F3F3F3;
  376. border-radius: 4rpx;
  377. padding: 0 14rpx;
  378. font-size: 24rpx;
  379. font-family: PingFangSC-Regular, PingFang SC;
  380. font-weight: 400;
  381. color: #5F5F5F;
  382. margin-right: 12rpx;
  383. }
  384. }
  385. .item-top {
  386. padding: 24rpx 0 20rpx 0;
  387. .text1 {
  388. font-size: 32rpx;
  389. font-family: PingFangSC-Medium, PingFang SC;
  390. font-weight: 500;
  391. color: #222222;
  392. }
  393. .text2 {
  394. margin: 0 16rpx;
  395. line-height: 32rpx;
  396. background: #E6EFF8;
  397. border-radius: 6rpx;
  398. padding: 0 4rpx;
  399. font-size: 20rpx;
  400. font-family: SFPro-Regular, SFPro;
  401. font-weight: 400;
  402. color: #0C66C2;
  403. }
  404. .text3 {
  405. text-align: right;
  406. font-size: 32rpx;
  407. font-family: JDZhengHT-Regular, JDZhengHT;
  408. font-weight: 400;
  409. color: #0C66C2;
  410. }
  411. }
  412. }
  413. }
  414. }
  415. .gongsi-zhiwei {
  416. position: fixed;
  417. left: 0;
  418. bottom: 0;
  419. width: 750rpx;
  420. height: 90vh;
  421. background: #F3F3F3;
  422. box-shadow: 0rpx -8rpx 48rpx 0rpx rgba(0, 0, 0, 0.2);
  423. border-radius: 28rpx 28rpx 0rpx 0rpx;
  424. z-index: 999;
  425. transition: all 0.3s;
  426. border-radius: 28rpx 28rpx 0 0;
  427. overflow: hidden;
  428. .zhiwei-header {
  429. border-bottom: 2rpx solid #F3F3F3;
  430. background-color: #fff;
  431. padding: 0 32rpx;
  432. .header-shaixuan {
  433. padding-bottom: 28rpx;
  434. .shaixuan-item {
  435. width: 150rpx;
  436. height: 60rpx;
  437. background: #F3F3F3;
  438. border-radius: 6rpx;
  439. .text {
  440. font-size: 26rpx;
  441. font-family: PingFangSC-Regular, PingFang SC;
  442. font-weight: 400;
  443. color: #333333;
  444. margin-right: 16rpx;
  445. max-width: 80rpx;
  446. }
  447. }
  448. .shaixuanItemActive {
  449. background-color: #E6EFF8;
  450. color: #0C66C2;
  451. .text {
  452. color: #0C66C2;
  453. }
  454. }
  455. }
  456. .header-top {
  457. padding: 32rpx 0;
  458. .text1 {
  459. font-size: 40rpx;
  460. font-family: PingFangSC-Medium, PingFang SC;
  461. font-weight: 500;
  462. color: #222222;
  463. }
  464. }
  465. }
  466. }
  467. .gongsi-text {
  468. // width: 702rpx;
  469. background: #FFFFFF;
  470. border-radius: 16rpx;
  471. padding: 0 20rpx 24rpx 20rpx;
  472. margin: 20rpx auto;
  473. .text-body {
  474. font-size: 28rpx;
  475. font-family: PingFangSC-Regular, PingFang SC;
  476. font-weight: 400;
  477. color: #555555;
  478. }
  479. .text-title {
  480. font-size: 32rpx;
  481. font-family: PingFangSC-Medium, PingFang SC;
  482. font-weight: 500;
  483. color: #222222;
  484. padding: 24rpx 0;
  485. }
  486. }
  487. .gongsi-address {
  488. // width: 702rpx;
  489. background: #FFFFFF;
  490. border-radius: 16rpx;
  491. margin: 20rpx auto;
  492. padding: 0 20rpx 24rpx 20rpx;
  493. .address-down {
  494. text {
  495. flex: 1;
  496. margin-right: 20rpx;
  497. font-size: 28rpx;
  498. font-family: PingFangSC-Regular, PingFang SC;
  499. font-weight: 400;
  500. color: #666666;
  501. }
  502. image {
  503. width: 70rpx;
  504. height: 70rpx;
  505. }
  506. }
  507. .address-title {
  508. padding: 24rpx 0;
  509. font-size: 32rpx;
  510. font-family: PingFangSC-Medium, PingFang SC;
  511. font-weight: 500;
  512. color: #222222;
  513. }
  514. }
  515. .gongsi-header {
  516. // width: 702rpx;
  517. background: #FFFFFF;
  518. border-radius: 20rpx;
  519. margin: 20rpx auto;
  520. padding: 0 24rpx;
  521. .gongso-label {
  522. text {
  523. font-size: 24rpx;
  524. font-family: PingFangSC-Regular, PingFang SC;
  525. font-weight: 400;
  526. color: #444444;
  527. padding: 0 12rpx;
  528. line-height: 50rpx;
  529. background: #F3F3F3;
  530. border-radius: 6rpx;
  531. margin-right: 16rpx;
  532. margin-bottom: 20rpx;
  533. }
  534. }
  535. .header-top {
  536. padding: 28rpx 0;
  537. .top-right {
  538. text:first-child {
  539. font-size: 40rpx;
  540. font-family: PingFangSC-Medium, PingFang SC;
  541. font-weight: 500;
  542. color: #222222;
  543. margin-bottom: 12rpx;
  544. }
  545. text:nth-child(2) {
  546. font-size: 26rpx;
  547. font-family: SFPro-Regular, SFPro;
  548. font-weight: 400;
  549. color: #555555;
  550. }
  551. }
  552. .gongsi-logo {
  553. width: 120rpx;
  554. height: 120rpx;
  555. border-radius: 12rpx;
  556. border: 2rpx solid rgba(151, 151, 151, 0.7);
  557. margin-right: 20rpx;
  558. }
  559. }
  560. }
  561. .gongsi-bg {
  562. position: absolute;
  563. top: 0;
  564. left: 0;
  565. width: 750rpx;
  566. height: 396rpx;
  567. z-index: -1;
  568. }
  569. }
  570. </style>