jobSearchDetails.vue 15 KB

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