jobSearchDetails.vue 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750
  1. <template>
  2. <view>
  3. <u-navbar :back-text="showTitle" :share="share" back-icon-size="28" back-icon-color="#ffffff"
  4. :background="{backgroundColor: '#2795FD',}" :back-text-style="{color: '#ffffff'}"></u-navbar>
  5. <view class="content">
  6. <!-- 职位 -->
  7. <view class="position">
  8. {{info.intendedIndustriesN}}
  9. </view>
  10. <!-- 薪水 -->
  11. <view class="saraly">
  12. {{info.hopeSalary}}<text>{{getUnit(info)}}</text>
  13. </view>
  14. <!-- 发布日期和浏览量 -->
  15. <view class="date-views">
  16. <view class="date">
  17. 更新时间:{{getTime(info)}}
  18. </view>
  19. <view class="views">
  20. 浏览量:{{info.browseNumber}}
  21. </view>
  22. </view>
  23. </view>
  24. <view class="content">
  25. <view class="job-information">
  26. 求职信息
  27. </view>
  28. <!-- 意向岗位 -->
  29. <view class="intention">
  30. <view class="title">
  31. 意向岗位:
  32. </view>
  33. <view class="details">
  34. {{info.intendedPosition}}
  35. </view>
  36. </view>
  37. <!-- 服务描述 -->
  38. <view class="describe">
  39. 服务描述
  40. </view>
  41. <view class="describe-details">
  42. {{info.serviceDesc}}
  43. </view>
  44. </view>
  45. <!-- 幻灯片 -->
  46. <view class="swiper" v-if="bannerlist.length" >
  47. <u-swiper height="100" mode="none" img-mode="scaleToFill"
  48. :list="bannerlist" @click="clickBanner" ></u-swiper>
  49. </view>
  50. <view class="content">
  51. <!-- 联系方式 -->
  52. <view class="contact-information">
  53. <view class="title">
  54. 联系方式
  55. </view>
  56. <view class="details">
  57. <!-- 照片 -->
  58. <view class="photo">
  59. <u-avatar :src="personInfo.photo" :gender="personInfo.gender"></u-avatar>
  60. </view>
  61. <view class="linkman-infos">
  62. <!-- 姓名电话 -->
  63. <view class="name-tel">
  64. <view class="name">
  65. {{getPersonName(personInfo.realName,personInfo)}}
  66. </view>
  67. <view class="tel" v-if="ck()">
  68. {{personInfo.phone}}
  69. </view>
  70. <view class="tel" style="font-size: 24rpx;" v-else >
  71. **** 企业认证后查看电话
  72. </view>
  73. </view>
  74. <!-- 标签 -->
  75. <view class="tags">
  76. <view class="tag-item" style="background-color: red;color:#fff" v-if="personInfo.intention==2" >
  77. 已入职/勿扰
  78. </view>
  79. <view class="tag-item">
  80. {{personInfo.gender==1?'男':'女'}}
  81. </view>
  82. <view class="tag-item">
  83. {{personInfo.age}}岁
  84. </view>
  85. <view class="tag-item" v-if="info.educationN">
  86. {{info.educationN}}
  87. </view>
  88. </view>
  89. <view style="margin-top: 18rpx; color: #777777;">
  90. 现居住地:
  91. <span class="tel" v-if="ck()">
  92. {{info.address?info.address:'未填写'}}
  93. </span>
  94. <span class="tel" style="font-size: 24rpx;" v-else >
  95. **** 企业认证后查看
  96. </span>
  97. </view>
  98. </view>
  99. </view>
  100. </view>
  101. </view>
  102. <!-- 底部按钮 -->
  103. <view class="bottom">
  104. <!-- 分享 -->
  105. <view >
  106. <button class="share" open-type="share">
  107. <view class="icon">
  108. <img src="@/assets/img/riFill-share-circle-fill@1x.png" alt="">
  109. </view>
  110. <view class="text">
  111. 分享
  112. </view>
  113. </button>
  114. </view>
  115. <view class="btn">
  116. <button class="dialing" @click="dialingBtn" >一键拨号</button>
  117. <button class="invite" :class="{
  118. isJoin:isJoin
  119. }" @click="isJoinBtn"
  120. >{{isJoin?'已邀请':'立即邀请'}}</button>
  121. </view>
  122. <u-modal v-model="showPhone" @confirm="confirmPhone" :confirm-text="confirmText" confirm-color="#606266"
  123. :show-cancel-button="true" ref="uModal" :asyncClose="true" title="联系电话" :content="personInfo.phone"
  124. :content-style="{fontSize: '24px',color: '#101010'}"></u-modal>
  125. <!-- 筛选框 -->
  126. <u-popup v-model="popupShow" mode="bottom" border-radius="20" :closeable="true">
  127. <view class="popup-content">
  128. <view class="headline">
  129. 选择岗位
  130. </view>
  131. <!-- 工作经验 -->
  132. <view class="work-experience">
  133. <!-- 选项 -->
  134. <view class="options">
  135. <view :class="{item,checked:workChecked==index}" v-for="(item,index) in workList" :key="index"
  136. @click="workChecked=index">
  137. {{item.positionName}}-{{item.salary}}{{getUnit(item)}}
  138. </view>
  139. </view>
  140. </view>
  141. <view class="button">
  142. <button class="reset" @click="popupShow=false">关闭</button>
  143. <button class="confirm" @click="isJoinMethodBtn()" >发出邀请</button>
  144. </view>
  145. </view>
  146. </u-popup>
  147. </view>
  148. </view>
  149. </template>
  150. <script>
  151. import * as API from '@/apis/pagejs/packages.js'
  152. import * as API_weixin from '@/apis/weixin.js'
  153. export default {
  154. data() {
  155. return {
  156. id: "",
  157. workList:[],
  158. popupShow:false,
  159. showPhone: false,
  160. confirmText: '拨打电话',
  161. content: "",
  162. isJoin: false,
  163. share: 0,
  164. personInfo:{},
  165. readId:"",
  166. isRead:0,
  167. workChecked:-1,
  168. bannerlist: [
  169. ],
  170. info: {
  171. "id": "",
  172. "personId": "",
  173. "photo": "",
  174. "serviceDesc": "",
  175. "intendedIndustries": "",
  176. "intendedPosition": "",
  177. "hopeSalary": '',
  178. "method": "",
  179. "workExperience": "",
  180. "education": "",
  181. "status": "",
  182. "createBy": "",
  183. "createTime": "",
  184. "updateBy": "",
  185. "updateTime": "",
  186. "delFlag": false,
  187. "personName": null,
  188. "intendedIndustriesN": null,
  189. "methodN": null,
  190. "workExperienceN": null,
  191. "educationN": null
  192. }
  193. }
  194. },
  195. onShareTimeline(){
  196. return {
  197. title: this.showTitle,
  198. path: '/pages/packages/choreInformation/jobSearchDetails?shareMP=1&id=' + this.id
  199. }
  200. },
  201. onShareAppMessage(res) {
  202. if (res.from === 'button') { // 来自页面内分享按钮
  203. //.log(res.target)
  204. }
  205. return {
  206. title: this.showTitle,
  207. path: '/pages/packages/choreInformation/jobSearchDetails?shareMP=1&id=' + this.id
  208. }
  209. },
  210. computed: {
  211. showTitle() {
  212. if (this.info.id) {
  213. return (this.personInfo.intention==2?'勿扰-':'')+this.getPersonName(this.personInfo.realName,this.personInfo)+"-"+this.info.hopeSalary+this.getUnit(this.info)
  214. }
  215. return ''
  216. }
  217. },
  218. onLoad(op) {
  219. //uni.showShareMenu()
  220. this.id = op.id
  221. if (op.shareMP) {
  222. this.share = op.shareMP
  223. }
  224. if(op.isread){
  225. this.isRead=op.isread
  226. this.readId=op.readid
  227. }
  228. this.getInfo()
  229. this.getNewsInfo()
  230. },
  231. methods: {
  232. getNewsInfo(){
  233. API_weixin.bannerList({
  234. classify:3,
  235. }).then((res) => {
  236. uni.hideLoading();
  237. //this.newsList = res.data.data;
  238. this.bannerlist =res.data.data.map(item=>{
  239. item.image=item.picUrl
  240. return item
  241. })
  242. }).catch(error => {
  243. uni.showToast({icon: 'none',
  244. title: error,
  245. icon: "none"
  246. })
  247. })
  248. },
  249. customBack(){
  250. uni.redirectTo({
  251. url:"/pages/main/index/index"
  252. })
  253. },
  254. ck(){
  255. var user=this.carhelp.getPersonInfo();
  256. var enterpriseInfo=this.carhelp.getPersonInfoPlus().enterpriseInfo;
  257. if(user&&enterpriseInfo&&enterpriseInfo.status==1){
  258. return true
  259. }else{
  260. return false
  261. }
  262. },
  263. dialingBtn(){
  264. if(this.ck()){
  265. if(this.personInfo.phone){
  266. this.showPhone=true
  267. }else{
  268. uni.showToast({
  269. icon: 'none',
  270. title:"该用户未预留手机号"
  271. })
  272. }
  273. }else{
  274. uni.showToast({
  275. title:"企业认证后可以拨打电话",
  276. icon:"none"
  277. })
  278. }
  279. },
  280. confirmPhone() {
  281. this.showPhone = false;
  282. uni.makePhoneCall({
  283. phoneNumber: this.personInfo.phone
  284. });
  285. },
  286. isJoinMethodBtn() {
  287. if(this.workChecked==-1){
  288. uni.showToast({icon: 'none',
  289. title:"请选择邀请岗位"
  290. })
  291. return
  292. }
  293. var jobId =this.workList[this.workChecked].id
  294. uni.showLoading({
  295. title: "加载中",
  296. mask: true,
  297. })
  298. API.inviteJob({
  299. recruitId:jobId,
  300. jobId: this.id,
  301. }).then((res) => {
  302. this.isJoin = true;
  303. this.popupShow=false
  304. //this.info=res.data.recruitInformationInfo;
  305. uni.showModal({
  306. title: '提示',
  307. content: '邀请成功',
  308. showCancel: false,
  309. success: function(res) {
  310. if (res.confirm) {
  311. //uni.navigateBack()
  312. } else if (res.cancel) {
  313. //.log('用户点击取消');
  314. }
  315. }
  316. });
  317. uni.hideLoading();
  318. }).catch(error => {
  319. uni.showToast({icon: 'none',
  320. title: error,
  321. icon: "none"
  322. })
  323. })
  324. },
  325. popupShowOpen(){
  326. if(this.workList.length==0){
  327. uni.showLoading({
  328. title: "加载中",
  329. mask: true,
  330. })
  331. API.myEmployment({
  332. pageIndex: 1,
  333. pageSize: 200,
  334. isOnline:1,
  335. status: 1
  336. }).then((res) => {
  337. uni.hideLoading();
  338. if(res.data.data.length){
  339. this.workList=res.data.data
  340. this.popupShow=true
  341. }else{
  342. uni.showModal({
  343. title: '提示',
  344. content: '发布招工信息后可以邀请人员',
  345. confirmText:"前往发布",
  346. showCancel: true,
  347. success: function(res) {
  348. if (res.confirm) {
  349. uni.navigateTo({
  350. url:'/pages/tab/issue/issue'
  351. })
  352. } else if (res.cancel) {
  353. //.log('用户点击取消');
  354. }
  355. }
  356. });
  357. }
  358. }).catch(error => {
  359. uni.showToast({icon: 'none',
  360. title: error
  361. })
  362. //this.getPhone()
  363. })
  364. }else{
  365. this.popupShow=true
  366. }
  367. },
  368. isJoinBtn() {
  369. if (this.isJoin) {
  370. return
  371. }
  372. var user=this.carhelp.getPersonInfo();
  373. var enterpriseInfo=this.carhelp.getPersonInfoPlus().enterpriseInfo;
  374. if (!user) {
  375. uni.showModal({
  376. title: '提示',
  377. content: '登录并企业认证后可以邀请',
  378. confirmText:"前往登录",
  379. showCancel: true,
  380. success: function(res) {
  381. if (res.confirm) {
  382. uni.navigateTo({
  383. url:'/pages/tab/mine/mine'
  384. })
  385. } else if (res.cancel) {
  386. //.log('用户点击取消');
  387. }
  388. }
  389. });
  390. return
  391. }
  392. if (!enterpriseInfo||enterpriseInfo.status!=1) {
  393. uni.showModal({
  394. title: '提示',
  395. content: '企业认证后可以邀请',
  396. confirmText:"企业认证",
  397. showCancel: true,
  398. success: function(res) {
  399. if (res.confirm) {
  400. uni.navigateTo({
  401. url:'/pages/packages/mine/otherServices/authentication'
  402. })
  403. } else if (res.cancel) {
  404. //.log('用户点击取消');
  405. }
  406. }
  407. });
  408. return
  409. }
  410. this.popupShowOpen()
  411. },
  412. getInfo() {
  413. uni.showLoading({
  414. title: "加载中",
  415. mask: true,
  416. })
  417. var obj={
  418. id: this.id,
  419. }
  420. if(this.isRead==1){
  421. obj.isRead=1
  422. obj.rprId=this.readId
  423. }
  424. API.jobHuntDetail(obj).then((res) => {
  425. this.isJoin = res.data.isInvite;
  426. this.info = res.data.jobInformationInfo;
  427. this.personInfo = res.data.personInfo;
  428. uni.hideLoading();
  429. }).catch(error => {
  430. uni.showToast({icon: 'none',
  431. title: error,
  432. icon: "none"
  433. })
  434. })
  435. }
  436. }
  437. }
  438. </script>
  439. <style>
  440. page {
  441. background: #F0F0F2;
  442. padding-bottom: 100px;
  443. }
  444. </style>
  445. <style lang="scss" scoped>
  446. .swiper{
  447. margin: 20rpx;
  448. }
  449. .content{
  450. padding: 32rpx;
  451. background-color: #fff;
  452. margin-bottom: 24rpx;
  453. // 职位
  454. .position{
  455. color: rgba(16, 16, 16, 1);
  456. font-size: 24px;
  457. font-family: 'PingFangSC-medium';
  458. }
  459. // 薪水
  460. .saraly{
  461. margin-top: 16rpx;
  462. color: rgba(255, 61, 0, 1);
  463. font-size: 48rpx;
  464. text{
  465. font-size: 14px;
  466. margin-left: 4rpx;
  467. }
  468. }
  469. // 发布日期和浏览量
  470. .date-views{
  471. display: flex;
  472. justify-content: space-between;
  473. align-items: center;
  474. margin-top: 40rpx;
  475. .date{
  476. color: rgba(119, 119, 119, 1);
  477. font-size: 24rpx;
  478. }
  479. .views{
  480. color: rgba(119, 119, 119, 1);
  481. font-size: 24rpx;
  482. }
  483. }
  484. // 求职信息
  485. .job-information{
  486. color: rgba(16, 16, 16, 1);
  487. font-size: 18px;
  488. font-family: 'PingFangSC-medium';
  489. }
  490. // 意向岗位
  491. .intention{
  492. display: flex;
  493. align-items: center;
  494. margin-top: 24rpx;
  495. .title{
  496. color: rgba(119, 119, 119, 1);
  497. }
  498. .datails{
  499. color: rgba(16, 16, 16, 1);
  500. }
  501. }
  502. // 服务描述
  503. .describe{
  504. font-size: 36rpx;
  505. text-align: left;
  506. font-family: 'PingFangSC-medium';
  507. margin-top: 64rpx;
  508. color: rgba(16, 16, 16, 1);
  509. }
  510. .describe-details{
  511. color: rgba(51, 51, 51, 1);
  512. font-size: 32rpx;
  513. margin-top: 24rpx;
  514. }
  515. // 联系方式
  516. .contact-information{
  517. .title{
  518. color: rgba(16, 16, 16, 1);
  519. font-size: 36rpx;
  520. }
  521. .details{
  522. display: flex;
  523. margin-top: 24rpx;
  524. .photo{
  525. width: 112rpx;
  526. height: 112rpx;
  527. border-radius: 50rpx;
  528. border: 1px solid rgba(255, 255, 255, 1);
  529. overflow: hidden;
  530. img{
  531. width: 100%;
  532. height: 100%;
  533. }
  534. }
  535. .linkman-infos{
  536. margin-left: 24rpx;
  537. // 姓名电话
  538. .name-tel{
  539. display: flex;
  540. align-items: center;
  541. .name{
  542. color: rgba(16, 16, 16, 1);
  543. font-size: 36rpx;
  544. font-family: 'PingFangSC-medium';
  545. }
  546. .tel{
  547. color: rgba(119, 119, 119, 1);
  548. font-size: 36rpx;
  549. margin-left: 16rpx;
  550. }
  551. }
  552. // 标签
  553. .tags{
  554. display: flex;
  555. margin-top: 16rpx;
  556. .tag-item{
  557. line-height: 40rpx;
  558. padding: 0 8rpx;
  559. border-radius: 4px;
  560. background-color: rgba(241, 241, 247, 1);
  561. color: rgba(129, 127, 153, 1);
  562. font-size: 24rpx;
  563. text-align: center;
  564. margin-right: 16rpx;
  565. }
  566. }
  567. }
  568. }
  569. }
  570. }
  571. // 底部按钮
  572. .bottom{
  573. background-color: #fff;
  574. padding: 24rpx 44rpx;
  575. display: flex;
  576. align-items: center;
  577. position: fixed;
  578. bottom: 0;
  579. left: 0;
  580. right: 0;
  581. .share {
  582. background-color: #fff;
  583. }
  584. // 分享
  585. .icon{
  586. width: 48rpx;
  587. height: 48rpx;
  588. img{
  589. width: 100%;
  590. height: 100%;
  591. }
  592. }
  593. .text{
  594. color: rgba(39, 149, 253, 1);
  595. font-size:24rpx;
  596. }
  597. .btn{
  598. display: flex;
  599. margin-left: auto;
  600. .dialing{
  601. width: 240rpx;
  602. height: 88rpx;
  603. line-height: 88rpx;
  604. border-radius: 50px;
  605. background-color: #fff;
  606. color: rgba(39, 149, 253, 1);
  607. font-size: 36rpx;
  608. text-align: center;
  609. border: 1px solid rgba(39, 149, 253, 1);
  610. margin-right: 24rpx;
  611. }
  612. .invite{
  613. width: 280rpx;
  614. height: 88rpx;
  615. line-height: 88rpx;
  616. border-radius: 50px;
  617. background-color: rgba(34, 149, 255, 1);
  618. color: rgba(255, 255, 255, 1);
  619. font-size: 36rpx;
  620. text-align: center;
  621. }
  622. .isJoin{
  623. background-color: #19be6d;
  624. }
  625. }
  626. }
  627. // 筛选框
  628. .popup-content {
  629. padding: 32rpx;
  630. .headline {
  631. color: #101010;
  632. font-size: 40rpx;
  633. text-align: center;
  634. }
  635. // 薪资待遇
  636. .salary-package,
  637. .work-experience {
  638. margin-top: 16rpx;
  639. .title {
  640. font-size: 32rpx;
  641. color: #111111;
  642. }
  643. // 选项
  644. .options {
  645. display: flex;
  646. flex-wrap: wrap;
  647. justify-content: flex-start;
  648. margin-top: 24rpx;
  649. margin-bottom: 94rpx;
  650. .item {
  651. height: 56rpx;
  652. line-height: 56rpx;
  653. min-width: 210rpx;
  654. text-align: center;
  655. margin-bottom: 16rpx;
  656. margin-right: 16rpx;
  657. color: #999999;
  658. background-color: #F3F3F4;
  659. border-radius: 4px;
  660. padding: 0 6rpx;
  661. }
  662. .checked {
  663. background-color: #2795FD;
  664. color: #fff;
  665. }
  666. }
  667. }
  668. .button {
  669. display: flex;
  670. margin-top: 8rpx;
  671. .reset {
  672. color: #999999;
  673. background-color: #F3F3F4;
  674. width: 200rpx;
  675. height: 72rpx;
  676. line-height: 72rpx;
  677. border-radius: 8px;
  678. }
  679. .confirm {
  680. width: 440rpx;
  681. background-color: #2795FD;
  682. color: #fff;
  683. height: 72rpx;
  684. line-height: 72rpx;
  685. border-radius: 8px;
  686. }
  687. }
  688. }
  689. </style>