order.vue 29 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201
  1. <template>
  2. <view style="padding: 148rpx 40rpx 40rpx 40rpx;">
  3. <!-- 固定顶部导航 -->
  4. <view class="fixed-nav" :style="{ paddingTop: (12 + statusBarHeight) + 'px' }">
  5. <view class="nav-bar">
  6. <view class="nav-left" @click="goBack">
  7. <u-icon name="arrow-leftward" color="rgba(51, 51, 51, 1)" style="font-size: 38rpx;"></u-icon>
  8. </view>
  9. <view class="nav-title">职位详情</view>
  10. <view class="nav-right">
  11. <view class="nav-icons">
  12. <view class="nav-icon" @click="setCollection">
  13. <image v-if="info.isCollection==0" src="/static/images/index/guanzhu.svg" class="icon-img"></image>
  14. <image v-else src="/static/images/index/gzActive.svg" style="width: 52rpx;height: 52rpx;"></image>
  15. </view>
  16. <view class="nav-icon" @click="showShare">
  17. <image src="/static/images/index/fenxiang.svg" style="width: 60rpx;height: 60rpx;"></image>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. <!-- 岗位要求 -->
  24. <view class="job flex justify-center">
  25. <view class="job-info flex justify-center">
  26. <view class="job-info-c">
  27. <view class="job-info-c-top flex align-center justify-between">
  28. <view class="job-info-c-title">
  29. <!-- <block v-if="isSameName(info.ruleClassifyName,info.stationName)">
  30. {{info.ruleClassifyName}}-
  31. </block> -->
  32. <block>
  33. {{info.ruleClassifyName}}
  34. </block>
  35. </view>
  36. <view class="job-info-c-price" v-if="info.salaryRange">
  37. {{info.salaryRange}}
  38. </view>
  39. </view>
  40. <view class="enterprise-box-c-bto flex align-center justify-between" @click.stop="gotoMap()">
  41. <view class="enterprise-box-c-bto-l flex align-center gap-10rpx">
  42. <u-icon name="map" color="rgba(58, 57, 67, 1)" style="margin-right: 10rpx;"
  43. size="24"></u-icon>
  44. {{info.province?info.province:''}}{{info.city?info.city:''}}{{info.county?info.county:''}}{{info.address?info.address:''}}
  45. </view>
  46. <!-- <view class="enterprise-box-c-bto-r">
  47. <u-icon name="arrow-right" color="#016BF6" style="margin-right: 20rpx;" size="28"></u-icon>
  48. </view> -->
  49. </view>
  50. <view class="job-info-c-label flex align-center flex-wrap">
  51. <view class="job-info-c-label-item" v-if="info.county">
  52. {{info.county}}
  53. </view>
  54. <view class="job-info-c-label-item" v-if="info.experience">
  55. {{info.experience}}
  56. </view>
  57. <view class="job-info-c-label-item" v-if="info.education">
  58. {{info.education}}
  59. </view>
  60. </view>
  61. </view>
  62. </view>
  63. </view>
  64. <!-- 急聘 -->
  65. <view v-if="info.isDue==1" class="urgent-banner">
  66. <view class="urgent-icon">
  67. <image src="/static/images/index/jipin2.svg" class="icon-img"></image>
  68. </view>
  69. <view class="urgent-text">
  70. <view class="urgent-title">该招聘为急聘职位</view>
  71. <view class="urgent-subtitle">急清职位可在下方点击一键投递简历</view>
  72. </view>
  73. </view>
  74. <!-- 企业信息 -->
  75. <view class="enterprise-box-c-info flex align-start justify-between">
  76. <view class="enterprise-left flex align-center">
  77. <view class="avatar-container">
  78. <image :src="info.hr&&info.hr.hrImg||'../../../static/logo.png'"
  79. style="width: 95rpx;height: 95rpx;border-radius: 50%;" mode=""></image>
  80. <view class="online-dot"></view>
  81. </view>
  82. <view class="enterprise-box-c-info-n">
  83. <view class="">
  84. {{info.user?info.user.userName:''}}
  85. </view>
  86. <view class="">
  87. {{info.hr&&info.hr.hrPosition||''}}
  88. </view>
  89. <view>
  90. {{info.respondTime||'未沟通'}}
  91. </view>
  92. </view>
  93. </view>
  94. <view class="more-jobs flex align-center" @click="goToMoreJobs">
  95. <text>更多职位</text>
  96. <u-icon name="arrow-right" color="rgba(51, 51, 51, 1)" size="28"></u-icon>
  97. </view>
  98. </view>
  99. <!-- 岗位介绍 -->
  100. <view class="jobRemarks flex justify-center">
  101. <!-- <skeleton type="round" bgColor="#ffffff"> -->
  102. <view class="jobRemarks-box flex justify-center">
  103. <view class="jobRemarks-box-c">
  104. <view class="jobRemarks-box-c-title flex align-center">
  105. <image src="/static/images/index/ins.png" class="title-icon"></image>
  106. <text>职位说明</text>
  107. </view>
  108. <view class="jobRemarks-box-c-label flex align-center flex-wrap" v-if="info.tag">
  109. <view class="jobRemarks-box-c-label-item" v-for="(item,index) in info.tag.split(',')"
  110. :key="index">
  111. {{item}}
  112. </view>
  113. </view>
  114. <view class="jobRemarks-box-c-con" v-if="info.positionDetails">
  115. <view class="jobRemarks-box-c-con-item" v-html="info.positionDetails">
  116. </view>
  117. </view>
  118. <view class="jobRemarks-box-c-line"></view>
  119. <view class="jobRemarks-box-c-title flex align-center" style="margin-top: 25rpx;">
  120. <image src="/static/images/index/welfare.png" class="title-icon"></image>
  121. <text>岗位福利</text>
  122. </view>
  123. <view class="jobRemarks-box-c-label flex align-center flex-wrap" v-if="info.welfareTag">
  124. <view class="jobRemarks-box-c-label-item"
  125. v-for="(item,index) in info.welfareTag?info.welfareTag.split(';'):[]"
  126. :key="index">
  127. {{item}}
  128. </view>
  129. </view>
  130. <view class="jobRemarks-box-c-label flex align-center flex-wrap" v-else>
  131. <view class="jobRemarks-box-c-label-item">
  132. 暂无
  133. </view>
  134. </view>
  135. <view class="job-description">
  136. <view class="description-item">{{info.positionWelfare}}</view>
  137. </view>
  138. </view>
  139. </view>
  140. <!-- </skeleton> -->
  141. </view>
  142. <!-- 企业简介 -->
  143. <view class="enterprise" v-if="info.lng">
  144. <!-- 公司介绍卡片 -->
  145. <view class="company-intro-card" @click="goInfo(info.company.companyId)">
  146. <view class="company-avatar">
  147. <image :src="info.company&&info.company.companyLogo||'../../../static/logo.png'"
  148. style="width: 95rpx;height: 95rpx;border-radius: 50%;" mode="aspectFill"></image>
  149. </view>
  150. <view class="company-info">
  151. <view class="company-name">{{info.company?info.company.companyName:''}}</view>
  152. <view class="company-details">{{info.company?info.company.companyPeople:''}} · {{info.company?info.company.companyScope:''}}</view>
  153. </view>
  154. <view class="company-arrow">
  155. <u-icon name="arrow-right" color="rgba(51, 51, 51, 1)" size="32"></u-icon>
  156. </view>
  157. </view>
  158. <!-- 地图区域 -->
  159. <view class="enterprise-box flex justify-center">
  160. <view class="enterprise-box-c">
  161. <!-- #ifndef APP -->
  162. <view class="enterprise-box-c-map">
  163. <map style="width: 100%; height: 100%;" scale="14" @tap.stop="gotoMap()" :latitude="info.lat"
  164. :longitude="info.lng" :markers="covers">
  165. </map>
  166. </view>
  167. <!-- #endif -->
  168. </view>
  169. </view>
  170. </view>
  171. <!-- 底部操作 -->
  172. <view class="caozuo flex justify-center align-center">
  173. <view v-if="info&&info.isDue==1" class="caozuo-box-l flex justify-center align-center" @click="attachmentShow=true">
  174. 一键投递
  175. </view>
  176. <view class="caozuo-box-r flex justify-center align-center" @click="bindphone(2)">
  177. 立即沟通
  178. </view>
  179. <!-- <view class="caozuo-box flex align-center justify-between">
  180. <view class="caozuo-box-l flex align-center">
  181. <!-- #ifdef MP-WEIXIN -->
  182. <view class="caozuo-box-l-item flex align-center flex-wrap">
  183. <button open-type="share">
  184. <u-icon name="share" color="#333333" size="50"></u-icon>
  185. <text style="margin-top: 16rpx;">分享</text>
  186. </button>
  187. </view>
  188. <!-- #endif -->
  189. <!-- #ifdef H5 -->
  190. <view class="caozuo-box-l-item flex align-center flex-wrap" @click="shar()">
  191. <u-icon name="share" color="#333333" size="50"></u-icon>
  192. <view class="">
  193. 分享
  194. </view>
  195. </view>
  196. #endif
  197. #ifdef APP-PLUS
  198. <view class="caozuo-box-l-item flex align-center flex-wrap" @click="shows = true">
  199. <u-icon name="share" color="#333333" size="50"></u-icon>
  200. <view class="">
  201. 分享
  202. </view>
  203. </view>
  204. <!-- #endif -->
  205. <view class="caozuo-box-l-item flex align-center flex-wrap" @click="goJuBao()">
  206. <u-icon name="warning" color="#333333" size="50"></u-icon>
  207. <view class="">
  208. 举报
  209. </view>
  210. </view>
  211. <view @click="setCollection()" class="caozuo-box-l-item flex align-center flex-wrap">
  212. <u-icon name="star" v-if="info.isCollection==0" color="#333333" size="50"></u-icon>
  213. <u-icon name="star-fill" v-else color="#016BF6" size="50"></u-icon>
  214. <view class="">
  215. {{info.isCollection==0?'收藏':'取消'}}
  216. </view>
  217. </view>
  218. </view>
  219. </view> -->
  220. </view>
  221. <u-popup v-model="shows" z-index="99999" mode="bottom" border-radius="14" height="300rpx">
  222. <view class="shar flex justify-center">
  223. <view class="shar-box flex justify-around">
  224. <view class="shar-box-item" @click="appShare('WXSceneSession')">
  225. <u-icon name="weixin-circle-fill" color="#45b630" style="margin-left: 10rpx;" size="70">
  226. </u-icon>
  227. <view class="">
  228. 微信好友
  229. </view>
  230. </view>
  231. <view class="shar-box-item" @click="appShare('WXSenceTimeline')">
  232. <u-icon name="moments-circel-fill" color="#6dbf30" size="70" style="margin-left: 20rpx;">
  233. </u-icon>
  234. <view class="">
  235. 微信朋友圈
  236. </view>
  237. </view>
  238. </view>
  239. </view>
  240. <view class="line"></view>
  241. <view class="sharNo" @click="shows = false">
  242. 取消
  243. </view>
  244. </u-popup>
  245. <!-- 返回首页按钮 -->
  246. <!-- #ifdef H5 -->
  247. <!--
  248. <view class="backHome" @click="goHome()">
  249. <image src="../../../static/images/index/backHome.png" mode=""></image>
  250. </view>
  251. -->
  252. <!-- #endif -->
  253. <u-popup v-model="attachmentShow" z-index="99999" mode="bottom" border-radius="14" height="auto" :closeable="true">
  254. <attachment @select="selectAttachment" :content="content"></attachment>
  255. </u-popup>
  256. </view>
  257. </template>
  258. <script>
  259. import config from '../../../common/config.js'
  260. import attachment from '../../../components/attachment.vue'
  261. export default {
  262. //分享
  263. onShareAppMessage(res) {
  264. return {
  265. path: '/pages/index/game/order?postPushId=' + this.postPushId + '&invitation=' + uni.getStorageSync(
  266. 'invitationCode'),
  267. title: this.info.stationName,
  268. }
  269. },
  270. /*
  271. * uniapp微信小程序分享页面到微信朋友圈
  272. */
  273. onShareTimeline(res) {
  274. return {
  275. path: '/pages/index/game/order?postPushId=' + this.postPushId + '&invitation=' + uni.getStorageSync(
  276. 'invitationCode'),
  277. title: this.info.stationName,
  278. }
  279. },
  280. components: {
  281. attachment
  282. },
  283. data() {
  284. return {
  285. statusBarHeight: 0, // 状态栏高度
  286. loading: true,
  287. shows: false,
  288. attachmentShow:false,
  289. postPushId: '',
  290. info: {}, //岗位详情
  291. token: uni.getStorageSync('token'),
  292. covers: [{
  293. id: 1,
  294. latitude: '',
  295. longitude: '',
  296. width: 20,
  297. height: 20,
  298. iconPath: '../../../static/images/mapMarker.png',
  299. callout: {
  300. content: '',
  301. color: '#000', //文字颜色
  302. fontSize: 10, //文本大小
  303. padding: 10, //附近留白
  304. borderRadius: 24, //边框圆角
  305. bgColor: '#FFFFFF', //背景颜色
  306. display: 'ALWAYS', //常显
  307. }
  308. }],
  309. sharType: 0,
  310. sharMsg: '',
  311. content:[]
  312. };
  313. },
  314. onLoad(option) {
  315. // 获取状态栏高度
  316. let systemInfo = uni.getSystemInfoSync();
  317. this.statusBarHeight = systemInfo.statusBarHeight || 0;
  318. // 获取邀请码保存到本地
  319. if (option.invitation) {
  320. this.$queue.setData('inviterCode', option.invitation);
  321. }
  322. // #ifdef MP-WEIXIN
  323. if (option.scene) {
  324. const scene = decodeURIComponent(option.scene);
  325. this.$queue.setData('inviterCode', scene.split(',')[0]);
  326. }
  327. // #endif
  328. //小程序分享版本
  329. this.$Request.getT('/app/common/type/340').then(res => {
  330. if (res.code == 0) {
  331. if (res.data && res.data.value) {
  332. this.sharType = res.data.value
  333. }
  334. }
  335. });
  336. //小程序分享图片
  337. this.$Request.getT('/app/common/type/341').then(res => {
  338. if (res.code == 0) {
  339. if (res.data && res.data.value) {
  340. this.sharMsg = res.data.value
  341. }
  342. }
  343. });
  344. this.$Request.get("/app/resumes/getAttachment").then(res => {
  345. if (res.code == 0) {
  346. this.content=res.data
  347. }
  348. uni.hideLoading();
  349. });
  350. uni.showLoading({
  351. title: '加载中'
  352. })
  353. this.postPushId = option.postPushId
  354. this.getInfo()
  355. },
  356. methods: {
  357. // 返回上一页
  358. goBack() {
  359. uni.navigateBack();
  360. },
  361. // 显示分享选项
  362. showShare() {
  363. this.shows = true;
  364. },
  365. //判断岗位名称与职位名称是否相同(不区分大小写)
  366. isSameName(className, name) {
  367. let str1 = className.trim();
  368. let str2 = name.trim();
  369. if (str1.length !== str2.length) {
  370. return true;
  371. }
  372. return str1.toLowerCase() !== str2.toLowerCase();
  373. },
  374. goHome() {
  375. let pages = getCurrentPages(); // 获取页面栈
  376. console.log(pages)
  377. if (pages.length > 1) { //有上一页
  378. uni.navigateBack()
  379. } else {
  380. uni.switchTab({
  381. url: '/pages/index/index'
  382. })
  383. }
  384. },
  385. //app分享
  386. appShare(scene) {
  387. let that = this
  388. let routes = getCurrentPages(); // 获取当前打开过的页面路由数组
  389. let curRoute = routes[routes.length - 1].$page.fullPath // 获取当前页面路由,也就是最后一个打开的页面路由
  390. uni.share({
  391. provider: "weixin", //分享服务提供商(即weixin|qq|sinaweibo)
  392. scene: scene, //场景,可取值参考下面说明。
  393. type: 5, //分享形式 0:图文 1:纯文字 2:纯图片 3:音乐 4:视频 5:小程序
  394. // href: curRoute, //跳转链接
  395. // imageUrl:'https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-uni-app-doc/962fc340-4f2c-11eb-bdc1-8bd33eb6adaa.png',
  396. imageUrl: that.sharMsg,
  397. title: that.info.stationName, //分享内容的标题
  398. miniProgram: {
  399. id: 'gh_d531be6accdb', //分享的小程序原始id
  400. path: curRoute, //分享的小程序的页面路径
  401. webUrl: "https://ask.dcloud.net.cn/article/287", //地址
  402. type: that.sharType, //微信小程序的版本 0-正式版; 1-测试版; 2-体验版。 默认值为0。
  403. },
  404. success: function(res) {
  405. that.shows = false; //成功后关闭底部弹框
  406. },
  407. fail: function(err) {
  408. console.log(err, '分享失败回调')
  409. uni.showToast({
  410. title: '分享失败',
  411. icon: 'none',
  412. duration: 2000
  413. })
  414. that.shows = false;
  415. }
  416. });
  417. },
  418. getShowModal() {
  419. uni.showModal({
  420. title: '提示',
  421. content: '请登录后联系企业',
  422. showCancel: true,
  423. cancelText: '取消',
  424. confirmText: '去登录',
  425. complete: (res) => {
  426. if (res.confirm) {
  427. uni.navigateTo({
  428. url: '/pages/public/login'
  429. })
  430. }
  431. }
  432. });
  433. },
  434. shar() {
  435. if (this.token) {
  436. let that = this
  437. // h5分享
  438. // #ifdef H5
  439. let url = config.WSHOST4 + '/pages/index/game/order?postPushId=' + this.postPushId
  440. // let url = 'http://192.168.0.109:8081/pages/index/game/order?postPushId=' + this.postPushId
  441. // alert(url)
  442. uni.setClipboardData({
  443. data: url,
  444. success() {
  445. uni.showToast({
  446. title: '分享链接已复制'
  447. })
  448. }
  449. })
  450. // #endif
  451. } else {
  452. this.getShowModal()
  453. }
  454. },
  455. goJuBao() {
  456. if (this.token) {
  457. uni.navigateTo({
  458. url: '/my/feedback/jubao?postPushId=' + this.postPushId
  459. })
  460. } else {
  461. this.getShowModal()
  462. }
  463. },
  464. //在线联系
  465. bindphone(phone, index) {
  466. if(!this.info.user||!this.info.user.userId)
  467. return this.$queue.showToast('岗位发布者已不知所踪,请联系管理员😂😂😂😂😂😂')
  468. if (uni.getStorageSync('token')) {
  469. this.$Request.get('/app/resumes/selectResumesByUserId').then(res => {
  470. if (res.code == 0) {
  471. let obj = res.data
  472. if (JSON.stringify(obj) == '{}' || obj == null) {
  473. uni.showModal({
  474. title: '提示',
  475. content: '暂无简历,请完善简历!',
  476. confirmText: '去完善',
  477. confirmColor: '#016BF6',
  478. complete(ret) {
  479. if (ret.confirm) {
  480. uni.navigateTo({
  481. url: '/package/my/resume'
  482. })
  483. }
  484. }
  485. })
  486. } else {
  487. console.log(this.info)
  488. if(uni.getStorageSync('userId')==this.info.user.userId)
  489. return this.$queue.showToast('自己无法与自己聊天')
  490. this.$Request.postJson('/app/chat/insertChatConversation', {
  491. userId: uni.getStorageSync('userId'), //用户userid
  492. focusedUserId: this.info.user.userId, //企业userid
  493. type: 1,
  494. postPushId: this.info.postPushId,
  495. resumesId: res.data.resumesId
  496. }).then(res => {
  497. if (res.code == 0) {
  498. uni.navigateTo({
  499. url: '/pages/msg/im?byUserId=' + this.info.user
  500. .userId + '&chatConversationId=' + res.data
  501. .chatConversationId + '&postPushId=' + res.data
  502. .postPushId
  503. })
  504. }
  505. })
  506. }
  507. }
  508. })
  509. } else {
  510. uni.showModal({
  511. title: '提示',
  512. content: '请登录后联系企业',
  513. showCancel: true,
  514. cancelText: '取消',
  515. confirmText: '去登录',
  516. complete: (res) => {
  517. if (res.confirm) {
  518. uni.navigateTo({
  519. url: '/pages/public/login'
  520. })
  521. }
  522. }
  523. });
  524. }
  525. },
  526. //拉起地图导航
  527. gotoMap() {
  528. let that = this
  529. uni.openLocation({
  530. latitude: that.info.lat,
  531. longitude: that.info.lng,
  532. address: that.info.province + '' + that.info.city + '' + that.info.county + '' + that.info
  533. .address,
  534. name: that.info.address,
  535. complete(ret) {
  536. }
  537. })
  538. },
  539. /**
  540. * 收藏岗位
  541. */
  542. setCollection() {
  543. this.$Request.postT("/app/myCollection/saveCollection", {
  544. postPushId: this.postPushId,
  545. type: 1
  546. }).then(res => {
  547. if (res.code == 0) {
  548. uni.showToast({
  549. title: res.msg
  550. })
  551. this.getInfo()
  552. }
  553. })
  554. },
  555. /**
  556. * 获取岗位详情
  557. */
  558. getInfo() {
  559. this.$Request.getT("/app/postPush/selectPostPushDetails", {
  560. userId: uni.getStorageSync('userId'),
  561. postPushId: this.postPushId
  562. }).then(res => {
  563. if (res.code == 0) {
  564. this.info = res.data
  565. this.covers = [{
  566. id: 1,
  567. latitude: this.info.lat,
  568. longitude: this.info.lng,
  569. width: 20,
  570. height: 20,
  571. iconPath: '../../../static/images/mapMarker.png',
  572. callout: {
  573. content: this.info.city + '' + this.info.county + '' + this.info.address,
  574. color: '#000', //文字颜色
  575. fontSize: 10, //文本大小
  576. padding: 10, //附近留白
  577. borderRadius: 24, //边框圆角
  578. bgColor: '#FFFFFF', //背景颜色
  579. display: 'ALWAYS', //常显
  580. }
  581. }]
  582. }
  583. uni.hideLoading()
  584. })
  585. },
  586. //跳转企业详情
  587. goInfo(companyId) {
  588. uni.navigateTo({
  589. url: '/my/enterpriseInfo/enterpriseInfo?companyId=' + companyId
  590. })
  591. },
  592. //跳转更多职位
  593. goToMoreJobs() {
  594. uni.navigateTo({
  595. url: '/my/enterpriseInfo/enterpriseInfo?companyId=' + this.info.company.companyId
  596. })
  597. },
  598. selectAttachment(item){
  599. //console.log(item)
  600. this.attachmentShow=false
  601. this.oneClickApply(item)
  602. },
  603. //一键投递
  604. oneClickApply(item) {
  605. if(!this.info.user||!this.info.user.userId)
  606. return this.$queue.showToast('岗位发布者已不知所踪,请联系管理员😂😂😂😂😂😂')
  607. if (uni.getStorageSync('token')) {
  608. this.$Request.get('/app/resumes/selectResumesByUserId').then(res => {
  609. if (res.code == 0) {
  610. let obj = res.data
  611. if (JSON.stringify(obj) == '{}' || obj == null) {
  612. uni.showModal({
  613. title: '提示',
  614. content: '暂无简历,请完善简历!',
  615. confirmText: '去完善',
  616. confirmColor: '#016BF6',
  617. complete(ret) {
  618. if (ret.confirm) {
  619. uni.navigateTo({
  620. url: '/package/my/resume'
  621. })
  622. }
  623. }
  624. })
  625. } else {
  626. // 执行一键投递逻辑
  627. this.$Request.postT("/app/resumes/sendResumes", {
  628. to: this.info.user.userId, //接收人的userId
  629. postPushId: this.postPushId, //岗位id
  630. resumesAttachmentId:item.resumesAttachmentId
  631. }).then(res => {
  632. if (res.code == 0) {
  633. uni.showToast({
  634. title: '投递成功',
  635. icon: 'success'
  636. })
  637. } else {
  638. uni.showToast({
  639. title: res.msg || '投递失败',
  640. icon: 'none'
  641. })
  642. }
  643. })
  644. }
  645. }
  646. })
  647. } else {
  648. uni.showModal({
  649. title: '提示',
  650. content: '请登录后投递简历',
  651. showCancel: true,
  652. cancelText: '取消',
  653. confirmText: '去登录',
  654. complete: (res) => {
  655. if (res.confirm) {
  656. uni.navigateTo({
  657. url: '/pages/public/login'
  658. })
  659. }
  660. }
  661. });
  662. }
  663. },
  664. }
  665. }
  666. </script>
  667. <style lang="scss">
  668. page {
  669. // background-color: #F2F2F7;
  670. padding-bottom: 200rpx;
  671. }
  672. .fixed-nav {
  673. position: fixed;
  674. top: 0;
  675. left: 0;
  676. right: 0;
  677. z-index: 9999;
  678. background-color: #ffffff;
  679. padding: 0 32rpx;
  680. // padding-top 已改为动态计算,在模板中通过 :style 设置
  681. }
  682. .urgent-banner {
  683. width: 100%;
  684. height: 120rpx;
  685. background: linear-gradient(90deg, rgba(255, 65, 86, 1) 0%, rgba(255, 102, 0, 0.35) 100%);
  686. border-radius: 16rpx;
  687. display: flex;
  688. align-items: center;
  689. padding: 0 30rpx;
  690. margin: 0 auto 20rpx auto;
  691. .urgent-icon {
  692. width: 64rpx;
  693. height: 64rpx;
  694. border-radius: 50%;
  695. display: flex;
  696. align-items: center;
  697. justify-content: center;
  698. margin-right: 24rpx;
  699. flex-shrink: 0;
  700. }
  701. .urgent-text {
  702. flex: 1;
  703. text-align: left;
  704. .urgent-title {
  705. color: #ffffff;
  706. font-family: DM Sans;
  707. font-size: 26rpx;
  708. font-weight: 400;
  709. letter-spacing: 0px;
  710. }
  711. .urgent-subtitle {
  712. color: rgba(255, 255, 255, 1);
  713. font-family: DM Sans;
  714. font-size: 18rpx;
  715. font-weight: 400;
  716. text-align: left;
  717. }
  718. }
  719. }
  720. .nav-bar {
  721. display: flex;
  722. align-items: center;
  723. justify-content: space-between;
  724. margin-bottom: 30rpx;
  725. .nav-left {
  726. display: flex;
  727. align-items: center;
  728. justify-content: flex-start;
  729. width: 96rpx;
  730. }
  731. .nav-title {
  732. flex: 1;
  733. color: rgba(51, 51, 51, 1);
  734. font-family: DM Sans;
  735. font-size: 32rpx;
  736. font-weight: 700;
  737. line-height: 26px;
  738. text-align: center;
  739. }
  740. .nav-right {
  741. display: flex;
  742. align-items: center;
  743. justify-content: flex-end;
  744. width: 96rpx;
  745. }
  746. .nav-icons {
  747. display: flex;
  748. align-items: center;
  749. gap: 24rpx;
  750. }
  751. .nav-icon {
  752. display: flex;
  753. align-items: center;
  754. justify-content: center;
  755. width: 36rpx;
  756. height: 36rpx;
  757. }
  758. .icon-img {
  759. width: 42rpx;
  760. height: 42rpx;
  761. }
  762. .icon-img.active {
  763. filter: hue-rotate(120deg) saturate(1.5);
  764. }
  765. }
  766. button {
  767. background: #ffffff;
  768. border: none !important;
  769. width: 120rpx;
  770. font-size: 24rpx;
  771. height: 80rpx;
  772. display: flex;
  773. justify-content: center;
  774. align-content: flex-start;
  775. flex-wrap: wrap;
  776. margin: 0;
  777. padding: 0 !important;
  778. line-height: 0 !important;
  779. }
  780. button:after {
  781. border: none !important;
  782. }
  783. .backHome {
  784. position: fixed;
  785. right: 30rpx;
  786. bottom: 160rpx;
  787. image {
  788. width: 80rpx;
  789. height: 80rpx;
  790. border-radius: 50%;
  791. }
  792. }
  793. .shar {
  794. width: 100%;
  795. height: 100rpx;
  796. margin-top: 40rpx;
  797. .shar-box {
  798. width: 686rpx;
  799. height: 100%;
  800. .shar-box-item {
  801. font-size: 24rpx;
  802. }
  803. }
  804. }
  805. .line {
  806. width: 100%;
  807. border: 1rpx solid #F2F2F7;
  808. margin-top: 30rpx;
  809. margin-bottom: 20rpx;
  810. }
  811. .sharNo {
  812. width: 100%;
  813. color: #cccccc;
  814. font-size: 24rpx;
  815. text-align: center;
  816. }
  817. .job {
  818. width: 100%;
  819. margin-top: 30rpx;
  820. .job-info {
  821. // width: 686rpx;
  822. width: 100%;
  823. height: 100%;
  824. border-radius: 24rpx;
  825. background-color: #ffffff;
  826. .job-info-c {
  827. // width: 626rpx;
  828. width: 100%;
  829. height: 100%;
  830. padding-top: 30rpx;
  831. padding-bottom: 30rpx;
  832. }
  833. .enterprise-box-c-bto {
  834. width: 100%;
  835. border-radius: 30rpx;
  836. margin-top: 34rpx;
  837. color: rgba(156, 164, 171, 1);
  838. font-family: DM Sans;
  839. font-size: 12px;
  840. font-weight: 400;
  841. line-height: 12px;
  842. letter-spacing: 0.5%;
  843. }
  844. .job-info-c-title {
  845. color: rgba(58, 57, 67, 1);
  846. font-family: DM Sans;
  847. font-size: 26px;
  848. font-weight: 700;
  849. line-height: 30px;
  850. letter-spacing: 0px;
  851. text-align: left;
  852. }
  853. .job-info-c-label {
  854. margin-top: 30rpx;
  855. .job-info-c-label-item {
  856. margin-right: 30rpx;
  857. color: rgba(153, 153, 153, 1);
  858. font-size: 24rpx;
  859. padding: 4px;
  860. border-radius: 6px;
  861. background: rgba(198, 198, 198, 0.1);
  862. }
  863. }
  864. .job-info-c-price {
  865. color: rgba(1, 107, 246, 1);
  866. font-family: DM Sans;
  867. font-size: 18px;
  868. font-weight: 700;
  869. line-height: 20px;
  870. letter-spacing: 0.5%;
  871. text-align: right;
  872. }
  873. }
  874. }
  875. .enterprise-box-c-info {
  876. width: 100%;
  877. height: auto;
  878. padding: 16px;
  879. border: 0.5px solid rgba(227, 231, 236, 1);
  880. border-radius: 6px;
  881. background: rgba(253, 253, 253, 1);
  882. // margin-top: 40rpx;
  883. .enterprise-left {
  884. flex: 1;
  885. }
  886. .avatar-container {
  887. position: relative;
  888. display: inline-block;
  889. }
  890. .online-dot {
  891. position: absolute;
  892. bottom: 4rpx;
  893. right: 4rpx;
  894. width: 20rpx;
  895. height: 20rpx;
  896. background: #00D26A;
  897. border: 2rpx solid #ffffff;
  898. border-radius: 50%;
  899. }
  900. .more-jobs {
  901. color: rgba(153, 153, 153, 1);
  902. font-size: 22rpx;
  903. font-weight: 400;
  904. gap: 8rpx;
  905. }
  906. .enterprise-box-c-info-n {
  907. margin-left: 18rpx;
  908. view:nth-of-type(1) {
  909. color: #333333;
  910. font-size: 24rpx;
  911. font-weight: 600;
  912. }
  913. view:nth-of-type(2) {
  914. color: #999999;
  915. font-size: 24rpx;
  916. font-weight: 500;
  917. margin-top: 8rpx;
  918. }
  919. view:nth-of-type(3) {
  920. display: inline-block;
  921. width: auto;
  922. border-radius: 6px;
  923. padding: 4rpx 12rpx;
  924. background: rgba(236, 225, 253, 1);
  925. color: rgba(107, 85, 214, 0.96);
  926. font-size: 20rpx;
  927. font-weight: 500;
  928. margin-top: 8rpx;
  929. white-space: nowrap;
  930. }
  931. }
  932. }
  933. .jobRemarks {
  934. width: 100%;
  935. .jobRemarks-box {
  936. width: 100%;
  937. height: 100%;
  938. background-color: #ffffff;
  939. border-radius: 24rpx;
  940. .jobRemarks-box-c {
  941. width: 100%;
  942. height: 100%;
  943. padding-top: 30rpx;
  944. padding-bottom: 30rpx;
  945. }
  946. .jobRemarks-box-c-title {
  947. color: rgba(1, 107, 246, 1);
  948. font-size: 32rpx;
  949. padding: 8px 12px;
  950. border-radius: 36px;
  951. font-weight: 500;
  952. background: rgba(246, 246, 246, 1);
  953. .title-icon {
  954. width: 32rpx;
  955. height: 32rpx;
  956. }
  957. }
  958. .job-description {
  959. margin-top: 20rpx;
  960. margin-bottom: 20rpx;
  961. .description-item {
  962. color: rgba(97, 110, 124, 1);
  963. font-family: DM Sans;
  964. font-size: 26rpx;
  965. font-weight: 400;
  966. line-height: 16px;
  967. letter-spacing: 0px;
  968. text-align: left;
  969. margin-bottom: 8rpx;
  970. }
  971. }
  972. .jobRemarks-box-c-label {
  973. width: 100%;
  974. margin-top: 25rpx;
  975. .jobRemarks-box-c-label-item {
  976. color: rgba(1, 107, 246, 1);
  977. font-size: 20rpx;
  978. padding: 10rpx 15rpx;
  979. background-color: #F6F6F6;
  980. border-radius: 10rpx;
  981. margin-right: 20rpx;
  982. margin-bottom: 10rpx;
  983. background: rgba(252, 233, 220, 1);
  984. }
  985. }
  986. .jobRemarks-box-c-con {
  987. width: 100%;
  988. margin-top: 25rpx;
  989. .jobRemarks-box-c-con-item {
  990. margin-bottom: 10rpx;
  991. color: #141414;
  992. font-size: 28rpx;
  993. font-weight: 500;
  994. }
  995. }
  996. .jobRemarks-box-c-line {
  997. width: 100%;
  998. border: 1rpx solid #E6E6E6;
  999. margin-top: 25rpx;
  1000. }
  1001. }
  1002. }
  1003. .enterprise {
  1004. width: 100%;
  1005. margin-top: 25rpx;
  1006. .company-intro-card {
  1007. width: 100%;
  1008. background-color: #ffffff;
  1009. border-radius: 24rpx;
  1010. padding: 12rpx 24rpx;
  1011. margin-bottom: 20rpx;
  1012. display: flex;
  1013. align-items: center;
  1014. border: 0.5px solid rgba(227, 231, 236, 1);
  1015. .company-avatar {
  1016. flex-shrink: 0;
  1017. margin-right: 24rpx;
  1018. }
  1019. .company-info {
  1020. flex: 1;
  1021. .company-name {
  1022. color: rgba(51, 51, 51, 1);
  1023. font-size: 26rpx;
  1024. font-weight: 600;
  1025. line-height: 1.4;
  1026. margin-bottom: 8rpx;
  1027. }
  1028. .company-details {
  1029. color: rgba(153, 153, 153, 1);
  1030. font-size: 24rpx;
  1031. font-weight: 400;
  1032. line-height: 1.4;
  1033. }
  1034. }
  1035. .company-arrow {
  1036. flex-shrink: 0;
  1037. margin-left: 48rpx;
  1038. }
  1039. }
  1040. .enterprise-box {
  1041. width: 100%;
  1042. background-color: #ffffff;
  1043. height: 100%;
  1044. padding-bottom: 25rpx;
  1045. border-radius: 24rpx;
  1046. .enterprise-box-c {
  1047. width: 100%;
  1048. height: 100%;
  1049. }
  1050. .enterprise-box-c-map {
  1051. width: 100%;
  1052. margin-top: 20rpx;
  1053. height: 400rpx;
  1054. }
  1055. }
  1056. }
  1057. .caozuo {
  1058. width: 100%;
  1059. height: 120rpx;
  1060. position: fixed;
  1061. bottom: 0;
  1062. left: 0;
  1063. background-color: #ffffff;
  1064. padding: 0 40rpx;
  1065. gap: 20rpx;
  1066. .caozuo-box-l {
  1067. flex: 0.8;
  1068. height: 80rpx;
  1069. color: #ffffff;
  1070. border-radius: 45rpx;
  1071. background: linear-gradient(90deg, rgba(255, 65, 86, 1) 0%, rgba(255, 102, 0, 0.35) 100%);
  1072. font-size: 32rpx;
  1073. font-weight: 400;
  1074. }
  1075. .caozuo-box-r {
  1076. flex: 1.2;
  1077. height: 80rpx;
  1078. color: #ffffff;
  1079. border-radius: 45rpx;
  1080. /* #ifndef APP-PLUS */
  1081. background: var(--线性渐变, linear-gradient(90.00deg, rgba(13, 39, 247, 1),rgba(19, 193, 234, 1) 100%));
  1082. /* #endif */
  1083. /* #ifdef APP-PLUS */
  1084. background: var(--线性渐变, linear-gradient(90.00deg, rgba(13, 39, 247, 1),rgba(19, 193, 234, 1) 100%));
  1085. line-height: 80rpx;
  1086. text-align: center;
  1087. /* #endif */
  1088. font-size: 32rpx;
  1089. font-weight: 400;
  1090. }
  1091. // .caozuo-box {
  1092. // width: 686rpx;
  1093. // height: 80rpx;
  1094. // .caozuo-box-l {
  1095. // .caozuo-box-l-item {
  1096. // width: 60rpx;
  1097. // font-size: 24rpx;
  1098. // color: #242424;
  1099. // font-weight: 500;
  1100. // margin-right: 50rpx;
  1101. // }
  1102. // }
  1103. // }
  1104. }
  1105. </style>