init
This commit is contained in:
parent
246f1e0fb5
commit
417adbb16f
@ -126,7 +126,7 @@ export default{
|
|||||||
|
|
||||||
res.data.content.forEach(item => {
|
res.data.content.forEach(item => {
|
||||||
|
|
||||||
item.content = item.content.replace(/<[^>]+>/g, '').trim();
|
item.content = item.content?.replace(/<[^>]+>/g, '').trim();
|
||||||
});
|
});
|
||||||
this.newslist=res.data.content
|
this.newslist=res.data.content
|
||||||
|
|
||||||
@ -144,7 +144,7 @@ this.newshow=arr
|
|||||||
getmsg({'page':this.page}).then((res)=>{
|
getmsg({'page':this.page}).then((res)=>{
|
||||||
// console.log(res)
|
// console.log(res)
|
||||||
for(let i=0;i<res.data.content.length;i++){
|
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].day=res.data.content[i].releaseTime.slice(-2)
|
||||||
res.data.content[i].year=res.data.content[i].releaseTime.slice(0,7)
|
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)=>{
|
getnews({'page':this.page}).then((res)=>{
|
||||||
// console.log(res)
|
// console.log(res)
|
||||||
for(let i=0;i<res.data.content.length;i++){
|
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].day=res.data.content[i].releaseTime.slice(-2)
|
||||||
res.data.content[i].year=res.data.content[i].releaseTime.slice(0,7)
|
res.data.content[i].year=res.data.content[i].releaseTime.slice(0,7)
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
<div style="width: 100%;padding-left: 30%;box-sizing: border-box;">
|
<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_lt">工程简介</div>
|
||||||
<div class="z_xq_cont_top_ls"></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="z_xq_cont_top_lx">
|
||||||
<div class="jzmssj">{{area}} <span class="dwi">㎡</span></div>
|
<div class="jzmssj">{{area}} <span class="dwi">㎡</span></div>
|
||||||
<div class="jzmsms">工程建筑面积</div>
|
<div class="jzmsms">工程建筑面积</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user