123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317 |
- <template>
- <scroll-view class="scrollBox" scroll-y="true" style="position:relative;">
- <view class="box">
- <view v-if="loading" class="vertical80-center">{{ loadingText }}</view>
- <view v-else>
- <!-- 职位名称 + 薪资 -->
- <view class="d-flex justify-space-between">
- <uni-icons class="icon-a-1_zhaopin" custom-prefix="iconfont" color="#e03506" size="30"/>
- <h2 class="JobName ellipsis">
- {{ info.name }}
- </h2>
- <span class="salary w-600">{{ info.payFrom }}-{{ info.payTo }}/{{ positionInfo.payName }}</span>
- </view>
- <!-- 职位地区 收藏职位 -->
- <view class="d-flex justify-space-between mt-5">
- <view class="bold" style="font-size: 14px;">
- <span>
- <span>{{positionInfo?.areaName }}</span>
- <span class="viewider-mx">|</span>
- <span>{{positionInfo?.eduName }}</span>
- <span class="viewider-mx">|</span>
- <span>{{positionInfo?.expName }}</span>
- </span>
- </view>
- <!-- 收藏职位 -->
- <view @click="handleCollection">
- <uni-icons
- :type="isCollection ? 'heart-filled' : 'heart'"
- color="#fc6d5e"
- class="mr"
- size="25"
- ></uni-icons>
- <!-- <span style="color: #fc6d5e">{{ isCollection ? '取消收藏' : '收藏职位' }}</span> -->
- </view>
- </view>
- <!-- 标签 -->
- <view class="tagList mt">
- <!-- <view class="tagListItem" v-for="(tag,i) in info?.tagList || []" :key="'tagList' + i">
- <uni-tag
- :text="tag"
- inverted="false"
- size="small"
- custom-style="background-color: #e2f0ef; color:#00897B; border-color:#e2f0ef;"
- />
- </view> -->
- <view class="tag" v-for="(tag,i) in info?.tagList || []" :key="'tagList' + i">
- {{ tag }}
- </view>
- </view>
- <!-- 赏金 -->
- <view class="topLine mt-5" style="display: flex; align-items: center;">
- <view class="hirePrice">{{ `赏金:${commissionCalculation(2000, 1)}元` }}</view>
- </view>
- <!-- 岗位职责 + -->
- <view class="topLine fs14 mt-5">
- <view class="fs15 w-600 my5">岗位职责</view>
- <view v-if="info.content" class="requirement fs14" v-html="info.content?.replace(/\n/g, '</br>')"></view>
- <view v-else>暂无</view>
- </view>
- <view class="topLine mt-5">
- <view class="fs15 w-600 my5">岗位要求</view>
- <view v-if="info.requirement" class="requirement fs14" v-html="info.requirement?.replace(/\n/g, '</br>')"></view>
- <view v-else>暂无</view>
- </view>
- <view class="topLine mt-5 d-flex">
- <view class="avatarBox">
- <image class="avatar" :src="info.contact?.avatar || 'https://minio.citupro.com/dev/menduner/7.png'"></image>
- </view>
- <view >
- <view class="contact-name">{{ info.contact?.name }}</view>
- <view class="contact-info">{{ info.enterprise?.name }} · {{ info.contact?.postNameCn }}</view>
- </view>
- </view>
- <view class="topLine mt-5">
- <view class="fs15 w-600 my5">工作地址</view>
- <view class="my10">
- <uni-icons
- type="map-pin-ellipse"
- color="#00897B"
- class="mr"
- size="25"
- ></uni-icons>
- <span style="color: var(--color-666);font-size: 15px;line-height: 26px;">{{ info.address }}</span>
- </view>
- </view>
- </view>
- </view>
- </scroll-view>
- <view class="bottom-sticky">
- <view style="display: flex;justify-content: space-evenly;align-items: center;width: 100%;margin: 20rpx 0;">
- <view @click="null" style="display: flex;justify-content: center;flex-direction: column;align-items: center;">
- <uni-icons type="redo-filled" size="24" color="#00897B"/>
- <span style="color:#00897B;font-weight:bold;">分享</span>
- </view>
- <button v-if="alreadySendBtn" type="primary" size="default" class="buttons" style="background-color:grey;">已投简历</button>
- <button v-else type="primary" size="default" class="buttons" @click="null">投个简历</button>
- </view>
- </view>
- </template>
- <script setup>
- import { commissionCalculation } from '@/utils/position'
- // import loginPage from '@/views/common/loginDialog.vue'
- // import simplePage from './sendResume/simple.vue'
- // import selectPage from './sendResume/select.vue'
- import { reactive, ref } from 'vue';
- import {
- getPositionDetails,
- // jobCvRelCheckSend,
- // getPersonJobUnfavorite,
- // getPersonJobFavorite,
- // getJobFavoriteCheck
- } from '@/api/position'
- import { dealDictObjData } from '@/utils/position'
- // import { getToken } from '@/utils/auth'
- // import Snackbar from '@/plugins/snackbar'
- import { onLoad } from '@dcloudio/uni-app';
- const loading = ref(false)
- const loadingText = ref('加载中 . . . ')
- // 职位详情
- const info = ref({})
- const positionInfo = ref({})
- const getPositionDetail = async () => {
- const { data } = await getPositionDetails({ id: jobId })
- info.value = data
- positionInfo.value = { ...dealDictObjData({}, info.value), ...info.value }
- loading.value = false
- console.log('positionInfo', positionInfo.value)
- }
- let jobId = ''
- onLoad((options) => {
- jobId = options?.id || ''
- if (jobId) {
- loading.value = true
- loadingText.value = '加载中 . . . '
- getPositionDetail()
- } else {
- loadingText.value = '加载失败 . . . '
- }
- })
- const desc = [
- { mdi: 'mdi-map-marker-outline', value: 'areaName' },
- { mdi: 'mdi-school-outline', value: 'eduName' },
- { mdi: 'mdi-clock-time-ten-outline', value: 'expName' }
- ]
- </script>
- <style scoped lang="scss">
- .mb5 { margin-bottom: 5px; }
- .my5 { margin: 5px 0; }
- .my10 { margin: 10px 0; }
- .mt10 { margin-top: 10px; }
- .fs14 { font-size: 14px; }
- .fs15 { font-size: 15px; }
- .box {
- padding: 10px 30rpx 100px;
- }
- .JobName {
- color: #37576c;
- font-size: 24px;
- margin-right: 30px;
- margin-top: 1px;
- vertical-align: middle;
- flex: 1;
- }
- .tagList {
- width: 100%;
- display: flex;
- flex-wrap: wrap;
- .tagListItem {
- margin: 10rpx 10rpx 10rpx 0;
- }
- }
- .topLine {
- border-top: 1px solid #EDEDED;
- // border-bottom: 1px solid #EDEDED;
- padding-top: 10px;
- }
- .tag {
- padding: 5px 10px;
- background-color: #e2f0ef;
- color: #00897B;
- border-radius: 5px;
- font-size: 14px;
- margin-right: 8px;
- margin-top: 4px;
- }
- .hirePrice {
- padding: 5px 10px;
- background-color: #fc6d5e63;
- color: #ff250e;
- border-radius: 5px;
- font-size: 14px;
- margin-top: 4px;
- }
- .requirement {
- white-space: pre-wrap;
- word-break: break-all;
- line-height: 28px;
- color: var(--color-333);
- font-size: 15px;
- text-align: justify;
- letter-spacing: 0;
- }
- //底部按钮公用定位
- .bottom-sticky{
- display: flex;
- width:100vw;
- position: fixed;
- bottom:0;
- left: 0;
- background-image:linear-gradient(rgba(255,255,255,1),white);
- }
- .buttons{
- width: 60vw;
- height: 44px;
- border-radius: 25px;
- background-color: var(--v-primary-base);
- margin: 0;
- }
- .noMore{
- margin: 20px 0;
- }
- .date-time{
- color:#d9d0d2;
- float: right;
- }
- .viewided-line {
- width: 100%;
- height: 1px;
- background-color: #f0f2f7;
- margin: 20px 0;
- }
- .avatarBox{
- max-width: 40px;
- max-height: 40px;
- margin: 0 10px;
- }
- .avatar{
- width: 40px;
- height: 40px;
- }
- .sub-li-bottom {
- display: flex;
- justify-content:space-between;
- align-items: center;
- background: linear-gradient(90deg, #f5fcfc 0, #fcfbfa 100%);
- font-size: 13px;
- padding: 5px 30rpx;
- }
- .salary {
- // color: #ff770d;
- float: right;
- }
- .list-shape {
- padding: 10px 30rpx 10px;
- margin-top: 10px;
- background-color: #fff;
- .titleBox {
- display: flex;
- align-items: center;
- justify-content: space-between;
- }
- }
- .viewider-mx{
- margin: 0 10rpx;
- }
- .viewider {
- color:#e4d4d2;
- }
- //公司名称
- .cer-end{
- position: absolute;
- top: 85%;
- right: 16%;
- }
- .cer-text{
- text-decoration: underline;
- margin: 0 5rpx;
- }
- //一行展示不全...
- .dis{
- display: flex;
- align-items: center;
- }
- .show-more{
- width: 26vw;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- /* 列表触底暂无更多 */
- .noMore{ text-align:center; color:grey; }
- .mt { margin-top: 10rpx; }
- .mb { margin-bottom: 10rpx; }
- .ml { margin-left: 20rpx; }
- .mr { margin-right: 20rpx; }
- .mr-10{ margin-right: 10rpx; }
- .my-5{ margin: 5px 0; }
- </style>
|