jobSearchDetails.vue 15 KB

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