order.vue 28 KB

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