jobSearchDetails.vue 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749
  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: "荆州经开区共享用工平台",
  198. }
  199. },
  200. onShareAppMessage(res) {
  201. if (res.from === 'button') { // 来自页面内分享按钮
  202. //.log(res.target)
  203. }
  204. return {
  205. title: this.showTitle,
  206. path: '/pages/packages/choreInformation/jobSearchDetails?shareMP=1&id=' + this.id
  207. }
  208. },
  209. computed: {
  210. showTitle() {
  211. if (this.info.id) {
  212. return (this.personInfo.intention==2?'勿扰-':'')+this.getPersonName(this.personInfo.realName,this.personInfo)+"-"+this.info.hopeSalary+this.getUnit(this.info)
  213. }
  214. return ''
  215. }
  216. },
  217. onLoad(op) {
  218. //uni.showShareMenu()
  219. this.id = op.id
  220. if (op.shareMP) {
  221. this.share = op.shareMP
  222. }
  223. if(op.isread){
  224. this.isRead=op.isread
  225. this.readId=op.readid
  226. }
  227. this.getInfo()
  228. this.getNewsInfo()
  229. },
  230. methods: {
  231. getNewsInfo(){
  232. API_weixin.bannerList({
  233. classify:3,
  234. }).then((res) => {
  235. uni.hideLoading();
  236. //this.newsList = res.data.data;
  237. this.bannerlist =res.data.data.map(item=>{
  238. item.image=item.picUrl
  239. return item
  240. })
  241. }).catch(error => {
  242. uni.showToast({icon: 'none',
  243. title: error,
  244. icon: "none"
  245. })
  246. })
  247. },
  248. customBack(){
  249. uni.redirectTo({
  250. url:"/pages/main/index/index"
  251. })
  252. },
  253. ck(){
  254. var user=this.carhelp.getPersonInfo();
  255. var enterpriseInfo=this.carhelp.getPersonInfoPlus().enterpriseInfo;
  256. if(user&&enterpriseInfo&&enterpriseInfo.status==1){
  257. return true
  258. }else{
  259. return false
  260. }
  261. },
  262. dialingBtn(){
  263. if(this.ck()){
  264. if(this.personInfo.phone){
  265. this.showPhone=true
  266. }else{
  267. uni.showToast({
  268. icon: 'none',
  269. title:"该用户未预留手机号"
  270. })
  271. }
  272. }else{
  273. uni.showToast({
  274. title:"企业认证后可以拨打电话",
  275. icon:"none"
  276. })
  277. }
  278. },
  279. confirmPhone() {
  280. this.showPhone = false;
  281. uni.makePhoneCall({
  282. phoneNumber: this.personInfo.phone
  283. });
  284. },
  285. isJoinMethodBtn() {
  286. if(this.workChecked==-1){
  287. uni.showToast({icon: 'none',
  288. title:"请选择邀请岗位"
  289. })
  290. return
  291. }
  292. var jobId =this.workList[this.workChecked].id
  293. uni.showLoading({
  294. title: "加载中",
  295. mask: true,
  296. })
  297. API.inviteJob({
  298. recruitId:jobId,
  299. jobId: this.id,
  300. }).then((res) => {
  301. this.isJoin = true;
  302. this.popupShow=false
  303. //this.info=res.data.recruitInformationInfo;
  304. uni.showModal({
  305. title: '提示',
  306. content: '邀请成功',
  307. showCancel: false,
  308. success: function(res) {
  309. if (res.confirm) {
  310. //uni.navigateBack()
  311. } else if (res.cancel) {
  312. //.log('用户点击取消');
  313. }
  314. }
  315. });
  316. uni.hideLoading();
  317. }).catch(error => {
  318. uni.showToast({icon: 'none',
  319. title: error,
  320. icon: "none"
  321. })
  322. })
  323. },
  324. popupShowOpen(){
  325. if(this.workList.length==0){
  326. uni.showLoading({
  327. title: "加载中",
  328. mask: true,
  329. })
  330. API.myEmployment({
  331. pageIndex: 1,
  332. pageSize: 200,
  333. isOnline:1,
  334. status: 1
  335. }).then((res) => {
  336. uni.hideLoading();
  337. if(res.data.data.length){
  338. this.workList=res.data.data
  339. this.popupShow=true
  340. }else{
  341. uni.showModal({
  342. title: '提示',
  343. content: '发布招工信息后可以邀请人员',
  344. confirmText:"前往发布",
  345. showCancel: true,
  346. success: function(res) {
  347. if (res.confirm) {
  348. uni.navigateTo({
  349. url:'/pages/tab/issue/issue'
  350. })
  351. } else if (res.cancel) {
  352. //.log('用户点击取消');
  353. }
  354. }
  355. });
  356. }
  357. }).catch(error => {
  358. uni.showToast({icon: 'none',
  359. title: error
  360. })
  361. //this.getPhone()
  362. })
  363. }else{
  364. this.popupShow=true
  365. }
  366. },
  367. isJoinBtn() {
  368. if (this.isJoin) {
  369. return
  370. }
  371. var user=this.carhelp.getPersonInfo();
  372. var enterpriseInfo=this.carhelp.getPersonInfoPlus().enterpriseInfo;
  373. if (!user) {
  374. uni.showModal({
  375. title: '提示',
  376. content: '登录并企业认证后可以邀请',
  377. confirmText:"前往登录",
  378. showCancel: true,
  379. success: function(res) {
  380. if (res.confirm) {
  381. uni.navigateTo({
  382. url:'/pages/tab/mine/mine'
  383. })
  384. } else if (res.cancel) {
  385. //.log('用户点击取消');
  386. }
  387. }
  388. });
  389. return
  390. }
  391. if (!enterpriseInfo||enterpriseInfo.status!=1) {
  392. uni.showModal({
  393. title: '提示',
  394. content: '企业认证后可以邀请',
  395. confirmText:"企业认证",
  396. showCancel: true,
  397. success: function(res) {
  398. if (res.confirm) {
  399. uni.navigateTo({
  400. url:'/pages/packages/mine/otherServices/authentication'
  401. })
  402. } else if (res.cancel) {
  403. //.log('用户点击取消');
  404. }
  405. }
  406. });
  407. return
  408. }
  409. this.popupShowOpen()
  410. },
  411. getInfo() {
  412. uni.showLoading({
  413. title: "加载中",
  414. mask: true,
  415. })
  416. var obj={
  417. id: this.id,
  418. }
  419. if(this.isRead==1){
  420. obj.isRead=1
  421. obj.rprId=this.readId
  422. }
  423. API.jobHuntDetail(obj).then((res) => {
  424. this.isJoin = res.data.isInvite;
  425. this.info = res.data.jobInformationInfo;
  426. this.personInfo = res.data.personInfo;
  427. uni.hideLoading();
  428. }).catch(error => {
  429. uni.showToast({icon: 'none',
  430. title: error,
  431. icon: "none"
  432. })
  433. })
  434. }
  435. }
  436. }
  437. </script>
  438. <style>
  439. page {
  440. background: #F0F0F2;
  441. padding-bottom: 100px;
  442. }
  443. </style>
  444. <style lang="scss" scoped>
  445. .swiper{
  446. margin: 20rpx;
  447. }
  448. .content{
  449. padding: 32rpx;
  450. background-color: #fff;
  451. margin-bottom: 24rpx;
  452. // 职位
  453. .position{
  454. color: rgba(16, 16, 16, 1);
  455. font-size: 24px;
  456. font-family: 'PingFangSC-medium';
  457. }
  458. // 薪水
  459. .saraly{
  460. margin-top: 16rpx;
  461. color: rgba(255, 61, 0, 1);
  462. font-size: 48rpx;
  463. text{
  464. font-size: 14px;
  465. margin-left: 4rpx;
  466. }
  467. }
  468. // 发布日期和浏览量
  469. .date-views{
  470. display: flex;
  471. justify-content: space-between;
  472. align-items: center;
  473. margin-top: 40rpx;
  474. .date{
  475. color: rgba(119, 119, 119, 1);
  476. font-size: 24rpx;
  477. }
  478. .views{
  479. color: rgba(119, 119, 119, 1);
  480. font-size: 24rpx;
  481. }
  482. }
  483. // 求职信息
  484. .job-information{
  485. color: rgba(16, 16, 16, 1);
  486. font-size: 18px;
  487. font-family: 'PingFangSC-medium';
  488. }
  489. // 意向岗位
  490. .intention{
  491. display: flex;
  492. align-items: center;
  493. margin-top: 24rpx;
  494. .title{
  495. color: rgba(119, 119, 119, 1);
  496. }
  497. .datails{
  498. color: rgba(16, 16, 16, 1);
  499. }
  500. }
  501. // 服务描述
  502. .describe{
  503. font-size: 36rpx;
  504. text-align: left;
  505. font-family: 'PingFangSC-medium';
  506. margin-top: 64rpx;
  507. color: rgba(16, 16, 16, 1);
  508. }
  509. .describe-details{
  510. color: rgba(51, 51, 51, 1);
  511. font-size: 32rpx;
  512. margin-top: 24rpx;
  513. }
  514. // 联系方式
  515. .contact-information{
  516. .title{
  517. color: rgba(16, 16, 16, 1);
  518. font-size: 36rpx;
  519. }
  520. .details{
  521. display: flex;
  522. margin-top: 24rpx;
  523. .photo{
  524. width: 112rpx;
  525. height: 112rpx;
  526. border-radius: 50rpx;
  527. border: 1px solid rgba(255, 255, 255, 1);
  528. overflow: hidden;
  529. img{
  530. width: 100%;
  531. height: 100%;
  532. }
  533. }
  534. .linkman-infos{
  535. margin-left: 24rpx;
  536. // 姓名电话
  537. .name-tel{
  538. display: flex;
  539. align-items: center;
  540. .name{
  541. color: rgba(16, 16, 16, 1);
  542. font-size: 36rpx;
  543. font-family: 'PingFangSC-medium';
  544. }
  545. .tel{
  546. color: rgba(119, 119, 119, 1);
  547. font-size: 36rpx;
  548. margin-left: 16rpx;
  549. }
  550. }
  551. // 标签
  552. .tags{
  553. display: flex;
  554. margin-top: 16rpx;
  555. .tag-item{
  556. line-height: 40rpx;
  557. padding: 0 8rpx;
  558. border-radius: 4px;
  559. background-color: rgba(241, 241, 247, 1);
  560. color: rgba(129, 127, 153, 1);
  561. font-size: 24rpx;
  562. text-align: center;
  563. margin-right: 16rpx;
  564. }
  565. }
  566. }
  567. }
  568. }
  569. }
  570. // 底部按钮
  571. .bottom{
  572. background-color: #fff;
  573. padding: 24rpx 44rpx;
  574. display: flex;
  575. align-items: center;
  576. position: fixed;
  577. bottom: 0;
  578. left: 0;
  579. right: 0;
  580. .share {
  581. background-color: #fff;
  582. }
  583. // 分享
  584. .icon{
  585. width: 48rpx;
  586. height: 48rpx;
  587. img{
  588. width: 100%;
  589. height: 100%;
  590. }
  591. }
  592. .text{
  593. color: rgba(39, 149, 253, 1);
  594. font-size:24rpx;
  595. }
  596. .btn{
  597. display: flex;
  598. margin-left: auto;
  599. .dialing{
  600. width: 240rpx;
  601. height: 88rpx;
  602. line-height: 88rpx;
  603. border-radius: 50px;
  604. background-color: #fff;
  605. color: rgba(39, 149, 253, 1);
  606. font-size: 36rpx;
  607. text-align: center;
  608. border: 1px solid rgba(39, 149, 253, 1);
  609. margin-right: 24rpx;
  610. }
  611. .invite{
  612. width: 280rpx;
  613. height: 88rpx;
  614. line-height: 88rpx;
  615. border-radius: 50px;
  616. background-color: rgba(34, 149, 255, 1);
  617. color: rgba(255, 255, 255, 1);
  618. font-size: 36rpx;
  619. text-align: center;
  620. }
  621. .isJoin{
  622. background-color: #19be6d;
  623. }
  624. }
  625. }
  626. // 筛选框
  627. .popup-content {
  628. padding: 32rpx;
  629. .headline {
  630. color: #101010;
  631. font-size: 40rpx;
  632. text-align: center;
  633. }
  634. // 薪资待遇
  635. .salary-package,
  636. .work-experience {
  637. margin-top: 16rpx;
  638. .title {
  639. font-size: 32rpx;
  640. color: #111111;
  641. }
  642. // 选项
  643. .options {
  644. display: flex;
  645. flex-wrap: wrap;
  646. justify-content: flex-start;
  647. margin-top: 24rpx;
  648. margin-bottom: 94rpx;
  649. .item {
  650. height: 56rpx;
  651. line-height: 56rpx;
  652. min-width: 210rpx;
  653. text-align: center;
  654. margin-bottom: 16rpx;
  655. margin-right: 16rpx;
  656. color: #999999;
  657. background-color: #F3F3F4;
  658. border-radius: 4px;
  659. padding: 0 6rpx;
  660. }
  661. .checked {
  662. background-color: #2795FD;
  663. color: #fff;
  664. }
  665. }
  666. }
  667. .button {
  668. display: flex;
  669. margin-top: 8rpx;
  670. .reset {
  671. color: #999999;
  672. background-color: #F3F3F4;
  673. width: 200rpx;
  674. height: 72rpx;
  675. line-height: 72rpx;
  676. border-radius: 8px;
  677. }
  678. .confirm {
  679. width: 440rpx;
  680. background-color: #2795FD;
  681. color: #fff;
  682. height: 72rpx;
  683. line-height: 72rpx;
  684. border-radius: 8px;
  685. }
  686. }
  687. }
  688. </style>