order.vue 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236
  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. <cover-view class="caozuo flex justify-center align-center">
  180. <cover-view v-if="info&&info.isDue==1" class="caozuo-box-l flex justify-center align-center" @click="attachmentShow=true">
  181. 一键投递
  182. </cover-view>
  183. <cover-view class="caozuo-box-r flex justify-center align-center" @click="bindphone(2)">
  184. 立即沟通
  185. </cover-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. </cover-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. uni.navigateTo({
  458. url: '/pages/public/login'
  459. })
  460. }
  461. }
  462. });
  463. },
  464. shar() {
  465. if (this.token) {
  466. let that = this
  467. // h5分享
  468. // #ifdef H5
  469. let url = config.WSHOST4 + '/pages/index/game/order?postPushId=' + this.postPushId
  470. // let url = 'http://192.168.0.109:8081/pages/index/game/order?postPushId=' + this.postPushId
  471. // alert(url)
  472. uni.setClipboardData({
  473. data: url,
  474. success() {
  475. uni.showToast({
  476. title: '分享链接已复制'
  477. })
  478. }
  479. })
  480. // #endif
  481. } else {
  482. this.getShowModal()
  483. }
  484. },
  485. goJuBao() {
  486. if (this.token) {
  487. uni.navigateTo({
  488. url: '/my/feedback/jubao?postPushId=' + this.postPushId
  489. })
  490. } else {
  491. this.getShowModal()
  492. }
  493. },
  494. //在线联系
  495. bindphone(phone, index) {
  496. if(!this.info.user||!this.info.user.userId)
  497. return this.$queue.showToast('岗位发布者已不知所踪,请联系管理员😂😂😂😂😂😂')
  498. if (uni.getStorageSync('token')) {
  499. this.$Request.get('/app/resumes/selectResumesByUserId').then(res => {
  500. if (res.code == 0) {
  501. let obj = res.data
  502. if (JSON.stringify(obj) == '{}' || obj == null) {
  503. uni.showModal({
  504. title: '提示',
  505. content: '暂无简历,请完善简历!',
  506. confirmText: '去完善',
  507. confirmColor: '#016BF6',
  508. complete(ret) {
  509. if (ret.confirm) {
  510. uni.navigateTo({
  511. url: '/package/my/resume'
  512. })
  513. }
  514. }
  515. })
  516. } else {
  517. console.log(this.info)
  518. if(uni.getStorageSync('userId')==this.info.user.userId)
  519. return this.$queue.showToast('自己无法与自己聊天')
  520. this.$Request.postJson('/app/chat/insertChatConversation', {
  521. userId: uni.getStorageSync('userId'), //用户userid
  522. focusedUserId: this.info.user.userId, //企业userid
  523. type: 1,
  524. postPushId: this.info.postPushId,
  525. resumesId: res.data.resumesId
  526. }).then(res => {
  527. if (res.code == 0) {
  528. uni.navigateTo({
  529. url: '/pages/msg/im?byUserId=' + this.info.user
  530. .userId + '&chatConversationId=' + res.data
  531. .chatConversationId + '&postPushId=' + res.data
  532. .postPushId
  533. })
  534. }
  535. })
  536. }
  537. }
  538. })
  539. } else {
  540. uni.showModal({
  541. title: '提示',
  542. content: '请登录后联系企业',
  543. showCancel: true,
  544. cancelText: '取消',
  545. confirmText: '去登录',
  546. complete: (res) => {
  547. if (res.confirm) {
  548. uni.navigateTo({
  549. url: '/pages/public/login'
  550. })
  551. }
  552. }
  553. });
  554. }
  555. },
  556. //拉起地图导航
  557. gotoMap() {
  558. let that = this
  559. uni.openLocation({
  560. latitude: that.info.lat,
  561. longitude: that.info.lng,
  562. address: that.info.province + '' + that.info.city + '' + that.info.county + '' + that.info
  563. .address,
  564. name: that.info.address,
  565. complete(ret) {
  566. }
  567. })
  568. },
  569. /**
  570. * 收藏岗位
  571. */
  572. setCollection() {
  573. this.$Request.postT("/app/myCollection/saveCollection", {
  574. postPushId: this.postPushId,
  575. type: 1
  576. }).then(res => {
  577. if (res.code == 0) {
  578. uni.showToast({
  579. title: res.msg
  580. })
  581. this.getInfo()
  582. }
  583. })
  584. },
  585. /**
  586. * 获取岗位详情
  587. */
  588. getInfo() {
  589. this.$Request.getT("/app/postPush/selectPostPushDetails", {
  590. userId: uni.getStorageSync('userId'),
  591. postPushId: this.postPushId
  592. }).then(res => {
  593. if (res.code == 0) {
  594. this.info = res.data
  595. let iconPath='../../../static/images/mapMarker.png'
  596. //#ifdef APP-PLUS
  597. iconPath= '../../../static/images/mapLocation.png',
  598. //#endif
  599. this.covers = [{
  600. id: 1,
  601. latitude: this.info.lat,
  602. longitude: this.info.lng,
  603. width: 20,
  604. height: 20,
  605. iconPath: iconPath,
  606. callout: {
  607. content: this.info.city + '' + this.info.county + '' + this.info.address,
  608. color: '#000', //文字颜色
  609. fontSize: 10, //文本大小
  610. padding: 10, //附近留白
  611. borderRadius: 24, //边框圆角
  612. bgColor: '#FFFFFF', //背景颜色
  613. display: 'ALWAYS', //常显
  614. }
  615. }]
  616. }
  617. uni.hideLoading()
  618. })
  619. },
  620. //跳转企业详情
  621. goInfo(companyId) {
  622. uni.navigateTo({
  623. url: '/my/enterpriseInfo/enterpriseInfo?companyId=' + companyId
  624. })
  625. },
  626. selectAttachment(item){
  627. //console.log(item)
  628. this.attachmentShow=false
  629. this.oneClickApply(item)
  630. },
  631. //一键投递
  632. oneClickApply(item) {
  633. if(!this.info.user||!this.info.user.userId)
  634. return this.$queue.showToast('岗位发布者已不知所踪,请联系管理员😂😂😂😂😂😂')
  635. if (uni.getStorageSync('token')) {
  636. this.$Request.get('/app/resumes/selectResumesByUserId').then(res => {
  637. if (res.code == 0) {
  638. let obj = res.data
  639. if (JSON.stringify(obj) == '{}' || obj == null) {
  640. uni.showModal({
  641. title: '提示',
  642. content: '暂无简历,请完善简历!',
  643. confirmText: '去完善',
  644. confirmColor: '#016BF6',
  645. complete(ret) {
  646. if (ret.confirm) {
  647. uni.navigateTo({
  648. url: '/package/my/resume'
  649. })
  650. }
  651. }
  652. })
  653. } else {
  654. // 执行一键投递逻辑
  655. this.$Request.postT("/app/resumes/sendResumes", {
  656. to: this.info.user.userId, //接收人的userId
  657. postPushId: this.postPushId, //岗位id
  658. resumesAttachmentId:item.resumesAttachmentId
  659. }).then(res => {
  660. if (res.code == 0) {
  661. uni.showToast({
  662. title: '投递成功',
  663. icon: 'success'
  664. })
  665. } else {
  666. uni.showToast({
  667. title: res.msg || '投递失败',
  668. icon: 'none'
  669. })
  670. }
  671. })
  672. }
  673. }
  674. })
  675. } else {
  676. uni.showModal({
  677. title: '提示',
  678. content: '请登录后投递简历',
  679. showCancel: true,
  680. cancelText: '取消',
  681. confirmText: '去登录',
  682. complete: (res) => {
  683. if (res.confirm) {
  684. uni.navigateTo({
  685. url: '/pages/public/login'
  686. })
  687. }
  688. }
  689. });
  690. }
  691. },
  692. }
  693. }
  694. </script>
  695. <style lang="scss">
  696. page {
  697. // background-color: #F2F2F7;
  698. padding-bottom: 200rpx;
  699. }
  700. .fixed-nav {
  701. position: fixed;
  702. top: 0;
  703. left: 0;
  704. right: 0;
  705. z-index: 9999;
  706. background-color: #ffffff;
  707. padding: 0 32rpx;
  708. // padding-top 已改为动态计算,在模板中通过 :style 设置
  709. }
  710. .urgent-banner {
  711. width: 100%;
  712. height: 120rpx;
  713. background: linear-gradient(90deg, rgba(255, 65, 86, 1) 0%, rgba(255, 102, 0, 0.35) 100%);
  714. border-radius: 16rpx;
  715. display: flex;
  716. align-items: center;
  717. padding: 0 30rpx;
  718. margin: 0 auto 20rpx auto;
  719. .urgent-icon {
  720. width: 64rpx;
  721. height: 64rpx;
  722. border-radius: 50%;
  723. display: flex;
  724. align-items: center;
  725. justify-content: center;
  726. margin-right: 24rpx;
  727. flex-shrink: 0;
  728. }
  729. .urgent-text {
  730. flex: 1;
  731. text-align: left;
  732. .urgent-title {
  733. color: #ffffff;
  734. font-family: DM Sans;
  735. font-size: 26rpx;
  736. font-weight: 400;
  737. letter-spacing: 0px;
  738. }
  739. .urgent-subtitle {
  740. color: rgba(255, 255, 255, 1);
  741. font-family: DM Sans;
  742. font-size: 18rpx;
  743. font-weight: 400;
  744. text-align: left;
  745. }
  746. }
  747. }
  748. .nav-bar {
  749. display: flex;
  750. align-items: center;
  751. justify-content: space-between;
  752. margin-bottom: 30rpx;
  753. .nav-left {
  754. display: flex;
  755. align-items: center;
  756. justify-content: flex-start;
  757. width: 96rpx;
  758. }
  759. .nav-title {
  760. flex: 1;
  761. color: rgba(51, 51, 51, 1);
  762. font-family: DM Sans;
  763. font-size: 32rpx;
  764. font-weight: 700;
  765. line-height: 26px;
  766. text-align: center;
  767. }
  768. .nav-right {
  769. display: flex;
  770. align-items: center;
  771. justify-content: flex-end;
  772. width: 96rpx;
  773. }
  774. .nav-icons {
  775. display: flex;
  776. align-items: center;
  777. gap: 24rpx;
  778. }
  779. .nav-icon {
  780. display: flex;
  781. align-items: center;
  782. justify-content: center;
  783. width: 36rpx;
  784. height: 36rpx;
  785. }
  786. .icon-img {
  787. width: 42rpx;
  788. height: 42rpx;
  789. }
  790. .icon-img.active {
  791. filter: hue-rotate(120deg) saturate(1.5);
  792. }
  793. }
  794. button {
  795. background: #ffffff;
  796. border: none !important;
  797. width: 120rpx;
  798. font-size: 24rpx;
  799. height: 80rpx;
  800. display: flex;
  801. justify-content: center;
  802. align-content: flex-start;
  803. flex-wrap: wrap;
  804. margin: 0;
  805. padding: 0 !important;
  806. line-height: 0 !important;
  807. }
  808. button:after {
  809. border: none !important;
  810. }
  811. .backHome {
  812. position: fixed;
  813. right: 30rpx;
  814. bottom: 160rpx;
  815. image {
  816. width: 80rpx;
  817. height: 80rpx;
  818. border-radius: 50%;
  819. }
  820. }
  821. .shar {
  822. width: 100%;
  823. height: 100rpx;
  824. margin-top: 40rpx;
  825. .shar-box {
  826. width: 686rpx;
  827. height: 100%;
  828. .shar-box-item {
  829. font-size: 24rpx;
  830. }
  831. }
  832. }
  833. .line {
  834. width: 100%;
  835. border: 1rpx solid #F2F2F7;
  836. margin-top: 30rpx;
  837. margin-bottom: 20rpx;
  838. }
  839. .sharNo {
  840. width: 100%;
  841. color: #cccccc;
  842. font-size: 24rpx;
  843. text-align: center;
  844. }
  845. .job {
  846. width: 100%;
  847. margin-top: 30rpx;
  848. .job-info {
  849. // width: 686rpx;
  850. width: 100%;
  851. height: 100%;
  852. border-radius: 24rpx;
  853. background-color: #ffffff;
  854. .job-info-c {
  855. // width: 626rpx;
  856. width: 100%;
  857. height: 100%;
  858. padding-top: 30rpx;
  859. padding-bottom: 30rpx;
  860. }
  861. .enterprise-box-c-bto {
  862. width: 100%;
  863. border-radius: 30rpx;
  864. margin-top: 34rpx;
  865. color: rgba(156, 164, 171, 1);
  866. font-family: DM Sans;
  867. font-size: 12px;
  868. font-weight: 400;
  869. line-height: 12px;
  870. letter-spacing: 0.5%;
  871. }
  872. .job-info-c-title {
  873. color: rgba(58, 57, 67, 1);
  874. font-family: DM Sans;
  875. font-size: 26px;
  876. font-weight: 700;
  877. line-height: 30px;
  878. letter-spacing: 0px;
  879. text-align: left;
  880. }
  881. .job-info-c-price {
  882. color: rgba(1, 107, 246, 1);
  883. font-family: DM Sans;
  884. font-size: 18px;
  885. font-weight: 700;
  886. line-height: 20px;
  887. letter-spacing: 0.5%;
  888. text-align: right;
  889. flex-shrink: 0;
  890. }
  891. }
  892. }
  893. .job-info-c-label {
  894. margin-top: 30rpx;
  895. .job-info-c-label-item {
  896. margin-bottom: 15rpx;
  897. margin-right: 20rpx;
  898. color: rgba(153, 153, 153, 1);
  899. font-size: 24rpx;
  900. padding: 4px;
  901. border-radius: 6px;
  902. background: rgba(198, 198, 198, 0.1);
  903. }
  904. }
  905. .enterprise-box-c-info {
  906. height: auto;
  907. padding: 16px;
  908. border: 0.5px solid rgba(227, 231, 236, 1);
  909. border-radius: 6px;
  910. background: rgba(253, 253, 253, 1);
  911. // margin-top: 40rpx;
  912. .enterprise-left {
  913. flex: 1;
  914. }
  915. .avatar-container {
  916. position: relative;
  917. display: inline-block;
  918. }
  919. .online-dot {
  920. position: absolute;
  921. bottom: 4rpx;
  922. right: 4rpx;
  923. width: 20rpx;
  924. height: 20rpx;
  925. background: #00D26A;
  926. border: 2rpx solid #ffffff;
  927. border-radius: 50%;
  928. }
  929. .more-jobs {
  930. color: rgba(153, 153, 153, 1);
  931. font-size: 22rpx;
  932. font-weight: 400;
  933. gap: 8rpx;
  934. }
  935. .enterprise-box-c-info-n {
  936. margin-left: 18rpx;
  937. view:nth-of-type(1) {
  938. color: #333333;
  939. font-size: 24rpx;
  940. font-weight: 600;
  941. }
  942. view:nth-of-type(2) {
  943. color: #999999;
  944. font-size: 24rpx;
  945. font-weight: 500;
  946. margin-top: 8rpx;
  947. }
  948. view:nth-of-type(3) {
  949. display: inline-block;
  950. width: auto;
  951. border-radius: 6px;
  952. padding: 4rpx 12rpx;
  953. background: rgba(236, 225, 253, 1);
  954. color: rgba(107, 85, 214, 0.96);
  955. font-size: 20rpx;
  956. font-weight: 500;
  957. margin-top: 8rpx;
  958. white-space: nowrap;
  959. }
  960. }
  961. }
  962. .jobRemarks {
  963. width: 100%;
  964. .jobRemarks-box {
  965. width: 100%;
  966. height: 100%;
  967. background-color: #ffffff;
  968. border-radius: 24rpx;
  969. .jobRemarks-box-c {
  970. width: 100%;
  971. height: 100%;
  972. padding-top: 30rpx;
  973. padding-bottom: 30rpx;
  974. }
  975. .jobRemarks-box-c-title {
  976. color: rgba(1, 107, 246, 1);
  977. font-size: 32rpx;
  978. padding: 8px 12px;
  979. border-radius: 36px;
  980. font-weight: 500;
  981. background: rgba(246, 246, 246, 1);
  982. .title-icon {
  983. width: 32rpx;
  984. height: 32rpx;
  985. }
  986. }
  987. .job-description {
  988. margin-top: 20rpx;
  989. margin-bottom: 20rpx;
  990. .description-item {
  991. color: rgba(97, 110, 124, 1);
  992. font-family: DM Sans;
  993. font-size: 26rpx;
  994. font-weight: 400;
  995. line-height: 16px;
  996. letter-spacing: 0px;
  997. text-align: left;
  998. margin-bottom: 8rpx;
  999. }
  1000. }
  1001. .jobRemarks-box-c-label {
  1002. width: 100%;
  1003. margin-top: 25rpx;
  1004. .jobRemarks-box-c-label-item {
  1005. color: rgba(1, 107, 246, 1);
  1006. font-size: 20rpx;
  1007. padding: 10rpx 15rpx;
  1008. background-color: #F6F6F6;
  1009. border-radius: 10rpx;
  1010. margin-right: 20rpx;
  1011. margin-bottom: 10rpx;
  1012. background: rgba(252, 233, 220, 1);
  1013. }
  1014. }
  1015. .jobRemarks-box-c-con {
  1016. width: 100%;
  1017. margin-top: 25rpx;
  1018. .jobRemarks-box-c-con-item {
  1019. margin-bottom: 10rpx;
  1020. color: #141414;
  1021. font-size: 28rpx;
  1022. font-weight: 500;
  1023. white-space: pre-wrap;
  1024. }
  1025. }
  1026. .jobRemarks-box-c-line {
  1027. width: 100%;
  1028. border: 1rpx solid #E6E6E6;
  1029. margin-top: 25rpx;
  1030. }
  1031. }
  1032. }
  1033. .enterprise {
  1034. width: 100%;
  1035. margin-top: 25rpx;
  1036. .company-intro-card {
  1037. width: 100%;
  1038. background-color: #ffffff;
  1039. border-radius: 24rpx;
  1040. padding: 12rpx 24rpx;
  1041. margin-bottom: 20rpx;
  1042. display: flex;
  1043. align-items: center;
  1044. border: 0.5px solid rgba(227, 231, 236, 1);
  1045. .company-avatar {
  1046. flex-shrink: 0;
  1047. margin-right: 24rpx;
  1048. }
  1049. .company-info {
  1050. flex: 1;
  1051. .company-name {
  1052. color: rgba(51, 51, 51, 1);
  1053. font-size: 26rpx;
  1054. font-weight: 600;
  1055. line-height: 1.4;
  1056. margin-bottom: 8rpx;
  1057. }
  1058. .company-details {
  1059. color: rgba(153, 153, 153, 1);
  1060. font-size: 24rpx;
  1061. font-weight: 400;
  1062. line-height: 1.4;
  1063. }
  1064. }
  1065. .company-arrow {
  1066. flex-shrink: 0;
  1067. margin-left: 48rpx;
  1068. }
  1069. }
  1070. .enterprise-box {
  1071. width: 100%;
  1072. background-color: #ffffff;
  1073. height: 100%;
  1074. padding-bottom: 25rpx;
  1075. border-radius: 24rpx;
  1076. .enterprise-box-c {
  1077. width: 100%;
  1078. height: 100%;
  1079. }
  1080. .enterprise-box-c-map {
  1081. width: 100%;
  1082. margin-top: 20rpx;
  1083. height: 400rpx;
  1084. }
  1085. }
  1086. }
  1087. .caozuo {
  1088. width: calc(100% - 70rpx);
  1089. height: 120rpx;
  1090. position: fixed;
  1091. bottom: 0;
  1092. left: 0;
  1093. background-color: #ffffff;
  1094. padding: 0 40rpx;
  1095. z-index: 99999;
  1096. .caozuo-box-l {
  1097. flex: 0.8;
  1098. height: 80rpx;
  1099. color: #ffffff;
  1100. border-radius: 45rpx;
  1101. background: linear-gradient(90deg, rgba(255, 65, 86, 1) 0%, rgba(255, 102, 0, 0.35) 100%);
  1102. /* #ifdef APP-PLUS */
  1103. background: rgba(255, 65, 86, 1);
  1104. /* #endif */
  1105. font-size: 32rpx;
  1106. font-weight: 400;
  1107. line-height: 80rpx;
  1108. text-align: center;
  1109. margin-right: 20rpx;
  1110. }
  1111. .caozuo-box-r {
  1112. flex: 1.2;
  1113. height: 80rpx;
  1114. color: #ffffff;
  1115. border-radius: 45rpx;
  1116. background: var(--线性渐变, linear-gradient(90.00deg, rgba(13, 39, 247, 1),rgba(19, 193, 234, 1) 100%));
  1117. /* #ifdef APP-PLUS */
  1118. background: rgba(13, 39, 247, 1);
  1119. /* #endif */
  1120. line-height: 80rpx;
  1121. text-align: center;
  1122. font-size: 32rpx;
  1123. font-weight: 400;
  1124. }
  1125. // .caozuo-box {
  1126. // width: 686rpx;
  1127. // height: 80rpx;
  1128. // .caozuo-box-l {
  1129. // .caozuo-box-l-item {
  1130. // width: 60rpx;
  1131. // font-size: 24rpx;
  1132. // color: #242424;
  1133. // font-weight: 500;
  1134. // margin-right: 50rpx;
  1135. // }
  1136. // }
  1137. // }
  1138. }
  1139. </style>