feiyang-web/src/views/detail.vue

231 lines
4.6 KiB
Vue
Raw Normal View History

2024-05-07 17:53:40 +08:00
<template>
<div>
<div class="page_ban">
<div class="img compbg"></div>
<div class="content">
<div class="page_nav">
<div class="name">
2024-07-02 15:48:17 +08:00
<a style="padding: 0;" href="news">新闻内容</a> <a href="javascript:;">企业新闻</a>
2024-05-07 17:53:40 +08:00
</div>
<div class="list" style="bottom:-15px">
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="新闻详情" name="first"></el-tab-pane>
</el-tabs>
</div>
</div>
</div>
</div>
<div class="Wrapper news_d">
2024-07-02 15:48:17 +08:00
<div class="content ql-editor" style="">
2024-05-11 14:54:48 +08:00
<div class="name">{{ name }}</div>
2024-07-02 15:48:17 +08:00
<div class="top-box">
<div style="text-align: left;font-size: 14px;color: #999999;">发布时间:{{time}}</div>
</div>
2024-06-25 14:49:52 +08:00
<div class="divider "></div>
2024-05-25 17:50:20 +08:00
<div class="cont" v-html="content"></div>
2024-05-07 17:53:40 +08:00
</div>
2024-07-25 16:24:12 +08:00
<div style="width: 80%;margin: auto;text-align: right; color: #333;font-weight: bold;font-size: 14px;cursor: pointer;" @click="changeto">返回列表</div>
2024-05-07 17:53:40 +08:00
<div class="con">
</div>
</div>
</div>
2024-07-02 15:48:17 +08:00
2024-05-07 17:53:40 +08:00
</template>
<script>
2024-07-02 15:48:17 +08:00
import { newsdetail,msgdetail } from '@/api';
2024-07-09 18:07:42 +08:00
// import 'react-quill/dist/quill.snow.css';
2024-05-11 14:54:48 +08:00
export default{
data(){
return{
name:'',
content:'',
time:''
}
},
methods:{
2024-07-02 15:48:17 +08:00
changeto(){
this.$router.push({path:'news'})
}
2024-05-11 14:54:48 +08:00
},
mounted(){
2024-07-02 15:48:17 +08:00
2024-07-27 18:12:55 +08:00
// if(this.$route.query.type=='1'){
msgdetail({id:this.$route.query.id,articleType:this.$route.query.type}).then((res)=>{
2024-07-02 15:48:17 +08:00
this.content=res.data.content
this.name=res.data.name
this.time=res.data.releaseTime
})
2024-07-27 18:12:55 +08:00
// }else{
// newsdetail({id:this.$route.query.id}).then((res)=>{
// this.content=res.data.content
// this.name=res.data.name
// this.time=res.data.releaseTime
2024-05-20 13:45:51 +08:00
2024-07-27 18:12:55 +08:00
// })
// }
2024-07-02 15:48:17 +08:00
2024-05-11 14:54:48 +08:00
},
}
2024-05-07 17:53:40 +08:00
</script>
<style scoped>
.divider {
width: 100%;
height: 3px;
2024-07-02 15:48:17 +08:00
/* background-color: #0059a7; */
2024-05-07 17:53:40 +08:00
position: static;
margin-bottom: 28px;
}
.name {
font-size: 30px;
color: #0007a9;
color: rgba(0, 7, 169, .8);
line-height: 36px;
}
.news_d {
padding: 60px 0 90px;
overflow: hidden;
}
.Wrapper {
position: relative;
background-color: #fff;
z-index: 100;
}
2024-06-25 14:49:52 +08:00
/* .news_d .name {
2024-05-07 17:53:40 +08:00
font-size: 30px;
color: #0007a9;
color: rgba(0, 7, 169, .8);
line-height: 36px;
2024-06-25 14:49:52 +08:00
} */
2024-05-07 17:53:40 +08:00
::v-deep .el-tabs__item {
color: rgba(255, 255, 255, 0.8);
border: none;
}
::v-deep .el-tabs__nav-wrap::after {
background-color: transparent;
}
.news_d .con p {
font-size: 14.5px;
color: #8e8e95;
line-height: 26px;
margin-bottom: 26px;
text-align: justify;
}
.compbg {
background-image: url('../assets/images/banner.png');
}
.page_ban {
height: 404px;
position: relative;
text-align: center;
z-index: 101;
}
.page_ban .img {
width: 100%;
height: 100%;
background-size: cover;
position: absolute;
left: 0;
top: 0;
z-index: -1;
}
.top-box{
margin: 16px 0 30px;
}
2024-06-25 14:49:52 +08:00
::v-deep .ql-editor{
2024-07-09 18:07:42 +08:00
white-space: normal;
2024-06-25 14:49:52 +08:00
}
2024-05-07 17:53:40 +08:00
.date{
font-size: 26px;
color: #dfd4c3;
line-height: 1;
bottom: 20px;
padding: 0 30px;
width: 100%;
}
.page_ban .content {
position: relative;
height: 100%;
}
.content {
width: 80%;
margin: 0 auto;
}
.page_nav {
width: 100%;
position: absolute;
left: 0;
bottom: 0;
}
div,
li {
box-sizing: border-box;
}
.page_nav .name {
float: left;
}
.page_nav .list {
position: relative;
float: right;
margin-right: -35px;
}
.page_nav a {
float: left;
line-height: 76px;
position: relative;
font-size: 14.5px;
color: white;
font-weight: bold;
text-decoration: none;
}
.page_nav .name a {
padding-left: 30px;
/* background: url() no-repeat left 30px; */
}
.page_nav .list {
position: relative;
float: right;
margin-right: -35px;
}
.page_nav .list a {
color: #e7dfd2;
color: rgba(231, 223, 210, .7);
margin-right: 35px;
}
.page_nav a {
float: left;
line-height: 76px;
position: relative;
font-size: 14.5px;
color: rgba(255, 255, 255, 0.8);
font-weight: bold;
}
2024-07-15 22:26:06 +08:00
/* .cont >>> img{
2024-05-25 17:50:20 +08:00
max-width: 500px;
2024-07-15 22:26:06 +08:00
} */
2024-05-07 17:53:40 +08:00
</style>