Pārlūkot izejas kodu

企业实名认证隐藏

Xiao_123 7 mēneši atpakaļ
vecāks
revīzija
3165e99a5b

+ 19 - 21
src/components/Enterprise/details.vue

@@ -7,8 +7,8 @@
           <div class="ml-4">
             <div class="contact-name">
               {{ info.enterprise.name }}
-              <v-icon :color="statusInfo.color" size="20">{{ statusInfo.mdi }}</v-icon>
-              <span :style="{'color': statusInfo.color,'font-size': '14px'}">{{ statusInfo.label }}</span>
+              <!-- <v-icon :color="statusInfo.color" size="20">{{ statusInfo.mdi }}</v-icon>
+              <span :style="{'color': statusInfo.color,'font-size': '14px'}">{{ statusInfo.label }}</span> -->
             </div>
             <div class="contact-info">
               {{ info.financingName }}
@@ -46,13 +46,11 @@
           </div>
           <div class="content-right">
             <div class="welfare mb-3">
-              <h4>工作时间及福利</h4>
-              <div class="my-3" style="color: var(--color-666);font-size: 14px;">
-                <v-icon size="17" color="#ccc" class="mr-2">mdi-clock</v-icon>{{ info.enterprise?.workTime || '暂无' }}
-              </div>
-              <div class="welfare-tags">
+              <h4>福利</h4>
+              <div v-if="info?.enterprise?.welfareList.length" class="welfare-tags mt-3">
                 <v-chip size="small" label v-for="(k, i) in info?.enterprise?.welfareList?.slice(0, 6)" :key="i" class="mb-2 welfare-tags-item ellipsis" color="primary">{{ k }}</v-chip>
               </div>
+              <div v-else class="color-666 font-size-14 mt-3">暂无</div>
             </div>
             <div class="welfare">
               <h4>工商信息</h4>
@@ -77,10 +75,10 @@
 
 <script setup>
 defineOptions({ name: 'enterprise-details'})
-import { ref, computed } from 'vue'
+import { ref } from 'vue'
 import EnterpriseIntroduction from './components/introduction.vue'
 import recruitmentPositions from './components/positions.vue'
-import { getEnterpriseAuthDetails } from '@/api/position'
+// import { getEnterpriseAuthDetails } from '@/api/position'
 import { getEnterpriseDetails, getEnterpriseSubscribeCheck, getEnterpriseSubscribe, getEnterpriseUnsubscribe, enterpriseClick } from '@/api/enterprise'
 import { timesTampChange } from '@/utils/date'
 import { dealDictObjData } from '@/utils/position'
@@ -121,16 +119,16 @@ const handleEnterpriseClick = async () => {
 }
 handleEnterpriseClick()
 
-const statusList = [
-  { label: '未认证', color: '#fb8c00', value: null, mdi: 'mdi-shield-remove' },
-  { label: '审核中', color: '#fb8c00', value: '0', mdi: 'mdi-shield-half-full' },
-  { label: '已认证', color: 'var(--v-primary-base)', value: '1', mdi: 'mdi-shield-check' },
-  { label: '已驳回', color: '#fe574a', value: '2', mdi: 'mdi-shield-off' }
-]
+// const statusList = [
+//   { label: '未认证', color: '#fb8c00', value: null, mdi: 'mdi-shield-remove' },
+//   { label: '审核中', color: '#fb8c00', value: '0', mdi: 'mdi-shield-half-full' },
+//   { label: '已认证', color: 'var(--v-primary-base)', value: '1', mdi: 'mdi-shield-check' },
+//   { label: '已驳回', color: '#fe574a', value: '2', mdi: 'mdi-shield-off' }
+// ]
 
 // 企业详情
 const info = ref({})
