jobSearchDetails.vue 16 KB

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