orderDet.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086
  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?'在职-考虑机会':'在职-暂不考虑')}}</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="#00B88F" 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: '#00B88F',
  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: '#00B88F',
  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: '#00B88F',
  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: '#00B88F',
  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: '#00B88F',
  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: '#00B88F',
  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: '#00B88F',
  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: '#00B88F',
  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: '#00B88F',
  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: '#00B88F',
  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: '#00B88F',
  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: '#00B88F',
  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: '#00B88F',
  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: '#00B88F',
  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: '#00B88F',
  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. if (res.code == 0) {
  767. uni.hideLoading()
  768. if (res.data.status == 1) {
  769. uni.showModal({
  770. title: '提示',
  771. content: '该简历审核中,暂无法查看',
  772. showCancel: false,
  773. cancelText: '',
  774. confirmText: '去首页',
  775. confirmColor: '#00B88F',
  776. complete: (ret) => {
  777. if (ret.confirm) {
  778. uni.switchTab({
  779. url: '/pages/index/index'
  780. })
  781. }
  782. }
  783. });
  784. } else {
  785. this.order = res.data
  786. this.order.industryName = this.order.industryName.split(',')
  787. this.getJobList(this.order.resumesPost)
  788. }
  789. } else {
  790. uni.hideLoading()
  791. uni.showModal({
  792. title: '提示',
  793. content: '用户简历不存在',
  794. showCancel: false,
  795. complete(ret) {
  796. uni.navigateBack()
  797. }
  798. })
  799. }
  800. })
  801. },
  802. //使用岗位名称查询出企业正在招聘的该岗位拿到对应的岗位id
  803. getJobList(ruleClassifyName) {
  804. let data = {
  805. status: 2,
  806. page: 1,
  807. limit: 1,
  808. ruleClassifyName: ruleClassifyName,
  809. companyId: uni.getStorageSync('companyId')
  810. }
  811. this.$Request.getT('/app/postPush/getPostPushList', data).then(res => {
  812. if (res.code == 0) {
  813. this.postPushId = res.data.records[0].postPushId
  814. }
  815. })
  816. },
  817. // 查看图片
  818. saveImg(imgs, index) {
  819. // console.log(imgs)
  820. let that = this;
  821. let imgArr = imgs
  822. // imgArr.push(imgs);
  823. // //预览图片
  824. uni.previewImage({
  825. urls: imgArr,
  826. current: imgArr[index]
  827. });
  828. },
  829. }
  830. }
  831. </script>
  832. <style lang="less">
  833. page {
  834. background: #F2F2F7;
  835. padding-bottom: 100rpx;
  836. }
  837. .backHome {
  838. position: fixed;
  839. right: 30rpx;
  840. bottom: 160rpx;
  841. image {
  842. width: 80rpx;
  843. height: 80rpx;
  844. border-radius: 50%;
  845. }
  846. }
  847. .boxs {
  848. background: #FFFFFF;
  849. border-radius: 24upx 24upx 0 0;
  850. padding: 30upx;
  851. margin: 30upx 30upx 0 30upx;
  852. }
  853. .yx {
  854. width: 100%;
  855. // height: 100rpx;
  856. // background-color: red;
  857. .yx-box {
  858. width: calc(100% - 60rpx);
  859. height: 100%;
  860. background-color: #FFFFFF;
  861. border-radius: 0 0 24rpx 24rpx;
  862. padding-top: 20rpx;
  863. padding-bottom: 30rpx;
  864. .yx-box-title {
  865. width: 100%;
  866. padding-left: 30rpx;
  867. padding-right: 30rpx;
  868. text:nth-of-type(1) {
  869. color: #333333;
  870. font-size: 32rpx;
  871. font-weight: 800;
  872. margin-right: 30rpx;
  873. }
  874. text:nth-of-type(2) {
  875. color: #141414;
  876. font-size: 26rpx;
  877. }
  878. }
  879. .yx-box-jl {
  880. margin-top: 40rpx;
  881. padding-left: 30rpx;
  882. padding-right: 30rpx;
  883. .yx-box-jl-t {
  884. color: #080808;
  885. font-size: 30rpx;
  886. }
  887. .yx-box-jl-label {
  888. margin-top: 20rpx;
  889. color: #141414;
  890. font-size: 26rpx;
  891. .yx-box-jl-label-l {
  892. width: 1rpx;
  893. height: 26rpx;
  894. border-right: 1rpx solid #CCCCCC;
  895. margin: 0 20rpx;
  896. }
  897. }
  898. }
  899. .yx-box-rem {
  900. margin-top: 60rpx;
  901. padding-left: 30rpx;
  902. padding-right: 30rpx;
  903. .yx-box-rem-t {
  904. color: #333333;
  905. font-size: 32rpx;
  906. font-weight: 800;
  907. }
  908. .yx-box-rem-i {
  909. color: #666666;
  910. font-size: 26rpx;
  911. margin-top: 30rpx;
  912. }
  913. }
  914. }
  915. }
  916. .jy {
  917. width: 100%;
  918. // height: 200rpx;
  919. margin-top: 20rpx;
  920. .jy-box {
  921. width: calc(100% - 60rpx);
  922. height: 100%;
  923. background-color: #FFFFFF;
  924. border-radius: 24rpx;
  925. .jy-box-c {
  926. width: calc(100% - 60rpx);
  927. height: 100%;
  928. padding-top: 50rpx;
  929. padding-bottom: 50rpx;
  930. }
  931. .jy-box-c-title {
  932. color: #121212;
  933. font-size: 34rpx;
  934. font-weight: 800;
  935. margin-bottom: 30rpx;
  936. }
  937. .jy-box-c-gs {
  938. width: 100%;
  939. padding-left: 20rpx;
  940. height: 100%;
  941. position: relative;
  942. padding-bottom: 30rpx;
  943. .left-line {
  944. position: absolute;
  945. left: 0;
  946. top: 5%;
  947. height: 95%;
  948. border-left: 5rpx solid #F0F0F2;
  949. }
  950. image {
  951. width: 20rpx;
  952. height: 20rpx;
  953. border-radius: 50%;
  954. position: absolute;
  955. top: 10rpx;
  956. left: -9rpx;
  957. }
  958. }
  959. .jy-box-c-gs-name {
  960. color: #121212;
  961. font-size: 30rpx;
  962. font-weight: bold;
  963. }
  964. .jy-box-c-gs-time {
  965. color: #101010;
  966. font-size: 28rpx;
  967. margin-top: 30rpx;
  968. text:nth-of-type(1) {
  969. margin-right: 30rpx;
  970. }
  971. }
  972. .jy-box-c-gs-c {
  973. color: #666666;
  974. font-size: 26rpx;
  975. margin-top: 20rpx;
  976. }
  977. }
  978. }
  979. .btn {
  980. width: 100%;
  981. height: 120rpx;
  982. background-color: #FFFFFF;
  983. position: fixed;
  984. bottom: 0;
  985. .btn-box {
  986. width: 686rpx;
  987. height: 80rpx;
  988. .btn-box-l {
  989. height: 100%;
  990. margin: 0 10rpx;
  991. }
  992. .btn-box-r {
  993. flex: 1;
  994. // width: 540rpx;
  995. height: 100%;
  996. border-radius: 45rpx;
  997. margin-left: 10rpx;
  998. .btn-box-r-l {
  999. width: 100%;
  1000. border-radius: 45rpx;
  1001. background-color: #E0FEF0;
  1002. color: #00B88F;
  1003. font-size: 32rpx;
  1004. font-weight: bold;
  1005. }
  1006. .btn-box-r-r {
  1007. width: 50%;
  1008. border-radius: 0 45rpx 45rpx 0;
  1009. background: linear-gradient(90deg, #00DCC2 0%, #00DC94 100%);
  1010. color: #FFFFFF;
  1011. font-size: 32rpx;
  1012. font-weight: bold;
  1013. }
  1014. }
  1015. }
  1016. }
  1017. </style>