init'
This commit is contained in:
parent
352e98d28b
commit
3541af04a7
@ -4,7 +4,7 @@
|
||||
|
||||
<div class="bd" style="height: 581px;position: relative;">
|
||||
<div class="swiper-container swiper5">
|
||||
<div class="swiper-wrapper">
|
||||
<div class="swiper-wrapper" >
|
||||
<div class="swiper-slide" v-for="item in imgarr" :key="item.id"><img :src="item.url"
|
||||
style="width: 100%;height:100%;"></div>
|
||||
|
||||
@ -120,7 +120,7 @@
|
||||
<div class="swiper2" style="max-width: 80vw;overflow: hidden;height: 100%;">
|
||||
<div class="swiper-wrapper swiper9">
|
||||
|
||||
<div class="swiper-slide" style="height: 100%;" v-for="item in smallPicturearr" :key="item.id"><img
|
||||
<div class="swiper-slide" style="height: 100%;" v-for="item in smallPicturearr" :key="item.id" v-if="item.state=='1'"><img
|
||||
:src="item.picture" style=" border-radius: 10px;width: 396px;height:263px;"></div>
|
||||
|
||||
|
||||
@ -163,8 +163,8 @@
|
||||
</div>
|
||||
<div style="max-width: 80vw;overflow: hidden;height: 100%;margin: auto;">
|
||||
<div class="swiper3">
|
||||
<div class="swiper-wrapper swiper9">
|
||||
<div class="swiper-slide" v-for="item in achievementarr" :key="item.id"
|
||||
<div class="swiper-wrapper swiper9"style="justify-content: center;">
|
||||
<div class="swiper-slide" v-for="item in achievementarr" :key="item.id" v-if="item.state=='1'"
|
||||
@click="honorto(item.id)"
|
||||
style="background-color: rgb(240,246,250);border-radius: 10px;padding: 40px;box-sizing: border-box;cursor: pointer;">
|
||||
<img :src="item.picture" style=" width: 100%;margin: auto;"></div>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<div class="content">
|
||||
<div class="page_nav">
|
||||
<div class="name">
|
||||
<a style="padding: 0;" href="">走进飞阳</a> <a href="javascript:;">公司简介</a>
|
||||
<a style="padding: 0;" href="/aboutus">走进飞阳</a> <a href="javascript:;">公司简介</a>
|
||||
</div>
|
||||
<div class="list" style="bottom:-15px">
|
||||
<el-tabs v-model="activeName" @tab-click="handleClick">
|
||||
|
@ -5,7 +5,7 @@
|
||||
<div class="content">
|
||||
<div class="page_nav">
|
||||
<div class="name">
|
||||
<a style="padding: 0;" href="">新闻资讯</a> <a href="javascript:;">企业新闻</a>
|
||||
<a style="padding: 0;" href="news">新闻资讯</a> <a href="javascript:;">企业新闻</a>
|
||||
</div>
|
||||
<div class="list" style="bottom:-15px">
|
||||
<el-tabs v-model="activeName" @tab-click="handleClick">
|
||||
@ -51,6 +51,7 @@ export default{
|
||||
this.content=res.data.content
|
||||
this.name=res.data.name
|
||||
this.time=res.data.releaseTime
|
||||
|
||||
})
|
||||
},
|
||||
}
|
||||
|
@ -5,7 +5,7 @@
|
||||
<div class="content">
|
||||
<div class="page_nav">
|
||||
<div class="name">
|
||||
<a style="padding: 0;" href="">荣誉资讯</a> <a href="javascript:;">荣誉详情</a>
|
||||
<a style="padding: 0;" href="/aboutus?category=honor">荣誉资讯</a> <a href="javascript:;">荣誉详情</a>
|
||||
</div>
|
||||
<div class="list" style="bottom:-15px">
|
||||
<el-tabs v-model="activeName" @tab-click="handleClick">
|
||||
|
@ -26,7 +26,7 @@
|
||||
<div class="date">{{item.releaseTime}}</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="news_li_con"><div class="title">{{item.name}}</div> <div class="introduction" >{{ item.source }}</div> </div>
|
||||
<div class="news_li_con"><div class="title">{{item.name}}</div> <div class="introduction" v-html="item.content"></div> </div>
|
||||
|
||||
</div>
|
||||
</el-card>
|
||||
@ -101,13 +101,23 @@ export default{
|
||||
newshow:[],
|
||||
rest:[],
|
||||
newslist:[],
|
||||
page:0
|
||||
page:0,
|
||||
content:''
|
||||
}
|
||||
},
|
||||
mounted(){
|
||||
getnews({'page':0}).then((res)=>{
|
||||
this.newslist=res.data.content
|
||||
this.newshow=this.newslist.slice(0,3)
|
||||
|
||||
let arr=this.newslist.slice(0,3)
|
||||
|
||||
// 遍历数组,对每个对象的richText属性进行处理
|
||||
arr.forEach(item => {
|
||||
// 去除所有标签和空格
|
||||
item.content = item.content.replace(/<[^>]+>/g, '').trim();
|
||||
});
|
||||
this.newshow=arr
|
||||
|
||||
})
|
||||
},
|
||||
methods:{
|
||||
|
@ -5,11 +5,11 @@
|
||||
<div class="content">
|
||||
<div class="page_nav">
|
||||
<div class="name">
|
||||
<a style="padding: 0;" href="">新闻资讯</a> <a href="javascript:;">企业新闻</a>
|
||||
<a style="padding: 0;" href="/project">工程资讯</a> <a href="javascript:;">工程详情</a>
|
||||
</div>
|
||||
<div class="list" style="bottom:-15px">
|
||||
<el-tabs v-model="activeName" >
|
||||
<el-tab-pane label="新闻详情" name="first"></el-tab-pane>
|
||||
<el-tab-pane label="工程详情" name="first"></el-tab-pane>
|
||||
|
||||
</el-tabs>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user