order.vue 29 KB

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