This commit is contained in:
dzj 2024-07-03 10:57:28 +08:00
parent 246f1e0fb5
commit 417adbb16f
2 changed files with 4 additions and 4 deletions

View File

@ -126,7 +126,7 @@ export default{
res.data.content.forEach(item => {
item.content = item.content.replace(/<[^>]+>/g, '').trim();
item.content = item.content?.replace(/<[^>]+>/g, '').trim();
});
this.newslist=res.data.content
@ -144,7 +144,7 @@ this.newshow=arr
getmsg({'page':this.page}).then((res)=>{
// console.log(res)
for(let i=0;i<res.data.content.length;i++){
res.data.content[i].content= res.data.content[i].content.replace(/<[^>]+>/g, '').trim();
res.data.content[i].content= res.data.content[i].content?.replace(/<[^>]+>/g, '').trim();
res.data.content[i].day=res.data.content[i].releaseTime.slice(-2)
res.data.content[i].year=res.data.content[i].releaseTime.slice(0,7)
@ -156,7 +156,7 @@ this.newshow=arr
getnews({'page':this.page}).then((res)=>{
// console.log(res)
for(let i=0;i<res.data.content.length;i++){
res.data.content[i].content= res.data.content[i].content.replace(/<[^>]+>/g, '').trim();
res.data.content[i].content= res.data.content[i].content?.replace(/<[^>]+>/g, '').trim();
res.data.content[i].day=res.data.content[i].releaseTime.slice(-2)
res.data.content[i].year=res.data.content[i].releaseTime.slice(0,7)

View File

@ -23,7 +23,7 @@
<div style="width: 100%;padding-left: 30%;box-sizing: border-box;">
<div class="z_xq_cont_top_lt">工程简介</div>
<div class="z_xq_cont_top_ls"></div>
<div class="z_xq_cont_top_lc"><img src="https://www.fygroup.cn//skin/images/xqjt.png"></div>
<!-- <div class="z_xq_cont_top_lc"><img src="https://www.fygroup.cn//skin/images/xqjt.png"></div> -->
<div class="z_xq_cont_top_lx">
<div class="jzmssj">{{area}} <span class="dwi"></span></div>
<div class="jzmsms">工程建筑面积</div>