소스 검색

企业名称

Xiao_123 4 달 전
부모
커밋
e6eed7dec0
4개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 1
      pages/index/crowdsourcing.vue
  2. 1 1
      pagesA/chart/index.vue
  3. 1 1
      pagesA/collect/company.vue
  4. 1 1
      pagesB/companyDetail/index.vue

+ 2 - 1
pages/index/crowdsourcing.vue

@@ -48,6 +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 { onShow, onLoad, onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app'
 // 设置自定义tabbar选中值
 onShow(() => {
@@ -138,7 +139,7 @@ async function getList () {
 				enterprise: {
 					welfareList: e.tagList,
 					logoUrl: e.logoUrl,
-					anotherName: e.anotherName,
+					anotherName: dealEnterpriseName(e.anotherName),
 					industryName: e.industryName,
 					scaleName: e.scaleName
 				}

+ 1 - 1
pagesA/chart/index.vue

@@ -79,7 +79,7 @@
                 </v-avatar>
                 {{ val.payload?.content?.positionInfo?.contact?.name }}
                 {{ val.payload?.content?.positionInfo?.contact?.postNameCn }}
-                {{ val.payload?.content?.positionInfo?.enterprise?.anotherName || val.payload?.content?.positionInfo?.enterprise?.name }}
+                {{ dealEnterpriseName(val.payload?.content?.positionInfo?.enterprise?.anotherName || val.payload?.content?.positionInfo?.enterprise?.name) }}
               </view>
               <div class="jobCard-subtitle text-right">
                 地址:{{ val.payload?.content?.positionInfo?.address }}

+ 1 - 1
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.name) }}</view>
+                <view class="enterprise-name ellipsis">{{ dealEnterpriseName(item.anotherName || item.name) }}</view>
                 <view class="ss-m-y-15 font-size-12">
                   <span class="tag-gap color-666">
                     <span>{{item.industryName }}</span>

+ 1 - 1
pagesB/companyDetail/index.vue

@@ -173,7 +173,7 @@ const handleFollow = async () => {
 // 企业详情
 const getData = async () => {
   const { data } = await getEnterpriseDetails(id.value)
-  title.value = data.enterprise.anotherName || data.enterprise.name
+  title.value = dealEnterpriseName(data.enterprise.anotherName || data.enterprise.name)
   info.value = data.enterprise ? { ...data, ...dealDictObjData({}, data.enterprise) } : data
   getCollectionStatus()
 }