general-info.vue 15 KB

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