Bladeren bron

企业名称

Xiao_123 4 maanden geleden
bovenliggende
commit
67bd7ff6c9

+ 2 - 2
components/PositionList/index.vue

@@ -58,7 +58,7 @@
             <image class="enterAvatar ml" :src="item.enterprise?.logoUrl || 'https://minio.citupro.com/dev/menduner/company-avatar.png'"></image>
           </view>
           <view class="ss-m-l-35">
-            <view class="mr">{{ dealEnterpriseName(item.enterprise?.anotherName || item.enterprise.name) }}</view>
+            <view class="mr">{{ formatName(item.enterprise?.anotherName || item.enterprise.name) }}</view>
             <span class="color-999">{{ item.enterprise?.industryName || '' }}</span>
             <span class="divider tag-gap1" v-if="item.enterprise?.industryName && item.enterprise?.scaleName"> | </span>
             <span class="mr color-999">{{ item.enterprise?.scaleName || '' }}</span>
@@ -77,7 +77,7 @@
 <script setup>
 import { commissionCalculation } from '@/utils/position'
 import { timesTampChange } from '@/utils/date'
-import { dealEnterpriseName } from '@/utils/getText'
+import { formatName } from '@/utils/getText'
 
 const props = defineProps({
   list: { type: Array, default: () => [] },

+ 3 - 3
pages/index/communicate.vue

@@ -23,7 +23,7 @@
 						<view class="box-content-names">
 							<view class="name">
 								{{ item.thatName }}
-								<text class="nameSub">{{ dealEnterpriseName(item.enterpriseAnotherName) }}</text>
+								<text class="nameSub">{{ formatName(item.enterpriseAnotherName) }}</text>
 								<span class="line" v-if="item.postNameCn && item.enterpriseAnotherName"></span>
 								<text class="nameSub">{{ item.postNameCn }}</text>
 							</view>
@@ -52,7 +52,7 @@ import { getUserAvatar } from '@/utils/avatar'
 import { timesTampChange } from '@/utils/date'
 import { userStore } from '@/store/user'
 import { useIMStore } from '@/store/im'
-import { dealEnterpriseName } from '@/utils/getText'
+import { formatName } from '@/utils/getText'
 
 const IM = useIMStore()
 
@@ -112,7 +112,7 @@ const handleTo = (item) => {
 		id: userInfoVo?.userInfoResp?.userId,
 		name: thatName,
 		postName: postNameCn,
-		enterpriseName: dealEnterpriseName(enterpriseAnotherName),
+		enterpriseName: formatName(enterpriseAnotherName),
 		enterpriseId: userInfoVo?.userInfoResp?.enterpriseId,
 		channelID: channel_id,
 		channelType: channel_type,

+ 2 - 2
pages/index/crowdsourcing.vue

@@ -48,7 +48,7 @@ import { getJobAdvertisedHire } from '@/api/position.js'
 import { dealDictArrayData } from '@/utils/position.js'
 import PositionList from '@/components/PositionList'
 import { getWebContent } from '@/api/common'
-import { dealEnterpriseName } from '@/utils/getText'
+import { formatName } from '@/utils/getText'
 import { onShow, onLoad, onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app'
 // 设置自定义tabbar选中值
 onShow(() => {
@@ -139,7 +139,7 @@ async function getList () {
 				enterprise: {
 					welfareList: e.tagList,
 					logoUrl: e.logoUrl,
-					anotherName: dealEnterpriseName(e.anotherName),
+					anotherName: formatName(e.anotherName),
 					industryName: e.industryName,
 					scaleName: e.scaleName
 				}

+ 3 - 3
pagesA/chart/index.vue

@@ -6,7 +6,7 @@
         <text class="subText">
           {{ info?.postName && info?.postName !== 'null' && info?.postName !== 'undefined' ? info.postName : '' }}
           <text v-if="info?.postName && info?.postName !== 'null' && info?.postName !== 'undefined' && info.enterpriseName" class="gun">|</text>
-          {{ dealEnterpriseName(info.enterpriseName) }}
+          {{ formatName(info.enterpriseName) }}
         </text>
       </view>
       <!-- <view class="box-top-content" v-if="interview.length">
@@ -79,7 +79,7 @@
                 </v-avatar>
                 {{ val.payload?.content?.positionInfo?.contact?.name }}
                 {{ val.payload?.content?.positionInfo?.contact?.postNameCn }}
-                {{ dealEnterpriseName(val.payload?.content?.positionInfo?.enterprise?.anotherName || val.payload?.content?.positionInfo?.enterprise?.name) }}
+                {{ formatName(val.payload?.content?.positionInfo?.enterprise?.anotherName || val.payload?.content?.positionInfo?.enterprise?.name) }}
               </view>
               <div class="jobCard-subtitle text-right">
                 地址:{{ val.payload?.content?.positionInfo?.address }}
@@ -217,7 +217,7 @@ import { initConnect, send, initChart, getMoreMessages, toChannel } from '@/hook
 import { getDict } from '@/hooks/useDictionaries'
 import { timesTampChange } from '@/utils/date'
 import { getUserAvatar } from '@/utils/avatar'
-import { dealEnterpriseName } from '@/utils/getText'
+import { formatName } from '@/utils/getText'
 import { preview } from '@/utils/preview'
 import { getPersonResumeCv, saveResume } from '@/api/user'
 import { uploadFile } from '@/api/file'

+ 2 - 2
pagesA/collect/company.vue

@@ -7,7 +7,7 @@
             <view class="d-flex align-center">
               <image :src="item.logoUrl || 'https://minio.citupro.com/dev/menduner/company-avatar.png'" style="width: 50px; height: 50px; object-fit: contain"></image>
               <view style="flex: 1;" class="ss-m-l-30">
-                <view class="enterprise-name ellipsis">{{ dealEnterpriseName(item.anotherName || item.name) }}</view>
+                <view class="enterprise-name ellipsis">{{ formatName(item.anotherName || item.name) }}</view>
                 <view class="ss-m-y-15 font-size-12">
                   <span class="tag-gap color-666">
                     <span>{{item.industryName }}</span>
@@ -43,7 +43,7 @@
 import { ref } from 'vue'
 import { getSubscribeEnterprise } from '@/api/user'
 import { dealDictArrayData } from '@/utils/position'
-import { dealEnterpriseName } from '@/utils/getText'
+import { formatName } from '@/utils/getText'
 
 const items = ref([])
 const status = ref('more')

+ 2 - 2
pagesA/recommendation/list.vue

@@ -15,7 +15,7 @@
 				<span v-else>面议</span>
 			</view>
 			<view class="list-company" style="border-radius: 0 0 12px 12px;">
-				<text>{{ dealEnterpriseName(item.enterprise?.anotherName) }}</text>
+				<text>{{ formatName(item.enterprise?.anotherName) }}</text>
 				<text>{{ item.enterprise?.anotherName && item.job?.name ? ' · ' : '' }}</text>
 				<text>{{ item.job?.name }}</text>
 			</view>
@@ -25,7 +25,7 @@
 
 <script setup>
 import { timesTampChange } from '@/utils/date'
-import { dealEnterpriseName } from '@/utils/getText'
+import { formatName } from '@/utils/getText'
 
 const props = defineProps({
 	items: {

+ 2 - 2
pagesA/seenMe/index.vue

@@ -17,7 +17,7 @@
             <view class="d-flex align-center">
               <image :src="item.enterprise.logoUrl" style="width: 50px; height: 50px;"></image>
               <view style="flex: 1;" class="ss-m-l-30">
-                <view class="enterprise-name ellipsis">{{ dealEnterpriseName(item.enterprise.anotherName || item.enterprise.name) }}</view>
+                <view class="enterprise-name ellipsis">{{ formatName(item.enterprise.anotherName || item.enterprise.name) }}</view>
                 <!-- 行业规模 -->
                 <view class="ss-m-y-15 font-size-12">
                   <span class="tag-gap color-666">
@@ -58,7 +58,7 @@ import { getInterestedMePage } from '@/api/user'
 import { dealDictObjData } from '@/utils/position'
 import { getUserAvatar } from '@/utils/avatar'
 import { timesTampChange } from '@/utils/date'
-import { dealEnterpriseName } from '@/utils/getText'
+import { formatName } from '@/utils/getText'
 
 const status = ref('more')
 const queryParams = ref({

+ 3 - 3
pagesB/companyDetail/index.vue

@@ -4,7 +4,7 @@
       <view class="f-horizon">
         <image style="width: 80px; height: 80px;" :src="info.logoUrl || 'https://minio.citupro.com/dev/menduner/company-avatar.png'"></image>
         <view class="f-straight ss-m-l-10" style="flex: 1;position: relative;">
-          <view class="title-des font-weight-bold" style="max-width: 60vw;">{{ dealEnterpriseName(info.anotherName || info.name) }}</view>
+          <view class="title-des font-weight-bold" style="max-width: 60vw;">{{ formatName(info.anotherName || info.name) }}</view>
           <view class="color-999 ellipsis font-size-14" style="max-width: 60vw;">
             <span>{{ !!info.industryName? info.industryName : ''}}</span>
             <span class="ss-m-x-10" v-if="info?.industryName && info?.scaleName"> | </span>
@@ -119,7 +119,7 @@ import { getJobAdvertisedSearch } from '@/api/position'
 import { getAccessToken } from '@/utils/request'
 import PositionList from '@/components/PositionList'
 import { checkIsImage } from '@/utils'
-import { dealEnterpriseName } from '@/utils/getText'
+import { formatName } from '@/utils/getText'
 
 const current = ref(0)
 const items = ['企业介绍', '招聘职位']
@@ -173,7 +173,7 @@ const handleFollow = async () => {
 // 企业详情
 const getData = async () => {
   const { data } = await getEnterpriseDetails(id.value)
-  title.value = dealEnterpriseName(data.enterprise.anotherName || data.enterprise.name)
+  title.value = formatName(data.enterprise.anotherName || data.enterprise.name)
   info.value = data.enterprise ? { ...data, ...dealDictObjData({}, data.enterprise) } : data
   getCollectionStatus()
 }

+ 2 - 2
pagesB/inviteRecord/list.vue

@@ -16,7 +16,7 @@
 				{{ item.job?.payTo }}
 			</view>
 			<view class="list-company">
-				<text>{{ dealEnterpriseName(item.enterprise?.anotherName) }}</text>
+				<text>{{ formatName(item.enterprise?.anotherName) }}</text>
 				<text>{{ item.enterprise?.anotherName && item.job?.name ? ' · ' : '' }}</text>
 				<text>{{ item.job?.name }}</text>
 			</view>
@@ -26,7 +26,7 @@
 
 <script setup>
 import { timesTampChange } from '@/utils/date'
-import { dealEnterpriseName } from '@/utils/getText'
+import { formatName } from '@/utils/getText'
 
 const props = defineProps({
 	items: {

+ 3 - 3
pagesB/positionDetail/index.vue

@@ -50,7 +50,7 @@
             </view>
             <view >
               <view class="contact-name">{{ info.contact?.name }}</view>
-              <view class="contact-info">{{ dealEnterpriseName(info.enterprise?.anotherName || info.enterprise?.name) }} {{ info.contact?.postNameCn ? '· ' + info.contact?.postNameCn : '' }}</view>
+              <view class="contact-info">{{ formatName(info.enterprise?.anotherName || info.enterprise?.name) }} {{ info.contact?.postNameCn ? '· ' + info.contact?.postNameCn : '' }}</view>
             </view>
           </view>
           <!-- 岗位职责 -->
@@ -212,7 +212,7 @@ import { onLoad, onShareAppMessage, onShow } from '@dcloudio/uni-app'
 import { prologue, defaultText } from '@/hooks/useIM'
 import { userStore } from '@/store/user'
 import { getSubscribeTemplateList } from '@/api/common'
-import { dealEnterpriseName } from '@/utils/getText'
+import { formatName } from '@/utils/getText'
 
 const useUserStore = userStore()
 const sharePopup = ref()
@@ -363,7 +363,7 @@ const createPoster = async () => {
 
   // 企业名称
   context.setFillStyle('#000000')
-  dealWords(context, 25, dealEnterpriseName(anotherName), 250, 150, 210, 2, true)
+  dealWords(context, 25, formatName(anotherName), 250, 150, 210, 2, true)
 
   // 企业行业类型、规模
   context.setFontSize(20)

+ 2 - 2
pagesB/recommendEnterprise/index.vue

@@ -6,7 +6,7 @@
           <view class="d-flex align-center" @click="handleToEnterprise(val)">
             <image class="enterAvatar" :src="val.enterprise.logoUrl ? val.enterprise.logoUrl : 'https://minio.citupro.com/dev/menduner/company-avatar.png'"></image>
             <view class="ss-m-l-20" style="flex: 1;">
-              <view class="font-size-16 enterpriseName">{{ dealEnterpriseName(val.enterprise.anotherName || val.enterprise.name) }}</view>
+              <view class="font-size-16 enterpriseName">{{ formatName(val.enterprise.anotherName || val.enterprise.name) }}</view>
               <view class="ss-m-t-5">
                 <span class="color-999">{{ val.enterprise?.industryName || '' }}</span>
                 <span class="divider tag-gap1" v-if="val.enterprise?.industryName && val.enterprise?.scaleName"> | </span>
@@ -58,7 +58,7 @@
 import { ref }  from 'vue'
 import { getHotEnterprise } from '@/api/enterprise'
 import { dealDictObjData, dealDictArrayData } from '@/utils/position'
-import { dealEnterpriseName } from '@/utils/getText'
+import { formatName } from '@/utils/getText'
 
 const more = ref('more')
 const items = ref([])

+ 2 - 2
utils/getText.js

@@ -56,7 +56,7 @@ export const dealCanBeInputtedSave = (formItem, params) => {
   else { params[formItem.key] = formItem.value; params[formItem.itemTextName] = formItem[formItem.itemTextName] }
 }
 
-// 处理企业名称
-export const dealEnterpriseName = (name) => {
+// 格式化企业名称、职位名称
+export const formatName = (name) => {
   return name ? name.replace(/&amp;/g, '&') : ''
 }