浏览代码

职位名称

Xiao_123 4 月之前
父节点
当前提交
f2d9804549

+ 1 - 1
components/PositionList/index.vue

@@ -9,7 +9,7 @@
             <view style="display: flex;align-items: center;">
               <view v-if="item.job?.hire" class="iconfont icon-a-1_zhaopin ss-m-r-10" style="color: #e03506; font-size: 25px;"></view>
               <rich-text v-if="item.job?.name?.indexOf('style') !== -1" class="job-name" :nodes="item.job.name"></rich-text>
-              <view v-else class="job-name">{{item.job?.name}}</view>
+              <view v-else class="job-name">{{ formatName(item.job?.name) }}</view>
             </view>
           </view>
           <!-- 薪酬、工作地、学历、工作经验 -->

+ 1 - 1
pagesA/chart/index.vue

@@ -46,7 +46,7 @@
           <view class="box-main-time">{{ timesTampChange(+(val.timestamp.padEnd(13, '0'))) }}</view>
           <template v-if="val.payload?.type === 102">
             <view class="jobCard">
-              <view class="jobCard-title"> {{ val.payload?.content?.positionInfo?.name }}</view>
+              <view class="jobCard-title"> {{ formatName(val.payload?.content?.positionInfo?.name) }}</view>
               <view
                 v-if="!val.payload?.content?.positionInfo?.payFrom && !val.payload?.content?.positionInfo?.payTo"
                 class="jobCard-subtitle">

+ 2 - 1
pagesA/interview/item.vue

@@ -15,7 +15,7 @@
       <!-- 职位信息 -->
       <view class="list-shape">
         <view class="titleBox my-5" @click="toDetail(1, item)">
-          <span style="font-size: 16px;font-weight: 700; color: #345768;">{{item.job?.name}}</span>
+          <span style="font-size: 16px;font-weight: 700; color: #345768;">{{ formatName(item.job?.name) }}</span>
           <span v-if="!item.job?.payFrom && !item.job?.payTo" class="salary-text">面议</span>
           <span v-else class="salary-text">{{ item.job?.payFrom }}-{{ item.job?.payTo }}{{ item.job?.payName ? '/' + item.job?.payName : '' }}</span>
         </view>
@@ -40,6 +40,7 @@
 
 <script setup>
 import { timesTampChange } from '@/utils/date'
+import { formatName } from '@/utils/getText'
 
 const emits = defineEmits(['action'])
 const props = defineProps({

+ 1 - 1
pagesA/recommendation/list.vue

@@ -17,7 +17,7 @@
 			<view class="list-company" style="border-radius: 0 0 12px 12px;">
 				<text>{{ formatName(item.enterprise?.anotherName) }}</text>
 				<text>{{ item.enterprise?.anotherName && item.job?.name ? ' · ' : '' }}</text>
-				<text>{{ item.job?.name }}</text>
+				<text>{{ formatName(item.job?.name) }}</text>
 			</view>
 		</view>
 	</view>

+ 1 - 1
pagesB/inviteRecord/list.vue

@@ -18,7 +18,7 @@
 			<view class="list-company">
 				<text>{{ formatName(item.enterprise?.anotherName) }}</text>
 				<text>{{ item.enterprise?.anotherName && item.job?.name ? ' · ' : '' }}</text>
-				<text>{{ item.job?.name }}</text>
+				<text>{{ formatName(item.job?.name) }}</text>
 			</view>
 		</view>
 	</view>

+ 2 - 2
pagesB/positionDetail/index.vue

@@ -5,7 +5,7 @@
         <view v-if="loading" class="vertical80-center">{{ loadingText }}</view>
         <view v-else>
           <!-- 职位名称 + 薪资 -->
-          <h2 class="JobName">{{ info.name }}</h2>
+          <h2 class="JobName">{{ formatName(info.name) }}</h2>
           <view style="text-align: end;">
             <span v-if="!info.payFrom && !info.payTo" class="salary w-600">面议</span>
             <span v-else class="salary w-600">{{ info.payFrom }}-{{ info.payTo }}/{{ positionInfo.payName }}</span>
@@ -332,7 +332,7 @@ const createPoster = async () => {
   
   // 岗位名称
   context.setFillStyle('#333333')
-  dealWords(context, 25, positionInfo.value?.name, 350, 40, 30, 2)
+  dealWords(context, 25, formatName(positionInfo.value?.name), 350, 40, 30, 2)
 
   // 工作地区、工作经验、学历要求
   context.setFillStyle('#6c6e7b')

+ 1 - 1
pagesB/recommendEnterprise/index.vue

@@ -29,7 +29,7 @@
           <view>
             <view class="list-shape" v-for="(k, i) in val.jobList" :key="k.id" @click="handleToPosition(k)" :style="{'padding-bottom': i !== val.jobList.length - 1 ? '10px' : ''}">
               <view class="titleBox my-5">
-                <view class="job-name">{{ k.name }}</view>
+                <view class="job-name">{{ formatName(k.name) }}</view>
                 <span v-if="!k.payFrom && !k.payTo" class="salary-text">面议</span>
                 <span v-else class="salary-text">{{ k.payFrom }}-{{ k.payTo }}{{ k.payName ? '/' + k.payName : '' }}</span>
               </view>