|
|
@@ -314,7 +314,10 @@
|
|
|
{{item.salaryRange}}
|
|
|
</span>
|
|
|
</div>
|
|
|
- <div class="postPushList-con-item-con">{{ item.positionDetails }}</div>
|
|
|
+ <div class="postPushList-con-item-con" style="white-space: pre-wrap;">
|
|
|
+ <div v-if="isHtml(item.positionDetails)" v-html="formatHtml(item.positionDetails)"></div>
|
|
|
+ <template v-else>{{ item.positionDetails }}</template>
|
|
|
+ </div>
|
|
|
<div class="postPushList-con-item-tag flex algin-center flex-wrap">
|
|
|
<div class="postPushList-con-item-tag-i">
|
|
|
{{ item.city }}-{{ item.county }}
|
|
|
@@ -583,6 +586,12 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ formatHtml(html) {
|
|
|
+ return html.replace(/<p>/g, '<p style="margin:0;padding:0;">')
|
|
|
+ },
|
|
|
+ isHtml(str) {
|
|
|
+ return /<\/?[a-z][\s\S]*>/i.test(str)
|
|
|
+ },
|
|
|
//删除主营业务介绍标签
|
|
|
handleClose(index) {
|
|
|
this.companyInfo.companyScope.splice(index, 1)
|