jobSearchDetails.vue 13 KB

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