|
@@ -1,8 +1,15 @@
|
|
|
<template>
|
|
|
- <view>
|
|
|
+ <view class="box">
|
|
|
<view v-if="loading" class="vertical-center">{{ loadingText }}</view>
|
|
|
<view v-else>
|
|
|
- {{ loadingText }}
|
|
|
+ <view class="d-flex justify-space-between">
|
|
|
+ <h2 class="JobName ellipsis">{{ info.name }}</h2>
|
|
|
+ <span class="salary">{{ info.payFrom }}-{{ info.payTo }}/{{ positionInfo.payName }}</span>
|
|
|
+ </view>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -12,7 +19,13 @@
|
|
|
// 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 {
|
|
|
+ getPositionDetails,
|
|
|
+ // jobCvRelCheckSend,
|
|
|
+ // getPersonJobUnfavorite,
|
|
|
+ // getPersonJobFavorite,
|
|
|
+ // getJobFavoriteCheck
|
|
|
+} from '@/api/position'
|
|
|
import { dealDictObjData } from '@/utils/position'
|
|
|
// import { getToken } from '@/utils/auth'
|
|
|
// import Snackbar from '@/plugins/snackbar'
|
|
@@ -26,9 +39,11 @@ const loadingText = ref('加载中 . . . ')
|
|
|
const info = ref({})
|
|
|
const positionInfo = ref({})
|
|
|
const getPositionDetail = async () => {
|
|
|
- const data = await getPositionDetails({ id: jobId })
|
|
|
+ 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 = ''
|
|
@@ -46,4 +61,7 @@ onLoad((options) => {
|
|
|
|
|
|
</script>
|
|
|
<style scoped lang="scss">
|
|
|
+.box {
|
|
|
+ view { padding: 10px 15rpx; }
|
|
|
+}
|
|
|
</style>
|