orderDet.vue 28 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087
  1. <template>
  2. <view style="padding-bottom: 80upx;">
  3. <view class="boxs flex align-center justify-between">
  4. <view>
  5. <view class="text-xl text-bold" v-show="order.resumesName">{{order.resumesName}}</view>
  6. <view class="flex align-center margin-top-xs flex-wrap" style="color: #141414;">
  7. <text v-show="order.resumesSex">{{order.resumesSex==1?'男':'女'}}</text>
  8. <text v-show="order.resumesSex" class="margin-lr-sm"
  9. style="width: 1rpx;height: 25rpx;background: #CCCCCC;"></text>
  10. <text v-show="order.resumesAge">{{order.resumesAge}}岁</text>
  11. <text v-show="order.resumesAge" class="margin-lr-sm"
  12. style="width: 1rpx;height: 25rpx;background: #CCCCCC;">
  13. </text>
  14. <text v-show="order.resumesWorkExperience">{{order.resumesWorkExperience}}</text>
  15. <text v-show="order.resumesWorkExperience" class="margin-lr-sm"
  16. style="width: 1rpx;height: 25rpx;background: #CCCCCC;">
  17. </text>
  18. <text v-show="order.resumesEducation">{{order.resumesEducation}}</text>
  19. <text v-show="order.resumesEducation" class="margin-lr-sm"
  20. style="width: 1rpx;height: 25rpx;background: #CCCCCC;">
  21. </text>
  22. <text v-show="order.resumesMarriage">{{order.resumesMarriage}}</text>
  23. </view>
  24. </view>
  25. <view>
  26. <image :src="order.avatar?order.avatar:'../../../static/logo.png'"
  27. style="width:95upx;height:95upx;border-radius:54upx;"></image>
  28. </view>
  29. </view>
  30. <view class="yx flex justify-center">
  31. <view class="yx-box">
  32. <view class="yx-box-title flex align-center">
  33. <text>求职意向</text>
  34. <text>{{order.resumesStatus==1?'离职-正在找工作':order.resumesStatus==2?'在职-考虑机会':order.resumesStatus==3?'在职-暂不考虑':'实习'}}</text>
  35. </view>
  36. <view class="yx-box-jl">
  37. <view class="yx-box-jl-t" v-show="order.resumesPost">
  38. {{order.resumesPost}}
  39. </view>
  40. <view v-show="order.resumesCompensation" class="yx-box-jl-label flex align-center">
  41. {{order.resumesCompensation}}/月
  42. <view class="yx-box-jl-label-l"></view>
  43. {{order.city}}
  44. <!-- <view class="yx-box-jl-label-l" v-if="order.resumesType"></view>
  45. {{order.resumesType}} -->
  46. </view>
  47. <view class="yx-box-jl-label flex align-center" style="color: #999999;" v-show="order.industryName">
  48. <block v-for="(item,index) in order.industryName">
  49. {{item}}
  50. <view class="yx-box-jl-label-l" v-if="index != order.industryName.length - 1"></view>
  51. </block>
  52. </view>
  53. </view>
  54. <view class="yx-box-rem" v-show="order.resumesDetails">
  55. <view class="yx-box-rem-t">
  56. 自我介绍
  57. </view>
  58. <view class="yx-box-rem-i">
  59. {{order.resumesDetails}}
  60. </view>
  61. </view>
  62. </view>
  63. </view>
  64. <!-- 经验 -->
  65. <view class="jy flex justify-center">
  66. <view class="jy-box flex justify-center">
  67. <view class="jy-box-c">
  68. <block v-if="order.resumesCompanyList && order.resumesCompanyList.length!=0">
  69. <view class="jy-box-c-title">
  70. 工作经历
  71. </view>
  72. <view class="jy-box-c-gs" v-for="(item,index) in order.resumesCompanyList" :key="index">
  73. <view class="left-line"></view>
  74. <image src="../../../static/images/jltop.png" mode=""></image>
  75. <view class="jy-box-c-gs-name">
  76. {{item.resumesTitle}}
  77. </view>
  78. <view class="jy-box-c-gs-time flex align-center">
  79. <text>{{item.resumesPost}}</text>
  80. <text>{{item.resumesTime}}</text>
  81. </view>
  82. <view class="jy-box-c-gs-c">
  83. {{item.resumesContent}}
  84. </view>
  85. </view>
  86. </block>
  87. <block v-if="order.resumesWorkList && order.resumesWorkList.length!=0">
  88. <view class="jy-box-c-title" :style="order.resumesCompanyList.length!=0?'margin-top:50rpx':''">
  89. 项目经验
  90. </view>
  91. <view class="jy-box-c-gs" v-for="(item,indexs) in order.resumesWorkList" :key="indexs+1">
  92. <view class="left-line"></view>
  93. <image src="../../../static/images/jltop.png" mode=""></image>
  94. <view class="jy-box-c-gs-name">
  95. {{item.resumesTitle}}
  96. </view>
  97. <view class="jy-box-c-gs-time flex align-center">
  98. <text style="color: #999999;">{{item.resumesTime}}</text>
  99. </view>
  100. <view class="jy-box-c-gs-c">
  101. {{item.resumesContent}}
  102. </view>
  103. </view>
  104. </block>
  105. <block v-if="order.graduationTime && order.graduationTime.length!=0">
  106. <view class="jy-box-c-title" :style="order.resumesWorkList.length!=0?'margin-top:50rpx':''">
  107. 教育经历
  108. </view>
  109. <view class="jy-box-c-gs">
  110. <view class="left-line"></view>
  111. <image src="../../../static/images/jltop.png" mode=""></image>
  112. <view class="jy-box-c-gs-name">
  113. {{order.school}}
  114. </view>
  115. <view class="jy-box-c-gs-time flex align-center" v-if="order.graduationTime">
  116. <text style="color: #999999;">{{order.graduationTime}}</text>
  117. </view>
  118. <view class="jy-box-c-gs-c flex align-center" style="color: #141414;">
  119. {{order.resumesEducation}}
  120. <view class=""
  121. style="height: 26rpx;width: 1rpx;border: 1rpx solid #CCCCCC;margin: 0 20rpx;">
  122. </view>
  123. {{order.major}}
  124. </view>
  125. </view>
  126. </block>
  127. </view>
  128. </view>
  129. </view>
  130. <view class="btn flex justify-center align-center">
  131. <view class="btn-box flex justify-between">
  132. <view class="btn-box-l flex justify-center flex-wrap" @click="addShield()" style="width: 80rpx;"
  133. v-if="!order.isShield || order.isShield==0">
  134. <view class="">
  135. <u-icon name="plus-people-fill" style="margin-right: 20rpx;" color="#333333" size="50"></u-icon>
  136. </view>
  137. <view class="" style="color: #242424;font-size: 24rpx;margin-top: 5rpx;">
  138. 黑名单
  139. </view>
  140. </view>
  141. <view v-if="order.isShield && order.isShield!=0" class="btn-box-l flex justify-center flex-wrap"
  142. @click="delShield()" style="width: 120rpx;">
  143. <view class="">
  144. <!-- <image style="width: 40rpx;height: 48rpx;" src="../../../static/images/hmd.png" mode=""></image> -->
  145. <u-icon name="minus-people-fill" style="margin-right: 40rpx;" color="#333333"
  146. size="50"></u-icon>
  147. </view>
  148. <view class="" style="color: #242424;font-size: 24rpx;margin-top: 5rpx;">
  149. 移除黑名单
  150. </view>
  151. </view>
  152. <view class="btn-box-l flex justify-center flex-wrap" @click="goJuBao()" style="width: 80rpx;">
  153. <view class="">
  154. <u-icon name="warning" color="#333333" size="50"></u-icon>
  155. <!-- <image style="width: 40rpx;height: 48rpx;" src="../../../static/images/hmd.png" mode=""></image> -->
  156. </view>
  157. <view class="" style="color: #242424;font-size: 24rpx;margin-top: 5rpx;">
  158. 举报
  159. </view>
  160. </view>
  161. <view class="btn-box-l flex justify-center flex-wrap" @click="setCollection()" style="width: 80rpx;">
  162. <view class="">
  163. <u-icon name="star" v-if="order.isCollection==0" color="#333333" size="50"></u-icon>
  164. <u-icon name="star-fill" v-else color="#016BF6" size="50"></u-icon>
  165. <!-- <image style="width: 40rpx;height: 48rpx;" src="../../../static/images/hmd.png" mode=""></image> -->
  166. </view>
  167. <view class="" style="color: #242424;font-size: 24rpx;margin-top: 5rpx;">
  168. {{order.isCollection==0?'收藏':'取消'}}
  169. </view>
  170. </view>
  171. <view class="btn-box-r flex justify-between">
  172. <view class="btn-box-r-l flex justify-center align-center" @click="bindphone(order.resumesPhone,2)">
  173. <!-- 获取简历 -->
  174. 联系ta
  175. </view>
  176. <!-- <view class="btn-box-r-r flex justify-center align-center">
  177. 联系ta
  178. </view> -->
  179. </view>
  180. </view>
  181. </view>
  182. <!-- 返回首页按钮 -->
  183. <!-- #ifdef H5 -->
  184. <view class="backHome" @click="goHome()">
  185. <image src="../../../static/images/index/backHome.png" mode=""></image>
  186. </view>
  187. <!-- #endif -->
  188. </view>
  189. </template>
  190. <script>
  191. export default {
  192. //分享
  193. onShareAppMessage(res) {
  194. return {
  195. path: '/pages/index/game/orderDet?resumesId=' + this.resumesId + '&invitation=' + uni.getStorageSync(
  196. 'invitationCode'), //这是为了传参
  197. title: this.order.resumesName,
  198. }
  199. },
  200. /*
  201. * uniapp微信小程序分享页面到微信朋友圈
  202. */
  203. onShareTimeline(res) {
  204. return {
  205. path: '/pages/index/game/orderDet?resumesId=' + this.resumesId + '&invitation=' + uni.getStorageSync(
  206. 'invitationCode'), //这是为了传参
  207. title: this.order.resumesName,
  208. }
  209. },
  210. data() {
  211. return {
  212. show2: false,
  213. show: false,
  214. images: [{
  215. id: 1,
  216. img: '../../../static/logo.png'
  217. }, {
  218. id: 2,
  219. img: '../../../static/logo.png'
  220. }, {
  221. id: 3,
  222. img: '../../../static/logo.png'
  223. }],
  224. resumesId: '',
  225. order: [],
  226. viewResumes: 0, //免费特权次数
  227. member: null,
  228. price: 0, //会员特权价格
  229. userId: 0,
  230. weekMember: '',
  231. byuserId: '', //对方userid
  232. postPushId: '', //对应招聘岗位的id
  233. }
  234. },
  235. onLoad(option) {
  236. // 获取邀请码保存到本地
  237. if (option.invitation) {
  238. this.$queue.setData('inviterCode', option.invitation);
  239. }
  240. // #ifdef MP-WEIXIN
  241. if (option.scene) {
  242. const scene = decodeURIComponent(option.scene);
  243. this.$queue.setData('inviterCode', scene.split(',')[0]);
  244. }
  245. // #endif
  246. uni.showLoading({
  247. title: '加载中'
  248. })
  249. this.weekMember = uni.getStorageSync('weekMember')
  250. this.userId = uni.getStorageSync('userId') ? uni.getStorageSync('userId') : 0
  251. if (option.resumesId) {
  252. this.resumesId = option.resumesId
  253. this.getDetail()
  254. } else if (option.userId) {
  255. this.byuserId = option.userId
  256. this.getDetails()
  257. }
  258. // 获取邀请码保存到本地
  259. if (option.invitation) {
  260. this.$queue.setData('inviterCode', option.invitation);
  261. }
  262. },
  263. onShow() {
  264. },
  265. methods: {
  266. goJuBao() {
  267. if (uni.getStorageSync('token')) {
  268. uni.navigateTo({
  269. url: '/my/feedback/jubao?resumesId=' + this.resumesId
  270. })
  271. } else {
  272. uni.showModal({
  273. title: '提示',
  274. content: '请登录后获取简历',
  275. showCancel: true,
  276. cancelText: '取消',
  277. confirmText: '去登录',
  278. confirmColor: '#016BF6',
  279. complete: (res) => {
  280. if (res.confirm) {
  281. uni.navigateTo({
  282. url: '/pages/public/login'
  283. })
  284. }
  285. }
  286. });
  287. }
  288. },
  289. /**
  290. * 收藏简历
  291. */
  292. setCollection() {
  293. this.$Request.postT("/app/myCollection/saveCollection", {
  294. resumesId: this.resumesId,
  295. type: 2
  296. }).then(res => {
  297. if (res.code == 0) {
  298. uni.showToast({
  299. title: res.msg
  300. })
  301. setTimeout(() => {
  302. this.getDetail()
  303. }, 1500)
  304. } else {
  305. uni.showToast({
  306. title: res.msg,
  307. icon: 'none'
  308. })
  309. }
  310. })
  311. },
  312. goHome() {
  313. let pages = getCurrentPages(); // 获取页面栈
  314. if (pages.length > 1) { //有上一页
  315. uni.navigateBack()
  316. } else {
  317. uni.switchTab({
  318. url: '/pages/index/index'
  319. })
  320. }
  321. },
  322. //移除黑名单
  323. delShield() {
  324. let that = this
  325. let data = {
  326. shieldType: 2,
  327. userId: that.order.userId,
  328. companyId: uni.getStorageSync('companyId'),
  329. }
  330. that.$Request.postT('/app/shieldCompany/deleteShieldCompany', data).then(res => {
  331. if (res.code == 0) {
  332. uni.showToast({
  333. title: '移除黑名单成功',
  334. duration: 1500,
  335. })
  336. setTimeout(() => {
  337. that.getDetail()
  338. }, 1500)
  339. } else {
  340. uni.showToast({
  341. title: res.msg,
  342. icon: 'none'
  343. })
  344. }
  345. })
  346. },
  347. //加入黑名单
  348. addShield() {
  349. let that = this
  350. uni.showModal({
  351. title: '提示',
  352. content: '拉入黑名单后,该用户不会再出现简历推荐中,可从黑名单中移除,确认加入黑名单?',
  353. confirmColor: '#016BF6',
  354. complete(ret) {
  355. if (ret.confirm) {
  356. let data = {
  357. shieldType: 2,
  358. userId: that.order.userId,
  359. companyId: uni.getStorageSync('companyId'),
  360. }
  361. that.$Request.postJson('/app/shieldCompany/insertShieldCompany', data).then(res => {
  362. if (res.code == 0) {
  363. uni.showToast({
  364. title: '加入黑名单成功',
  365. duration: 1500,
  366. })
  367. setTimeout(() => {
  368. that.getDetail()
  369. }, 1500)
  370. } else {
  371. uni.showToast({
  372. title: res.msg,
  373. icon: 'none'
  374. })
  375. }
  376. })
  377. }
  378. }
  379. })
  380. },
  381. gotozhouka() {
  382. uni.navigateTo({
  383. url: '/my/vip/zhouka'
  384. })
  385. },
  386. getJianLiNum() {
  387. if (uni.getStorageSync('token')) {
  388. //获取 简历次数
  389. this.$Request.get('/app/user/selectUserById').then(res => {
  390. if (res.code == 0) {
  391. let viewResumes = res.data.viewResumes
  392. let member = res.data.member
  393. this.viewResumes = viewResumes
  394. this.member = member
  395. if (this.viewResumes == 0) {
  396. this.$Request.get('/app/rule/selectRuleClassifyById', {
  397. classifyId: this.order.ruleClassifyId
  398. }).then(ret => {
  399. if (ret.code == 0) {
  400. if (this.member > 0) {
  401. this.price = ret.data.memberPrice
  402. } else {
  403. this.price = ret.data.price
  404. }
  405. this.show2 = true
  406. }
  407. })
  408. } else {
  409. this.show = true
  410. }
  411. }
  412. });
  413. } else {
  414. uni.showModal({
  415. title: '提示',
  416. content: '请登录后获取简历',
  417. showCancel: true,
  418. cancelText: '取消',
  419. confirmText: '去登录',
  420. confirmColor: '#016BF6',
  421. complete: (res) => {
  422. if (res.confirm) {
  423. uni.navigateTo({
  424. url: '/pages/public/login'
  425. })
  426. }
  427. }
  428. });
  429. }
  430. },
  431. //获取简历
  432. getJianLi() {
  433. this.show = false
  434. this.show2 = false
  435. this.$Request.get('/app/resumes/viewResumes', {
  436. resumesId: this.resumesId
  437. }).then(res => {
  438. if (res.code == 0) {
  439. uni.showToast({
  440. title: '获取成功'
  441. })
  442. setTimeout(() => {
  443. this.getDetail();
  444. }, 1000)
  445. } else {
  446. uni.showToast({
  447. title: res.msg,
  448. icon: "none"
  449. })
  450. }
  451. })
  452. },
  453. //去联系
  454. goMsg() {
  455. this.getDetail()
  456. this.$Request.postJson('/app/chat/insertChatConversation', {
  457. userId: this.order.userId,
  458. focusedUserId: uni.getStorageSync('userId'),
  459. postPushId: this.postPushId,
  460. resumesId: this.resumesId,
  461. // type:2,
  462. }).then(ret => {
  463. if (ret.code == 0) {
  464. uni.navigateTo({
  465. url: '/pages/msg/im?byUserId=' + this.order
  466. .userId + '&chatConversationId=' + ret.data
  467. .chatConversationId + '&resumesId=' + ret
  468. .data
  469. .resumesId + '&postPushId=' +
  470. ret.data.postPushId
  471. })
  472. }
  473. })
  474. },
  475. // 获取已使用的次数
  476. isCheckPay() {
  477. if (!this.postPushId) {
  478. uni.showToast({
  479. title: '您还未发布该岗位',
  480. icon: 'none'
  481. })
  482. return
  483. }
  484. let that = this
  485. let data = {
  486. resumesId: this.resumesId
  487. }
  488. this.$Request.getT('/app/resumes/checkPower', data).then(res => {
  489. if (res.code == 0) {
  490. if (res.data.type === 1) { //当前是会员
  491. if (res.data.nowCount < res.data.maxCount) { //如果免费次数没有使用完
  492. uni.showModal({
  493. title: '提示',
  494. content: '尊敬的会员,你可以使用会员特权免费联系ta,当前已使用' + res.data.nowCount + '次,总共' +
  495. res
  496. .data.maxCount + '次,确认联系吗?',
  497. cancelText: '我再想想',
  498. confirmText: '确认联系',
  499. confirmColor: '#016BF6',
  500. complete(ret) {
  501. if (ret.confirm) {
  502. that.$Request.postT('/app/userMoney/countPayResumes', data)
  503. .then(
  504. ress => {
  505. if (ress.code == 0) {
  506. //购买成功直接联系
  507. that.goMsg()
  508. } else {
  509. uni.showToast({
  510. title: ress.msg,
  511. icon: 'none'
  512. })
  513. }
  514. })
  515. }
  516. },
  517. })
  518. } else { //已经使用完了
  519. uni.showModal({
  520. title: '提示',
  521. content: '免费联系次数已使用完,是否支付' + res.data.money + '钻石联系ta?',
  522. cancelText: '我再想想',
  523. confirmText: '确认联系',
  524. confirmColor: '#016BF6',
  525. complete(ret) {
  526. if (ret.confirm) {
  527. that.$Request.postT('/app/userMoney/payResumes', data).then(
  528. ress => {
  529. if (ress.code == 0) {
  530. //购买成功直接联系
  531. that.goMsg()
  532. } else {
  533. uni.showModal({
  534. title: '提示',
  535. content: ress.msg,
  536. confirmText: '去充值',
  537. confirmColor: '#016BF6',
  538. complete(ree) {
  539. if (ree.confirm) {
  540. uni.navigateTo({
  541. url: '/my/wallet/wallet'
  542. })
  543. }
  544. }
  545. })
  546. }
  547. })
  548. }
  549. }
  550. })
  551. }
  552. } else { // 不是会员
  553. if (res.data.nowCount < res.data.maxCount) { //还有免费次数
  554. uni.showModal({
  555. title: '提示',
  556. content: '免费联系次数已使用' + res.data.nowCount + '次,总共' + res
  557. .data.maxCount + '次,确认联系吗?',
  558. cancelText: '我再想想',
  559. confirmText: '确认联系',
  560. confirmColor: '#016BF6',
  561. complete(ret) {
  562. if (ret.confirm) {
  563. that.$Request.postT('/app/userMoney/countPayResumes', data)
  564. .then(
  565. ress => {
  566. if (ress.code == 0) {
  567. //购买成功直接联系
  568. that.goMsg()
  569. } else {
  570. uni.showToast({
  571. title: ress.msg,
  572. icon: 'none'
  573. })
  574. }
  575. })
  576. }
  577. },
  578. })
  579. } else { //没有免费次数
  580. uni.showModal({
  581. title: '提示',
  582. content: '免费联系次数已使用完,是否支付' + res.data.money + '钻石联系ta?',
  583. cancelText: '我再想想',
  584. confirmText: '确认联系',
  585. confirmColor: '#016BF6',
  586. complete(ret) {
  587. if (ret.confirm) {
  588. that.$Request.postT('/app/userMoney/payResumes', data).then(
  589. ress => {
  590. if (ress.code == 0) {
  591. //购买成功直接联系
  592. that.goMsg()
  593. } else {
  594. uni.showModal({
  595. title: '提示',
  596. content: ress.msg,
  597. confirmText: '去充值',
  598. confirmColor: '#016BF6',
  599. complete(ree) {
  600. if (ree.confirm) {
  601. uni.navigateTo({
  602. url: '/my/wallet/wallet'
  603. })
  604. }
  605. }
  606. })
  607. }
  608. })
  609. }
  610. }
  611. })
  612. }
  613. }
  614. }
  615. })
  616. },
  617. // 联系ta
  618. bindphone(phone, index) {
  619. let token = uni.getStorageSync('token')
  620. if (token) {
  621. this.$Request.get("/app/company/selectCompanyByUserId").then(res => {
  622. if (res.code == 0 && res.data) {
  623. this.CompanyList = res.data
  624. if (this.CompanyList.status == 1) {
  625. uni.showModal({
  626. title: '提示',
  627. content: '您提交的企业认证正在审核,是否查看修改?',
  628. confirmColor: '#016BF6',
  629. success: function(res) {
  630. if (res.confirm) {
  631. console.log('用户点击确定');
  632. uni.navigateTo({
  633. url: '/my/renzheng/index'
  634. })
  635. } else if (res.cancel) {
  636. console.log('用户点击取消');
  637. }
  638. }
  639. })
  640. } else if (this.CompanyList.status == 2) {
  641. if (index == 2) {
  642. if (this.order.isPay === 0) { //需要购买
  643. this.isCheckPay()
  644. } else { //已购买的直接联系
  645. this.goMsg()
  646. }
  647. } else {
  648. let that = this
  649. uni.showModal({
  650. title: '提示',
  651. content: '是否拨打电话',
  652. confirmColor: '#016BF6',
  653. success: function(ret) {
  654. if (ret.confirm) {
  655. console.log('用户点击确定', that.phone);
  656. uni.makePhoneCall({
  657. phoneNumber: phone //仅为示例
  658. });
  659. } else if (ret.cancel) {
  660. console.log('用户点击取消');
  661. }
  662. }
  663. });
  664. }
  665. } else if (this.CompanyList.status == 3) {
  666. uni.showModal({
  667. title: '提示',
  668. content: '您提交的企业认证已被拒绝,是否查看修改?',
  669. confirmColor: '#016BF6',
  670. success: function(res) {
  671. if (res.confirm) {
  672. console.log('用户点击确定');
  673. uni.navigateTo({
  674. url: '/my/renzheng/index'
  675. })
  676. } else if (res.cancel) {
  677. console.log('用户点击取消');
  678. }
  679. }
  680. })
  681. }
  682. } else {
  683. uni.showModal({
  684. title: '提示',
  685. content: '您还未企业认证,请先进行认证',
  686. confirmColor: '#016BF6',
  687. success: function(res) {
  688. if (res.confirm) {
  689. console.log('用户点击确定');
  690. uni.navigateTo({
  691. url: '/my/renzheng/index'
  692. })
  693. } else if (res.cancel) {
  694. console.log('用户点击取消');
  695. }
  696. }
  697. })
  698. }
  699. })
  700. } else {
  701. uni.showModal({
  702. title: '提示',
  703. content: '您还未登录,请先登录',
  704. confirmColor: '#016BF6',
  705. success: function(res) {
  706. if (res.confirm) {
  707. console.log('用户点击确定');
  708. uni.navigateTo({
  709. url: '/pages/public/login'
  710. })
  711. } else if (res.cancel) {
  712. console.log('用户点击取消');
  713. }
  714. }
  715. })
  716. }
  717. },
  718. getDetails() {
  719. uni.showLoading({
  720. title: '加载中'
  721. })
  722. let data = {
  723. userId: this.byuserId
  724. }
  725. this.$Request.get('/app/resumes/selectResumesByUserIds', data).then(res => {
  726. if (res.code == 0) {
  727. uni.hideLoading()
  728. if (res.data.status == 1) {
  729. uni.showModal({
  730. title: '提示',
  731. content: '该简历审核中,暂无法查看',
  732. showCancel: false,
  733. cancelText: '',
  734. confirmText: '去首页',
  735. confirmColor: '#016BF6',
  736. complete: (ret) => {
  737. if (ret.confirm) {
  738. uni.switchTab({
  739. url: '/pages/index/index'
  740. })
  741. }
  742. }
  743. });
  744. } else {
  745. this.order = res.data
  746. if (this.order.resumesImage) {
  747. this.order.resumesImage = this.order.resumesImage.split(',')
  748. }
  749. if (this.order.resumesImageName) {
  750. this.order.resumesImageName = this.order.resumesImageName.split(',')
  751. }
  752. }
  753. }
  754. })
  755. },
  756. getDetail() {
  757. uni.showLoading({
  758. title: '加载中'
  759. })
  760. let data = {
  761. resumesId: this.resumesId,
  762. userId: this.userId,
  763. companyId: uni.getStorageSync('companyId')
  764. }
  765. //this.$Request.get('/app/resumes/selectResumesByResumesId', data).then(res => {
  766. this.$Request.get('/app/userFirst/getResumes', data).then(res => {
  767. if (res.code == 0) {
  768. uni.hideLoading()
  769. if (res.data.status == 1) {
  770. uni.showModal({
  771. title: '提示',
  772. content: '该简历审核中,暂无法查看',
  773. showCancel: false,
  774. cancelText: '',
  775. confirmText: '去首页',
  776. confirmColor: '#016BF6',
  777. complete: (ret) => {
  778. if (ret.confirm) {
  779. uni.switchTab({
  780. url: '/pages/index/index'
  781. })
  782. }
  783. }
  784. });
  785. } else {
  786. this.order = res.data
  787. this.order.industryName = this.order.industryName.split(',')
  788. this.getJobList(this.order.resumesPost)
  789. }
  790. } else {
  791. uni.hideLoading()
  792. uni.showModal({
  793. title: '提示',
  794. content: '用户简历不存在',
  795. showCancel: false,
  796. complete(ret) {
  797. uni.navigateBack()
  798. }
  799. })
  800. }
  801. })
  802. },
  803. //使用岗位名称查询出企业正在招聘的该岗位拿到对应的岗位id
  804. getJobList(ruleClassifyName) {
  805. let data = {
  806. status: 2,
  807. page: 1,
  808. limit: 1,
  809. ruleClassifyName: ruleClassifyName,
  810. companyId: uni.getStorageSync('companyId')
  811. }
  812. this.$Request.getT('/app/postPush/getPostPushList', data).then(res => {
  813. if (res.code == 0) {
  814. this.postPushId = res.data.records[0].postPushId
  815. }
  816. })
  817. },
  818. // 查看图片
  819. saveImg(imgs, index) {
  820. // console.log(imgs)
  821. let that = this;
  822. let imgArr = imgs
  823. // imgArr.push(imgs);
  824. // //预览图片
  825. uni.previewImage({
  826. urls: imgArr,
  827. current: imgArr[index]
  828. });
  829. },
  830. }
  831. }
  832. </script>
  833. <style lang="less">
  834. page {
  835. background: #F2F2F7;
  836. padding-bottom: 100rpx;
  837. }
  838. .backHome {
  839. position: fixed;
  840. right: 30rpx;
  841. bottom: 160rpx;
  842. image {
  843. width: 80rpx;
  844. height: 80rpx;
  845. border-radius: 50%;
  846. }
  847. }
  848. .boxs {
  849. background: #FFFFFF;
  850. border-radius: 24upx 24upx 0 0;
  851. padding: 30upx;
  852. margin: 30upx 30upx 0 30upx;
  853. }
  854. .yx {
  855. width: 100%;
  856. // height: 100rpx;
  857. // background-color: red;
  858. .yx-box {
  859. width: calc(100% - 60rpx);
  860. height: 100%;
  861. background-color: #FFFFFF;
  862. border-radius: 0 0 24rpx 24rpx;
  863. padding-top: 20rpx;
  864. padding-bottom: 30rpx;
  865. .yx-box-title {
  866. width: 100%;
  867. padding-left: 30rpx;
  868. padding-right: 30rpx;
  869. text:nth-of-type(1) {
  870. color: #333333;
  871. font-size: 32rpx;
  872. font-weight: 800;
  873. margin-right: 30rpx;
  874. }
  875. text:nth-of-type(2) {
  876. color: #141414;
  877. font-size: 26rpx;
  878. }
  879. }
  880. .yx-box-jl {
  881. margin-top: 40rpx;
  882. padding-left: 30rpx;
  883. padding-right: 30rpx;
  884. .yx-box-jl-t {
  885. color: #080808;
  886. font-size: 30rpx;
  887. }
  888. .yx-box-jl-label {
  889. margin-top: 20rpx;
  890. color: #141414;
  891. font-size: 26rpx;
  892. .yx-box-jl-label-l {
  893. width: 1rpx;
  894. height: 26rpx;
  895. border-right: 1rpx solid #CCCCCC;
  896. margin: 0 20rpx;
  897. }
  898. }
  899. }
  900. .yx-box-rem {
  901. margin-top: 60rpx;
  902. padding-left: 30rpx;
  903. padding-right: 30rpx;
  904. .yx-box-rem-t {
  905. color: #333333;
  906. font-size: 32rpx;
  907. font-weight: 800;
  908. }
  909. .yx-box-rem-i {
  910. color: #666666;
  911. font-size: 26rpx;
  912. margin-top: 30rpx;
  913. }
  914. }
  915. }
  916. }
  917. .jy {
  918. width: 100%;
  919. // height: 200rpx;
  920. margin-top: 20rpx;
  921. .jy-box {
  922. width: calc(100% - 60rpx);
  923. height: 100%;
  924. background-color: #FFFFFF;
  925. border-radius: 24rpx;
  926. .jy-box-c {
  927. width: calc(100% - 60rpx);
  928. height: 100%;
  929. padding-top: 50rpx;
  930. padding-bottom: 50rpx;
  931. }
  932. .jy-box-c-title {
  933. color: #121212;
  934. font-size: 34rpx;
  935. font-weight: 800;
  936. margin-bottom: 30rpx;
  937. }
  938. .jy-box-c-gs {
  939. width: 100%;
  940. padding-left: 20rpx;
  941. height: 100%;
  942. position: relative;
  943. padding-bottom: 30rpx;
  944. .left-line {
  945. position: absolute;
  946. left: 0;
  947. top: 5%;
  948. height: 95%;
  949. border-left: 5rpx solid #F0F0F2;
  950. }
  951. image {
  952. width: 20rpx;
  953. height: 20rpx;
  954. border-radius: 50%;
  955. position: absolute;
  956. top: 10rpx;
  957. left: -9rpx;
  958. }
  959. }
  960. .jy-box-c-gs-name {
  961. color: #121212;
  962. font-size: 30rpx;
  963. font-weight: bold;
  964. }
  965. .jy-box-c-gs-time {
  966. color: #101010;
  967. font-size: 28rpx;
  968. margin-top: 30rpx;
  969. text:nth-of-type(1) {
  970. margin-right: 30rpx;
  971. }
  972. }
  973. .jy-box-c-gs-c {
  974. color: #666666;
  975. font-size: 26rpx;
  976. margin-top: 20rpx;
  977. }
  978. }
  979. }
  980. .btn {
  981. width: 100%;
  982. height: 120rpx;
  983. background-color: #FFFFFF;
  984. position: fixed;
  985. bottom: 0;
  986. .btn-box {
  987. width: 686rpx;
  988. height: 80rpx;
  989. .btn-box-l {
  990. height: 100%;
  991. margin: 0 10rpx;
  992. }
  993. .btn-box-r {
  994. flex: 1;
  995. // width: 540rpx;
  996. height: 100%;
  997. border-radius: 45rpx;
  998. margin-left: 10rpx;
  999. .btn-box-r-l {
  1000. width: 100%;
  1001. border-radius: 45rpx;
  1002. background-color: #ddecff;
  1003. color: #016BF6;
  1004. font-size: 32rpx;
  1005. font-weight: bold;
  1006. }
  1007. .btn-box-r-r {
  1008. width: 50%;
  1009. border-radius: 0 45rpx 45rpx 0;
  1010. background: linear-gradient(90deg, #00DCC2 0%, #00DC94 100%);
  1011. color: #FFFFFF;
  1012. font-size: 32rpx;
  1013. font-weight: bold;
  1014. }
  1015. }
  1016. }
  1017. }
  1018. </style>