-const authInfo = ref({})
+// const authInfo = ref({})
 const getDetails = async () => {
   if (!props.id) return
   const data = await getEnterpriseDetails({ id: props.id })
@@ -142,14 +140,14 @@ const getDetails = async () => {
   info.value = { ...data, ...dealDictObjData({}, data.enterprise) }
   getCollectionStatus(props.id)
   // 企业实名认证信息
-  authInfo.value = await getEnterpriseAuthDetails(props.id)
+  // authInfo.value = await getEnterpriseAuthDetails(props.id)
 }
 getDetails()
 
-const statusInfo = computed(() => {
-  const obj = (authInfo.value && Object.keys(authInfo.value).length) ? statusList.find(e => e.value === authInfo.value.status) : statusList[0]
-  return obj
-})
+// const statusInfo = computed(() => {
+//   const obj = (authInfo.value && Object.keys(authInfo.value).length) ? statusList.find(e => e.value === authInfo.value.status) : statusList[0]
+//   return obj
+// })
 
 // 效验求职者是否关注该企业
 const isCollection = ref(false)

+ 2 - 2
src/views/recruit/enterprise/entInfoSetting/index.vue

@@ -54,7 +54,7 @@ import enterpriseAlbum from './informationSettingsComponents/enterpriseAlbum.vue
 import welfareLabel from './informationSettingsComponents/welfareLabel.vue'
 import enterpriseLabel from './informationSettingsComponents/enterpriseLabel.vue'
 import businessInformation from './informationSettingsComponents/businessInformation.vue'
-import authentication from './informationSettingsComponents/authentication.vue'
+// import authentication from './informationSettingsComponents/authentication.vue'
 import ProgressBar from '@/components/ProgressBar'
 import { ref, shallowRef, watch } from 'vue'
 import { 
@@ -76,7 +76,7 @@ const tabList = ref([
   { label: t('enterprise.infoSetting.welfareLabel'), value: 4, path: welfareLabel, id: 'welfareLabel' },
   { label: t('enterprise.infoSetting.enterpriseLabel'), value: 7, path: enterpriseLabel, id: 'enterpriseLabel' },
   { label: t('enterprise.infoSetting.businessInformation'), value: 5, path: businessInformation, id: 'businessInformation' },
-  { label: t('setting.realNameAuthentication'), value: 6, path: authentication, id: 'authentication' },
+  // { label: t('setting.realNameAuthentication'), value: 6, path: authentication, id: 'authentication' },
 ])
 
 watch(() => route?.query?.tabKey, (newVal) => { // newQuery, oldQuery

+ 24 - 24
src/views/recruit/enterprise/entInfoSetting/informationSettingsComponents/basicInfo.vue

@@ -3,12 +3,12 @@
   <div>
     <div class="topTip">丰富详尽的企业介绍能提高求职者对贵企业的关注和了解,有助于达到更好的招聘效果</div>
     <CtForm ref="CtFormRef" :items="formItems" style="width: 900px;margin: 0 auto">
-      <template #name="{ item }">
+      <!-- <template #name="{ item }">
         <div v-show="!item.show" class="text-right" style="width: 80px; line-height: 40px;">
           <v-icon :color="statusInfo.color" size="20">{{ statusInfo.mdi }}</v-icon>
           <span class="cursor-pointer text-decoration-underline" :style="{'color': statusInfo.color,'font-size': '14px'}" @click="emit('change', 6)">{{ statusInfo.label }}</span>
         </div>
-      </template>
+      </template> -->
       <template #industryId="{ item }">
         <v-menu :close-delay="1" :open-delay="0" v-bind="$attrs" :close-on-content-click="true">
           <template v-slot:activator="{  props }">
@@ -33,9 +33,9 @@
 
 <script setup>
 defineOptions({name: 'informationSettingsComponents-basicInfo'})
-import { ref, reactive, computed } from 'vue'
+import { ref, reactive } from 'vue'
 import { getEnterpriseBaseInfo, updateEnterpriseBaseInfo } from '@/api/enterprise'
-import { getEnterpriseAuth } from '@/api/recruit/enterprise/information'
+// import { getEnterpriseAuth } from '@/api/recruit/enterprise/information'
 import { getDict } from '@/hooks/web/useDictionaries'
 import { useI18n } from '@/hooks/web/useI18n'
 import industryTypeCard from '@/components/industryTypeCard'
@@ -181,24 +181,24 @@ getDict('menduner_industry_type', {}, 'industryList').then(({ data }) => {
 })
 
 // 获取企业实名信息
-const authInfo = ref({})
-const statusList = [
-  { label: '未认证', color: '#fb8c00', value: null, mdi: 'mdi-shield-remove' },
-  { label: '审核中', color: '#fb8c00', value: '0', mdi: 'mdi-shield-half-full' },
-  { label: '已认证', color: '#00897B', value: '1', mdi: 'mdi-shield-check' },
-  { label: '已驳回', color: '#fe574a', value: '2', mdi: 'mdi-shield-off' }
-]
-const getAuthInfo = async () => {
-  const data = await getEnterpriseAuth()
-  if (!data) return
-  authInfo.value = data
-}
-getAuthInfo()
+// const authInfo = ref({})
+// const statusList = [
+//   { label: '未认证', color: '#fb8c00', value: null, mdi: 'mdi-shield-remove' },
+//   { label: '审核中', color: '#fb8c00', value: '0', mdi: 'mdi-shield-half-full' },
+//   { label: '已认证', color: '#00897B', value: '1', mdi: 'mdi-shield-check' },
+//   { label: '已驳回', color: '#fe574a', value: '2', mdi: 'mdi-shield-off' }
+// ]
+// const getAuthInfo = async () => {
+//   const data = await getEnterpriseAuth()
+//   if (!data) return
+//   authInfo.value = data
+// }
+// getAuthInfo()
 
-const statusInfo = computed(() => {
-  const obj = (authInfo.value && Object.keys(authInfo.value).length) ? statusList.find(e => e.value === authInfo.value.status) : statusList[0]
-  return obj
-})
+// const statusInfo = computed(() => {
+//   const obj = (authInfo.value && Object.keys(authInfo.value).length) ? statusList.find(e => e.value === authInfo.value.status) : statusList[0]
+//   return obj
+// })
 
 let completeStatus = false
 // 获取基本信息
@@ -246,9 +246,9 @@ const handleSave = async () => {
   getBaseInfo()
 }
 
-defineExpose({
-  getAuthInfo
-})
+// defineExpose({
+//   getAuthInfo
+// })
 </script>
 
 <style lang="scss" scoped>