orderDet.vue 28 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081
  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. this.$queue.toLogin('navigateTo')
  282. }
  283. }
  284. });
  285. }
  286. },
  287. /**
  288. * 收藏简历
  289. */
  290. setCollection() {
  291. this.$Request.postT("/app/myCollection/saveCollection", {
  292. resumesId: this.resumesId,
  293. type: 2
  294. }).then(res => {
  295. if (res.code == 0) {
  296. uni.showToast({
  297. title: res.msg
  298. })
  299. setTimeout(() => {
  300. this.getDetail()
  301. }, 1500)
  302. } else {
  303. uni.showToast({
  304. title: res.msg,
  305. icon: 'none'
  306. })
  307. }
  308. })
  309. },
  310. goHome() {
  311. let pages = getCurrentPages(); // 获取页面栈
  312. if (pages.length > 1) { //有上一页
  313. uni.navigateBack()
  314. } else {
  315. uni.switchTab({
  316. url: '/pages/index/index'
  317. })
  318. }
  319. },
  320. //移除黑名单
  321. delShield() {
  322. let that = this
  323. let data = {
  324. shieldType: 2,
  325. userId: that.order.userId,
  326. companyId: uni.getStorageSync('companyId'),
  327. }
  328. that.$Request.postT('/app/shieldCompany/deleteShieldCompany', data).then(res => {
  329. if (res.code == 0) {
  330. uni.showToast({
  331. title: '移除黑名单成功',
  332. duration: 1500,
  333. })
  334. setTimeout(() => {
  335. that.getDetail()
  336. }, 1500)
  337. } else {
  338. uni.showToast({
  339. title: res.msg,
  340. icon: 'none'
  341. })
  342. }
  343. })
  344. },
  345. //加入黑名单
  346. addShield() {
  347. let that = this
  348. uni.showModal({
  349. title: '提示',
  350. content: '拉入黑名单后,该用户不会再出现简历推荐中,可从黑名单中移除,确认加入黑名单?',
  351. confirmColor: '#016BF6',
  352. complete(ret) {
  353. if (ret.confirm) {
  354. let data = {
  355. shieldType: 2,
  356. userId: that.order.userId,
  357. companyId: uni.getStorageSync('companyId'),
  358. }
  359. that.$Request.postJson('/app/shieldCompany/insertShieldCompany', data).then(res => {
  360. if (res.code == 0) {
  361. uni.showToast({
  362. title: '加入黑名单成功',
  363. duration: 1500,
  364. })
  365. setTimeout(() => {
  366. that.getDetail()
  367. }, 1500)
  368. } else {
  369. uni.showToast({
  370. title: res.msg,
  371. icon: 'none'
  372. })
  373. }
  374. })
  375. }
  376. }
  377. })
  378. },
  379. gotozhouka() {
  380. uni.navigateTo({
  381. url: '/my/vip/zhouka'
  382. })
  383. },
  384. getJianLiNum() {
  385. if (uni.getStorageSync('token')) {
  386. //获取 简历次数
  387. this.$Request.get('/app/user/selectUserById').then(res => {
  388. if (res.code == 0) {
  389. let viewResumes = res.data.viewResumes
  390. let member = res.data.member
  391. this.viewResumes = viewResumes
  392. this.member = member
  393. if (this.viewResumes == 0) {
  394. this.$Request.get('/app/rule/selectRuleClassifyById', {
  395. classifyId: this.order.ruleClassifyId
  396. }).then(ret => {
  397. if (ret.code == 0) {
  398. if (this.member > 0) {
  399. this.price = ret.data.memberPrice
  400. } else {
  401. this.price = ret.data.price
  402. }
  403. this.show2 = true
  404. }
  405. })
  406. } else {
  407. this.show = true
  408. }
  409. }
  410. });
  411. } else {
  412. uni.showModal({
  413. title: '提示',
  414. content: '请登录后获取简历',
  415. showCancel: true,
  416. cancelText: '取消',
  417. confirmText: '去登录',
  418. confirmColor: '#016BF6',
  419. complete: (res) => {
  420. if (res.confirm) {
  421. this.$queue.toLogin('navigateTo')
  422. }
  423. }
  424. });
  425. }
  426. },
  427. //获取简历
  428. getJianLi() {
  429. this.show = false
  430. this.show2 = false
  431. this.$Request.get('/app/resumes/viewResumes', {
  432. resumesId: this.resumesId
  433. }).then(res => {
  434. if (res.code == 0) {
  435. uni.showToast({
  436. title: '获取成功'
  437. })
  438. setTimeout(() => {
  439. this.getDetail();
  440. }, 1000)
  441. } else {
  442. uni.showToast({
  443. title: res.msg,
  444. icon: "none"
  445. })
  446. }
  447. })
  448. },
  449. //去联系
  450. goMsg() {
  451. this.getDetail()
  452. this.$Request.postJson('/app/chat/insertChatConversation', {
  453. userId: this.order.userId,
  454. focusedUserId: uni.getStorageSync('userId'),
  455. postPushId: this.postPushId,
  456. resumesId: this.resumesId,
  457. // type:2,
  458. }).then(ret => {
  459. if (ret.code == 0) {
  460. uni.navigateTo({
  461. url: '/pages/msg/im?byUserId=' + this.order
  462. .userId + '&chatConversationId=' + ret.data
  463. .chatConversationId + '&resumesId=' + ret
  464. .data
  465. .resumesId + '&postPushId=' +
  466. ret.data.postPushId
  467. })
  468. }
  469. })
  470. },
  471. // 获取已使用的次数
  472. isCheckPay() {
  473. if (!this.postPushId) {
  474. uni.showToast({
  475. title: '您还未发布该岗位',
  476. icon: 'none'
  477. })
  478. return
  479. }
  480. let that = this
  481. let data = {
  482. resumesId: this.resumesId
  483. }
  484. this.$Request.getT('/app/resumes/checkPower', data).then(res => {
  485. if (res.code == 0) {
  486. if (res.data.type === 1) { //当前是会员
  487. if (res.data.nowCount < res.data.maxCount) { //如果免费次数没有使用完
  488. uni.showModal({
  489. title: '提示',
  490. content: '尊敬的会员,你可以使用会员特权免费联系ta,当前已使用' + res.data.nowCount + '次,总共' +
  491. res
  492. .data.maxCount + '次,确认联系吗?',
  493. cancelText: '我再想想',
  494. confirmText: '确认联系',
  495. confirmColor: '#016BF6',
  496. complete(ret) {
  497. if (ret.confirm) {
  498. that.$Request.postT('/app/userMoney/countPayResumes', data)
  499. .then(
  500. ress => {
  501. if (ress.code == 0) {
  502. //购买成功直接联系
  503. that.goMsg()
  504. } else {
  505. uni.showToast({
  506. title: ress.msg,
  507. icon: 'none'
  508. })
  509. }
  510. })
  511. }
  512. },
  513. })
  514. } else { //已经使用完了
  515. uni.showModal({
  516. title: '提示',
  517. content: '免费联系次数已使用完,是否支付' + res.data.money + '钻石联系ta?',
  518. cancelText: '我再想想',
  519. confirmText: '确认联系',
  520. confirmColor: '#016BF6',
  521. complete(ret) {
  522. if (ret.confirm) {
  523. that.$Request.postT('/app/userMoney/payResumes', data).then(
  524. ress => {
  525. if (ress.code == 0) {
  526. //购买成功直接联系
  527. that.goMsg()
  528. } else {
  529. uni.showModal({
  530. title: '提示',
  531. content: ress.msg,
  532. confirmText: '去充值',
  533. confirmColor: '#016BF6',
  534. complete(ree) {
  535. if (ree.confirm) {
  536. uni.navigateTo({
  537. url: '/my/wallet/wallet'
  538. })
  539. }
  540. }
  541. })
  542. }
  543. })
  544. }
  545. }
  546. })
  547. }
  548. } else { // 不是会员
  549. if (res.data.nowCount < res.data.maxCount) { //还有免费次数
  550. uni.showModal({
  551. title: '提示',
  552. content: '免费联系次数已使用' + res.data.nowCount + '次,总共' + res
  553. .data.maxCount + '次,确认联系吗?',
  554. cancelText: '我再想想',
  555. confirmText: '确认联系',
  556. confirmColor: '#016BF6',
  557. complete(ret) {
  558. if (ret.confirm) {
  559. that.$Request.postT('/app/userMoney/countPayResumes', data)
  560. .then(
  561. ress => {
  562. if (ress.code == 0) {
  563. //购买成功直接联系
  564. that.goMsg()
  565. } else {
  566. uni.showToast({
  567. title: ress.msg,
  568. icon: 'none'
  569. })
  570. }
  571. })
  572. }
  573. },
  574. })
  575. } else { //没有免费次数
  576. uni.showModal({
  577. title: '提示',
  578. content: '免费联系次数已使用完,是否支付' + res.data.money + '钻石联系ta?',
  579. cancelText: '我再想想',
  580. confirmText: '确认联系',
  581. confirmColor: '#016BF6',
  582. complete(ret) {
  583. if (ret.confirm) {
  584. that.$Request.postT('/app/userMoney/payResumes', data).then(
  585. ress => {
  586. if (ress.code == 0) {
  587. //购买成功直接联系
  588. that.goMsg()
  589. } else {
  590. uni.showModal({
  591. title: '提示',
  592. content: ress.msg,
  593. confirmText: '去充值',
  594. confirmColor: '#016BF6',
  595. complete(ree) {
  596. if (ree.confirm) {
  597. uni.navigateTo({
  598. url: '/my/wallet/wallet'
  599. })
  600. }
  601. }
  602. })
  603. }
  604. })
  605. }
  606. }
  607. })
  608. }
  609. }
  610. }
  611. })
  612. },
  613. // 联系ta
  614. bindphone(phone, index) {
  615. let token = uni.getStorageSync('token')
  616. if (token) {
  617. this.$Request.get("/app/company/selectCompanyByUserId").then(res => {
  618. if (res.code == 0 && res.data) {
  619. this.CompanyList = res.data
  620. if (this.CompanyList.status == 1) {
  621. uni.showModal({
  622. title: '提示',
  623. content: '您提交的企业认证正在审核,是否查看修改?',
  624. confirmColor: '#016BF6',
  625. success: function(res) {
  626. if (res.confirm) {
  627. console.log('用户点击确定');
  628. uni.navigateTo({
  629. url: '/my/renzheng/index'
  630. })
  631. } else if (res.cancel) {
  632. console.log('用户点击取消');
  633. }
  634. }
  635. })
  636. } else if (this.CompanyList.status == 2) {
  637. if (index == 2) {
  638. if (this.order.isPay === 0) { //需要购买
  639. this.isCheckPay()
  640. } else { //已购买的直接联系
  641. this.goMsg()
  642. }
  643. } else {
  644. let that = this
  645. uni.showModal({
  646. title: '提示',
  647. content: '是否拨打电话',
  648. confirmColor: '#016BF6',
  649. success: function(ret) {
  650. if (ret.confirm) {
  651. console.log('用户点击确定', that.phone);
  652. uni.makePhoneCall({
  653. phoneNumber: phone //仅为示例
  654. });
  655. } else if (ret.cancel) {
  656. console.log('用户点击取消');
  657. }
  658. }
  659. });
  660. }
  661. } else if (this.CompanyList.status == 3) {
  662. uni.showModal({
  663. title: '提示',
  664. content: '您提交的企业认证已被拒绝,是否查看修改?',
  665. confirmColor: '#016BF6',
  666. success: function(res) {
  667. if (res.confirm) {
  668. console.log('用户点击确定');
  669. uni.navigateTo({
  670. url: '/my/renzheng/index'
  671. })
  672. } else if (res.cancel) {
  673. console.log('用户点击取消');
  674. }
  675. }
  676. })
  677. }
  678. } else {
  679. uni.showModal({
  680. title: '提示',
  681. content: '您还未企业认证,请先进行认证',
  682. confirmColor: '#016BF6',
  683. success: function(res) {
  684. if (res.confirm) {
  685. console.log('用户点击确定');
  686. uni.navigateTo({
  687. url: '/my/renzheng/index'
  688. })
  689. } else if (res.cancel) {
  690. console.log('用户点击取消');
  691. }
  692. }
  693. })
  694. }
  695. })
  696. } else {
  697. uni.showModal({
  698. title: '提示',
  699. content: '您还未登录,请先登录',
  700. confirmColor: '#016BF6',
  701. success: (res) => {
  702. if (res.confirm) {
  703. console.log('用户点击确定');
  704. this.$queue.toLogin('navigateTo')
  705. } else if (res.cancel) {
  706. console.log('用户点击取消');
  707. }
  708. }
  709. })
  710. }
  711. },
  712. getDetails() {
  713. uni.showLoading({
  714. title: '加载中'
  715. })
  716. let data = {
  717. userId: this.byuserId
  718. }
  719. this.$Request.get('/app/resumes/selectResumesByUserIds', data).then(res => {
  720. if (res.code == 0) {
  721. uni.hideLoading()
  722. if (res.data.status == 1) {
  723. uni.showModal({
  724. title: '提示',
  725. content: '该简历审核中,暂无法查看',
  726. showCancel: false,
  727. cancelText: '',
  728. confirmText: '去首页',
  729. confirmColor: '#016BF6',
  730. complete: (ret) => {
  731. if (ret.confirm) {
  732. uni.switchTab({
  733. url: '/pages/index/index'
  734. })
  735. }
  736. }
  737. });
  738. } else {
  739. this.order = res.data
  740. if (this.order.resumesImage) {
  741. this.order.resumesImage = this.order.resumesImage.split(',')
  742. }
  743. if (this.order.resumesImageName) {
  744. this.order.resumesImageName = this.order.resumesImageName.split(',')
  745. }
  746. }
  747. }
  748. })
  749. },
  750. getDetail() {
  751. uni.showLoading({
  752. title: '加载中'
  753. })
  754. let data = {
  755. resumesId: this.resumesId,
  756. userId: this.userId,
  757. companyId: uni.getStorageSync('companyId')
  758. }
  759. //this.$Request.get('/app/resumes/selectResumesByResumesId', data).then(res => {
  760. this.$Request.get('/app/userFirst/getResumes', data).then(res => {
  761. if (res.code == 0) {
  762. uni.hideLoading()
  763. if (res.data.status == 1) {
  764. uni.showModal({
  765. title: '提示',
  766. content: '该简历审核中,暂无法查看',
  767. showCancel: false,
  768. cancelText: '',
  769. confirmText: '去首页',
  770. confirmColor: '#016BF6',
  771. complete: (ret) => {
  772. if (ret.confirm) {
  773. uni.switchTab({
  774. url: '/pages/index/index'
  775. })
  776. }
  777. }
  778. });
  779. } else {
  780. this.order = res.data
  781. this.order.industryName = this.order.industryName.split(',')
  782. this.getJobList(this.order.resumesPost)
  783. }
  784. } else {
  785. uni.hideLoading()
  786. uni.showModal({
  787. title: '提示',
  788. content: '用户简历不存在',
  789. showCancel: false,
  790. complete(ret) {
  791. uni.navigateBack()
  792. }
  793. })
  794. }
  795. })
  796. },
  797. //使用岗位名称查询出企业正在招聘的该岗位拿到对应的岗位id
  798. getJobList(ruleClassifyName) {
  799. let data = {
  800. status: 2,
  801. page: 1,
  802. limit: 1,
  803. ruleClassifyName: ruleClassifyName,
  804. companyId: uni.getStorageSync('companyId')
  805. }
  806. this.$Request.getT('/app/postPush/getPostPushList', data).then(res => {
  807. if (res.code == 0) {
  808. this.postPushId = res.data.records[0].postPushId
  809. }
  810. })
  811. },
  812. // 查看图片
  813. saveImg(imgs, index) {
  814. // console.log(imgs)
  815. let that = this;
  816. let imgArr = imgs
  817. // imgArr.push(imgs);
  818. // //预览图片
  819. uni.previewImage({
  820. urls: imgArr,
  821. current: imgArr[index]
  822. });
  823. },
  824. }
  825. }
  826. </script>
  827. <style lang="less">
  828. page {
  829. background: #F2F2F7;
  830. padding-bottom: 100rpx;
  831. }
  832. .backHome {
  833. position: fixed;
  834. right: 30rpx;
  835. bottom: 160rpx;
  836. image {
  837. width: 80rpx;
  838. height: 80rpx;
  839. border-radius: 50%;
  840. }
  841. }
  842. .boxs {
  843. background: #FFFFFF;
  844. border-radius: 24upx 24upx 0 0;
  845. padding: 30upx;
  846. margin: 30upx 30upx 0 30upx;
  847. }
  848. .yx {
  849. width: 100%;
  850. // height: 100rpx;
  851. // background-color: red;
  852. .yx-box {
  853. width: calc(100% - 60rpx);
  854. height: 100%;
  855. background-color: #FFFFFF;
  856. border-radius: 0 0 24rpx 24rpx;
  857. padding-top: 20rpx;
  858. padding-bottom: 30rpx;
  859. .yx-box-title {
  860. width: 100%;
  861. padding-left: 30rpx;
  862. padding-right: 30rpx;
  863. text:nth-of-type(1) {
  864. color: #333333;
  865. font-size: 32rpx;
  866. font-weight: 800;
  867. margin-right: 30rpx;
  868. }
  869. text:nth-of-type(2) {
  870. color: #141414;
  871. font-size: 26rpx;
  872. }
  873. }
  874. .yx-box-jl {
  875. margin-top: 40rpx;
  876. padding-left: 30rpx;
  877. padding-right: 30rpx;
  878. .yx-box-jl-t {
  879. color: #080808;
  880. font-size: 30rpx;
  881. }
  882. .yx-box-jl-label {
  883. margin-top: 20rpx;
  884. color: #141414;
  885. font-size: 26rpx;
  886. .yx-box-jl-label-l {
  887. width: 1rpx;
  888. height: 26rpx;
  889. border-right: 1rpx solid #CCCCCC;
  890. margin: 0 20rpx;
  891. }
  892. }
  893. }
  894. .yx-box-rem {
  895. margin-top: 60rpx;
  896. padding-left: 30rpx;
  897. padding-right: 30rpx;
  898. .yx-box-rem-t {
  899. color: #333333;
  900. font-size: 32rpx;
  901. font-weight: 800;
  902. }
  903. .yx-box-rem-i {
  904. color: #666666;
  905. font-size: 26rpx;
  906. margin-top: 30rpx;
  907. }
  908. }
  909. }
  910. }
  911. .jy {
  912. width: 100%;
  913. // height: 200rpx;
  914. margin-top: 20rpx;
  915. .jy-box {
  916. width: calc(100% - 60rpx);
  917. height: 100%;
  918. background-color: #FFFFFF;
  919. border-radius: 24rpx;
  920. .jy-box-c {
  921. width: calc(100% - 60rpx);
  922. height: 100%;
  923. padding-top: 50rpx;
  924. padding-bottom: 50rpx;
  925. }
  926. .jy-box-c-title {
  927. color: #121212;
  928. font-size: 34rpx;
  929. font-weight: 800;
  930. margin-bottom: 30rpx;
  931. }
  932. .jy-box-c-gs {
  933. width: 100%;
  934. padding-left: 20rpx;
  935. height: 100%;
  936. position: relative;
  937. padding-bottom: 30rpx;
  938. .left-line {
  939. position: absolute;
  940. left: 0;
  941. top: 5%;
  942. height: 95%;
  943. border-left: 5rpx solid #F0F0F2;
  944. }
  945. image {
  946. width: 20rpx;
  947. height: 20rpx;
  948. border-radius: 50%;
  949. position: absolute;
  950. top: 10rpx;
  951. left: -9rpx;
  952. }
  953. }
  954. .jy-box-c-gs-name {
  955. color: #121212;
  956. font-size: 30rpx;
  957. font-weight: bold;
  958. }
  959. .jy-box-c-gs-time {
  960. color: #101010;
  961. font-size: 28rpx;
  962. margin-top: 30rpx;
  963. text:nth-of-type(1) {
  964. margin-right: 30rpx;
  965. }
  966. }
  967. .jy-box-c-gs-c {
  968. color: #666666;
  969. font-size: 26rpx;
  970. margin-top: 20rpx;
  971. }
  972. }
  973. }
  974. .btn {
  975. width: 100%;
  976. height: 120rpx;
  977. background-color: #FFFFFF;
  978. position: fixed;
  979. bottom: 0;
  980. .btn-box {
  981. width: 686rpx;
  982. height: 80rpx;
  983. .btn-box-l {
  984. height: 100%;
  985. margin: 0 10rpx;
  986. }
  987. .btn-box-r {
  988. flex: 1;
  989. // width: 540rpx;
  990. height: 100%;
  991. border-radius: 45rpx;
  992. margin-left: 10rpx;
  993. .btn-box-r-l {
  994. width: 100%;
  995. border-radius: 45rpx;
  996. background-color: #ddecff;
  997. color: #016BF6;
  998. font-size: 32rpx;
  999. font-weight: bold;
  1000. }
  1001. .btn-box-r-r {
  1002. width: 50%;
  1003. border-radius: 0 45rpx 45rpx 0;
  1004. background: linear-gradient(90deg, #00DCC2 0%, #00DC94 100%);
  1005. color: #FFFFFF;
  1006. font-size: 32rpx;
  1007. font-weight: bold;
  1008. }
  1009. }
  1010. }
  1011. }
  1012. </style>