index.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  1. <template>
  2. <scroll-view class="scrollBox" scroll-y="true" style="position:relative;">
  3. <view class="box">
  4. <view v-if="loading" class="vertical80-center">{{ loadingText }}</view>
  5. <view v-else>
  6. <!-- 职位名称 + 薪资 -->
  7. <view class="d-flex justify-space-between">
  8. <h2 class="JobName ellipsis">
  9. {{ info.name }}
  10. </h2>
  11. <span class="salary w-600">{{ info.payFrom }}-{{ info.payTo }}/{{ positionInfo.payName }}</span>
  12. </view>
  13. <!-- 职位地区 收藏职位 -->
  14. <view class="d-flex justify-space-between mt-5">
  15. <view class="bold" style="font-size: 14px;">
  16. <span>
  17. <span>{{positionInfo?.areaName }}</span>
  18. <span class="viewider-mx">|</span>
  19. <span>{{positionInfo?.eduName }}</span>
  20. <span class="viewider-mx">|</span>
  21. <span>{{positionInfo?.expName }}</span>
  22. </span>
  23. </view>
  24. <!-- 收藏职位 -->
  25. <view @click="handleCollection">
  26. <uni-icons
  27. :type="isCollection ? 'heart-filled' : 'heart'"
  28. color="#fc6d5e"
  29. class="mr"
  30. size="25"
  31. ></uni-icons>
  32. <!-- <span style="color: #fc6d5e">{{ isCollection ? '取消收藏' : '收藏职位' }}</span> -->
  33. </view>
  34. </view>
  35. <!-- 标签 -->
  36. <view class="tagList mt">
  37. <!-- <view class="tagListItem" v-for="(tag,i) in info?.tagList || []" :key="'tagList' + i">
  38. <uni-tag
  39. :text="tag"
  40. inverted="false"
  41. size="small"
  42. custom-style="background-color: #e2f0ef; color:#00897B; border-color:#e2f0ef;"
  43. />
  44. </view> -->
  45. <view class="tag" v-for="(tag,i) in info?.tagList || []" :key="'tagList' + i">
  46. {{ tag }}
  47. </view>
  48. </view>
  49. <!-- 赏金 -->
  50. <view class="topLine mt-5" style="display: flex; align-items: center;">
  51. <svg t="1719193613512" class="icon ml" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7666" width="40" height="40">
  52. <path d="M592.331776 439.619584l10.840064-30.636032 49.16224 17.398784-10.842112 30.633984-49.160192-17.396736z m96.054272-115.116032l-10.840064 30.635008-49.156096-17.39776 10.842112-30.635008 49.154048 17.39776z m296.593408 363.10528L451.8912 498.937856l-27.737088 78.367744 57.70752 20.424704-55.916544 90.039296 230.827008 81.692672c-9.371648 28.745728-21.200896 34.97984-47.558656 25.652224-27.072512-9.581568-81.678336-29.704192-116.795392-43.738112-2.545664 34.371584-6.008832 66.813952-11.152384 99.465216 45.597696 16.137216 100.243456 33.875968 127.8208 42.0352 69.653504 20.640768 105.135104 1.93024 132.8128-60.423168 15.962112-36.032512 30.455808-70.188032 43.681792-100.77696L565.44256 653.766656l14.022656-21.492736 369.80224 130.878464c-87.150592 150.434816-249.872384 251.63776-436.237312 251.63776-87.114752 0-169.064448-22.115328-240.54784-61.032448l86.624256-244.754432c14.751744 3.617792 29.504512 7.236608 43.544576 10.602496 8.411136-28.286976 20.257792-61.770752 33.829888-97.855488-15.0016-2.906112-29.044736-6.270976-43.082752-9.636864l125.060096-353.362944 24.221696 8.572928 32.776192-92.613632-275.70688-97.577984-32.779264 92.61568 27.072512 9.57952-133.13024 376.160256c-7.324672-1.603584-87.942144-16.722944-151.430144-28.83072A511.248384 511.248384 0 0 1 9.216 510.977024C9.216 232.728576 234.78272 7.161856 513.030144 7.161856c95.85664 0 185.460736 26.7776 261.745664 73.250816l-58.9056 166.436864-135.359488-47.906816-100.349952 283.546624L843.498496 611.08224l100.350976-283.547648-136.786944-48.410624 48.638976-137.43104c99.104768 92.005376 161.142784 223.39072 161.142784 369.28512 0 62.150656-11.28448 121.66144-31.864832 176.630784zM732.680192 489.288704l10.84416-30.63296 49.156096 17.400832-10.842112 30.629888-49.158144-17.39776z m96.057344-115.11296l-10.845184 30.635008-49.155072-17.400832 10.840064-30.633984 49.160192 17.399808z m-575.744 204.278784l25.213952-71.240704 48.444416 17.144832-23.701504 66.967552c-16.89088-4.37248-33.068032-8.49408-49.956864-12.87168z m178.547712-350.462976l-23.954432 67.678208L359.1424 278.528l23.955456-67.680256 48.443392 17.143808zM306.69824 426.71104l23.953408-67.683328 48.44544 17.145856-23.952384 67.68128-48.446464-17.143808zM193.521664 900.518912c-80.457728-66.070528-140.06272-156.583936-167.51104-260.184064 92.57472 17.773568 208.65024 39.995392 242.648064 47.880192l-75.137024 212.303872z" fill="#FE6E5A" p-id="7667"></path>
  53. </svg>
  54. <view class="hirePrice">{{ `赏金:${commissionCalculation(2000, 1)}元` }}</view>
  55. </view>
  56. <!-- 岗位职责 + -->
  57. <view class="topLine fs14 mt-5">
  58. <view class="fs15 w-600 my5">岗位职责</view>
  59. <view v-if="info.content" class="requirement fs14" v-html="info.content?.replace(/\n/g, '</br>')"></view>
  60. <view v-else>暂无</view>
  61. </view>
  62. <view class="topLine mt-5">
  63. <view class="fs15 w-600 my5">岗位要求</view>
  64. <view v-if="info.requirement" class="requirement fs14" v-html="info.requirement?.replace(/\n/g, '</br>')"></view>
  65. <view v-else>暂无</view>
  66. </view>
  67. <view class="topLine mt-5 d-flex">
  68. <view class="avatarBox">
  69. <image class="avatar" :src="info.contact?.avatar || 'https://minio.citupro.com/dev/menduner/7.png'"></image>
  70. </view>
  71. <view >
  72. <view class="contact-name">{{ info.contact?.name }}</view>
  73. <view class="contact-info">{{ info.enterprise?.name }} · {{ info.contact?.postNameCn }}</view>
  74. </view>
  75. </view>
  76. <view class="topLine mt-5">
  77. <view class="fs15 w-600 my5">工作地址</view>
  78. <view class="my10">
  79. <uni-icons
  80. type="map-pin-ellipse"
  81. color="#00897B"
  82. class="mr"
  83. size="25"
  84. ></uni-icons>
  85. <span style="color: var(--color-666);font-size: 15px;line-height: 26px;">{{ info.address }}</span>
  86. </view>
  87. </view>
  88. </view>
  89. </view>
  90. </scroll-view>
  91. <view class="bottom-sticky">
  92. <view style="display: flex;justify-content: space-evenly;align-items: center;width: 100%;margin: 20rpx 0;">
  93. <view @click="null" style="display: flex;justify-content: center;flex-direction: column;align-items: center;">
  94. <uni-icons type="redo-filled" size="24" color="#00897B"/>
  95. <span style="color:#00897B;font-weight:bold;">分享</span>
  96. </view>
  97. <button v-if="alreadySendBtn" type="primary" size="default" class="buttons" style="background-color:grey;">已投简历</button>
  98. <button v-else type="primary" size="default" class="buttons" @click="null">投个简历</button>
  99. </view>
  100. </view>
  101. </template>
  102. <script setup>
  103. import { commissionCalculation } from '@/utils/position'
  104. // import loginPage from '@/views/common/loginDialog.vue'
  105. // import simplePage from './sendResume/simple.vue'
  106. // import selectPage from './sendResume/select.vue'
  107. import { reactive, ref } from 'vue';
  108. import {
  109. getPositionDetails,
  110. // jobCvRelCheckSend,
  111. // getPersonJobUnfavorite,
  112. // getPersonJobFavorite,
  113. // getJobFavoriteCheck
  114. } from '@/api/position'
  115. import { dealDictObjData } from '@/utils/position'
  116. // import { getToken } from '@/utils/auth'
  117. // import Snackbar from '@/plugins/snackbar'
  118. import { onLoad } from '@dcloudio/uni-app';
  119. const loading = ref(false)
  120. const loadingText = ref('加载中 . . . ')
  121. // 职位详情
  122. const info = ref({})
  123. const positionInfo = ref({})
  124. const getPositionDetail = async () => {
  125. const { data } = await getPositionDetails({ id: jobId })
  126. info.value = data
  127. positionInfo.value = { ...dealDictObjData({}, info.value), ...info.value }
  128. loading.value = false
  129. console.log('positionInfo', positionInfo.value)
  130. }
  131. let jobId = ''
  132. onLoad((options) => {
  133. jobId = options?.id || ''
  134. if (jobId) {
  135. loading.value = true
  136. loadingText.value = '加载中 . . . '
  137. getPositionDetail()
  138. } else {
  139. loadingText.value = '加载失败 . . . '
  140. }
  141. })
  142. const desc = [
  143. { mdi: 'mdi-map-marker-outline', value: 'areaName' },
  144. { mdi: 'mdi-school-outline', value: 'eduName' },
  145. { mdi: 'mdi-clock-time-ten-outline', value: 'expName' }
  146. ]
  147. </script>
  148. <style scoped lang="scss">
  149. .mb5 { margin-bottom: 5px; }
  150. .my5 { margin: 5px 0; }
  151. .my10 { margin: 10px 0; }
  152. .mt10 { margin-top: 10px; }
  153. .fs14 { font-size: 14px; }
  154. .fs15 { font-size: 15px; }
  155. .box {
  156. padding: 10px 30rpx 100px;
  157. }
  158. .JobName {
  159. color: #37576c;
  160. font-size: 24px;
  161. margin-right: 30px;
  162. margin-top: 1px;
  163. vertical-align: middle;
  164. flex: 1;
  165. }
  166. .tagList {
  167. width: 100%;
  168. display: flex;
  169. flex-wrap: wrap;
  170. .tagListItem {
  171. margin: 10rpx 10rpx 10rpx 0;
  172. }
  173. }
  174. .topLine {
  175. border-top: 1px solid #EDEDED;
  176. // border-bottom: 1px solid #EDEDED;
  177. padding-top: 10px;
  178. }
  179. .tag {
  180. padding: 5px 10px;
  181. background-color: #e2f0ef;
  182. color: #00897B;
  183. border-radius: 5px;
  184. font-size: 14px;
  185. margin-right: 8px;
  186. margin-top: 4px;
  187. }
  188. .hirePrice {
  189. padding: 5px 10px;
  190. background-color: #fc6d5e63;
  191. color: #ff250e;
  192. border-radius: 5px;
  193. font-size: 14px;
  194. margin-left: 8px;
  195. margin-top: 4px;
  196. }
  197. .requirement {
  198. white-space: pre-wrap;
  199. word-break: break-all;
  200. line-height: 28px;
  201. color: var(--color-333);
  202. font-size: 15px;
  203. text-align: justify;
  204. letter-spacing: 0;
  205. }
  206. //底部按钮公用定位
  207. .bottom-sticky{
  208. display: flex;
  209. width:100vw;
  210. position: fixed;
  211. bottom:0;
  212. left: 0;
  213. background-image:linear-gradient(rgba(255,255,255,1),white);
  214. }
  215. .buttons{
  216. width: 60vw;
  217. height: 44px;
  218. border-radius: 25px;
  219. background-color: var(--v-primary-base);
  220. margin: 0;
  221. }
  222. .noMore{
  223. margin: 20px 0;
  224. }
  225. .date-time{
  226. color:#d9d0d2;
  227. float: right;
  228. }
  229. .viewided-line {
  230. width: 100%;
  231. height: 1px;
  232. background-color: #f0f2f7;
  233. margin: 20px 0;
  234. }
  235. .avatarBox{
  236. max-width: 40px;
  237. max-height: 40px;
  238. margin: 0 10px;
  239. }
  240. .avatar{
  241. width: 40px;
  242. height: 40px;
  243. }
  244. .sub-li-bottom {
  245. display: flex;
  246. justify-content:space-between;
  247. align-items: center;
  248. background: linear-gradient(90deg, #f5fcfc 0, #fcfbfa 100%);
  249. font-size: 13px;
  250. padding: 5px 30rpx;
  251. }
  252. .salary {
  253. // color: #ff770d;
  254. float: right;
  255. }
  256. .list-shape {
  257. padding: 10px 30rpx 10px;
  258. margin-top: 10px;
  259. background-color: #fff;
  260. .titleBox {
  261. display: flex;
  262. align-items: center;
  263. justify-content: space-between;
  264. }
  265. }
  266. .viewider-mx{
  267. margin: 0 10rpx;
  268. }
  269. .viewider {
  270. color:#e4d4d2;
  271. }
  272. //公司名称
  273. .cer-end{
  274. position: absolute;
  275. top: 85%;
  276. right: 16%;
  277. }
  278. .cer-text{
  279. text-decoration: underline;
  280. margin: 0 5rpx;
  281. }
  282. //一行展示不全...
  283. .dis{
  284. display: flex;
  285. align-items: center;
  286. }
  287. .show-more{
  288. width: 26vw;
  289. white-space: nowrap;
  290. overflow: hidden;
  291. text-overflow: ellipsis;
  292. }
  293. /* 列表触底暂无更多 */
  294. .noMore{ text-align:center; color:grey; }
  295. .mt { margin-top: 10rpx; }
  296. .mb { margin-bottom: 10rpx; }
  297. .ml { margin-left: 20rpx; }
  298. .mr { margin-right: 20rpx; }
  299. .mr-10{ margin-right: 10rpx; }
  300. .my-5{ margin: 5px 0; }
  301. </style>