order.vue 31 KB

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